avada-feature-request 1.0.29 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -25,7 +25,7 @@ import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import n,{useEff
25
25
  *
26
26
  * This source code is licensed under the MIT license found in the
27
27
  * LICENSE file in the root directory of this source tree.
28
- */"production"===process.env.NODE_ENV?ve.exports=function(){if(Ae)return we;Ae=1;var e=n,t=Ee(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,o=e.useMemo,l=e.useDebugValue;return we.useSyncExternalStoreWithSelector=function(e,t,n,d,c){var u=a(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;u=o(function(){function e(e){if(!s){if(s=!0,i=e,e=d(e),void 0!==c&&p.hasValue){var t=p.value;if(c(t,e))return a=t}return a=e}if(t=a,r(i,e))return t;var n=d(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,a=n)}var i,a,s=!1,o=void 0===n?null:n;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,n,d,c]);var h=i(e,u[0],u[1]);return s(function(){p.hasValue=!0,p.value=h},[h]),l(h),h},we}():ve.exports=(xe||(xe=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=n,t=Ee(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,o=e.useMemo,l=e.useDebugValue;Ce.useSyncExternalStoreWithSelector=function(e,t,n,d,c){var u=a(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;u=o(function(){function e(e){if(!s){if(s=!0,i=e,e=d(e),void 0!==c&&p.hasValue){var t=p.value;if(c(t,e))return a=t}return a=e}if(t=a,r(i,e))return t;var n=d(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,a=n)}var i,a,s=!1,o=void 0===n?null:n;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,n,d,c]);var h=i(e,u[0],u[1]);return s(function(){p.hasValue=!0,p.value=h},[h]),l(h),h},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ce);var Me=me(ve.exports);const{useDebugValue:ke}=n,{useSyncExternalStoreWithSelector:De}=Me;let Oe=!1;const Le=e=>e;const Re=e=>{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?fe(e):fe)(e):e,r=(e,r)=>function(e,t=Le,r){"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&r&&!Oe&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Oe=!0);const n=De(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return ke(n),n}(t,e,r);return Object.assign(r,t),r},Pe=["anhth@avada.io","anhnt@avada.io","sam@avada.io","lamln@avadagroup.com","nghiavt@avadagroup.com","nghiavt@avada.email","anhth01@avadagroup.com","truongnn@avadagroup.com","tranggt@avadagroup.com"],Ne=e=>Pe.includes(e),Ie="avada-feature-request";let Fe=null,Ye=null;const ze=(e,t,r=Ie)=>{const n=((e,t,r=Ie)=>{if(Fe)return Fe;if(t)return Fe=t,Fe;const n=f().find(e=>e.name===r);if(n)return Fe=n,Fe;if(!e)throw new Error(`Firebase config is required to initialize app "${r}". Pass firebaseConfig or firebaseApp to FeatureRequestProvider.`);return Fe=m(e,r),Fe})(e,t,r);return Ye||(Ye=g(n)),{app:n,db:Ye}},Be={shopId:"",email:""},qe=(He=e=>({appId:"",shopInfo:Be,isAdmin:!1,isHydrated:!1,fnAfterSubmit:void 0,fnAfterLike:void 0,stage:"home",detailId:void 0,openComment:!1,setStage:(t,r)=>{var n;e({stage:t,detailId:null==r?void 0:r.detailId,openComment:null!==(n=null==r?void 0:r.openComment)&&void 0!==n&&n})},setConfig:t=>{const r={...Be,...t.activeShop};e({appId:t.appId||"",shopInfo:r,fnAfterSubmit:t.fnAfterSubmit,fnAfterLike:t.fnAfterLike,isAdmin:Ne(r.email),isHydrated:!0})}}))?Re(He):Re;var He;const Ge=({children:r,firebaseConfig:n,firebaseApp:a,firebaseAppName:s,...o})=>{ze(n,a,s);const l=qe(e=>e.setConfig);return i(()=>l(o),[o,l]),e(t,{children:r})},We=e=>{qe.getState().setConfig(e)},Ue=({children:t,icon:n,tone:i="info",size:a="medium",progress:s,className:o=""})=>{const l=["Avada-Badge",(e=>{switch(e){case"critical":return"Avada-Badge--tone-critical";case"warning":return"Avada-Badge--tone-warning";case"attention":return"Avada-Badge--tone-attention";case"success":return"Avada-Badge--tone-success";case"new":return"Avada-Badge--tone-new";case"read-only":return"Avada-Badge--tone-read-only";case"enabled":return"Avada-Badge--tone-enabled";default:return"Avada-Badge--tone-info"}})(i),(e=>{switch(e){case"small":return"Avada-Badge--size-small";case"large":return"Avada-Badge--size-large";default:return"Avada-Badge--size-medium"}})(a),(e=>{if(!e)return"";switch(e){case"incomplete":return"Avada-Badge--progress-incomplete";case"partially-complete":return"Avada-Badge--progress-partially-complete";case"complete":return"Avada-Badge--progress-complete";default:return""}})(s),o].filter(Boolean).join(" ");return r("span",{className:l,children:[s?e("span",{className:"Avada-Badge__Pip",children:e("span",{className:"Avada-Badge__Progress"})}):null,n?e("span",{className:"Avada-Badge__Icon",children:e(n,{})}):null,t?e("span",{className:"Avada-Badge__Text",children:t}):null]})},Ve=[{id:"all",content:"All",value:0},{id:"new-feature",content:"New feature",value:1},{id:"improvement",content:"Improvement",value:2},{id:"bug-report",content:"Bug report",value:3},{id:"submitted",content:"Submitted",value:4}],je=e=>e.replace(/(https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&//=]*))/gi,e=>`<a href="${e}" target="_blank" rel="noopener noreferrer" class="Avada-FeatureReq-Link">${e}</a>`),$e=[{label:"New feature",value:"new-feature"},{label:"Bug report",value:"bug-report"},{label:"Improvement",value:"improvement"}],Ze={sort:"Most recent",status:"all",limit:10,lastDoc:null},Xe=["Doing","Considering","Completed"];function Qe({status:t}){switch(t){case"Considering":default:return e("p",{style:{color:"#616161",fontStyle:"italic"},children:t});case"Doing":return e("p",{style:{color:"#0094D5",fontStyle:"italic"},children:t});case"Completed":return e("p",{style:{color:"#29845A",fontStyle:"italic"},children:t})}}function Ke({type:t}){const{icon:r,tone:n}=(e=>{switch(e){case"new-feature":return{icon:ie,tone:"success"};case"bug-report":return{icon:ne,tone:"critical"};default:return{icon:re,tone:"info"}}})(t);return e(Ue,{icon:r,tone:n,children:e("p",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",margin:0},children:(e=>e.replace(/^([a-z])|-(\w)/g,(e,t,r)=>t?t.toUpperCase():" "+r.toLowerCase()))(t)})})}const Je=["truongnn@avadagroup.com","tranggt@avadagroup.com"];e("svg",{width:"5",height:"6",viewBox:"0 0 5 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("circle",{cx:"2.5",cy:"3",r:"2.5",fill:"#CCCCCC"})});const et=()=>{const e=qe(e=>e.setStage);return{goToStage:a((t,r)=>{e(t,r)},[e]),navigateTo:a(t=>{if(t.startsWith("/feature-request/create"))e("create");else{if(t.startsWith("/feature-request/details/")){const r=t.replace("/feature-request/details/","").split("?")[0],n=t.includes("openComment=true");return void e("details",{detailId:r,openComment:n})}e("home")}},[e])}},tt=async(e,t)=>{const{method:r="GET",body:n,headers:i,credentials:a="omit"}=t||{},s=await fetch((e=>/^https?:\/\//i.test(e)?e:`https://proxy-rrhtb7w6rq-as.a.run.app/proxy${e.startsWith("/")?e:`/${e}`}`)(e),{method:r,headers:{"Content-Type":"application/json",...i},credentials:a,body:n?JSON.stringify(n):void 0}),o=s.headers.get("content-type")||"",l=await(async()=>{if(204!==s.status){if(o.includes("application/json"))try{return await s.json()}catch{return}return await s.text()}})();if(!s.ok){const e="string"==typeof l?l:(null==l?void 0:l.message)||s.statusText;throw new Error(e)}return l},rt=()=>{const[e,t]=s(!1),[r,n]=s(null);return{fetchApi:a(async(e,r,i)=>{t(!0),n(null);try{if(i){const e=i();if(!1===e)throw new Error("Validation failed");if("string"==typeof e)throw new Error(e)}return await tt(e,r)}catch(e){throw n(e),e}finally{t(!1)}},[]),loading:e,error:r,resetError:a(()=>n(null),[])}},nt={title:"",description:"",featureType:"new-feature",isAnonymous:!1,commentCount:0,voteCount:0,status:"Considering",likedUserIds:[]};function it({isFullPage:t=!0}){var n,i;const{fetchApi:a,loading:l,error:d,resetError:c}=rt(),{navigateTo:u}=et(),p=qe(e=>e.shopInfo),h=qe(e=>e.appId),f=qe(e=>e.fnAfterSubmit),[m,g]=s(nt),[v,w]=s(""),y=o(()=>JSON.stringify(m)!==JSON.stringify(nt),[m]),b=(e,t)=>{c(),g(r=>({...r,[e]:t}))},_=r(L,{sectioned:!0,children:[r(R,{gap:"300",children:[e(P,{label:"Title",value:m.title,onChange:e=>b("title",e),onFocus:()=>{c(),w("")},autoComplete:"off",placeholder:"Brief overview of your suggestion (e.g., Internal link suggestion)",error:(null===(n=null==d?void 0:d.message)||void 0===n?void 0:n.includes("Title"))?d.message:void 0}),e("div",{className:"Avada-CreateFeatureReq-Select",children:e(N,{label:"Type",onFocus:()=>{w("")},options:$e,onChange:e=>b("featureType",e),value:m.featureType})}),e(P,{label:"Description",value:m.description,onChange:e=>b("description",e),onFocus:()=>{c(),w("")},multiline:4,autoComplete:"off",placeholder:"Detailed explanation of your suggestion and how it benefits users",error:(null===(i=null==d?void 0:d.message)||void 0===i?void 0:i.includes("Description"))?d.message:void 0}),e(I,{onFocus:()=>{w("")},label:"Anonymous submit",checked:m.isAnonymous,onChange:e=>b("isAnonymous",e),helpText:"Hide your name from this submission"})]}),e(F,{primaryAction:{content:"Submit",disabled:!y,loading:l,onAction(){w(""),(async()=>{try{const e=await a("/feature-requests",{body:{data:{...m,shopOwner:p.name,description:je(m.description.replace(/\n/g,"<br>")),appId:h,shopId:p.shopId||p.id}},method:"POST"},()=>m.title.trim()?!!m.description.trim()||"Description is required":"Title is required");(null==e?void 0:e.success)&&("function"==typeof f&&(null==f||f()),setTimeout(()=>{u(`/feature-request/details/${null==e?void 0:e.data.id}`)},200))}catch(e){console.error("error handleCreateFeatureReq: ",e),w(e instanceof Error?e.message:"Something went wrong")}})()}}}),e(Y,{as:"p",tone:"critical",variant:"bodyMd",alignment:"end",fontWeight:"medium",children:v||""})]}),S=t?e(z,{backAction:{content:"Submit a request",onAction:()=>u("/feature-request")},title:"Back",children:_}):_;return e(B,{i18n:{},children:S})}const at=()=>r("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M13.0887 10.9855L13.5826 8.12963C13.706 7.41635 13.1574 6.76394 12.4343 6.76394H8.80758C8.44813 6.76394 8.17441 6.4413 8.23259 6.08619L8.69647 3.25499C8.77182 2.79504 8.7503 2.3244 8.63328 1.87327C8.53633 1.49955 8.24799 1.19946 7.86879 1.07765L7.76732 1.04505C7.53814 0.971426 7.28801 0.988558 7.07194 1.09268C6.83411 1.20728 6.66012 1.41631 6.59563 1.66492L6.26264 2.94862C6.15669 3.35706 6.00235 3.75132 5.80336 4.12383C5.51262 4.66812 5.06309 5.10372 4.59582 5.50639L3.5887 6.37424C3.30474 6.61894 3.15561 6.98539 3.18793 7.35908L3.75644 13.934C3.80859 14.537 4.3128 15 4.91744 15H8.17148C10.6084 15 12.6881 13.3021 13.0887 10.9855Z",fill:"#005BD3"}),e("path",{d:"M1 6.76394L1.68012 14.6295C1.69735 14.8287 1.54045 15 1.34069 15C1.15253 15 1 14.8473 1 14.6589V6.76394Z",fill:"#005BD3"}),e("path",{d:"M13.5826 8.12963L12.8436 8.00183L12.8436 8.00183L13.5826 8.12963ZM13.0887 10.9855L13.8278 11.1133L13.8278 11.1133L13.0887 10.9855ZM3.75644 13.934L3.00923 13.9986L3.00923 13.9986L3.75644 13.934ZM3.18793 7.35908L3.93514 7.29447L3.93514 7.29447L3.18793 7.35908ZM8.69647 3.25499L9.4366 3.37626L9.4366 3.37626L8.69647 3.25499ZM8.23259 6.08619L8.97273 6.20745L8.97273 6.20745L8.23259 6.08619ZM3.5887 6.37424L3.09911 5.80609L3.09911 5.80609L3.5887 6.37424ZM4.59582 5.50639L5.08541 6.07454L5.08541 6.07454L4.59582 5.50639ZM6.26264 2.94862L5.53667 2.7603L5.53667 2.7603L6.26264 2.94862ZM6.59563 1.66492L7.32161 1.85324L7.32161 1.85324L6.59563 1.66492ZM7.76732 1.04505L7.53793 1.75911L7.53793 1.75911L7.76732 1.04505ZM7.86879 1.07765L8.09819 0.363589L8.09818 0.363588L7.86879 1.07765ZM5.80336 4.12383L6.4649 4.4772L6.4649 4.4772L5.80336 4.12383ZM8.63328 1.87327L7.9073 2.06159L7.9073 2.06159L8.63328 1.87327ZM7.07194 1.09268L6.74636 0.417028L6.74636 0.417028L7.07194 1.09268ZM1.68012 14.6295L0.932907 14.6941L0.932907 14.6941L1.68012 14.6295ZM1 6.76394L1.74721 6.69933C1.71261 6.29919 1.36893 5.99732 0.967665 6.01464C0.566401 6.03195 0.25 6.3623 0.25 6.76394L1 6.76394ZM12.8436 8.00183L12.3497 10.8577L13.8278 11.1133L14.3216 8.25744L12.8436 8.00183ZM8.17148 14.25H4.91744V15.75H8.17148V14.25ZM4.50365 13.8693L3.93514 7.29447L2.44071 7.42369L3.00923 13.9986L4.50365 13.8693ZM12.3497 10.8577C12.0146 12.7954 10.2634 14.25 8.17148 14.25V15.75C10.9534 15.75 13.3616 13.8087 13.8278 11.1133L12.3497 10.8577ZM7.95633 3.13373L7.49246 5.96492L8.97273 6.20745L9.4366 3.37626L7.95633 3.13373ZM4.07829 6.9424L5.08541 6.07454L4.10622 4.93823L3.09911 5.80609L4.07829 6.9424ZM6.98861 3.13694L7.32161 1.85324L5.86966 1.4766L5.53667 2.7603L6.98861 3.13694ZM7.53793 1.75911L7.63941 1.79171L8.09818 0.363588L7.99671 0.330989L7.53793 1.75911ZM6.4649 4.4772C6.69158 4.05284 6.86765 3.60322 6.98861 3.13694L5.53667 2.7603C5.44572 3.1109 5.31312 3.44979 5.14183 3.77046L6.4649 4.4772ZM7.6394 1.79171C7.78331 1.83794 7.87732 1.946 7.9073 2.06159L9.35925 1.68495C9.19535 1.0531 8.71268 0.560995 8.09819 0.363589L7.6394 1.79171ZM7.32161 1.85324C7.32899 1.82478 7.35192 1.79029 7.39752 1.76832L6.74636 0.417028C6.31631 0.624261 5.99126 1.00785 5.86966 1.4766L7.32161 1.85324ZM7.39752 1.76832C7.43966 1.74801 7.49109 1.74406 7.53793 1.75911L7.99671 0.330989C7.5852 0.198792 7.13635 0.229102 6.74636 0.417028L7.39752 1.76832ZM8.80758 7.51394H12.4343V6.01394H8.80758V7.51394ZM2.42733 14.5649L1.74721 6.69933L0.252788 6.82855L0.932907 14.6941L2.42733 14.5649ZM1.75 14.6589V6.76394H0.25V14.6589H1.75ZM0.932907 14.6941C0.912333 14.4562 1.09983 14.25 1.34069 14.25V15.75C1.98106 15.75 2.48236 15.2013 2.42733 14.5649L0.932907 14.6941ZM9.4366 3.37626C9.52884 2.81326 9.5025 2.23717 9.35925 1.68495L7.9073 2.06159C7.99811 2.41163 8.01481 2.77683 7.95633 3.13373L9.4366 3.37626ZM4.91744 14.25C4.70267 14.25 4.52233 14.0854 4.50365 13.8693L3.00923 13.9986C3.09484 14.9887 3.92293 15.75 4.91744 15.75V14.25ZM5.08541 6.07454C5.565 5.66126 6.10518 5.15062 6.4649 4.4772L5.14183 3.77046C4.92006 4.18562 4.56118 4.54619 4.10622 4.93823L5.08541 6.07454ZM14.3216 8.25744C14.5241 7.08665 13.6237 6.01394 12.4343 6.01394V7.51394C12.6911 7.51394 12.8878 7.74604 12.8436 8.00183L14.3216 8.25744ZM1.34069 14.25C1.56755 14.25 1.75 14.4339 1.75 14.6589H0.25C0.25 15.2607 0.737517 15.75 1.34069 15.75V14.25ZM7.49246 5.96492C7.35964 6.77558 7.98451 7.51394 8.80758 7.51394V6.01394C8.91175 6.01394 8.98918 6.10702 8.97273 6.20745L7.49246 5.96492ZM3.93514 7.29447C3.92357 7.16065 3.977 7.02968 4.07829 6.9424L3.09911 5.80609C2.63247 6.20819 2.38766 6.81013 2.44071 7.42369L3.93514 7.29447Z",fill:"#005BD3"})]}),st="STORE_ONBOARD",ot="STORE_REVIEW",lt="STORE_TEST",dt=["BR","DZ","MA","PK","PT","PL"],ct=["IN","PK"],ut=({shopifyPlan:e})=>["trial","affiliate","partner_test","staff","staff_business"].includes(e),pt=e=>{if(!e)return e;const t={...e};return e.createdAt&&"function"==typeof e.createdAt.toDate&&(t.createdAt=e.createdAt.toDate()),e.updatedAt&&"function"==typeof e.updatedAt.toDate&&(t.updatedAt=e.updatedAt.toDate()),t};class ht{constructor(e){this.initialize(e)}initialize({db:e,shop:t,appId:r}){this.featureReqRef=v(e,"featureReq"),this.commentFeatureReqRef=v(e,"commentFeatureReq"),this.support=v(e,"support"),this.featureReqUsers=v(e,"featureReqUsers"),this.db=e,this.shopId=(null==t?void 0:t.shopId)||(null==t?void 0:t.id),this.appId=r,this.shop=t,this.data=[],this.activeSubscriptions=new Set}async subscribeToDocumentCounts(e,t){var r;try{if(!(null==t?void 0:t.id))return;const n=(null==t?void 0:t.featureType)?w(this.featureReqRef,t.id):w(this.commentFeatureReqRef,t.id),i=y(n,r=>{if(r.exists()){const n=pt(r.data())||{},i={voteCount:n.voteCount||0,likedUserIds:n.likedUserIds||[]};(null==t?void 0:t.featureType)?e(e=>({...e||{},...i,commentCount:n.commentCount||0})):(null==t?void 0:t.replies)?e(e=>({...e||{},...i})):e(e=>({...e||{},...i,commentCount:n.repliesCount||0}))}});return null===(r=this.activeSubscriptions)||void 0===r||r.add(i),()=>{var e;i(),null===(e=this.activeSubscriptions)||void 0===e||e.delete(i)}}catch(e){console.error("Error getting document:",e)}}async toggleVote({targetId:e,shopId:t,byFeatureReq:r}){try{const n=w(r?this.featureReqRef:this.commentFeatureReqRef,e),i=await b(n);if(i.exists()){const e=i.data(),r=(e.likedUserIds||[]).includes(t),a=r?-1:1,s=r?_(t):S(t);return await A(n,{voteCount:T(a),likedUserIds:s}),!r}console.error("Document does not exist:",e)}catch(e){console.error("Error voting like:",e)}}async subscribeToComments(e,t){try{if(!e)return void("function"==typeof t&&t([]));const r=E(this.commentFeatureReqRef,x("parentId","==",e),C("createdAt","asc")),n=y(r,e=>{if("function"!=typeof t)return;const r=e.docs.map(e=>{const t=e.data();return t.createdAt&&t.createdAt.toDate&&(t.createdAt=t.createdAt.toDate().toISOString()),{id:e.id,...t}});t(r)});return this.activeSubscriptions.add(n),()=>{n(),this.activeSubscriptions.delete(n)}}catch(e){console.error("subscribeToComments",e),"function"==typeof t&&t([])}}cleanup(){this.activeSubscriptions.forEach(e=>{"function"==typeof e&&e()}),this.activeSubscriptions.clear()}subscribeTrendingRequests(e,t=10){try{if(!this.appId)return e({data:[]}),()=>{};const r=E(this.featureReqRef,x("appId","==",this.appId),C("createdAt","desc")),n=y(r,r=>{if("function"==typeof e)if(r.empty)e({data:[]});else{const n=new Date,i=r.docs.map(e=>{const t={...pt(e.data()),id:e.id},r=new Date(t.createdAt),i=Math.max((n.getTime()-r.getTime())/864e5,1),a=(1*t.voteCount+2*t.commentCount)/i;return{...t,score:a}}).sort((e,t)=>(t.score||0)-(e.score||0)).slice(0,t);e({data:i})}});return this.activeSubscriptions.add(n),()=>{n(),this.activeSubscriptions.delete(n)}}catch(t){return console.error("Error getting trending feature requests:",t),"function"==typeof e&&e({data:[]}),()=>{}}}subscribeFeatureRequests(e,t=Ze){var r;try{if(console.log(t),!this.appId)return e({data:[],lastDoc:null}),()=>{};let n=E(this.featureReqRef,x("appId","==",this.appId));["new-feature","improvement","bug-report"].includes(t.status)&&(n=E(n,x("featureType","==",t.status))),"submitted"===t.status&&(console.log("=========>",this.shopId),n=E(n,x("shopId","==",this.shopId))),"Most recent"===t.sort?n=E(n,C("createdAt","desc")):"Top Voted"===t.sort&&(n=E(n,C("voteCount","desc"))),n=E(n,M(parseInt((null===(r=t.limit)||void 0===r?void 0:r.toString())||"0"))),t.lastDoc&&(n=E(n,k(t.lastDoc)));const i=y(n,t=>{if("function"==typeof e)if(t.empty)e({data:[],lastDoc:null});else{const r=t.docs[t.docs.length-1],n=t.docs.map(e=>({...pt(e.data()),id:e.id}));e({data:n,lastDoc:r})}},t=>{console.error("Error in snapshot listener:",t),e({data:[],lastDoc:null})});return this.activeSubscriptions.add(i),()=>{i(),this.activeSubscriptions.delete(i)}}catch(t){return console.error("Error getting feature requests:",t),"function"==typeof e&&e({data:[],lastDoc:null}),()=>{}}}subscribeFeatureRequest(e,t){try{if(!e)return()=>{};if(""===e.trim())return console.warn("Invalid or empty ID passed to subscribeFeatureRequest:",e),"function"==typeof t&&t({}),()=>{};const r=w(this.featureReqRef,e),n=y(r,r=>{if("function"==typeof t)if(r.exists()){const e={...pt(r.data()),id:r.id};t(e)}else console.log(`Feature request with ID ${e} not found`),t({})});return this.activeSubscriptions.add(n),()=>{n(),this.activeSubscriptions.delete(n)}}catch(e){return console.error("Error getting feature request by ID:",e),"function"==typeof t&&t({}),()=>{}}}async removeFeatureRequest(e){try{if(!e)throw new Error("ID is required to delete feature request");const t=D(this.db),r=async(e,t,r)=>{const n=E(e,x(t,"==",r));return(await O(n)).docs},n=await r(this.commentFeatureReqRef,"parentId",e),i=await Promise.all(n.map(e=>r(this.commentFeatureReqRef,"parentId",e.id))).then(e=>e.flat());[w(this.featureReqRef,e),...n.map(e=>e.ref),...i.map(e=>e.ref)].forEach(e=>t.delete(e)),await t.commit()}catch(e){throw console.error("Error deleting feature request and related data:",e),e}}async updateFeatureRequest(e,t){try{if(!e)throw new Error("ID is required to update feature request");if(!t||"object"!=typeof t)throw new Error("Update data must be an object");const r=w(this.featureReqRef,e);return await A(r,t),{success:!0,message:"Feature request updated successfully"}}catch(e){throw console.error("Error updating feature request:",e),e}}async removeComment(e,t){try{if(!e||!t)return;const r=w(this.commentFeatureReqRef,e),n=await b(r);if(!n.exists())return;const i=pt(n.data());if(!i||(null==i?void 0:i.shopId)!==t)return;const a=D(this.db),s=i.parentId;if(i.replies)a.update(w(this.commentFeatureReqRef,s),{repliesCount:T(-1)}),a.delete(r);else{(await O(E(this.commentFeatureReqRef,x("parentId","==",e)))).docs.forEach(e=>a.delete(e.ref)),a.update(w(this.featureReqRef,s),{commentCount:T(-1)}),a.delete(r)}await a.commit()}catch(e){console.error("Error deleting comment:",e)}}subscribeSupport(e,t){try{if(!e)return()=>{};const r=E(this.support,x("shopId","==",e)),n=y(r,e=>{if("function"==typeof t)if(e.empty)t({});else{const r=e.docs[0],n={...pt(r.data())||{},id:r.id};t(n)}});return this.activeSubscriptions.add(n),()=>{n(),this.activeSubscriptions.delete(n)}}catch(e){return console.error("Error getting support document by shopId:",e),"function"==typeof t&&t({}),()=>{}}}subscribeFeatureReqUser(e,t){try{if(!e||!this.appId)return()=>{};const r=E(this.featureReqUsers,x("shopId","==",e),x("appId","==",this.appId),M(1)),n=y(r,e=>{if("function"==typeof t)if(e.empty)t({});else{const r=e.docs[0],n={...pt(r.data())||{},id:r.id};t(n)}});return this.activeSubscriptions.add(n),()=>{n(),this.activeSubscriptions.delete(n)}}catch(e){return console.error("Error getting feature request user:",e),"function"==typeof t&&t({}),()=>{}}}}const ft=()=>{const e=qe(e=>e.shopInfo),t=qe(e=>e.appId),r=qe(e=>e.fnAfterLike),n=o(()=>((e=Ie)=>ze(void 0,void 0,e).db)(),[]),d=o(()=>new ht({db:n,shop:e,appId:t}),[n,e,t]),[c,u]=s(null),[p,h]=s(!0),[f,m]=s([]),[g,v]=s({data:[],lastDoc:null}),[w,y]=s(Ze),[b,_]=s(!1),[S,A]=s(!1),[T,E]=s({featureRequestCount:0}),[x,C]=s({}),M=l(null),k=o(()=>!!Je.includes(e.email)||![st,lt,ot].includes((({countMonthCreateShop:e=3,country:t="US",shopifyPlan:r="",plan:n="free"})=>ut({shopifyPlan:r})?lt:e<3?st:"free"!==n?"STORE_PRO":ct.includes(t)?"STORE_NOT_POTENTIAL":dt.includes(t)?ot:e>3&&e<6&&!ct.includes(t)?"STORE_POTENTIAL":e<=12?"STORE_GROWING":"STORE_OLD")(e)),[e]),D=a(e=>{y(t=>({...t,...e,lastDoc:e.sort||e.status?null:e.lastDoc}))},[]);i(()=>{let e;return(async()=>{try{e=d.subscribeTrendingRequests(e=>{m(e.data)})}catch(e){console.error("Error fetching trending features:",e)}})().catch(console.error),()=>{e&&e()}},[d]),i(()=>{let e;return(async()=>{try{w.lastDoc||h(!0),e=d.subscribeFeatureRequests(e=>{v(t=>({data:w.lastDoc?[...t.data,...e.data]:e.data,lastDoc:e.lastDoc})),h(!1),_(!1)},w)}catch(e){console.error("Error fetching feature requests:",e),h(!1),_(!1)}})().catch(console.error),()=>{e&&e()}},[d,w]);const O=a(async()=>{if(g.lastDoc&&!b)try{_(!0),y(e=>({...e,lastDoc:g.lastDoc}))}catch(e){console.error(e),_(!1)}},[g.lastDoc,b]),L=a(async e=>{h(!0);try{const t=await d.subscribeToDocumentCounts(u,e);return h(!1),t}catch(e){return h(!1),void console.error("Error fetching feature requests:",e)}},[d]),R=a(async({parentId:r,replies:n,value:i})=>{if(r&&i.trim()&&t&&((null==e?void 0:e.shopId)||(null==e?void 0:e.id))){A(!0);try{const a=je(i.replace(/\n/g,"<br>"));await tt("/feature-requests/comments",{method:"POST",body:{data:{content:a,parentId:r,appId:t,shopId:e.shopId||e.id,replies:n,shopOwner:e.shopOwner,isTeamAvada:(e.email||"").endsWith("@avadagroup.com")}}})}finally{A(!1),(()=>{try{$crisp.push(["do","chat:open"])}catch(e){console.log("Cannot send open crisp modal")}})()}}},[t,e]),P=a(async({targetId:e,shopId:t,byFeatureReq:n})=>{try{const i=await d.toggleVote({targetId:e,shopId:t,byFeatureReq:n});"function"==typeof r&&"boolean"==typeof i&&r()}catch(e){console.error("Error handleVoteLike:",e)}},[d,r]),N=a((e,t)=>!(!e||!t)&&(Array.isArray(e.likedUserIds)&&e.likedUserIds.includes(t)),[]),I=a(async(e,t)=>{try{if(!e)return;return await d.subscribeToComments(e,t)}catch(e){return void console.error("Error fetching all comments:",e)}},[d]),F=a(async e=>{try{if(!e)return;await d.removeFeatureRequest(e)}catch(e){console.error("Error removeFeatureRequest:",e)}finally{y(e=>({...e}))}},[d]),Y=a(async t=>{if(t)try{await d.removeComment(t,e.shopId)}catch(e){console.error("Error removeComment:",e)}},[d,e.shopId]),z=a(async(e,t)=>{try{if(!e)return;await d.updateFeatureRequest(e,t)}catch(e){console.error("Error updateFeatureRequest:",e)}},[d]),B=a(async(e,t)=>{try{return e&&""!==e.trim()?d.subscribeFeatureRequest(e,e=>{t(e)}):(console.warn("Invalid feature request ID provided:",e),void t({}))}catch(e){return console.error("Error getting feature request by ID:",e),void t({})}},[d]),q=a(async e=>{try{if(!e)return;return d.subscribeSupport(e,e=>{E(e)})}catch(e){return void console.error("Error getting support document by ID:",e)}},[d]),H=a(async e=>{try{if(!e)return;return d.subscribeFeatureReqUser(e,t=>{const r=t;C(t=>({...t,[e]:r}))})}catch(e){return void console.error("Error getting feature request user by shopId:",e)}},[d]);return i(()=>{const t=(null==e?void 0:e.shopId)||(null==e?void 0:e.id);if(M.current&&(M.current(),M.current=null),t)return H(t).then(e=>{"function"==typeof e&&(M.current=e)}).catch(e=>console.error("Error subscribing to current user profile:",e)),()=>{M.current&&(M.current(),M.current=null)}},[null==e?void 0:e.id,null==e?void 0:e.shopId,H]),{checkRuleSubmit:k,updateQuery:D,queryParams:w,data:c,subscribeToDocumentCounts:L,loading:p,handleVoteLike:P,checkUserLiked:N,subscribeToComments:I,updateFeatureRequest:z,dataFeatureTrending:f,featureRequests:g.data,hasMore:!!g.lastDoc,loadMore:O,subscribeFeatureRequest:B,subscribeSupport:q,subscribeFeatureReqUser:H,dataShopSupport:T,featureReqUsers:x,loadingMore:b,removeFeatureRequest:F,removeComment:Y,loadingComment:S,handleComment:R}};var mt=d(({dataQuery:t,byFeatureReq:n=!0,handleComment:a,isReply:s=!1})=>{const{handleVoteLike:l,subscribeToDocumentCounts:d,data:c,checkUserLiked:u,featureReqUsers:p}=ft(),h=qe(e=>e.shopInfo),f=(null==h?void 0:h.shopId)||(null==h?void 0:h.id)||"",m=null==p?void 0:p[f],g=null==m?void 0:m.isUserBlocked;i(()=>{let e;return(null==t?void 0:t.id)&&(async()=>{try{const r={id:null==t?void 0:t.id,featureType:n,replies:s},i=await d(r);e="function"==typeof i?i:void 0}catch(e){console.error("Error initializing subscriptions:",e)}})().catch(console.error),()=>{"function"==typeof e&&e()}},[null==t?void 0:t.id,n,s,d]);const v=o(()=>u(c,h.shopId),[c,h.shopId,u]);return r("div",{onClick:e=>e.stopPropagation(),className:"Avada-FeatureReq-Action "+(n?"":"Avada-FeatureReq-ActionComment"),children:[e(q,{onClick:()=>{f&&l({targetId:null==t?void 0:t.id,shopId:f,byFeatureReq:n})},children:r(H,n?{spacing:"extraTight",children:[e("span",{children:(null==t?void 0:t.voteCount)||0}),e(G,v?{source:at}:{source:ae})]}:{spacing:"extraTight",children:[e(G,v?{source:at}:{source:ae}),r("span",{children:[(null==t?void 0:t.voteCount)||0," ",(null==t?void 0:t.voteCount)>1?"likes":"like"]})]})}),!s&&e(q,{onClick:()=>a(),disabled:g,children:r(H,n?{spacing:"extraTight",children:[e("span",{children:null==t?void 0:t.commentCount}),e(G,{source:se})]}:{spacing:"extraTight",children:[e(G,{source:se}),r("span",{children:[(null==t?void 0:t.commentCount)||0," ",(null==t?void 0:t.commentCount)>1?"Replies":"Reply"]})]})})]})});
28
+ */"production"===process.env.NODE_ENV?ve.exports=function(){if(Ae)return we;Ae=1;var e=n,t=Ee(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,o=e.useMemo,l=e.useDebugValue;return we.useSyncExternalStoreWithSelector=function(e,t,n,d,c){var u=a(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;u=o(function(){function e(e){if(!s){if(s=!0,i=e,e=d(e),void 0!==c&&p.hasValue){var t=p.value;if(c(t,e))return a=t}return a=e}if(t=a,r(i,e))return t;var n=d(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,a=n)}var i,a,s=!1,o=void 0===n?null:n;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,n,d,c]);var h=i(e,u[0],u[1]);return s(function(){p.hasValue=!0,p.value=h},[h]),l(h),h},we}():ve.exports=(xe||(xe=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=n,t=Ee(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,o=e.useMemo,l=e.useDebugValue;Ce.useSyncExternalStoreWithSelector=function(e,t,n,d,c){var u=a(null);if(null===u.current){var p={hasValue:!1,value:null};u.current=p}else p=u.current;u=o(function(){function e(e){if(!s){if(s=!0,i=e,e=d(e),void 0!==c&&p.hasValue){var t=p.value;if(c(t,e))return a=t}return a=e}if(t=a,r(i,e))return t;var n=d(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,a=n)}var i,a,s=!1,o=void 0===n?null:n;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,n,d,c]);var h=i(e,u[0],u[1]);return s(function(){p.hasValue=!0,p.value=h},[h]),l(h),h},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ce);var Me=me(ve.exports);const{useDebugValue:ke}=n,{useSyncExternalStoreWithSelector:De}=Me;let Oe=!1;const Le=e=>e;const Re=e=>{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?fe(e):fe)(e):e,r=(e,r)=>function(e,t=Le,r){"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&r&&!Oe&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Oe=!0);const n=De(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return ke(n),n}(t,e,r);return Object.assign(r,t),r},Pe=["anhth@avada.io","anhnt@avada.io","sam@avada.io","lamln@avadagroup.com","nghiavt@avadagroup.com","nghiavt@avada.email","anhth01@avadagroup.com","truongnn@avadagroup.com","tranggt@avadagroup.com"],Ne=e=>Pe.includes(e),Ie="avada-feature-request";let Fe=null,Ye=null;const ze=(e,t,r=Ie)=>{const n=((e,t,r=Ie)=>{if(Fe)return Fe;if(t)return Fe=t,Fe;const n=f().find(e=>e.name===r);if(n)return Fe=n,Fe;if(!e)throw new Error(`Firebase config is required to initialize app "${r}". Pass firebaseConfig or firebaseApp to FeatureRequestProvider.`);return Fe=m(e,r),Fe})(e,t,r);return Ye||(Ye=g(n)),{app:n,db:Ye}},Be={shopId:"",email:""},qe=(He=e=>({appId:"",shopInfo:Be,isAdmin:!1,isHydrated:!1,fnAfterSubmit:void 0,fnAfterLike:void 0,stage:"home",detailId:void 0,openComment:!1,setStage:(t,r)=>{var n;e({stage:t,detailId:null==r?void 0:r.detailId,openComment:null!==(n=null==r?void 0:r.openComment)&&void 0!==n&&n})},setConfig:t=>{const r={...Be,...t.activeShop};e({appId:t.appId||"",shopInfo:r,fnAfterSubmit:t.fnAfterSubmit,fnAfterLike:t.fnAfterLike,isAdmin:Ne(r.email),isHydrated:!0})}}))?Re(He):Re;var He;const Ge=({children:r,firebaseConfig:n,firebaseApp:a,firebaseAppName:s,...o})=>{ze(n,a,s);const l=qe(e=>e.setConfig);return i(()=>l(o),[o,l]),e(t,{children:r})},We=e=>{qe.getState().setConfig(e)},Ue=({children:t,icon:n,tone:i="info",size:a="medium",progress:s,className:o=""})=>{const l=["Avada-Badge",(e=>{switch(e){case"critical":return"Avada-Badge--tone-critical";case"warning":return"Avada-Badge--tone-warning";case"attention":return"Avada-Badge--tone-attention";case"success":return"Avada-Badge--tone-success";case"new":return"Avada-Badge--tone-new";case"read-only":return"Avada-Badge--tone-read-only";case"enabled":return"Avada-Badge--tone-enabled";default:return"Avada-Badge--tone-info"}})(i),(e=>{switch(e){case"small":return"Avada-Badge--size-small";case"large":return"Avada-Badge--size-large";default:return"Avada-Badge--size-medium"}})(a),(e=>{if(!e)return"";switch(e){case"incomplete":return"Avada-Badge--progress-incomplete";case"partially-complete":return"Avada-Badge--progress-partially-complete";case"complete":return"Avada-Badge--progress-complete";default:return""}})(s),o].filter(Boolean).join(" ");return r("span",{className:l,children:[s?e("span",{className:"Avada-Badge__Pip",children:e("span",{className:"Avada-Badge__Progress"})}):null,n?e("span",{className:"Avada-Badge__Icon",children:e(n,{})}):null,t?e("span",{className:"Avada-Badge__Text",children:t}):null]})},Ve=[{id:"all",content:"All",value:0},{id:"new-feature",content:"New feature",value:1},{id:"improvement",content:"Improvement",value:2},{id:"bug-report",content:"Bug report",value:3},{id:"submitted",content:"Submitted",value:4}],je=e=>e.replace(/(https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&//=]*))/gi,e=>`<a href="${e}" target="_blank" rel="noopener noreferrer" class="Avada-FeatureReq-Link">${e}</a>`),$e=[{label:"New feature",value:"new-feature"},{label:"Bug report",value:"bug-report"},{label:"Improvement",value:"improvement"}],Ze={sort:"Most recent",status:"all",limit:10,lastDoc:null},Xe=["Doing","Considering","Completed"];function Qe({status:t}){switch(t){case"Considering":default:return e("p",{style:{color:"#616161",fontStyle:"italic"},children:t});case"Doing":return e("p",{style:{color:"#0094D5",fontStyle:"italic"},children:t});case"Completed":return e("p",{style:{color:"#29845A",fontStyle:"italic"},children:t})}}function Ke({type:t}){const{icon:r,tone:n}=(e=>{switch(e){case"new-feature":return{icon:ie,tone:"success"};case"bug-report":return{icon:ne,tone:"critical"};default:return{icon:re,tone:"info"}}})(t);return e(Ue,{icon:r,tone:n,children:e("p",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",margin:0},children:(e=>e.replace(/^([a-z])|-(\w)/g,(e,t,r)=>t?t.toUpperCase():" "+r.toLowerCase()))(t)})})}const Je=["truongnn@avadagroup.com","tranggt@avadagroup.com"];e("svg",{width:"5",height:"6",viewBox:"0 0 5 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("circle",{cx:"2.5",cy:"3",r:"2.5",fill:"#CCCCCC"})});const et=()=>{const e=qe(e=>e.setStage);return{goToStage:a((t,r)=>{e(t,r)},[e]),navigateTo:a(t=>{if(t.startsWith("/feature-request/create"))e("create");else{if(t.startsWith("/feature-request/details/")){const r=t.replace("/feature-request/details/","").split("?")[0],n=t.includes("openComment=true");return void e("details",{detailId:r,openComment:n})}e("home")}},[e])}},tt=async(e,t)=>{const{method:r="GET",body:n,headers:i,credentials:a="omit"}=t||{},s=await fetch((e=>/^https?:\/\//i.test(e)?e:`https://avada-review-counter.web.app//proxy${e.startsWith("/")?e:`/${e}`}`)(e),{method:r,headers:{"Content-Type":"application/json",...i},credentials:a,body:n?JSON.stringify(n):void 0}),o=s.headers.get("content-type")||"",l=await(async()=>{if(204!==s.status){if(o.includes("application/json"))try{return await s.json()}catch{return}return await s.text()}})();if(!s.ok){const e="string"==typeof l?l:(null==l?void 0:l.message)||s.statusText;throw new Error(e)}return l},rt=()=>{const[e,t]=s(!1),[r,n]=s(null);return{fetchApi:a(async(e,r,i)=>{t(!0),n(null);try{if(i){const e=i();if(!1===e)throw new Error("Validation failed");if("string"==typeof e)throw new Error(e)}return await tt(e,r)}catch(e){throw n(e),e}finally{t(!1)}},[]),loading:e,error:r,resetError:a(()=>n(null),[])}},nt={title:"",description:"",featureType:"new-feature",isAnonymous:!1,commentCount:0,voteCount:0,status:"Considering",likedUserIds:[]};function it({isFullPage:t=!0}){var n,i;const{fetchApi:a,loading:l,error:d,resetError:c}=rt(),{navigateTo:u}=et(),p=qe(e=>e.shopInfo),h=qe(e=>e.appId),f=qe(e=>e.fnAfterSubmit),[m,g]=s(nt),[v,w]=s(""),y=o(()=>JSON.stringify(m)!==JSON.stringify(nt),[m]),b=(e,t)=>{c(),g(r=>({...r,[e]:t}))},_=r(L,{sectioned:!0,children:[r(R,{gap:"300",children:[e(P,{label:"Title",value:m.title,onChange:e=>b("title",e),onFocus:()=>{c(),w("")},autoComplete:"off",placeholder:"Brief overview of your suggestion (e.g., Internal link suggestion)",error:(null===(n=null==d?void 0:d.message)||void 0===n?void 0:n.includes("Title"))?d.message:void 0}),e("div",{className:"Avada-CreateFeatureReq-Select",children:e(N,{label:"Type",onFocus:()=>{w("")},options:$e,onChange:e=>b("featureType",e),value:m.featureType})}),e(P,{label:"Description",value:m.description,onChange:e=>b("description",e),onFocus:()=>{c(),w("")},multiline:4,autoComplete:"off",placeholder:"Detailed explanation of your suggestion and how it benefits users",error:(null===(i=null==d?void 0:d.message)||void 0===i?void 0:i.includes("Description"))?d.message:void 0}),e(I,{onFocus:()=>{w("")},label:"Anonymous submit",checked:m.isAnonymous,onChange:e=>b("isAnonymous",e),helpText:"Hide your name from this submission"})]}),e(F,{primaryAction:{content:"Submit",disabled:!y,loading:l,onAction(){w(""),(async()=>{try{const e=await a("/feature-requests",{body:{data:{...m,shopOwner:p.name,description:je(m.description.replace(/\n/g,"<br>")),appId:h,shopId:p.shopId||p.id}},method:"POST"},()=>m.title.trim()?!!m.description.trim()||"Description is required":"Title is required");(null==e?void 0:e.success)&&("function"==typeof f&&(null==f||f()),setTimeout(()=>{u(`/feature-request/details/${null==e?void 0:e.data.id}`)},200))}catch(e){console.error("error handleCreateFeatureReq: ",e),w(e instanceof Error?e.message:"Something went wrong")}})()}}}),e(Y,{as:"p",tone:"critical",variant:"bodyMd",alignment:"end",fontWeight:"medium",children:v||""})]}),S=t?e(z,{backAction:{content:"Submit a request",onAction:()=>u("/feature-request")},title:"Back",children:_}):_;return e(B,{i18n:{},children:S})}const at=()=>r("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M13.0887 10.9855L13.5826 8.12963C13.706 7.41635 13.1574 6.76394 12.4343 6.76394H8.80758C8.44813 6.76394 8.17441 6.4413 8.23259 6.08619L8.69647 3.25499C8.77182 2.79504 8.7503 2.3244 8.63328 1.87327C8.53633 1.49955 8.24799 1.19946 7.86879 1.07765L7.76732 1.04505C7.53814 0.971426 7.28801 0.988558 7.07194 1.09268C6.83411 1.20728 6.66012 1.41631 6.59563 1.66492L6.26264 2.94862C6.15669 3.35706 6.00235 3.75132 5.80336 4.12383C5.51262 4.66812 5.06309 5.10372 4.59582 5.50639L3.5887 6.37424C3.30474 6.61894 3.15561 6.98539 3.18793 7.35908L3.75644 13.934C3.80859 14.537 4.3128 15 4.91744 15H8.17148C10.6084 15 12.6881 13.3021 13.0887 10.9855Z",fill:"#005BD3"}),e("path",{d:"M1 6.76394L1.68012 14.6295C1.69735 14.8287 1.54045 15 1.34069 15C1.15253 15 1 14.8473 1 14.6589V6.76394Z",fill:"#005BD3"}),e("path",{d:"M13.5826 8.12963L12.8436 8.00183L12.8436 8.00183L13.5826 8.12963ZM13.0887 10.9855L13.8278 11.1133L13.8278 11.1133L13.0887 10.9855ZM3.75644 13.934L3.00923 13.9986L3.00923 13.9986L3.75644 13.934ZM3.18793 7.35908L3.93514 7.29447L3.93514 7.29447L3.18793 7.35908ZM8.69647 3.25499L9.4366 3.37626L9.4366 3.37626L8.69647 3.25499ZM8.23259 6.08619L8.97273 6.20745L8.97273 6.20745L8.23259 6.08619ZM3.5887 6.37424L3.09911 5.80609L3.09911 5.80609L3.5887 6.37424ZM4.59582 5.50639L5.08541 6.07454L5.08541 6.07454L4.59582 5.50639ZM6.26264 2.94862L5.53667 2.7603L5.53667 2.7603L6.26264 2.94862ZM6.59563 1.66492L7.32161 1.85324L7.32161 1.85324L6.59563 1.66492ZM7.76732 1.04505L7.53793 1.75911L7.53793 1.75911L7.76732 1.04505ZM7.86879 1.07765L8.09819 0.363589L8.09818 0.363588L7.86879 1.07765ZM5.80336 4.12383L6.4649 4.4772L6.4649 4.4772L5.80336 4.12383ZM8.63328 1.87327L7.9073 2.06159L7.9073 2.06159L8.63328 1.87327ZM7.07194 1.09268L6.74636 0.417028L6.74636 0.417028L7.07194 1.09268ZM1.68012 14.6295L0.932907 14.6941L0.932907 14.6941L1.68012 14.6295ZM1 6.76394L1.74721 6.69933C1.71261 6.29919 1.36893 5.99732 0.967665 6.01464C0.566401 6.03195 0.25 6.3623 0.25 6.76394L1 6.76394ZM12.8436 8.00183L12.3497 10.8577L13.8278 11.1133L14.3216 8.25744L12.8436 8.00183ZM8.17148 14.25H4.91744V15.75H8.17148V14.25ZM4.50365 13.8693L3.93514 7.29447L2.44071 7.42369L3.00923 13.9986L4.50365 13.8693ZM12.3497 10.8577C12.0146 12.7954 10.2634 14.25 8.17148 14.25V15.75C10.9534 15.75 13.3616 13.8087 13.8278 11.1133L12.3497 10.8577ZM7.95633 3.13373L7.49246 5.96492L8.97273 6.20745L9.4366 3.37626L7.95633 3.13373ZM4.07829 6.9424L5.08541 6.07454L4.10622 4.93823L3.09911 5.80609L4.07829 6.9424ZM6.98861 3.13694L7.32161 1.85324L5.86966 1.4766L5.53667 2.7603L6.98861 3.13694ZM7.53793 1.75911L7.63941 1.79171L8.09818 0.363588L7.99671 0.330989L7.53793 1.75911ZM6.4649 4.4772C6.69158 4.05284 6.86765 3.60322 6.98861 3.13694L5.53667 2.7603C5.44572 3.1109 5.31312 3.44979 5.14183 3.77046L6.4649 4.4772ZM7.6394 1.79171C7.78331 1.83794 7.87732 1.946 7.9073 2.06159L9.35925 1.68495C9.19535 1.0531 8.71268 0.560995 8.09819 0.363589L7.6394 1.79171ZM7.32161 1.85324C7.32899 1.82478 7.35192 1.79029 7.39752 1.76832L6.74636 0.417028C6.31631 0.624261 5.99126 1.00785 5.86966 1.4766L7.32161 1.85324ZM7.39752 1.76832C7.43966 1.74801 7.49109 1.74406 7.53793 1.75911L7.99671 0.330989C7.5852 0.198792 7.13635 0.229102 6.74636 0.417028L7.39752 1.76832ZM8.80758 7.51394H12.4343V6.01394H8.80758V7.51394ZM2.42733 14.5649L1.74721 6.69933L0.252788 6.82855L0.932907 14.6941L2.42733 14.5649ZM1.75 14.6589V6.76394H0.25V14.6589H1.75ZM0.932907 14.6941C0.912333 14.4562 1.09983 14.25 1.34069 14.25V15.75C1.98106 15.75 2.48236 15.2013 2.42733 14.5649L0.932907 14.6941ZM9.4366 3.37626C9.52884 2.81326 9.5025 2.23717 9.35925 1.68495L7.9073 2.06159C7.99811 2.41163 8.01481 2.77683 7.95633 3.13373L9.4366 3.37626ZM4.91744 14.25C4.70267 14.25 4.52233 14.0854 4.50365 13.8693L3.00923 13.9986C3.09484 14.9887 3.92293 15.75 4.91744 15.75V14.25ZM5.08541 6.07454C5.565 5.66126 6.10518 5.15062 6.4649 4.4772L5.14183 3.77046C4.92006 4.18562 4.56118 4.54619 4.10622 4.93823L5.08541 6.07454ZM14.3216 8.25744C14.5241 7.08665 13.6237 6.01394 12.4343 6.01394V7.51394C12.6911 7.51394 12.8878 7.74604 12.8436 8.00183L14.3216 8.25744ZM1.34069 14.25C1.56755 14.25 1.75 14.4339 1.75 14.6589H0.25C0.25 15.2607 0.737517 15.75 1.34069 15.75V14.25ZM7.49246 5.96492C7.35964 6.77558 7.98451 7.51394 8.80758 7.51394V6.01394C8.91175 6.01394 8.98918 6.10702 8.97273 6.20745L7.49246 5.96492ZM3.93514 7.29447C3.92357 7.16065 3.977 7.02968 4.07829 6.9424L3.09911 5.80609C2.63247 6.20819 2.38766 6.81013 2.44071 7.42369L3.93514 7.29447Z",fill:"#005BD3"})]}),st="STORE_ONBOARD",ot="STORE_REVIEW",lt="STORE_TEST",dt=["BR","DZ","MA","PK","PT","PL"],ct=["IN","PK"],ut=({shopifyPlan:e})=>["trial","affiliate","partner_test","staff","staff_business"].includes(e),pt=e=>{if(!e)return e;const t={...e};return e.createdAt&&"function"==typeof e.createdAt.toDate&&(t.createdAt=e.createdAt.toDate()),e.updatedAt&&"function"==typeof e.updatedAt.toDate&&(t.updatedAt=e.updatedAt.toDate()),t};class ht{constructor(e){this.initialize(e)}initialize({db:e,shop:t,appId:r}){this.featureReqRef=v(e,"featureReq"),this.commentFeatureReqRef=v(e,"commentFeatureReq"),this.support=v(e,"support"),this.featureReqUsers=v(e,"featureReqUsers"),this.db=e,this.shopId=(null==t?void 0:t.shopId)||(null==t?void 0:t.id),this.appId=r,this.shop=t,this.data=[],this.activeSubscriptions=new Set}async subscribeToDocumentCounts(e,t){var r;try{if(!(null==t?void 0:t.id))return;const n=(null==t?void 0:t.featureType)?w(this.featureReqRef,t.id):w(this.commentFeatureReqRef,t.id),i=y(n,r=>{if(r.exists()){const n=pt(r.data())||{},i={voteCount:n.voteCount||0,likedUserIds:n.likedUserIds||[]};(null==t?void 0:t.featureType)?e(e=>({...e||{},...i,commentCount:n.commentCount||0})):(null==t?void 0:t.replies)?e(e=>({...e||{},...i})):e(e=>({...e||{},...i,commentCount:n.repliesCount||0}))}});return null===(r=this.activeSubscriptions)||void 0===r||r.add(i),()=>{var e;i(),null===(e=this.activeSubscriptions)||void 0===e||e.delete(i)}}catch(e){console.error("Error getting document:",e)}}async toggleVote({targetId:e,shopId:t,byFeatureReq:r}){try{const n=w(r?this.featureReqRef:this.commentFeatureReqRef,e),i=await b(n);if(i.exists()){const e=i.data(),r=(e.likedUserIds||[]).includes(t),a=r?-1:1,s=r?_(t):S(t);return await A(n,{voteCount:T(a),likedUserIds:s}),!r}console.error("Document does not exist:",e)}catch(e){console.error("Error voting like:",e)}}async subscribeToComments(e,t){try{if(!e)return void("function"==typeof t&&t([]));const r=E(this.commentFeatureReqRef,x("parentId","==",e),C("createdAt","asc")),n=y(r,e=>{if("function"!=typeof t)return;const r=e.docs.map(e=>{const t=e.data();return t.createdAt&&t.createdAt.toDate&&(t.createdAt=t.createdAt.toDate().toISOString()),{id:e.id,...t}});t(r)});return this.activeSubscriptions.add(n),()=>{n(),this.activeSubscriptions.delete(n)}}catch(e){console.error("subscribeToComments",e),"function"==typeof t&&t([])}}cleanup(){this.activeSubscriptions.forEach(e=>{"function"==typeof e&&e()}),this.activeSubscriptions.clear()}subscribeTrendingRequests(e,t=10){try{if(!this.appId)return e({data:[]}),()=>{};const r=E(this.featureReqRef,x("appId","==",this.appId),C("createdAt","desc")),n=y(r,r=>{if("function"==typeof e)if(r.empty)e({data:[]});else{const n=new Date,i=r.docs.map(e=>{const t={...pt(e.data()),id:e.id},r=new Date(t.createdAt),i=Math.max((n.getTime()-r.getTime())/864e5,1),a=(1*t.voteCount+2*t.commentCount)/i;return{...t,score:a}}).sort((e,t)=>(t.score||0)-(e.score||0)).slice(0,t);e({data:i})}});return this.activeSubscriptions.add(n),()=>{n(),this.activeSubscriptions.delete(n)}}catch(t){return console.error("Error getting trending feature requests:",t),"function"==typeof e&&e({data:[]}),()=>{}}}subscribeFeatureRequests(e,t=Ze){var r;try{if(console.log(t),!this.appId)return e({data:[],lastDoc:null}),()=>{};let n=E(this.featureReqRef,x("appId","==",this.appId));["new-feature","improvement","bug-report"].includes(t.status)&&(n=E(n,x("featureType","==",t.status))),"submitted"===t.status&&(console.log("=========>",this.shopId),n=E(n,x("shopId","==",this.shopId))),"Most recent"===t.sort?n=E(n,C("createdAt","desc")):"Top Voted"===t.sort&&(n=E(n,C("voteCount","desc"))),n=E(n,M(parseInt((null===(r=t.limit)||void 0===r?void 0:r.toString())||"0"))),t.lastDoc&&(n=E(n,k(t.lastDoc)));const i=y(n,t=>{if("function"==typeof e)if(t.empty)e({data:[],lastDoc:null});else{const r=t.docs[t.docs.length-1],n=t.docs.map(e=>({...pt(e.data()),id:e.id}));e({data:n,lastDoc:r})}},t=>{console.error("Error in snapshot listener:",t),e({data:[],lastDoc:null})});return this.activeSubscriptions.add(i),()=>{i(),this.activeSubscriptions.delete(i)}}catch(t){return console.error("Error getting feature requests:",t),"function"==typeof e&&e({data:[],lastDoc:null}),()=>{}}}subscribeFeatureRequest(e,t){try{if(!e)return()=>{};if(""===e.trim())return console.warn("Invalid or empty ID passed to subscribeFeatureRequest:",e),"function"==typeof t&&t({}),()=>{};const r=w(this.featureReqRef,e),n=y(r,r=>{if("function"==typeof t)if(r.exists()){const e={...pt(r.data()),id:r.id};t(e)}else console.log(`Feature request with ID ${e} not found`),t({})});return this.activeSubscriptions.add(n),()=>{n(),this.activeSubscriptions.delete(n)}}catch(e){return console.error("Error getting feature request by ID:",e),"function"==typeof t&&t({}),()=>{}}}async removeFeatureRequest(e){try{if(!e)throw new Error("ID is required to delete feature request");const t=D(this.db),r=async(e,t,r)=>{const n=E(e,x(t,"==",r));return(await O(n)).docs},n=await r(this.commentFeatureReqRef,"parentId",e),i=await Promise.all(n.map(e=>r(this.commentFeatureReqRef,"parentId",e.id))).then(e=>e.flat());[w(this.featureReqRef,e),...n.map(e=>e.ref),...i.map(e=>e.ref)].forEach(e=>t.delete(e)),await t.commit()}catch(e){throw console.error("Error deleting feature request and related data:",e),e}}async updateFeatureRequest(e,t){try{if(!e)throw new Error("ID is required to update feature request");if(!t||"object"!=typeof t)throw new Error("Update data must be an object");const r=w(this.featureReqRef,e);return await A(r,t),{success:!0,message:"Feature request updated successfully"}}catch(e){throw console.error("Error updating feature request:",e),e}}async removeComment(e,t){try{if(!e||!t)return;const r=w(this.commentFeatureReqRef,e),n=await b(r);if(!n.exists())return;const i=pt(n.data());if(!i||(null==i?void 0:i.shopId)!==t)return;const a=D(this.db),s=i.parentId;if(i.replies)a.update(w(this.commentFeatureReqRef,s),{repliesCount:T(-1)}),a.delete(r);else{(await O(E(this.commentFeatureReqRef,x("parentId","==",e)))).docs.forEach(e=>a.delete(e.ref)),a.update(w(this.featureReqRef,s),{commentCount:T(-1)}),a.delete(r)}await a.commit()}catch(e){console.error("Error deleting comment:",e)}}subscribeSupport(e,t){try{if(!e)return()=>{};const r=E(this.support,x("shopId","==",e)),n=y(r,e=>{if("function"==typeof t)if(e.empty)t({});else{const r=e.docs[0],n={...pt(r.data())||{},id:r.id};t(n)}});return this.activeSubscriptions.add(n),()=>{n(),this.activeSubscriptions.delete(n)}}catch(e){return console.error("Error getting support document by shopId:",e),"function"==typeof t&&t({}),()=>{}}}subscribeFeatureReqUser(e,t){try{if(!e||!this.appId)return()=>{};const r=E(this.featureReqUsers,x("shopId","==",e),x("appId","==",this.appId),M(1)),n=y(r,e=>{if("function"==typeof t)if(e.empty)t({});else{const r=e.docs[0],n={...pt(r.data())||{},id:r.id};t(n)}});return this.activeSubscriptions.add(n),()=>{n(),this.activeSubscriptions.delete(n)}}catch(e){return console.error("Error getting feature request user:",e),"function"==typeof t&&t({}),()=>{}}}}const ft=()=>{const e=qe(e=>e.shopInfo),t=qe(e=>e.appId),r=qe(e=>e.fnAfterLike),n=o(()=>((e=Ie)=>ze(void 0,void 0,e).db)(),[]),d=o(()=>new ht({db:n,shop:e,appId:t}),[n,e,t]),[c,u]=s(null),[p,h]=s(!0),[f,m]=s([]),[g,v]=s({data:[],lastDoc:null}),[w,y]=s(Ze),[b,_]=s(!1),[S,A]=s(!1),[T,E]=s({featureRequestCount:0}),[x,C]=s({}),M=l(null),k=o(()=>!!Je.includes(e.email)||![st,lt,ot].includes((({countMonthCreateShop:e=3,country:t="US",shopifyPlan:r="",plan:n="free"})=>ut({shopifyPlan:r})?lt:e<3?st:"free"!==n?"STORE_PRO":ct.includes(t)?"STORE_NOT_POTENTIAL":dt.includes(t)?ot:e>3&&e<6&&!ct.includes(t)?"STORE_POTENTIAL":e<=12?"STORE_GROWING":"STORE_OLD")(e)),[e]),D=a(e=>{y(t=>({...t,...e,lastDoc:e.sort||e.status?null:e.lastDoc}))},[]);i(()=>{let e;return(async()=>{try{e=d.subscribeTrendingRequests(e=>{m(e.data)})}catch(e){console.error("Error fetching trending features:",e)}})().catch(console.error),()=>{e&&e()}},[d]),i(()=>{let e;return(async()=>{try{w.lastDoc||h(!0),e=d.subscribeFeatureRequests(e=>{v(t=>({data:w.lastDoc?[...t.data,...e.data]:e.data,lastDoc:e.lastDoc})),h(!1),_(!1)},w)}catch(e){console.error("Error fetching feature requests:",e),h(!1),_(!1)}})().catch(console.error),()=>{e&&e()}},[d,w]);const O=a(async()=>{if(g.lastDoc&&!b)try{_(!0),y(e=>({...e,lastDoc:g.lastDoc}))}catch(e){console.error(e),_(!1)}},[g.lastDoc,b]),L=a(async e=>{h(!0);try{const t=await d.subscribeToDocumentCounts(u,e);return h(!1),t}catch(e){return h(!1),void console.error("Error fetching feature requests:",e)}},[d]),R=a(async({parentId:r,replies:n,value:i})=>{if(r&&i.trim()&&t&&((null==e?void 0:e.shopId)||(null==e?void 0:e.id))){A(!0);try{const a=je(i.replace(/\n/g,"<br>"));await tt("/feature-requests/comments",{method:"POST",body:{data:{content:a,parentId:r,appId:t,shopId:e.shopId||e.id,replies:n,shopOwner:e.shopOwner,isTeamAvada:(e.email||"").endsWith("@avadagroup.com")}}})}finally{A(!1),(()=>{try{$crisp.push(["do","chat:open"])}catch(e){console.log("Cannot send open crisp modal")}})()}}},[t,e]),P=a(async({targetId:e,shopId:t,byFeatureReq:n})=>{try{const i=await d.toggleVote({targetId:e,shopId:t,byFeatureReq:n});"function"==typeof r&&"boolean"==typeof i&&r()}catch(e){console.error("Error handleVoteLike:",e)}},[d,r]),N=a((e,t)=>!(!e||!t)&&(Array.isArray(e.likedUserIds)&&e.likedUserIds.includes(t)),[]),I=a(async(e,t)=>{try{if(!e)return;return await d.subscribeToComments(e,t)}catch(e){return void console.error("Error fetching all comments:",e)}},[d]),F=a(async e=>{try{if(!e)return;await d.removeFeatureRequest(e)}catch(e){console.error("Error removeFeatureRequest:",e)}finally{y(e=>({...e}))}},[d]),Y=a(async t=>{if(t)try{await d.removeComment(t,e.shopId)}catch(e){console.error("Error removeComment:",e)}},[d,e.shopId]),z=a(async(e,t)=>{try{if(!e)return;await d.updateFeatureRequest(e,t)}catch(e){console.error("Error updateFeatureRequest:",e)}},[d]),B=a(async(e,t)=>{try{return e&&""!==e.trim()?d.subscribeFeatureRequest(e,e=>{t(e)}):(console.warn("Invalid feature request ID provided:",e),void t({}))}catch(e){return console.error("Error getting feature request by ID:",e),void t({})}},[d]),q=a(async e=>{try{if(!e)return;return d.subscribeSupport(e,e=>{E(e)})}catch(e){return void console.error("Error getting support document by ID:",e)}},[d]),H=a(async e=>{try{if(!e)return;return d.subscribeFeatureReqUser(e,t=>{const r=t;C(t=>({...t,[e]:r}))})}catch(e){return void console.error("Error getting feature request user by shopId:",e)}},[d]);return i(()=>{const t=(null==e?void 0:e.shopId)||(null==e?void 0:e.id);if(M.current&&(M.current(),M.current=null),t)return H(t).then(e=>{"function"==typeof e&&(M.current=e)}).catch(e=>console.error("Error subscribing to current user profile:",e)),()=>{M.current&&(M.current(),M.current=null)}},[null==e?void 0:e.id,null==e?void 0:e.shopId,H]),{checkRuleSubmit:k,updateQuery:D,queryParams:w,data:c,subscribeToDocumentCounts:L,loading:p,handleVoteLike:P,checkUserLiked:N,subscribeToComments:I,updateFeatureRequest:z,dataFeatureTrending:f,featureRequests:g.data,hasMore:!!g.lastDoc,loadMore:O,subscribeFeatureRequest:B,subscribeSupport:q,subscribeFeatureReqUser:H,dataShopSupport:T,featureReqUsers:x,loadingMore:b,removeFeatureRequest:F,removeComment:Y,loadingComment:S,handleComment:R}};var mt=d(({dataQuery:t,byFeatureReq:n=!0,handleComment:a,isReply:s=!1})=>{const{handleVoteLike:l,subscribeToDocumentCounts:d,data:c,checkUserLiked:u,featureReqUsers:p}=ft(),h=qe(e=>e.shopInfo),f=(null==h?void 0:h.shopId)||(null==h?void 0:h.id)||"",m=null==p?void 0:p[f],g=null==m?void 0:m.isUserBlocked;i(()=>{let e;return(null==t?void 0:t.id)&&(async()=>{try{const r={id:null==t?void 0:t.id,featureType:n,replies:s},i=await d(r);e="function"==typeof i?i:void 0}catch(e){console.error("Error initializing subscriptions:",e)}})().catch(console.error),()=>{"function"==typeof e&&e()}},[null==t?void 0:t.id,n,s,d]);const v=o(()=>u(c,h.shopId),[c,h.shopId,u]);return r("div",{onClick:e=>e.stopPropagation(),className:"Avada-FeatureReq-Action "+(n?"":"Avada-FeatureReq-ActionComment"),children:[e(q,{onClick:()=>{f&&l({targetId:null==t?void 0:t.id,shopId:f,byFeatureReq:n})},children:r(H,n?{spacing:"extraTight",children:[e("span",{children:(null==t?void 0:t.voteCount)||0}),e(G,v?{source:at}:{source:ae})]}:{spacing:"extraTight",children:[e(G,v?{source:at}:{source:ae}),r("span",{children:[(null==t?void 0:t.voteCount)||0," ",(null==t?void 0:t.voteCount)>1?"likes":"like"]})]})}),!s&&e(q,{onClick:()=>a(),disabled:g,children:r(H,n?{spacing:"extraTight",children:[e("span",{children:null==t?void 0:t.commentCount}),e(G,{source:se})]}:{spacing:"extraTight",children:[e(G,{source:se}),r("span",{children:[(null==t?void 0:t.commentCount)||0," ",(null==t?void 0:t.commentCount)>1?"Replies":"Reply"]})]})})]})});
29
29
  /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:gt,setPrototypeOf:vt,isFrozen:wt,getPrototypeOf:yt,getOwnPropertyDescriptor:bt}=Object;let{freeze:_t,seal:St,create:At}=Object,{apply:Tt,construct:Et}="undefined"!=typeof Reflect&&Reflect;_t||(_t=function(e){return e}),St||(St=function(e){return e}),Tt||(Tt=function(e,t,r){return e.apply(t,r)}),Et||(Et=function(e,t){return new e(...t)});const xt=qt(Array.prototype.forEach),Ct=qt(Array.prototype.lastIndexOf),Mt=qt(Array.prototype.pop),kt=qt(Array.prototype.push),Dt=qt(Array.prototype.splice),Ot=qt(String.prototype.toLowerCase),Lt=qt(String.prototype.toString),Rt=qt(String.prototype.match),Pt=qt(String.prototype.replace),Nt=qt(String.prototype.indexOf),It=qt(String.prototype.trim),Ft=qt(Object.prototype.hasOwnProperty),Yt=qt(RegExp.prototype.test),zt=(Bt=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Et(Bt,t)});var Bt;function qt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return Tt(e,t,n)}}function Ht(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ot;vt&&vt(e,null);let n=t.length;for(;n--;){let i=t[n];if("string"==typeof i){const e=r(i);e!==i&&(wt(t)||(t[n]=e),i=e)}e[i]=!0}return e}function Gt(e){for(let t=0;t<e.length;t++){Ft(e,t)||(e[t]=null)}return e}function Wt(e){const t=At(null);for(const[r,n]of gt(e)){Ft(e,r)&&(Array.isArray(n)?t[r]=Gt(n):n&&"object"==typeof n&&n.constructor===Object?t[r]=Wt(n):t[r]=n)}return t}function Ut(e,t){for(;null!==e;){const r=bt(e,t);if(r){if(r.get)return qt(r.get);if("function"==typeof r.value)return qt(r.value)}e=yt(e)}return function(){return null}}const Vt=_t(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),jt=_t(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$t=_t(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Zt=_t(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Xt=_t(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Qt=_t(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Kt=_t(["#text"]),Jt=_t(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),er=_t(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),tr=_t(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),rr=_t(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nr=St(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ir=St(/<%[\w\W]*|[\w\W]*%>/gm),ar=St(/\$\{[\w\W]*/gm),sr=St(/^data-[\-\w.\u00B7-\uFFFF]+$/),or=St(/^aria-[\-\w]+$/),lr=St(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dr=St(/^(?:\w+script|data):/i),cr=St(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ur=St(/^html$/i),pr=St(/^[a-z][.\w]*(-[.\w]+)+$/i);var hr=Object.freeze({__proto__:null,ARIA_ATTR:or,ATTR_WHITESPACE:cr,CUSTOM_ELEMENT:pr,DATA_ATTR:sr,DOCTYPE_NAME:ur,ERB_EXPR:ir,IS_ALLOWED_URI:lr,IS_SCRIPT_OR_DATA:dr,MUSTACHE_EXPR:nr,TMPLIT_EXPR:ar});const fr=1,mr=3,gr=7,vr=8,wr=9,yr=function(){return"undefined"==typeof window?null:window};var br=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yr();const r=t=>e(t);if(r.version="3.2.6",r.removed=[],!t||!t.document||t.document.nodeType!==wr||!t.Element)return r.isSupported=!1,r;let{document:n}=t;const i=n,a=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:l,Element:d,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:f}=t,m=d.prototype,g=Ut(m,"cloneNode"),v=Ut(m,"remove"),w=Ut(m,"nextSibling"),y=Ut(m,"childNodes"),b=Ut(m,"parentNode");if("function"==typeof o){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let _,S="";const{implementation:A,createNodeIterator:T,createDocumentFragment:E,getElementsByTagName:x}=n,{importNode:C}=i;let M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof gt&&"function"==typeof b&&A&&void 0!==A.createHTMLDocument;const{MUSTACHE_EXPR:k,ERB_EXPR:D,TMPLIT_EXPR:O,DATA_ATTR:L,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:P,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:I}=hr;let{IS_ALLOWED_URI:F}=hr,Y=null;const z=Ht({},[...Vt,...jt,...$t,...Xt,...Kt]);let B=null;const q=Ht({},[...Jt,...er,...tr,...rr]);let H=Object.seal(At(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,W=null,U=!0,V=!0,j=!1,$=!0,Z=!1,X=!0,Q=!1,K=!1,J=!1,ee=!1,te=!1,re=!1,ne=!0,ie=!1,ae=!0,se=!1,oe={},le=null;const de=Ht({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ce=null;const ue=Ht({},["audio","video","img","source","image","track"]);let pe=null;const he=Ht({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ve=ge,we=!1,ye=null;const be=Ht({},[fe,me,ge],Lt);let _e=Ht({},["mi","mo","mn","ms","mtext"]),Se=Ht({},["annotation-xml"]);const Ae=Ht({},["title","style","font","a","script"]);let Te=null;const Ee=["application/xhtml+xml","text/html"];let xe=null,Ce=null;const Me=n.createElement("form"),ke=function(e){return e instanceof RegExp||e instanceof Function},De=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ce||Ce!==e){if(e&&"object"==typeof e||(e={}),e=Wt(e),Te=-1===Ee.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,xe="application/xhtml+xml"===Te?Lt:Ot,Y=Ft(e,"ALLOWED_TAGS")?Ht({},e.ALLOWED_TAGS,xe):z,B=Ft(e,"ALLOWED_ATTR")?Ht({},e.ALLOWED_ATTR,xe):q,ye=Ft(e,"ALLOWED_NAMESPACES")?Ht({},e.ALLOWED_NAMESPACES,Lt):be,pe=Ft(e,"ADD_URI_SAFE_ATTR")?Ht(Wt(he),e.ADD_URI_SAFE_ATTR,xe):he,ce=Ft(e,"ADD_DATA_URI_TAGS")?Ht(Wt(ue),e.ADD_DATA_URI_TAGS,xe):ue,le=Ft(e,"FORBID_CONTENTS")?Ht({},e.FORBID_CONTENTS,xe):de,G=Ft(e,"FORBID_TAGS")?Ht({},e.FORBID_TAGS,xe):Wt({}),W=Ft(e,"FORBID_ATTR")?Ht({},e.FORBID_ATTR,xe):Wt({}),oe=!!Ft(e,"USE_PROFILES")&&e.USE_PROFILES,U=!1!==e.ALLOW_ARIA_ATTR,V=!1!==e.ALLOW_DATA_ATTR,j=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Z=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,Q=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,F=e.ALLOWED_URI_REGEXP||lr,ve=e.NAMESPACE||ge,_e=e.MATHML_TEXT_INTEGRATION_POINTS||_e,Se=e.HTML_INTEGRATION_POINTS||Se,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(V=!1),te&&(ee=!0),oe&&(Y=Ht({},Kt),B=[],!0===oe.html&&(Ht(Y,Vt),Ht(B,Jt)),!0===oe.svg&&(Ht(Y,jt),Ht(B,er),Ht(B,rr)),!0===oe.svgFilters&&(Ht(Y,$t),Ht(B,er),Ht(B,rr)),!0===oe.mathMl&&(Ht(Y,Xt),Ht(B,tr),Ht(B,rr))),e.ADD_TAGS&&(Y===z&&(Y=Wt(Y)),Ht(Y,e.ADD_TAGS,xe)),e.ADD_ATTR&&(B===q&&(B=Wt(B)),Ht(B,e.ADD_ATTR,xe)),e.ADD_URI_SAFE_ATTR&&Ht(pe,e.ADD_URI_SAFE_ATTR,xe),e.FORBID_CONTENTS&&(le===de&&(le=Wt(le)),Ht(le,e.FORBID_CONTENTS,xe)),ae&&(Y["#text"]=!0),Q&&Ht(Y,["html","head","body"]),Y.table&&(Ht(Y,["tbody"]),delete G.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw zt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw zt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,S=_.createHTML("")}else void 0===_&&(_=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(f,a)),null!==_&&"string"==typeof S&&(S=_.createHTML(""));_t&&_t(e),Ce=e}},Oe=Ht({},[...jt,...$t,...Zt]),Le=Ht({},[...Xt,...Qt]),Re=function(e){kt(r.removed,{element:e});try{b(e).removeChild(e)}catch(t){v(e)}},Pe=function(e,t){try{kt(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){kt(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Re(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ne=function(e){let t=null,r=null;if(J)e="<remove></remove>"+e;else{const t=Rt(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===Te&&ve===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=_?_.createHTML(e):e;if(ve===ge)try{t=(new h).parseFromString(i,Te)}catch(e){}if(!t||!t.documentElement){t=A.createDocument(ve,"template",null);try{t.documentElement.innerHTML=we?S:i}catch(e){}}const a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),ve===ge?x.call(t,Q?"html":"body")[0]:Q?t.documentElement:a},Ie=function(e){return T.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Fe=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ye=function(e){return"function"==typeof l&&e instanceof l};function ze(e,t,n){xt(e,e=>{e.call(r,t,n,Ce)})}const Be=function(e){let t=null;if(ze(M.beforeSanitizeElements,e,null),Fe(e))return Re(e),!0;const n=xe(e.nodeName);if(ze(M.uponSanitizeElement,e,{tagName:n,allowedTags:Y}),X&&e.hasChildNodes()&&!Ye(e.firstElementChild)&&Yt(/<[/\w!]/g,e.innerHTML)&&Yt(/<[/\w!]/g,e.textContent))return Re(e),!0;if(e.nodeType===gr)return Re(e),!0;if(X&&e.nodeType===vr&&Yt(/<[/\w]/g,e.data))return Re(e),!0;if(!Y[n]||G[n]){if(!G[n]&&He(n)){if(H.tagNameCheck instanceof RegExp&&Yt(H.tagNameCheck,n))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(n))return!1}if(ae&&!le[n]){const t=b(e)||e.parentNode,r=y(e)||e.childNodes;if(r&&t){for(let n=r.length-1;n>=0;--n){const i=g(r[n],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,w(e))}}}return Re(e),!0}return e instanceof d&&!function(e){let t=b(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const r=Ot(e.tagName),n=Ot(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===ge?"svg"===r:t.namespaceURI===fe?"svg"===r&&("annotation-xml"===n||_e[n]):Boolean(Oe[r]):e.namespaceURI===fe?t.namespaceURI===ge?"math"===r:t.namespaceURI===me?"math"===r&&Se[n]:Boolean(Le[r]):e.namespaceURI===ge?!(t.namespaceURI===me&&!Se[n])&&!(t.namespaceURI===fe&&!_e[n])&&!Le[r]&&(Ae[r]||!Oe[r]):!("application/xhtml+xml"!==Te||!ye[e.namespaceURI]))}(e)?(Re(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!Yt(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z&&e.nodeType===mr&&(t=e.textContent,xt([k,D,O],e=>{t=Pt(t,e," ")}),e.textContent!==t&&(kt(r.removed,{element:e.cloneNode()}),e.textContent=t)),ze(M.afterSanitizeElements,e,null),!1):(Re(e),!0)},qe=function(e,t,r){if(ne&&("id"===t||"name"===t)&&(r in n||r in Me))return!1;if(V&&!W[t]&&Yt(L,t));else if(U&&Yt(R,t));else if(!B[t]||W[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&Yt(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&Yt(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&Yt(H.tagNameCheck,r)||H.tagNameCheck instanceof Function&&H.tagNameCheck(r))))return!1}else if(pe[t]);else if(Yt(F,Pt(r,N,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Nt(r,"data:")||!ce[e]){if(j&&!Yt(P,Pt(r,N,"")));else if(r)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Rt(e,I)},Ge=function(e){ze(M.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Fe(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let i=t.length;for(;i--;){const a=t[i],{name:s,namespaceURI:o,value:l}=a,d=xe(s),c=l;let u="value"===s?c:It(c);if(n.attrName=d,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,ze(M.uponSanitizeAttribute,e,n),u=n.attrValue,!ie||"id"!==d&&"name"!==d||(Pe(s,e),u="user-content-"+u),X&&Yt(/((--!?|])>)|<\/(style|title)/i,u)){Pe(s,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Pe(s,e);continue}if(!$&&Yt(/\/>/i,u)){Pe(s,e);continue}Z&&xt([k,D,O],e=>{u=Pt(u,e," ")});const p=xe(e.nodeName);if(qe(p,d,u)){if(_&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(o);else switch(f.getAttributeType(p,d)){case"TrustedHTML":u=_.createHTML(u);break;case"TrustedScriptURL":u=_.createScriptURL(u)}if(u!==c)try{o?e.setAttributeNS(o,s,u):e.setAttribute(s,u),Fe(e)?Re(e):Mt(r.removed)}catch(t){Pe(s,e)}}else Pe(s,e)}ze(M.afterSanitizeAttributes,e,null)},We=function e(t){let r=null;const n=Ie(t);for(ze(M.beforeSanitizeShadowDOM,t,null);r=n.nextNode();)ze(M.uponSanitizeShadowNode,r,null),Be(r),Ge(r),r.content instanceof s&&e(r.content);ze(M.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,o=null,d=null;if(we=!e,we&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ye(e)){if("function"!=typeof e.toString)throw zt("toString is not a function");if("string"!=typeof(e=e.toString()))throw zt("dirty is not a string, aborting")}if(!r.isSupported)return e;if(K||De(t),r.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=xe(e.nodeName);if(!Y[t]||G[t])throw zt("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)n=Ne("\x3c!----\x3e"),a=n.ownerDocument.importNode(e,!0),a.nodeType===fr&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!ee&&!Z&&!Q&&-1===e.indexOf("<"))return _&&re?_.createHTML(e):e;if(n=Ne(e),!n)return ee?null:re?S:""}n&&J&&Re(n.firstChild);const c=Ie(se?e:n);for(;o=c.nextNode();)Be(o),Ge(o),o.content instanceof s&&We(o.content);if(se)return e;if(ee){if(te)for(d=E.call(n.ownerDocument);n.firstChild;)d.appendChild(n.firstChild);else d=n;return(B.shadowroot||B.shadowrootmode)&&(d=C.call(i,d,!0)),d}let u=Q?n.outerHTML:n.innerHTML;return Q&&Y["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Yt(ur,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),Z&&xt([k,D,O],e=>{u=Pt(u,e," ")}),_&&re?_.createHTML(u):u},r.setConfig=function(){De(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),K=!0},r.clearConfig=function(){Ce=null,K=!1},r.isValidAttribute=function(e,t,r){Ce||De({});const n=xe(e),i=xe(t);return qe(n,i,r)},r.addHook=function(e,t){"function"==typeof t&&kt(M[e],t)},r.removeHook=function(e,t){if(void 0!==t){const r=Ct(M[e],t);return-1===r?void 0:Dt(M[e],r,1)[0]}return Mt(M[e])},r.removeHooks=function(e){M[e]=[]},r.removeAllHooks=function(){M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();const _r=({preview:t="https://cdnapps.avada.io/ag-blog/AvatarFeatureReq.png",src:n,alt:o,containerStyle:l,containerClassName:d,containerProps:c={},imageProps:u={},imageStyle:p={},objectFit:h="contain",imageClassName:f,children:m})=>{const[g,v]=s(t),[w,y]=s(!0),b=a(e=>{if(!e)return;y(!0);const r=new Image;r.src=e,r.onload=()=>{v(e),y(!1)},r.onerror=()=>{v(t),y(!1)}},[t]);return i(()=>b(n),[b,n]),r("div",{...c,className:d,style:l,children:[m,e("img",{className:f,...u,style:{filter:""+(w?"blur(20px)":""),...p,transition:".2s filter linear",objectFit:h},src:g,alt:o})]})};function Sr(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ar,Tr={exports:{}};(Ar=Tr).exports=function(){var e,t;function r(){return e.apply(null,arguments)}function n(t){e=t}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var r,n=[],i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function p(e,t){for(var r in t)s(t,r)&&(e[r]=t[r]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,r,n){return $r(e,t,r,n,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return null==e._pf&&(e._pf=f()),e._pf}function g(e){var r=null,n=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(r=m(e),n=t.call(r.parsedDateParts,function(e){return null!=e}),i=r.overflow<0&&!r.empty&&!r.invalidEra&&!r.invalidMonth&&!r.invalidWeekday&&!r.weekdayMismatch&&!r.nullInput&&!r.invalidFormat&&!r.userInvalidated&&(!r.meridiem||r.meridiem&&n),e._strict&&(i=i&&0===r.charsLeftOver&&0===r.unusedTokens.length&&void 0===r.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function v(e){var t=h(NaN);return null!=e?p(m(t),e):m(t).userInvalidated=!0,t}t=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var w=r.momentProperties=[],y=!1;function b(e,t){var r,n,i,a=w.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=m(t)),l(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)l(i=t[n=w[r]])||(e[n]=i);return e}function _(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function S(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function A(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return p(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,a,o,l=[],d=arguments.length;for(a=0;a<d;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];l.push(i)}A(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var E,x={};function C(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),x[e]||(A(t),x[e]=!0)}function M(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e){var t,r;for(r in e)s(e,r)&&(M(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(e,t){var r,n=p({},e);for(r in t)s(t,r)&&(a(e[r])&&a(t[r])?(n[r]={},p(n[r],e[r]),p(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)s(e,r)&&!s(t,r)&&a(e[r])&&(n[r]=p({},n[r]));return n}function O(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)s(e,t)&&r.push(t);return r};var L={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function R(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return M(n)?n.call(t,r):n}function P(e,t,r){var n=""+Math.abs(e),i=t-n.length;return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},Y={};function z(e,t,r,n){var i=n;"string"==typeof n&&(i=function(){return this[n]()}),e&&(Y[e]=i),t&&(Y[t[0]]=function(){return P(i.apply(this,arguments),t[1],t[2])}),r&&(Y[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function q(e){var t,r,n=e.match(N);for(t=0,r=n.length;t<r;t++)Y[n[t]]?n[t]=Y[n[t]]:n[t]=B(n[t]);return function(t){var i,a="";for(i=0;i<r;i++)a+=M(n[i])?n[i].call(t,e):n[i];return a}}function H(e,t){return e.isValid()?(t=G(t,e.localeData()),F[t]=F[t]||q(t),F[t](e)):e.localeData().invalidDate()}function G(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;r>=0&&I.test(e);)e=e.replace(I,n),I.lastIndex=0,r-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function U(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(N).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var V="Invalid date";function j(){return this._invalidDate}var $="%d",Z=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function K(e,t,r,n){var i=this._relativeTime[r];return M(i)?i(e,t,r,n):i.replace(/%d/i,e)}function J(e,t){var r=this._relativeTime[e>0?"future":"past"];return M(r)?r(t):r.replace(/%s/i,t)}var ee={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function te(e){return"string"==typeof e?ee[e]||ee[e.toLowerCase()]:void 0}function re(e){var t,r,n={};for(r in e)s(e,r)&&(t=te(r))&&(n[t]=e[r]);return n}var ne={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ie(e){var t,r=[];for(t in e)s(e,t)&&r.push({unit:t,priority:ne[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}var ae,se=/\d/,oe=/\d\d/,le=/\d{3}/,de=/\d{4}/,ce=/[+-]?\d{6}/,ue=/\d\d?/,pe=/\d\d\d\d?/,he=/\d\d\d\d\d\d?/,fe=/\d{1,3}/,me=/\d{1,4}/,ge=/[+-]?\d{1,6}/,ve=/\d+/,we=/[+-]?\d+/,ye=/Z|[+-]\d\d:?\d\d/gi,be=/Z|[+-]\d\d(?::?\d\d)?/gi,_e=/[+-]?\d+(\.\d{1,3})?/,Se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ae=/^[1-9]\d?/,Te=/^([1-9]\d|\d)/;function Ee(e,t,r){ae[e]=M(t)?t:function(e,n){return e&&r?r:t}}function xe(e,t){return s(ae,e)?ae[e](t._strict,t._locale):new RegExp(Ce(e))}function Ce(e){return Me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,i){return t||r||n||i}))}function Me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ke(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function De(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=ke(t)),r}ae={};var Oe={};function Le(e,t){var r,n,i=t;for("string"==typeof e&&(e=[e]),d(t)&&(i=function(e,r){r[t]=De(e)}),n=e.length,r=0;r<n;r++)Oe[e[r]]=i}function Re(e,t){Le(e,function(e,r,n,i){n._w=n._w||{},t(e,n._w,n,i)})}function Pe(e,t,r){null!=t&&s(Oe,e)&&Oe[e](t,r._a,r,e)}function Ne(e){return e%4==0&&e%100!=0||e%400==0}var Ie=0,Fe=1,Ye=2,ze=3,Be=4,qe=5,He=6,Ge=7,We=8;function Ue(e){return Ne(e)?366:365}z("Y",0,0,function(){var e=this.year();return e<=9999?P(e,4):"+"+e}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),Ee("Y",we),Ee("YY",ue,oe),Ee("YYYY",me,de),Ee("YYYYY",ge,ce),Ee("YYYYYY",ge,ce),Le(["YYYYY","YYYYYY"],Ie),Le("YYYY",function(e,t){t[Ie]=2===e.length?r.parseTwoDigitYear(e):De(e)}),Le("YY",function(e,t){t[Ie]=r.parseTwoDigitYear(e)}),Le("Y",function(e,t){t[Ie]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return De(e)+(De(e)>68?1900:2e3)};var Ve,je=Ze("FullYear",!0);function $e(){return Ne(this.year())}function Ze(e,t){return function(n){return null!=n?(Qe(this,e,n),r.updateOffset(this,t),this):Xe(this,e)}}function Xe(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Qe(e,t,r){var n,i,a,s,o;if(e.isValid()&&!isNaN(r)){switch(n=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(i?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(i?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(i?n.setUTCHours(r):n.setHours(r));case"Date":return void(i?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}a=r,s=e.month(),o=29!==(o=e.date())||1!==s||Ne(a)?o:28,i?n.setUTCFullYear(a,s,o):n.setFullYear(a,s,o)}}function Ke(e){return M(this[e=te(e)])?this[e]():this}function Je(e,t){if("object"==typeof e){var r,n=ie(e=re(e)),i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(M(this[e=te(e)]))return this[e](t);return this}function et(e,t){return(e%t+t)%t}function tt(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=et(t,12);return e+=(t-r)/12,1===r?Ne(e)?29:28:31-r%7%2}Ve=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),z("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ee("M",ue,Ae),Ee("MM",ue,oe),Ee("MMM",function(e,t){return t.monthsShortRegex(e)}),Ee("MMMM",function(e,t){return t.monthsRegex(e)}),Le(["M","MM"],function(e,t){t[Fe]=De(e)-1}),Le(["MMM","MMMM"],function(e,t,r,n){var i=r._locale.monthsParse(e,n,r._strict);null!=i?t[Fe]=i:m(r).invalidMonth=e});var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),it=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=Se,st=Se;function ot(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||it).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function lt(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[it.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(e,t,r){var n,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=Ve.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ve.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Ve.call(this._shortMonthsParse,s))||-1!==(i=Ve.call(this._longMonthsParse,s))?i:null:-1!==(i=Ve.call(this._longMonthsParse,s))||-1!==(i=Ve.call(this._shortMonthsParse,s))?i:null}function ct(e,t,r){var n,i,a;if(this._monthsParseExact)return dt.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=h([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function ut(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=De(t);else if(!d(t=e.localeData().monthsParse(t)))return e;var r=t,n=e.date();return n=n<29?n:Math.min(n,tt(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function pt(e){return null!=e?(ut(this,e),r.updateOffset(this,!0),this):Xe(this,"Month")}function ht(){return tt(this.year(),this.month())}function ft(e){return this._monthsParseExact?(s(this,"_monthsRegex")||gt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function mt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||gt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function gt(){function e(e,t){return t.length-e.length}var t,r,n,i,a=[],s=[],o=[];for(t=0;t<12;t++)r=h([2e3,t]),n=Me(this.monthsShort(r,"")),i=Me(this.months(r,"")),a.push(n),s.push(i),o.push(i),o.push(n);a.sort(e),s.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function vt(e,t,r,n,i,a,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,n,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,i,a,s),o}function wt(e){var t,r;return e<100&&e>=0?((r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function yt(e,t,r){var n=7+t-r;return-(7+wt(e,0,n).getUTCDay()-t)%7+n-1}function bt(e,t,r,n,i){var a,s,o=1+7*(t-1)+(7+r-n)%7+yt(e,n,i);return o<=0?s=Ue(a=e-1)+o:o>Ue(e)?(a=e+1,s=o-Ue(e)):(a=e,s=o),{year:a,dayOfYear:s}}function _t(e,t,r){var n,i,a=yt(e.year(),t,r),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?n=s+St(i=e.year()-1,t,r):s>St(e.year(),t,r)?(n=s-St(e.year(),t,r),i=e.year()+1):(i=e.year(),n=s),{week:n,year:i}}function St(e,t,r){var n=yt(e,t,r),i=yt(e+1,t,r);return(Ue(e)-n+i)/7}function At(e){return _t(e,this._week.dow,this._week.doy).week}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Ee("w",ue,Ae),Ee("ww",ue,oe),Ee("W",ue,Ae),Ee("WW",ue,oe),Re(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=De(e)});var Tt={dow:0,doy:6};function Et(){return this._week.dow}function xt(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Mt(e){var t=_t(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function kt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Dt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ot(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("d",0,"do","day"),z("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),z("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),z("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Ee("d",ue),Ee("e",ue),Ee("E",ue),Ee("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ee("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ee("dddd",function(e,t){return t.weekdaysRegex(e)}),Re(["dd","ddd","dddd"],function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);null!=i?t.d=i:m(r).invalidWeekday=e}),Re(["d","e","E"],function(e,t,r,n){t[n]=De(e)});var Lt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nt=Se,It=Se,Ft=Se;function Yt(e,t){var r=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ot(r,this._week.dow):e?r[e.day()]:r}function zt(e){return!0===e?Ot(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Bt(e){return!0===e?Ot(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function qt(e,t,r){var n,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=Ve.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ve.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ve.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Ve.call(this._weekdaysParse,s))||-1!==(i=Ve.call(this._shortWeekdaysParse,s))||-1!==(i=Ve.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ve.call(this._shortWeekdaysParse,s))||-1!==(i=Ve.call(this._weekdaysParse,s))||-1!==(i=Ve.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ve.call(this._minWeekdaysParse,s))||-1!==(i=Ve.call(this._weekdaysParse,s))||-1!==(i=Ve.call(this._shortWeekdaysParse,s))?i:null}function Ht(e,t,r){var n,i,a;if(this._weekdaysParseExact)return qt.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=h([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=Xe(this,"Day");return null!=e?(e=kt(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ut(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Dt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Vt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Nt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function jt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=It),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $t(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ft),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function e(e,t){return t.length-e.length}var t,r,n,i,a,s=[],o=[],l=[],d=[];for(t=0;t<7;t++)r=h([2e3,1]).day(t),n=Me(this.weekdaysMin(r,"")),i=Me(this.weekdaysShort(r,"")),a=Me(this.weekdays(r,"")),s.push(n),o.push(i),l.push(a),d.push(n),d.push(i),d.push(a);s.sort(e),o.sort(e),l.sort(e),d.sort(e),this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function Kt(e,t){z(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Jt(e,t){return t._meridiemParse}function er(e){return"p"===(e+"").toLowerCase().charAt(0)}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Xt),z("k",["kk",2],0,Qt),z("hmm",0,0,function(){return""+Xt.apply(this)+P(this.minutes(),2)}),z("hmmss",0,0,function(){return""+Xt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)}),Kt("a",!0),Kt("A",!1),Ee("a",Jt),Ee("A",Jt),Ee("H",ue,Te),Ee("h",ue,Ae),Ee("k",ue,Ae),Ee("HH",ue,oe),Ee("hh",ue,oe),Ee("kk",ue,oe),Ee("hmm",pe),Ee("hmmss",he),Ee("Hmm",pe),Ee("Hmmss",he),Le(["H","HH"],ze),Le(["k","kk"],function(e,t,r){var n=De(e);t[ze]=24===n?0:n}),Le(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),Le(["h","hh"],function(e,t,r){t[ze]=De(e),m(r).bigHour=!0}),Le("hmm",function(e,t,r){var n=e.length-2;t[ze]=De(e.substr(0,n)),t[Be]=De(e.substr(n)),m(r).bigHour=!0}),Le("hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[ze]=De(e.substr(0,n)),t[Be]=De(e.substr(n,2)),t[qe]=De(e.substr(i)),m(r).bigHour=!0}),Le("Hmm",function(e,t,r){var n=e.length-2;t[ze]=De(e.substr(0,n)),t[Be]=De(e.substr(n))}),Le("Hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[ze]=De(e.substr(0,n)),t[Be]=De(e.substr(n,2)),t[qe]=De(e.substr(i))});var tr=/[ap]\.?m?\.?/i,rr=Ze("Hours",!0);function nr(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var ir,ar={calendar:L,longDateFormat:W,invalidDate:V,ordinal:$,dayOfMonthOrdinalParse:Z,relativeTime:Q,months:rt,monthsShort:nt,week:Tt,weekdays:Lt,weekdaysMin:Pt,weekdaysShort:Rt,meridiemParse:tr},sr={},or={};function lr(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function dr(e){return e?e.toLowerCase().replace("_","-"):e}function cr(e){for(var t,r,n,i,a=0;a<e.length;){for(t=(i=dr(e[a]).split("-")).length,r=(r=dr(e[a+1]))?r.split("-"):null;t>0;){if(n=pr(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&lr(i,r)>=t-1)break;t--}a++}return ir}function ur(e){return!(!e||!e.match("^[^/\\\\]*$"))}function pr(e){var t=null;if(void 0===sr[e]&&Ar&&Ar.exports&&ur(e))try{t=ir._abbr,Sr("./locale/"+e),hr(t)}catch(t){sr[e]=null}return sr[e]}function hr(e,t){var r;return e&&((r=l(t)?gr(e):fr(e,t))?ir=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ir._abbr}function fr(e,t){if(null!==t){var r,n=ar;if(t.abbr=e,null!=sr[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=sr[e]._config;else if(null!=t.parentLocale)if(null!=sr[t.parentLocale])n=sr[t.parentLocale]._config;else{if(null==(r=pr(t.parentLocale)))return or[t.parentLocale]||(or[t.parentLocale]=[]),or[t.parentLocale].push({name:e,config:t}),null;n=r._config}return sr[e]=new O(D(n,t)),or[e]&&or[e].forEach(function(e){fr(e.name,e.config)}),hr(e),sr[e]}return delete sr[e],null}function mr(e,t){if(null!=t){var r,n,i=ar;null!=sr[e]&&null!=sr[e].parentLocale?sr[e].set(D(sr[e]._config,t)):(null!=(n=pr(e))&&(i=n._config),t=D(i,t),null==n&&(t.abbr=e),(r=new O(t)).parentLocale=sr[e],sr[e]=r),hr(e)}else null!=sr[e]&&(null!=sr[e].parentLocale?(sr[e]=sr[e].parentLocale,e===hr()&&hr(e)):null!=sr[e]&&delete sr[e]);return sr[e]}function gr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ir;if(!i(e)){if(t=pr(e))return t;e=[e]}return cr(e)}function vr(){return E(sr)}function wr(e){var t,r=e._a;return r&&-2===m(e).overflow&&(t=r[Fe]<0||r[Fe]>11?Fe:r[Ye]<1||r[Ye]>tt(r[Ie],r[Fe])?Ye:r[ze]<0||r[ze]>24||24===r[ze]&&(0!==r[Be]||0!==r[qe]||0!==r[He])?ze:r[Be]<0||r[Be]>59?Be:r[qe]<0||r[qe]>59?qe:r[He]<0||r[He]>999?He:-1,m(e)._overflowDayOfYear&&(t<Ie||t>Ye)&&(t=Ye),m(e)._overflowWeeks&&-1===t&&(t=Ge),m(e)._overflowWeekday&&-1===t&&(t=We),m(e).overflow=t),e}var yr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,br=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_r=/Z|[+-]\d\d(?::?\d\d)?/,Tr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Er=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xr=/^\/?Date\((-?\d+)/i,Cr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kr(e){var t,r,n,i,a,s,o=e._i,l=yr.exec(o)||br.exec(o),d=Tr.length,c=Er.length;if(l){for(m(e).iso=!0,t=0,r=d;t<r;t++)if(Tr[t][1].exec(l[1])){i=Tr[t][0],n=!1!==Tr[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,r=c;t<r;t++)if(Er[t][1].exec(l[3])){a=(l[2]||" ")+Er[t][0];break}if(null==a)return void(e._isValid=!1)}if(!n&&null!=a)return void(e._isValid=!1);if(l[4]){if(!_r.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(a||"")+(s||""),qr(e)}else e._isValid=!1}function Dr(e,t,r,n,i,a){var s=[Or(e),nt.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function Or(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Lr(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rr(e,t,r){return!e||Rt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(r).weekdayMismatch=!0,r._isValid=!1,!1)}function Pr(e,t,r){if(e)return Mr[e];if(t)return 0;var n=parseInt(r,10),i=n%100;return(n-i)/100*60+i}function Nr(e){var t,r=Cr.exec(Lr(e._i));if(r){if(t=Dr(r[4],r[3],r[2],r[5],r[6],r[7]),!Rr(r[1],t,e))return;e._a=t,e._tzm=Pr(r[8],r[9],r[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Ir(e){var t=xr.exec(e._i);null===t?(kr(e),!1===e._isValid&&(delete e._isValid,Nr(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Fr(e,t,r){return null!=e?e:null!=t?t:r}function Yr(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zr(e){var t,r,n,i,a,s=[];if(!e._d){for(n=Yr(e),e._w&&null==e._a[Ye]&&null==e._a[Fe]&&Br(e),null!=e._dayOfYear&&(a=Fr(e._a[Ie],n[Ie]),(e._dayOfYear>Ue(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),r=wt(a,0,e._dayOfYear),e._a[Fe]=r.getUTCMonth(),e._a[Ye]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ze]&&0===e._a[Be]&&0===e._a[qe]&&0===e._a[He]&&(e._nextDay=!0,e._a[ze]=0),e._d=(e._useUTC?wt:vt).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ze]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(m(e).weekdayMismatch=!0)}}function Br(e){var t,r,n,i,a,s,o,l,d;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,s=4,r=Fr(t.GG,e._a[Ie],_t(Zr(),1,4).year),n=Fr(t.W,1),((i=Fr(t.E,1))<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,d=_t(Zr(),a,s),r=Fr(t.gg,e._a[Ie],d.year),n=Fr(t.w,d.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),n<1||n>St(r,a,s)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(o=bt(r,n,i,a,s),e._a[Ie]=o.year,e._dayOfYear=o.dayOfYear)}function qr(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,a,s,o,l,d=""+e._i,c=d.length,u=0;for(l=(i=G(e._f,e._locale).match(N)||[]).length,t=0;t<l;t++)a=i[t],(n=(d.match(xe(a,e))||[])[0])&&((s=d.substr(0,d.indexOf(n))).length>0&&m(e).unusedInput.push(s),d=d.slice(d.indexOf(n)+n.length),u+=n.length),Y[a]?(n?m(e).empty=!1:m(e).unusedTokens.push(a),Pe(a,n,e)):e._strict&&!n&&m(e).unusedTokens.push(a);m(e).charsLeftOver=c-u,d.length>0&&m(e).unusedInput.push(d),e._a[ze]<=12&&!0===m(e).bigHour&&e._a[ze]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[ze]=Hr(e._locale,e._a[ze],e._meridiem),null!==(o=m(e).era)&&(e._a[Ie]=e._locale.erasConvertYear(o,e._a[Ie])),zr(e),wr(e)}else Nr(e);else kr(e)}function Hr(e,t,r){var n;return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function Gr(e){var t,r,n,i,a,s,o=!1,l=e._f.length;if(0===l)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)a=0,s=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],qr(t),g(t)&&(s=!0),a+=m(t).charsLeftOver,a+=10*m(t).unusedTokens.length,m(t).score=a,o?a<n&&(n=a,r=t):(null==n||a<n||s)&&(n=a,r=t,s&&(o=!0));p(e,r||t)}function Wr(e){if(!e._d){var t=re(e._i),r=void 0===t.day?t.date:t.day;e._a=u([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),zr(e)}}function Ur(e){var t=new _(wr(Vr(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Vr(e){var t=e._i,r=e._f;return e._locale=e._locale||gr(e._l),null===t||void 0===r&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new _(wr(t)):(c(t)?e._d=t:i(r)?Gr(e):r?qr(e):jr(e),g(e)||(e._d=null),e))}function jr(e){var t=e._i;l(t)?e._d=new Date(r.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Ir(e):i(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),zr(e)):a(t)?Wr(e):d(t)?e._d=new Date(t):r.createFromInputFallback(e)}function $r(e,t,r,n,s){var l={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(a(e)&&o(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=r,l._i=e,l._f=t,l._strict=n,Ur(l)}function Zr(e,t,r,n){return $r(e,t,r,n,!1)}r.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Xr=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Zr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Qr=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Zr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Kr(e,t){var r,n;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Zr();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}function Jr(){return Kr("isBefore",[].slice.call(arguments,0))}function en(){return Kr("isAfter",[].slice.call(arguments,0))}var tn=function(){return Date.now?Date.now():+new Date},rn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nn(e){var t,r,n=!1,i=rn.length;for(t in e)if(s(e,t)&&(-1===Ve.call(rn,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<i;++r)if(e[rn[r]]){if(n)return!1;parseFloat(e[rn[r]])!==De(e[rn[r]])&&(n=!0)}return!0}function an(){return this._isValid}function sn(){return kn(NaN)}function on(e){var t=re(e),r=t.year||0,n=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,l=t.minute||0,d=t.second||0,c=t.millisecond||0;this._isValid=nn(t),this._milliseconds=+c+1e3*d+6e4*l+1e3*o*60*60,this._days=+s+7*a,this._months=+i+3*n+12*r,this._data={},this._locale=gr(),this._bubble()}function ln(e){return e instanceof on}function dn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cn(e,t,r){var n,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(n=0;n<i;n++)De(e[n])!==De(t[n])&&s++;return s+a}function un(e,t){z(e,0,0,function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+P(~~(e/60),2)+t+P(~~e%60,2)})}un("Z",":"),un("ZZ",""),Ee("Z",be),Ee("ZZ",be),Le(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=hn(be,e)});var pn=/([\+\-]|\d\d)/gi;function hn(e,t){var r,n,i=(t||"").match(e);return null===i?null:0===(n=60*(r=((i[i.length-1]||[])+"").match(pn)||["-",0,0])[1]+De(r[2]))?0:"+"===r[0]?n:-n}function fn(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(S(e)||c(e)?e.valueOf():Zr(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Zr(e).local()}function mn(e){return-Math.round(e._d.getTimezoneOffset())}function gn(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=hn(be,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mn(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Pn(this,kn(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:mn(this)}function vn(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function wn(e){return this.utcOffset(0,e)}function yn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mn(this),"m")),this}function bn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=hn(ye,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _n(e){return!!this.isValid()&&(e=e?Zr(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Sn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function An(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Vr(t))._a?(e=t._isUTC?h(t._a):Zr(t._a),this._isDSTShifted=this.isValid()&&cn(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tn(){return!!this.isValid()&&!this._isUTC}function En(){return!!this.isValid()&&this._isUTC}function xn(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Cn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Mn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kn(e,t){var r,n,i,a=e,o=null;return ln(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(o=Cn.exec(e))?(r="-"===o[1]?-1:1,a={y:0,d:De(o[Ye])*r,h:De(o[ze])*r,m:De(o[Be])*r,s:De(o[qe])*r,ms:De(dn(1e3*o[He]))*r}):(o=Mn.exec(e))?(r="-"===o[1]?-1:1,a={y:Dn(o[2],r),M:Dn(o[3],r),w:Dn(o[4],r),d:Dn(o[5],r),h:Dn(o[6],r),m:Dn(o[7],r),s:Dn(o[8],r)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Ln(Zr(a.from),Zr(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),n=new on(a),ln(e)&&s(e,"_locale")&&(n._locale=e._locale),ln(e)&&s(e,"_isValid")&&(n._isValid=e._isValid),n}function Dn(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function On(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Ln(e,t){var r;return e.isValid()&&t.isValid()?(t=fn(t,e),e.isBefore(t)?r=On(e,t):((r=On(t,e)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Rn(e,t){return function(r,n){var i;return null===n||isNaN(+n)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),Pn(this,kn(r,n),e),this}}function Pn(e,t,n,i){var a=t._milliseconds,s=dn(t._days),o=dn(t._months);e.isValid()&&(i=null==i||i,o&&ut(e,Xe(e,"Month")+o*n),s&&Qe(e,"Date",Xe(e,"Date")+s*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&r.updateOffset(e,s||o))}kn.fn=on.prototype,kn.invalid=sn;var Nn=Rn(1,"add"),In=Rn(-1,"subtract");function Fn(e){return"string"==typeof e||e instanceof String}function Yn(e){return S(e)||c(e)||Fn(e)||d(e)||Bn(e)||zn(e)||null==e}function zn(e){var t,r,n=a(e)&&!o(e),i=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],d=l.length;for(t=0;t<d;t+=1)r=l[t],i=i||s(e,r);return n&&i}function Bn(e){var t=i(e),r=!1;return t&&(r=0===e.filter(function(t){return!d(t)&&Fn(e)}).length),t&&r}function qn(e){var t,r,n=a(e)&&!o(e),i=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)r=l[t],i=i||s(e,r);return n&&i}function Hn(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Gn(e,t){1===arguments.length&&(arguments[0]?Yn(arguments[0])?(e=arguments[0],t=void 0):qn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Zr(),i=fn(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",s=t&&(M(t[a])?t[a].call(this,n):t[a]);return this.format(s||this.localeData().calendar(a,this,Zr(n)))}function Wn(){return new _(this)}function Un(e,t){var r=S(e)?e:Zr(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=te(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())}function Vn(e,t){var r=S(e)?e:Zr(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=te(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())}function jn(e,t,r,n){var i=S(e)?e:Zr(e),a=S(t)?t:Zr(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(n=n||"()")[0]?this.isAfter(i,r):!this.isBefore(i,r))&&(")"===n[1]?this.isBefore(a,r):!this.isAfter(a,r))}function $n(e,t){var r,n=S(e)?e:Zr(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=te(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))}function Zn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qn(e,t,r){var n,i,a;if(!this.isValid())return NaN;if(!(n=fn(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=te(t)){case"year":a=Kn(this,n)/12;break;case"month":a=Kn(this,n);break;case"quarter":a=Kn(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-i)/864e5;break;case"week":a=(this-n-i)/6048e5;break;default:a=this-n}return r?a:ke(a)}function Kn(e,t){if(e.date()<t.date())return-Kn(t,e);var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,"months");return-(r+(t-n<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(r+1,"months")-n)))||0}function Jn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?H(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(r,"Z")):H(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",n=a+'[")]',this.format(e+t+r+n)}function ri(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=H(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(S(e)&&e.isValid()||Zr(e).isValid())?kn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(Zr(),e)}function ai(e,t){return this.isValid()&&(S(e)&&e.isValid()||Zr(e).isValid())?kn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(Zr(),e)}function oi(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gr(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function di(){return this._locale}var ci=1e3,ui=60*ci,pi=60*ui,hi=3506328*pi;function fi(e,t){return(e%t+t)%t}function mi(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-hi:new Date(e,t,r).valueOf()}function gi(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-hi:Date.UTC(e,t,r)}function vi(e){var t,n;if(void 0===(e=te(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:mi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fi(t+(this._isUTC?0:this.utcOffset()*ui),pi);break;case"minute":t=this._d.valueOf(),t-=fi(t,ui);break;case"second":t=this._d.valueOf(),t-=fi(t,ci)}return this._d.setTime(t),r.updateOffset(this,!0),this}function wi(e){var t,n;if(void 0===(e=te(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:mi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=pi-fi(t+(this._isUTC?0:this.utcOffset()*ui),pi)-1;break;case"minute":t=this._d.valueOf(),t+=ui-fi(t,ui)-1;break;case"second":t=this._d.valueOf(),t+=ci-fi(t,ci)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function yi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function _i(){return new Date(this.valueOf())}function Si(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ai(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ti(){return this.isValid()?this.toISOString():null}function Ei(){return g(this)}function xi(){return p({},m(this))}function Ci(){return m(this).overflow}function Mi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function ki(e,t){var n,i,a,s=this._eras||gr("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(a=r(s[n].since).startOf("day"),s[n].since=a.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":a=r(s[n].until).startOf("day").valueOf(),s[n].until=a.valueOf()}return s}function Di(e,t,r){var n,i,a,s,o,l=this.eras();for(e=e.toUpperCase(),n=0,i=l.length;n<i;++n)if(a=l[n].name.toUpperCase(),s=l[n].abbr.toUpperCase(),o=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[n];break;case"NNNN":if(a===e)return l[n];break;case"NNNNN":if(o===e)return l[n]}else if([a,s,o].indexOf(e)>=0)return l[n]}function Oi(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Li(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].name;if(n[e].until<=r&&r<=n[e].since)return n[e].name}return""}function Ri(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].narrow;if(n[e].until<=r&&r<=n[e].since)return n[e].narrow}return""}function Pi(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].abbr;if(n[e].until<=r&&r<=n[e].since)return n[e].abbr}return""}function Ni(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Ii(e){return s(this,"_erasNameRegex")||Gi.call(this),e?this._erasNameRegex:this._erasRegex}function Fi(e){return s(this,"_erasAbbrRegex")||Gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Yi(e){return s(this,"_erasNarrowRegex")||Gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function zi(e,t){return t.erasAbbrRegex(e)}function Bi(e,t){return t.erasNameRegex(e)}function qi(e,t){return t.erasNarrowRegex(e)}function Hi(e,t){return t._eraYearOrdinalRegex||ve}function Gi(){var e,t,r,n,i,a=[],s=[],o=[],l=[],d=this.eras();for(e=0,t=d.length;e<t;++e)r=Me(d[e].name),n=Me(d[e].abbr),i=Me(d[e].narrow),s.push(r),a.push(n),o.push(i),l.push(r),l.push(n),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Wi(e,t){z(0,[e,e.length],0,t)}function Ui(e){return Qi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return Qi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ji(){return St(this.year(),1,4)}function $i(){return St(this.isoWeekYear(),1,4)}function Zi(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Xi(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Qi(e,t,r,n,i){var a;return null==e?_t(this,n,i).year:(t>(a=St(e,n,i))&&(t=a),Ki.call(this,e,t,r,n,i))}function Ki(e,t,r,n,i){var a=bt(e,t,r,n,i),s=wt(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Ji(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),Ee("N",zi),Ee("NN",zi),Ee("NNN",zi),Ee("NNNN",Bi),Ee("NNNNN",qi),Le(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict);i?m(r).era=i:m(r).invalidEra=e}),Ee("y",ve),Ee("yy",ve),Ee("yyy",ve),Ee("yyyy",ve),Ee("yo",Hi),Le(["y","yy","yyy","yyyy"],Ie),Le(["yo"],function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Ie]=r._locale.eraYearOrdinalParse(e,i):t[Ie]=parseInt(e,10)}),z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Wi("gggg","weekYear"),Wi("ggggg","weekYear"),Wi("GGGG","isoWeekYear"),Wi("GGGGG","isoWeekYear"),Ee("G",we),Ee("g",we),Ee("GG",ue,oe),Ee("gg",ue,oe),Ee("GGGG",me,de),Ee("gggg",me,de),Ee("GGGGG",ge,ce),Ee("ggggg",ge,ce),Re(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=De(e)}),Re(["gg","GG"],function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)}),z("Q",0,"Qo","quarter"),Ee("Q",se),Le("Q",function(e,t){t[Fe]=3*(De(e)-1)}),z("D",["DD",2],"Do","date"),Ee("D",ue,Ae),Ee("DD",ue,oe),Ee("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Le(["D","DD"],Ye),Le("Do",function(e,t){t[Ye]=De(e.match(ue)[0])});var ea=Ze("Date",!0);function ta(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}z("DDD",["DDDD",3],"DDDo","dayOfYear"),Ee("DDD",fe),Ee("DDDD",le),Le(["DDD","DDDD"],function(e,t,r){r._dayOfYear=De(e)}),z("m",["mm",2],0,"minute"),Ee("m",ue,Te),Ee("mm",ue,oe),Le(["m","mm"],Be);var ra=Ze("Minutes",!1);z("s",["ss",2],0,"second"),Ee("s",ue,Te),Ee("ss",ue,oe),Le(["s","ss"],qe);var na,ia,aa=Ze("Seconds",!1);for(z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ee("S",fe,se),Ee("SS",fe,oe),Ee("SSS",fe,le),na="SSSS";na.length<=9;na+="S")Ee(na,ve);function sa(e,t){t[He]=De(1e3*("0."+e))}for(na="S";na.length<=9;na+="S")Le(na,sa);function oa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ia=Ze("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var da=_.prototype;function ca(e){return Zr(1e3*e)}function ua(){return Zr.apply(null,arguments).parseZone()}function pa(e){return e}da.add=Nn,da.calendar=Gn,da.clone=Wn,da.diff=Qn,da.endOf=wi,da.format=ri,da.from=ni,da.fromNow=ii,da.to=ai,da.toNow=si,da.get=Ke,da.invalidAt=Ci,da.isAfter=Un,da.isBefore=Vn,da.isBetween=jn,da.isSame=$n,da.isSameOrAfter=Zn,da.isSameOrBefore=Xn,da.isValid=Ei,da.lang=li,da.locale=oi,da.localeData=di,da.max=Qr,da.min=Xr,da.parsingFlags=xi,da.set=Je,da.startOf=vi,da.subtract=In,da.toArray=Si,da.toObject=Ai,da.toDate=_i,da.toISOString=ei,da.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(da[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),da.toJSON=Ti,da.toString=Jn,da.unix=bi,da.valueOf=yi,da.creationData=Mi,da.eraName=Li,da.eraNarrow=Ri,da.eraAbbr=Pi,da.eraYear=Ni,da.year=je,da.isLeapYear=$e,da.weekYear=Ui,da.isoWeekYear=Vi,da.quarter=da.quarters=Ji,da.month=pt,da.daysInMonth=ht,da.week=da.weeks=Ct,da.isoWeek=da.isoWeeks=Mt,da.weeksInYear=Zi,da.weeksInWeekYear=Xi,da.isoWeeksInYear=ji,da.isoWeeksInISOWeekYear=$i,da.date=ea,da.day=da.days=Gt,da.weekday=Wt,da.isoWeekday=Ut,da.dayOfYear=ta,da.hour=da.hours=rr,da.minute=da.minutes=ra,da.second=da.seconds=aa,da.millisecond=da.milliseconds=ia,da.utcOffset=gn,da.utc=wn,da.local=yn,da.parseZone=bn,da.hasAlignedHourOffset=_n,da.isDST=Sn,da.isLocal=Tn,da.isUtcOffset=En,da.isUtc=xn,da.isUTC=xn,da.zoneAbbr=oa,da.zoneName=la,da.dates=T("dates accessor is deprecated. Use date instead.",ea),da.months=T("months accessor is deprecated. Use month instead",pt),da.years=T("years accessor is deprecated. Use year instead",je),da.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vn),da.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",An);var ha=O.prototype;function fa(e,t,r,n){var i=gr(),a=h().set(n,t);return i[r](a,e)}function ma(e,t,r){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return fa(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=fa(e,n,r,"month");return i}function ga(e,t,r,n){"boolean"==typeof e?(d(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,d(t)&&(r=t,t=void 0),t=t||"");var i,a=gr(),s=e?a._week.dow:0,o=[];if(null!=r)return fa(t,(r+s)%7,n,"day");for(i=0;i<7;i++)o[i]=fa(t,(i+s)%7,n,"day");return o}function va(e,t){return ma(e,t,"months")}function wa(e,t){return ma(e,t,"monthsShort")}function ya(e,t,r){return ga(e,t,r,"weekdays")}function ba(e,t,r){return ga(e,t,r,"weekdaysShort")}function _a(e,t,r){return ga(e,t,r,"weekdaysMin")}ha.calendar=R,ha.longDateFormat=U,ha.invalidDate=j,ha.ordinal=X,ha.preparse=pa,ha.postformat=pa,ha.relativeTime=K,ha.pastFuture=J,ha.set=k,ha.eras=ki,ha.erasParse=Di,ha.erasConvertYear=Oi,ha.erasAbbrRegex=Fi,ha.erasNameRegex=Ii,ha.erasNarrowRegex=Yi,ha.months=ot,ha.monthsShort=lt,ha.monthsParse=ct,ha.monthsRegex=mt,ha.monthsShortRegex=ft,ha.week=At,ha.firstDayOfYear=xt,ha.firstDayOfWeek=Et,ha.weekdays=Yt,ha.weekdaysMin=Bt,ha.weekdaysShort=zt,ha.weekdaysParse=Ht,ha.weekdaysRegex=Vt,ha.weekdaysShortRegex=jt,ha.weekdaysMinRegex=$t,ha.isPM=er,ha.meridiem=nr,hr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===De(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=T("moment.lang is deprecated. Use moment.locale instead.",hr),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",gr);var Sa=Math.abs;function Aa(){var e=this._data;return this._milliseconds=Sa(this._milliseconds),this._days=Sa(this._days),this._months=Sa(this._months),e.milliseconds=Sa(e.milliseconds),e.seconds=Sa(e.seconds),e.minutes=Sa(e.minutes),e.hours=Sa(e.hours),e.months=Sa(e.months),e.years=Sa(e.years),this}function Ta(e,t,r,n){var i=kn(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function Ea(e,t){return Ta(this,e,t,1)}function xa(e,t){return Ta(this,e,t,-1)}function Ca(e){return e<0?Math.floor(e):Math.ceil(e)}function Ma(){var e,t,r,n,i,a=this._milliseconds,s=this._days,o=this._months,l=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Ca(Da(o)+s),s=0,o=0),l.milliseconds=a%1e3,e=ke(a/1e3),l.seconds=e%60,t=ke(e/60),l.minutes=t%60,r=ke(t/60),l.hours=r%24,s+=ke(r/24),o+=i=ke(ka(s)),s-=Ca(Da(i)),n=ke(o/12),o%=12,l.days=s,l.months=o,l.years=n,this}function ka(e){return 4800*e/146097}function Da(e){return 146097*e/4800}function Oa(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=te(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+ka(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Da(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function La(e){return function(){return this.as(e)}}var Ra=La("ms"),Pa=La("s"),Na=La("m"),Ia=La("h"),Fa=La("d"),Ya=La("w"),za=La("M"),Ba=La("Q"),qa=La("y"),Ha=Ra;function Ga(){return kn(this)}function Wa(e){return e=te(e),this.isValid()?this[e+"s"]():NaN}function Ua(e){return function(){return this.isValid()?this._data[e]:NaN}}var Va=Ua("milliseconds"),ja=Ua("seconds"),$a=Ua("minutes"),Za=Ua("hours"),Xa=Ua("days"),Qa=Ua("months"),Ka=Ua("years");function Ja(){return ke(this.days()/7)}var es=Math.round,ts={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rs(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}function ns(e,t,r,n){var i=kn(e).abs(),a=es(i.as("s")),s=es(i.as("m")),o=es(i.as("h")),l=es(i.as("d")),d=es(i.as("M")),c=es(i.as("w")),u=es(i.as("y")),p=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||s<=1&&["m"]||s<r.m&&["mm",s]||o<=1&&["h"]||o<r.h&&["hh",o]||l<=1&&["d"]||l<r.d&&["dd",l];return null!=r.w&&(p=p||c<=1&&["w"]||c<r.w&&["ww",c]),(p=p||d<=1&&["M"]||d<r.M&&["MM",d]||u<=1&&["y"]||["yy",u])[2]=t,p[3]=+e>0,p[4]=n,rs.apply(null,p)}function is(e){return void 0===e?es:"function"==typeof e&&(es=e,!0)}function as(e,t){return void 0!==ts[e]&&(void 0===t?ts[e]:(ts[e]=t,"s"===e&&(ts.ss=t-1),!0))}function ss(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,i=!1,a=ts;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},ts,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=ns(this,!i,a,r=this.localeData()),i&&(n=r.pastFuture(+this,n)),r.postformat(n)}var os=Math.abs;function ls(e){return(e>0)-(e<0)||+e}function ds(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,i,a,s,o,l=os(this._milliseconds)/1e3,d=os(this._days),c=os(this._months),u=this.asSeconds();return u?(e=ke(l/60),t=ke(e/60),l%=60,e%=60,r=ke(c/12),c%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=u<0?"-":"",a=ls(this._months)!==ls(u)?"-":"",s=ls(this._days)!==ls(u)?"-":"",o=ls(this._milliseconds)!==ls(u)?"-":"",i+"P"+(r?a+r+"Y":"")+(c?a+c+"M":"")+(d?s+d+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+n+"S":"")):"P0D"}var cs=on.prototype;return cs.isValid=an,cs.abs=Aa,cs.add=Ea,cs.subtract=xa,cs.as=Oa,cs.asMilliseconds=Ra,cs.asSeconds=Pa,cs.asMinutes=Na,cs.asHours=Ia,cs.asDays=Fa,cs.asWeeks=Ya,cs.asMonths=za,cs.asQuarters=Ba,cs.asYears=qa,cs.valueOf=Ha,cs._bubble=Ma,cs.clone=Ga,cs.get=Wa,cs.milliseconds=Va,cs.seconds=ja,cs.minutes=$a,cs.hours=Za,cs.days=Xa,cs.weeks=Ja,cs.months=Qa,cs.years=Ka,cs.humanize=ss,cs.toISOString=ds,cs.toString=ds,cs.toJSON=ds,cs.locale=oi,cs.localeData=di,cs.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ds),cs.lang=li,z("X",0,0,"unix"),z("x",0,0,"valueOf"),Ee("x",we),Ee("X",_e),Le("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),Le("x",function(e,t,r){r._d=new Date(De(e))}),
30
30
  //! moment.js
31
31
  r.version="2.30.1",n(Zr),r.fn=da,r.min=Jr,r.max=en,r.now=tn,r.utc=h,r.unix=ca,r.months=va,r.isDate=c,r.locale=hr,r.invalid=v,r.duration=kn,r.isMoment=S,r.weekdays=ya,r.parseZone=ua,r.localeData=gr,r.isDuration=ln,r.monthsShort=wa,r.weekdaysMin=_a,r.defineLocale=fr,r.updateLocale=mr,r.locales=vr,r.weekdaysShort=ba,r.normalizeUnits=te,r.relativeTimeRounding=is,r.relativeTimeThreshold=as,r.calendarFormat=Hn,r.prototype=da,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}();var Er=me(Tr.exports);const xr=e=>{const t="string"==typeof e?new Date(e):e,r=Er(t,"YYYYMMDD").fromNow(!1);return"a few seconds ago"===r?"Just now":r},Cr={ALLOWED_TAGS:["p","br","strong","em","a"],ALLOWED_ATTR:["href","target","rel","class"]};function Mr({data:n,handleFunc:a,typeTrending:o=!1,isHover:d=!0}){const[c,u]=s(!1),[p,h]=s(!1),f=l(null),{subscribeFeatureReqUser:m,featureReqUsers:g,removeFeatureRequest:v,updateFeatureRequest:w}=ft(),{navigateTo:y}=et(),b=qe(e=>e.isAdmin),_=()=>h(e=>!e);i(()=>()=>{f.current&&(f.current(),f.current=null)},[]);const S=e(W,{variant:"tertiary",onClick:()=>_(),icon:oe}),A=br.sanitize((null==n?void 0:n.description)||"",Cr),T=(null==n?void 0:n.shopId)?null==g?void 0:g[n.shopId]:void 0;return r(t,{children:[r("div",{className:"Avada-FeatureReq-Card "+(d?"Avada-FeatureReq-CardHover":""),onClick:e=>{e.target.closest(".Avada-FeatureReq-Action")||y(`/feature-request/details/${n.id}`)},children:[r("div",{className:"Avada-FeatureReq-Header",children:[r("div",{className:"Avada-Feature-Header__Info",children:[e("div",{className:"Avada-FeatureReq-Avatar",children:e(_r,{objectFit:"cover",imageStyle:{maxHeight:"100px"},src:!(null==n?void 0:n.isAnonymous)&&(null==n?void 0:n.avatarShop)?n.avatarShop:"https://cdnapps.avada.io/ag-blog/AvatarFeatureReq.png",preview:"https://cdnapps.avada.io/ag-blog/AvatarFeatureReq.png",alt:""})}),r("div",{className:"Avada-Feature-Header__Title",children:[r("div",{style:{display:"flex"},children:[e("div",{onMouseEnter:()=>{(null==g?void 0:g[n.shopId])||f.current||m(n.shopId||n.id).then(e=>{"function"==typeof e&&(f.current=e)})},onMouseLeave:()=>{},children:(null==n?void 0:n.isAnonymous)?e(Y,{as:"p",fontWeight:"bold",children:"Anonymous"}):e(U,{content:e("div",{children:r(R,{gap:"300",children:[r(Y,{as:"p",tone:"subdued",children:["Submitted request: ",(null==T?void 0:T.featureRequestCount)||0]}),r(Y,{as:"p",tone:"subdued",children:["Domain: ",(null==T?void 0:T.domain)||(null==n?void 0:n.domain)||""]})]})}),children:e(Y,{as:"p",fontWeight:"bold",children:(null==n?void 0:n.isAnonymous)?"Anonymous":null==n?void 0:n.shopOwner})})}),!o&&r(t,{children:[e(G,{source:le,tone:"base"}),e(Y,{as:"p",fontWeight:"regular",tone:"subdued",children:xr(n.createdAt)})]})]}),e("div",{children:o?e(Y,{as:"p",fontWeight:"regular",tone:"subdued",children:xr(n.createdAt)}):r(V,{gap:"200",children:[e(Qe,{status:null==n?void 0:n.status}),b&&e("div",{onClick:e=>e.stopPropagation(),children:e(j,{active:p,activator:S,autofocusTarget:"first-node",onClose:_,children:e($,{actionRole:"menuitem",items:Xe.filter(e=>e!==n.status).map(e=>({content:e,onAction:()=>{_(),w(n.id,{status:e}).catch(console.error)}}))})})})]})})]})]}),e("div",{children:e(Ke,{type:null==n?void 0:n.featureType})})]}),r("div",{className:"Avada-FeatureReq-Body",children:[e("div",{className:"Avada-FeatureReq-Body__Title",children:null==n?void 0:n.title}),e("div",{className:"Avada-FeatureReq-Body__Descripstion",dangerouslySetInnerHTML:{__html:A}})]}),r("div",{className:"Avada-FeatureReq-ActionItem",children:[e(mt,{dataQuery:n,handleComment:a,byFeatureReq:!0,isReply:!1}),b&&e("div",{onClick:e=>e.stopPropagation(),children:e(W,{icon:de,onClick:()=>u(!0),variant:"tertiary"})})]})]}),e(Z,{open:c,onClose:()=>u(!1),title:"Delete request",primaryAction:{content:"Delete",onAction:()=>{try{if(!b)return;v(n.id).then(),y("/feature-request")}finally{u(!1)}},destructive:!0},secondaryActions:[{content:"Cancel",onAction:()=>u(!1)}],children:e(Z.Section,{children:"This action will not be redone. Do you want to continue?"})})]})}const kr=()=>r("svg",{width:"592",height:"162",viewBox:"0 0 622 176",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{width:"32",height:"32",rx:"16",fill:"#B5B5B5"}),e("rect",{x:"48",width:"133",height:"20",rx:"8",fill:"#E3E3E3"}),e("rect",{x:"48",y:"28",width:"76",height:"20",rx:"8",fill:"#E3E3E3"}),e("rect",{y:"60",width:"505",height:"20",rx:"8",fill:"#E3E3E3"}),e("rect",{y:"88",width:"267",height:"20",rx:"8",fill:"#E3E3E3"}),e("rect",{y:"116",width:"168",height:"20",rx:"8",fill:"#E3E3E3"}),e("rect",{y:"148",width:"61",height:"28",rx:"14",fill:"#F7F7F7"}),e("rect",{x:"69",y:"148",width:"61",height:"28",rx:"14",fill:"#F7F7F7"})]}),Dr={ADD_TAGS:["iframe","h1","h2","h3","h4","h5","h6","p","div","span","strong","em","u","b","i","ul","ol","li","a","img","blockquote","code","pre","hr","br"],ADD_ATTR:["src","width","height","frameborder","allowfullscreen","allow","style","href","target","class","id","align","data-alignment"],FORCE_BODY:!0,KEEP_CONTENT:!0,ALLOW_DATA_ATTR:!0,RETURN_DOM_FRAGMENT:!1,RETURN_DOM:!1,CUSTOM_ELEMENT_HANDLING:{attributeNameCheck:e=>["src","href","style","class","id","align","data-alignment"].includes(e)}},Or=()=>e("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.6376 1.29665C5.13444 0.517405 6.00621 0 7 0C7.99379 0 8.86557 0.517412 9.36243 1.29667C10.2647 1.09696 11.247 1.34753 11.9498 2.05025C12.6525 2.75297 12.9031 3.73528 12.7034 4.63761C13.4826 5.13444 14 6.00621 14 7C14 7.99379 13.4826 8.86557 12.7034 9.36236C12.9031 10.2647 12.6525 11.247 11.9498 11.9498C11.247 12.6525 10.2647 12.903 9.36243 12.7033C8.86557 13.4826 7.99379 14 7 14C6.00621 14 5.13443 13.4826 4.6376 12.7033C3.73528 12.903 2.75299 12.6524 2.05028 11.9498C1.34757 11.247 1.09699 10.2647 1.29669 9.36243C0.517419 8.86557 0 7.99379 0 7C0 6.00621 0.517433 5.1344 1.29671 4.63757C1.09701 3.73526 1.3476 2.75296 2.0503 2.05025C2.753 1.34755 3.73529 1.09697 4.6376 1.29665ZM5.39503 6.50496L4.40508 7.4949L6.38498 9.47485L9.84977 6.00999L8.85983 5.02005L6.38498 7.4949L5.39503 6.50496Z",fill:"#005BD3"})}),Lr=({id:n,isShow:a=!1})=>{var o;const[d,c]=s([]),[u,p]=s(""),[h,f]=s(!1),[m,g]=s(""),[v,w]=s(""),[y,b]=s({}),_=l({}),{subscribeToComments:S,removeComment:A,subscribeFeatureReqUser:T,featureReqUsers:E,handleComment:x,loadingComment:C}=ft(),{fetchApi:M}=rt(),k=qe(e=>e.shopInfo),D=qe(e=>e.isAdmin),O=qe(e=>e.appId),N=null===(o=null==E?void 0:E[(null==k?void 0:k.shopId)||(null==k?void 0:k.id)||""])||void 0===o?void 0:o.isUserBlocked;i(()=>{let e;return n&&(async()=>{try{const t=await S(n,e=>{c(e)});e=t||void 0}catch(e){console.error("Error initializing comments:",e)}})().catch(console.error),()=>{"function"==typeof e&&e(),Object.values(_.current).forEach(e=>{"function"==typeof e&&e()}),_.current={}}},[n,S]);const I=async e=>{try{await x(e),w(""),p("")}catch(e){console.error("Error submitting comment:",e)}},F=h?d:d.slice(0,3),z=!h&&d.length>3;return r(t,{children:[F.map(t=>{const n=br.sanitize(t.content,Dr),i=null==E?void 0:E[t.shopId],s=D&&!(null==i?void 0:i.isUserBlocked);return e("div",{className:"Avada-FeatureReq-Card",children:e("div",{className:"Avada-FeatureReq-Header",children:r("div",{className:"Avada-Feature-Header__Info",style:{width:"100%"},children:[e("div",{className:"Avada-FeatureReq-Avatar",children:e(_r,{src:null==t?void 0:t.avatarShop,alt:"User avatar"})}),r("div",{style:{flex:10},children:[r("div",{className:"Avada-Comment-HeaderRow",children:[r("div",{onMouseEnter:()=>{return e=t.shopId,void((null==E?void 0:E[e])||_.current[e]||T(e).then(t=>{"function"==typeof t&&(_.current[e]=t)}).catch(e=>{console.error("Error fetching shop support:",e)}));var e},onMouseLeave:()=>{},style:{display:"flex",alignItems:"center",gap:"5px"},children:[e(Y,{as:"p",fontWeight:"bold",children:(null==t?void 0:t.isAnonymous)?"Anonymous":(null==t?void 0:t.isTeamAvada)?e(Y,{as:"p",fontWeight:"bold",children:null==t?void 0:t.shopOwner}):e(U,{content:r(R,{gap:"300",children:[r(Y,{as:"p",tone:"subdued",children:["Submitted request: ",(null==i?void 0:i.featureRequestCount)||0]}),r(Y,{as:"p",tone:"subdued",children:["Domain: ",(null==i?void 0:i.domain)||(null==t?void 0:t.domain)||""]})]}),children:e(Y,{as:"p",fontWeight:"bold",children:null==t?void 0:t.shopOwner})})}),(null==t?void 0:t.isTeamAvada)&&e(Or,{})]}),e("div",{children:e(G,{source:le,tone:"base"})}),e(Y,{as:"p",fontWeight:"regular",tone:"subdued",children:xr(t.createdAt)}),s&&e(W,{icon:ce,onClick:()=>g(t.id),variant:"plain",loading:y[t.id]||!1,accessibilityLabel:"Block user"}),D&&e(W,{icon:de,onClick:()=>A(t.id),variant:"plain",accessibilityLabel:"Delete comment"})]}),e("div",{style:{height:"auto"},dangerouslySetInnerHTML:{__html:n}}),r(R,{gap:"300",children:[e(mt,{dataQuery:t,byFeatureReq:!1,isReply:!!t.replies,handleComment:()=>p(t.id)}),u===t.id&&e(L,{children:r("div",{className:"Avada-Comment-Main",onKeyDown:e=>((e,t)=>{if("Enter"===e.key){if(e.shiftKey)return;e.preventDefault(),v.trim().length>0&&!C&&!N&&I({parentId:t,replies:!0,value:v})}})(e,t.id),children:[e(P,{value:v,autoFocus:!0,placeholder:"What do you think?",multiline:5,onChange:w,autoComplete:"off",label:"",disabled:N}),e(L.Section,{actions:[{content:e(W,{onClick:()=>{p(""),w("")},children:"Cancel"})},{content:e(W,{variant:"primary",disabled:v.length<=0||N,loading:C,onClick:()=>{I({parentId:t.id,replies:!0,value:v})},children:"Reply"})}],subdued:!0})]})}),e(R,{gap:"300",children:a&&e(Lr,{id:t.id})})]})]})]})})},t.id)}),z&&e("div",{style:{textAlign:"start"},children:e(W,{icon:se,variant:"tertiary",onClick:()=>f(!0),children:"More replies"})}),e(Z,{open:!!m,onClose:()=>g(""),title:"Block user",primaryAction:{destructive:!0,content:"Block",onAction:()=>(async e=>{if((null==k?void 0:k.id)&&D)try{b(t=>({...t,[e]:!0})),await M("/feature-requests/block-user",{method:"POST",body:{data:{shopId:k.shopId||k.id,appId:O,blockUserReq:!0}}})}catch(e){console.error("Error blocking user:",e)}finally{b(t=>({...t,[e]:!1})),g("")}else console.error("Shop info not available or user is not admin")})(m)},secondaryActions:[{content:"Cancel",onAction:()=>g("")}],children:e(X,{padding:"300",children:"This user will be blocked from all feature requests. Do you want to continue?"})})]})};var Rr=d(Lr);function Pr(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Nr(e,t){void 0===e&&(e={}),void 0===t&&(t={});const r=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>r.indexOf(e)<0).forEach(r=>{void 0===e[r]?e[r]=t[r]:Pr(t[r])&&Pr(e[r])&&Object.keys(t[r]).length>0&&Nr(e[r],t[r])})}const Ir={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Fr(){const e="undefined"!=typeof document?document:{};return Nr(e,Ir),e}const Yr={document:Ir,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function zr(){const e="undefined"!=typeof window?window:{};return Nr(e,Yr),e}function Br(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function qr(){return Date.now()}function Hr(e,t){void 0===t&&(t="x");const r=zr();let n,i,a;const s=function(e){const t=zr();let r;return t.getComputedStyle&&(r=t.getComputedStyle(e,null)),!r&&e.currentStyle&&(r=e.currentStyle),r||(r=e.style),r}(e);return r.WebKitCSSMatrix?(i=s.transform||s.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),a=new r.WebKitCSSMatrix("none"===i?"":i)):(a=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=a.toString().split(",")),"x"===t&&(i=r.WebKitCSSMatrix?a.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(i=r.WebKitCSSMatrix?a.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),i||0}function Gr(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Wr(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function Ur(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){const n=r<0||arguments.length<=r?void 0:arguments[r];if(null!=n&&!Wr(n)){const r=Object.keys(Object(n)).filter(e=>t.indexOf(e)<0);for(let t=0,i=r.length;t<i;t+=1){const i=r[t],a=Object.getOwnPropertyDescriptor(n,i);void 0!==a&&a.enumerable&&(Gr(e[i])&&Gr(n[i])?n[i].__swiper__?e[i]=n[i]:Ur(e[i],n[i]):!Gr(e[i])&&Gr(n[i])?(e[i]={},n[i].__swiper__?e[i]=n[i]:Ur(e[i],n[i])):e[i]=n[i])}}}return e}function Vr(e,t,r){e.style.setProperty(t,r)}function jr(e){let{swiper:t,targetPosition:r,side:n}=e;const i=zr(),a=-t.translate;let s,o=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const d=r>a?"next":"prev",c=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,u=()=>{s=(new Date).getTime(),null===o&&(o=s);const e=Math.max(Math.min((s-o)/l,1),0),d=.5-Math.cos(e*Math.PI)/2;let p=a+d*(r-a);if(c(p,r)&&(p=r),t.wrapperEl.scrollTo({[n]:p}),c(p,r))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:p})}),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(u)};u()}function $r(e,t){void 0===t&&(t="");const r=zr(),n=[...e.children];return r.HTMLSlotElement&&e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(e=>e.matches(t)):n}function Zr(e){try{return void console.warn(e)}catch(e){}}function Xr(e,t){void 0===t&&(t=[]);const r=document.createElement(e);return r.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter(e=>!!e.trim())}(t)),r}function Qr(e,t){return zr().getComputedStyle(e,null).getPropertyValue(t)}function Kr(e){let t,r=e;if(r){for(t=0;null!==(r=r.previousSibling);)1===r.nodeType&&(t+=1);return t}}function Jr(e,t){const r=[];let n=e.parentElement;for(;n;)t?n.matches(t)&&r.push(n):r.push(n),n=n.parentElement;return r}function en(e,t,r){const n=zr();return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom"))}function tn(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function rn(e,t){void 0===t&&(t=""),"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}function nn(e,t,r,n){return e.params.createElements&&Object.keys(n).forEach(i=>{if(!r[i]&&!0===r.auto){let a=$r(e.el,`.${n[i]}`)[0];a||(a=Xr("div",n[i]),a.className=n[i],e.el.append(a)),r[i]=a,t[i]=a}}),r}function an(e){let{swiper:t,extendParams:r,on:n,emit:i}=e;function a(e){let r;return e&&"string"==typeof e&&t.isElement&&(r=t.el.querySelector(e)||t.hostEl.querySelector(e),r)?r:(e&&("string"==typeof e&&(r=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&r&&r.length>1&&1===t.el.querySelectorAll(e).length?r=t.el.querySelector(e):r&&1===r.length&&(r=r[0])),e&&!r?e:r)}function s(e,r){const n=t.params.navigation;(e=tn(e)).forEach(e=>{e&&(e.classList[r?"add":"remove"](...n.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=r),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass))})}function o(){const{nextEl:e,prevEl:r}=t.navigation;if(t.params.loop)return s(r,!1),void s(e,!1);s(r,t.isBeginning&&!t.params.rewind),s(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=nn(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let r=a(e.nextEl),n=a(e.prevEl);Object.assign(t.navigation,{nextEl:r,prevEl:n}),r=tn(r),n=tn(n);const i=(r,n)=>{r&&r.addEventListener("click","next"===n?d:l),!t.enabled&&r&&r.classList.add(...e.lockClass.split(" "))};r.forEach(e=>i(e,"next")),n.forEach(e=>i(e,"prev"))}function u(){let{nextEl:e,prevEl:r}=t.navigation;e=tn(e),r=tn(r);const n=(e,r)=>{e.removeEventListener("click","next"===r?d:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>n(e,"next")),r.forEach(e=>n(e,"prev"))}r({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},n("init",()=>{!1===t.params.navigation.enabled?p():(c(),o())}),n("toEdge fromEdge lock unlock",()=>{o()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:e,prevEl:r}=t.navigation;e=tn(e),r=tn(r),t.enabled?o():[...e,...r].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),n("click",(e,r)=>{let{nextEl:n,prevEl:a}=t.navigation;n=tn(n),a=tn(a);const s=r.target;let o=a.includes(s)||n.includes(s);if(t.isElement&&!o){const e=r.path||r.composedPath&&r.composedPath();e&&(o=e.find(e=>n.includes(e)||a.includes(e)))}if(t.params.navigation.hideOnClick&&!o){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;let e;n.length?e=n[0].classList.contains(t.params.navigation.hiddenClass):a.length&&(e=a[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),[...n,...a].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),o()},disable:p,update:o,init:c,destroy:u})}function sn(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function on(e){let{swiper:t,extendParams:r,on:n,emit:i}=e;const a="swiper-pagination";let s;r({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),t.pagination={el:null,bullets:[]};let o=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function d(e,r){const{bulletActiveClass:n}=t.params.pagination;e&&(e=e[("prev"===r?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${n}-${r}`),(e=e[("prev"===r?"previous":"next")+"ElementSibling"])&&e.classList.add(`${n}-${r}-${r}`))}function c(e){const r=e.target.closest(sn(t.params.pagination.bulletClass));if(!r)return;e.preventDefault();const n=Kr(r)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===n)return;const e=(i=t.realIndex,a=n,s=t.slides.length,(a%=s)===1+(i%=s)?"next":a===i-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(n)}else t.slideTo(n);var i,a,s}function u(){const e=t.rtl,r=t.params.pagination;if(l())return;let n,a,c=t.pagination.el;c=tn(c);const u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(u/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(a=t.previousRealIndex||0,n=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(n=t.snapIndex,a=t.previousSnapIndex):(a=t.previousIndex||0,n=t.activeIndex||0),"bullets"===r.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const i=t.pagination.bullets;let l,u,p;if(r.dynamicBullets&&(s=en(i[0],t.isHorizontal()?"width":"height"),c.forEach(e=>{e.style[t.isHorizontal()?"width":"height"]=s*(r.dynamicMainBullets+4)+"px"}),r.dynamicMainBullets>1&&void 0!==a&&(o+=n-(a||0),o>r.dynamicMainBullets-1?o=r.dynamicMainBullets-1:o<0&&(o=0)),l=Math.max(n-o,0),u=l+(Math.min(i.length,r.dynamicMainBullets)-1),p=(u+l)/2),i.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${r.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),c.length>1)i.forEach(e=>{const i=Kr(e);i===n?e.classList.add(...r.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),r.dynamicBullets&&(i>=l&&i<=u&&e.classList.add(...`${r.bulletActiveClass}-main`.split(" ")),i===l&&d(e,"prev"),i===u&&d(e,"next"))});else{const e=i[n];if(e&&e.classList.add(...r.bulletActiveClass.split(" ")),t.isElement&&i.forEach((e,t)=>{e.setAttribute("part",t===n?"bullet-active":"bullet")}),r.dynamicBullets){const e=i[l],t=i[u];for(let e=l;e<=u;e+=1)i[e]&&i[e].classList.add(...`${r.bulletActiveClass}-main`.split(" "));d(e,"prev"),d(t,"next")}}if(r.dynamicBullets){const n=Math.min(i.length,r.dynamicMainBullets+4),a=(s*n-s)/2-p*s,o=e?"right":"left";i.forEach(e=>{e.style[t.isHorizontal()?o:"top"]=`${a}px`})}}c.forEach((e,a)=>{if("fraction"===r.type&&(e.querySelectorAll(sn(r.currentClass)).forEach(e=>{e.textContent=r.formatFractionCurrent(n+1)}),e.querySelectorAll(sn(r.totalClass)).forEach(e=>{e.textContent=r.formatFractionTotal(p)})),"progressbar"===r.type){let i;i=r.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const a=(n+1)/p;let s=1,o=1;"horizontal"===i?s=a:o=a,e.querySelectorAll(sn(r.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${s}) scaleY(${o})`,e.style.transitionDuration=`${t.params.speed}ms`})}"custom"===r.type&&r.renderCustom?(rn(e,r.renderCustom(t,n+1,p)),0===a&&i("paginationRender",e)):(0===a&&i("paginationRender",e),i("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](r.lockClass)})}function p(){const e=t.params.pagination;if(l())return;const r=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let n=t.pagination.el;n=tn(n);let a="";if("bullets"===e.type){let n=t.params.loop?Math.ceil(r/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&n>r&&(n=r);for(let r=0;r<n;r+=1)e.renderBullet?a+=e.renderBullet.call(t,r,e.bulletClass):a+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(a=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(a=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],n.forEach(r=>{"custom"!==e.type&&rn(r,a||""),"bullets"===e.type&&t.pagination.bullets.push(...r.querySelectorAll(sn(e.bulletClass)))}),"custom"!==e.type&&i("paginationRender",n[0])}function h(){t.params.pagination=nn(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let r;"string"==typeof e.el&&t.isElement&&(r=t.el.querySelector(e.el)),r||"string"!=typeof e.el||(r=[...document.querySelectorAll(e.el)]),r||(r=e.el),r&&0!==r.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(r)&&r.length>1&&(r=[...t.el.querySelectorAll(e.el)],r.length>1&&(r=r.find(e=>Jr(e,".swiper")[0]===t.el))),Array.isArray(r)&&1===r.length&&(r=r[0]),Object.assign(t.pagination,{el:r}),r=tn(r),r.forEach(r=>{"bullets"===e.type&&e.clickable&&r.classList.add(...(e.clickableClass||"").split(" ")),r.classList.add(e.modifierClass+e.type),r.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(r.classList.add(`${e.modifierClass}${e.type}-dynamic`),o=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&r.classList.add(e.progressbarOppositeClass),e.clickable&&r.addEventListener("click",c),t.enabled||r.classList.add(e.lockClass)}))}function f(){const e=t.params.pagination;if(l())return;let r=t.pagination.el;r&&(r=tn(r),r.forEach(r=>{r.classList.remove(e.hiddenClass),r.classList.remove(e.modifierClass+e.type),r.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(r.classList.remove(...(e.clickableClass||"").split(" ")),r.removeEventListener("click",c))})),t.pagination.bullets&&t.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:r}=t.pagination;r=tn(r),r.forEach(r=>{r.classList.remove(e.horizontalClass,e.verticalClass),r.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),n("init",()=>{!1===t.params.pagination.enabled?m():(h(),p(),u())}),n("activeIndexChange",()=>{void 0===t.snapIndex&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{p(),u()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{el:e}=t.pagination;e&&(e=tn(e),e.forEach(e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),n("lock unlock",()=>{u()}),n("click",(e,r)=>{const n=r.target,a=tn(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&a&&a.length>0&&!n.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;const e=a[0].classList.contains(t.params.pagination.hiddenClass);i(!0===e?"paginationShow":"paginationHide"),a.forEach(e=>e.classList.toggle(t.params.pagination.hiddenClass))}});const m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=tn(e),e.forEach(e=>e.classList.add(t.params.pagination.paginationDisabledClass))),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=tn(e),e.forEach(e=>e.classList.remove(t.params.pagination.paginationDisabledClass))),h(),p(),u()},disable:m,render:p,update:u,init:h,destroy:f})}he('@font-face{font-family:swiper-icons;font-style:normal;font-weight:400;src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA")}:root{--swiper-theme-color:#007aff}:host{display:block;margin-left:auto;margin-right:auto;position:relative;z-index:1}.swiper{display:block;list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0;position:relative;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;display:flex;height:100%;position:relative;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);width:100%;z-index:1}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{display:block;flex-shrink:0;height:100%;position:relative;transition-property:transform;width:100%}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{-ms-overflow-style:none;overflow:auto;scrollbar-width:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top:4px solid transparent;box-sizing:border-box;height:42px;left:50%;margin-left:-21px;margin-top:-21px;position:absolute;top:50%;transform-origin:50%;width:42px;z-index:10}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s linear infinite}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}');he(".swiper-pagination{position:absolute;text-align:center;transform:translateZ(0);transition:opacity .3s;z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);display:inline-block;height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px))}button.swiper-pagination-bullet{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;box-shadow:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translate3d(0,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{display:block;margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:transform .2s,top .2s}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));height:100%;left:0;position:absolute;top:0;transform:scale(0);transform-origin:left top;width:100%}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0;width:100%}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{height:100%;left:0;top:0;width:var(--swiper-pagination-progressbar-size,4px)}.swiper-pagination-lock{display:none}");let ln,dn,cn;function un(){return ln||(ln=function(){const e=zr(),t=Fr();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),ln}function pn(e){return void 0===e&&(e={}),dn||(dn=function(e){let{userAgent:t}=void 0===e?{}:e;const r=un(),n=zr(),i=n.navigator.platform,a=t||n.navigator.userAgent,s={ios:!1,android:!1},o=n.screen.width,l=n.screen.height,d=a.match(/(Android);?[\s\/]+([\d.]+)?/);let c=a.match(/(iPad).*OS\s([\d_]+)/);const u=a.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let f="MacIntel"===i;return!c&&f&&r.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${l}`)>=0&&(c=a.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),f=!1),d&&!h&&(s.os="android",s.android=!0),(c||p||u)&&(s.os="ios",s.ios=!0),s}(e)),dn}function hn(){return cn||(cn=function(){const e=zr(),t=pn();let r=!1;function n(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(n()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,n]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));r=e<16||16===e&&n<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=n();return{isSafari:r||a,needPerspectiveFix:r,need3dFix:a||i&&t.ios,isWebView:i}}()),cn}he(':root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{align-items:center;color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;display:flex;height:var(--swiper-navigation-size);justify-content:center;margin-top:calc(0px - var(--swiper-navigation-size)/2);position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/44*27);z-index:10}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{height:100%;-o-object-fit:contain;object-fit:contain;transform-origin:center;width:100%}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-lock{display:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);font-variant:normal;letter-spacing:0;line-height:1;text-transform:none!important}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{left:auto;right:var(--swiper-navigation-sides-offset,10px)}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}');var fn={on(e,t,r){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;const i=r?"unshift":"push";return e.split(" ").forEach(e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][i](t)}),n},once(e,t,r){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;function i(){n.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];t.apply(n,a)}return i.__emitterProxy=t,n.on(e,i,r)},onAny(e,t){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof e)return r;const n=t?"unshift":"push";return r.eventsAnyListeners.indexOf(e)<0&&r.eventsAnyListeners[n](e),r},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off(e,t){const r=this;return!r.eventsListeners||r.destroyed?r:r.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?r.eventsListeners[e]=[]:r.eventsListeners[e]&&r.eventsListeners[e].forEach((n,i)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&r.eventsListeners[e].splice(i,1)})}),r):r},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,r,n;for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],r=a.slice(1,a.length),n=e):(t=a[0].events,r=a[0].data,n=a[0].context||e),r.unshift(n);return(Array.isArray(t)?t:t.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(n,[t,...r])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(n,r)})}),e}};const mn=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};const gn=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};const vn=(e,t)=>{if(!e||e.destroyed||!e.params)return;const r=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(r){let t=r.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(r.shadowRoot?t=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(t=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())})),t&&t.remove()}},wn=(e,t)=>{if(!e.slides[t])return;const r=e.slides[t].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},yn=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const r=e.slides.length;if(!r||!t||t<0)return;t=Math.min(t,r);const n="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const r=i,a=[r-t];return a.push(...Array.from({length:t}).map((e,t)=>r+n+t)),void e.slides.forEach((t,r)=>{a.includes(t.column)&&wn(e,r)})}const a=i+n-1;if(e.params.rewind||e.params.loop)for(let n=i-t;n<=a+t;n+=1){const t=(n%r+r)%r;(t<i||t>a)&&wn(e,t)}else for(let n=Math.max(i-t,0);n<=Math.min(a+t,r-1);n+=1)n!==i&&(n>a||n<i)&&wn(e,n)};var bn={updateSize:function(){const e=this;let t,r;const n=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:n.clientWidth,r=void 0!==e.params.height&&null!==e.params.height?e.params.height:n.clientHeight,0===t&&e.isHorizontal()||0===r&&e.isVertical()||(t=t-parseInt(Qr(n,"padding-left")||0,10)-parseInt(Qr(n,"padding-right")||0,10),r=r-parseInt(Qr(n,"padding-top")||0,10)-parseInt(Qr(n,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(r)&&(r=0),Object.assign(e,{width:t,height:r,size:e.isHorizontal()?t:r}))},updateSlides:function(){const e=this;function t(t,r){return parseFloat(t.getPropertyValue(e.getDirectionLabel(r))||0)}const r=e.params,{wrapperEl:n,slidesEl:i,size:a,rtlTranslate:s,wrongRTL:o}=e,l=e.virtual&&r.virtual.enabled,d=l?e.virtual.slides.length:e.slides.length,c=$r(i,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:c.length;let p=[];const h=[],f=[];let m=r.slidesOffsetBefore;"function"==typeof m&&(m=r.slidesOffsetBefore.call(e));let g=r.slidesOffsetAfter;"function"==typeof g&&(g=r.slidesOffsetAfter.call(e));const v=e.snapGrid.length,w=e.slidesGrid.length;let y=r.spaceBetween,b=-m,_=0,S=0;if(void 0===a)return;"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*a:"string"==typeof y&&(y=parseFloat(y)),e.virtualSize=-y,c.forEach(e=>{s?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(Vr(n,"--swiper-centered-offset-before",""),Vr(n,"--swiper-centered-offset-after",""));const A=r.grid&&r.grid.rows>1&&e.grid;let T;A?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const E="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter(e=>void 0!==r.breakpoints[e].slidesPerView).length>0;for(let n=0;n<u;n+=1){let i;if(T=0,c[n]&&(i=c[n]),A&&e.grid.updateSlide(n,i,c),!c[n]||"none"!==Qr(i,"display")){if("auto"===r.slidesPerView){E&&(c[n].style[e.getDirectionLabel("width")]="");const a=getComputedStyle(i),s=i.style.transform,o=i.style.webkitTransform;if(s&&(i.style.transform="none"),o&&(i.style.webkitTransform="none"),r.roundLengths)T=e.isHorizontal()?en(i,"width"):en(i,"height");else{const e=t(a,"width"),r=t(a,"padding-left"),n=t(a,"padding-right"),s=t(a,"margin-left"),o=t(a,"margin-right"),l=a.getPropertyValue("box-sizing");if(l&&"border-box"===l)T=e+s+o;else{const{clientWidth:t,offsetWidth:a}=i;T=e+r+n+s+o+(a-t)}}s&&(i.style.transform=s),o&&(i.style.webkitTransform=o),r.roundLengths&&(T=Math.floor(T))}else T=(a-(r.slidesPerView-1)*y)/r.slidesPerView,r.roundLengths&&(T=Math.floor(T)),c[n]&&(c[n].style[e.getDirectionLabel("width")]=`${T}px`);c[n]&&(c[n].swiperSlideSize=T),f.push(T),r.centeredSlides?(b=b+T/2+_/2+y,0===_&&0!==n&&(b=b-a/2-y),0===n&&(b=b-a/2-y),Math.abs(b)<.001&&(b=0),r.roundLengths&&(b=Math.floor(b)),S%r.slidesPerGroup===0&&p.push(b),h.push(b)):(r.roundLengths&&(b=Math.floor(b)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&p.push(b),h.push(b),b=b+T+y),e.virtualSize+=T+y,_=T,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+g,s&&o&&("slide"===r.effect||"coverflow"===r.effect)&&(n.style.width=`${e.virtualSize+y}px`),r.setWrapperSize&&(n.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),A&&e.grid.updateWrapperSize(T,p),!r.centeredSlides){const t=[];for(let n=0;n<p.length;n+=1){let i=p[n];r.roundLengths&&(i=Math.floor(i)),p[n]<=e.virtualSize-a&&t.push(i)}p=t,Math.floor(e.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-a)}if(l&&r.loop){const t=f[0]+y;if(r.slidesPerGroup>1){const n=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),i=t*r.slidesPerGroup;for(let e=0;e<n;e+=1)p.push(p[p.length-1]+i)}for(let n=0;n<e.virtual.slidesBefore+e.virtual.slidesAfter;n+=1)1===r.slidesPerGroup&&p.push(p[p.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==y){const t=e.isHorizontal()&&s?"marginLeft":e.getDirectionLabel("marginRight");c.filter((e,t)=>!(r.cssMode&&!r.loop)||t!==c.length-1).forEach(e=>{e.style[t]=`${y}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let e=0;f.forEach(t=>{e+=t+(y||0)}),e-=y;const t=e>a?e-a:0;p=p.map(e=>e<=0?-m:e>t?t+g:e)}if(r.centerInsufficientSlides){let e=0;f.forEach(t=>{e+=t+(y||0)}),e-=y;const t=(r.slidesOffsetBefore||0)+(r.slidesOffsetAfter||0);if(e+t<a){const r=(a-e-t)/2;p.forEach((e,t)=>{p[t]=e-r}),h.forEach((e,t)=>{h[t]=e+r})}}if(Object.assign(e,{slides:c,snapGrid:p,slidesGrid:h,slidesSizesGrid:f}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){Vr(n,"--swiper-centered-offset-before",-p[0]+"px"),Vr(n,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],r=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+r)}if(u!==d&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==w&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||r.cssMode||"slide"!==r.effect&&"fade"!==r.effect)){const t=`${r.containerModifierClass}backface-hidden`,n=e.el.classList.contains(t);u<=r.maxBackfaceHiddenSlides?n||e.el.classList.add(t):n&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,r=[],n=t.virtual&&t.params.virtual.enabled;let i,a=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const s=e=>n?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{r.push(e)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!n)break;r.push(s(e))}else r.push(s(t.activeIndex));for(i=0;i<r.length;i+=1)if(void 0!==r[i]){const e=r[i].offsetHeight;a=e>a?e:a}(a||0===a)&&(t.wrapperEl.style.height=`${a}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,r=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=(e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop)-r-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,r=t.params,{slides:n,rtlTranslate:i,snapGrid:a}=t;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();let s=-e;i&&(s=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=r.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:"string"==typeof o&&(o=parseFloat(o));for(let e=0;e<n.length;e+=1){const l=n[e];let d=l.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(d-=n[0].swiperSlideOffset);const c=(s+(r.centeredSlides?t.minTranslate():0)-d)/(l.swiperSlideSize+o),u=(s-a[0]+(r.centeredSlides?t.minTranslate():0)-d)/(l.swiperSlideSize+o),p=-(s-d),h=p+t.slidesSizesGrid[e],f=p>=0&&p<=t.size-t.slidesSizesGrid[e],m=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),mn(l,m,r.slideVisibleClass),mn(l,f,r.slideFullyVisibleClass),l.progress=i?-c:c,l.originalProgress=i?-u:u}},updateProgress:function(e){const t=this;if(void 0===e){const r=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*r||0}const r=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:a,isEnd:s,progressLoop:o}=t;const l=a,d=s;if(0===n)i=0,a=!0,s=!0;else{i=(e-t.minTranslate())/n;const r=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1;a=r||i<=0,s=o||i>=1,r&&(i=0),o&&(i=1)}if(r.loop){const r=t.getSlideIndexByData(0),n=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[r],a=t.slidesGrid[n],s=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);o=l>=i?(l-i)/s:(l+s-a)/s,o>1&&(o-=1)}Object.assign(t,{progress:i,progressLoop:o,isBeginning:a,isEnd:s}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),s&&!d&&t.emit("reachEnd toEdge"),(l&&!a||d&&!s)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:r,slidesEl:n,activeIndex:i}=e,a=e.virtual&&r.virtual.enabled,s=e.grid&&r.grid&&r.grid.rows>1,o=e=>$r(n,`.${r.slideClass}${e}, swiper-slide${e}`)[0];let l,d,c;if(a)if(r.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${t}"]`)}else l=o(`[data-swiper-slide-index="${i}"]`);else s?(l=t.find(e=>e.column===i),c=t.find(e=>e.column===i+1),d=t.find(e=>e.column===i-1)):l=t[i];l&&(s||(c=function(e,t){const r=[];for(;e.nextElementSibling;){const n=e.nextElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!c&&(c=t[0]),d=function(e,t){const r=[];for(;e.previousElementSibling;){const n=e.previousElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}(l,`.${r.slideClass}, swiper-slide`)[0],r.loop&&0===!d&&(d=t[t.length-1]))),t.forEach(e=>{gn(e,e===l,r.slideActiveClass),gn(e,e===c,r.slideNextClass),gn(e,e===d,r.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,r=t.rtlTranslate?t.translate:-t.translate,{snapGrid:n,params:i,activeIndex:a,realIndex:s,snapIndex:o}=t;let l,d=e;const c=e=>{let r=e-t.virtual.slidesBefore;return r<0&&(r=t.virtual.slides.length+r),r>=t.virtual.slides.length&&(r-=t.virtual.slides.length),r};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:r}=e,n=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?n>=t[e]&&n<t[e+1]-(t[e+1]-t[e])/2?i=e:n>=t[e]&&n<t[e+1]&&(i=e+1):n>=t[e]&&(i=e);return r.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),n.indexOf(r)>=0)l=n.indexOf(r);else{const e=Math.min(i.slidesPerGroupSkip,d);l=e+Math.floor((d-e)/i.slidesPerGroup)}if(l>=n.length&&(l=n.length-1),d===a&&!t.params.loop)return void(l!==o&&(t.snapIndex=l,t.emit("snapIndexChange")));if(d===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const u=t.grid&&i.grid&&i.grid.rows>1;let p;if(t.virtual&&i.virtual.enabled&&i.loop)p=c(d);else if(u){const e=t.slides.find(e=>e.column===d);let r=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(r)&&(r=Math.max(t.slides.indexOf(e),0)),p=Math.floor(r/i.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):d}else p=d;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:s,realIndex:p,previousIndex:a,activeIndex:d}),t.initialized&&yn(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const r=this,n=r.params;let i=e.closest(`.${n.slideClass}, swiper-slide`);!i&&r.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${n.slideClass}, swiper-slide`)&&(i=e)});let a,s=!1;if(i)for(let e=0;e<r.slides.length;e+=1)if(r.slides[e]===i){s=!0,a=e;break}if(!i||!s)return r.clickedSlide=void 0,void(r.clickedIndex=void 0);r.clickedSlide=i,r.virtual&&r.params.virtual.enabled?r.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):r.clickedIndex=a,n.slideToClickedSlide&&void 0!==r.clickedIndex&&r.clickedIndex!==r.activeIndex&&r.slideToClickedSlide()}};var _n={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:r,translate:n,wrapperEl:i}=this;if(t.virtualTranslate)return r?-n:n;if(t.cssMode)return n;let a=Hr(i,e);return a+=this.cssOverflowAdjustment(),r&&(a=-a),a||0},setTranslate:function(e,t){const r=this,{rtlTranslate:n,params:i,wrapperEl:a,progress:s}=r;let o,l=0,d=0;r.isHorizontal()?l=n?-e:e:d=e,i.roundLengths&&(l=Math.floor(l),d=Math.floor(d)),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?l:d,i.cssMode?a[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-l:-d:i.virtualTranslate||(r.isHorizontal()?l-=r.cssOverflowAdjustment():d-=r.cssOverflowAdjustment(),a.style.transform=`translate3d(${l}px, ${d}px, 0px)`);const c=r.maxTranslate()-r.minTranslate();o=0===c?0:(e-r.minTranslate())/c,o!==s&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,r,n,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===r&&(r=!0),void 0===n&&(n=!0);const a=this,{params:s,wrapperEl:o}=a;if(a.animating&&s.preventInteractionOnTransition)return!1;const l=a.minTranslate(),d=a.maxTranslate();let c;if(c=n&&e>l?l:n&&e<d?d:e,a.updateProgress(c),s.cssMode){const e=a.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-c;else{if(!a.support.smoothScroll)return jr({swiper:a,targetPosition:-c,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(c),r&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(c),r&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,r&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}};function Sn(e){let{swiper:t,runCallbacks:r,direction:n,step:i}=e;const{activeIndex:a,previousIndex:s}=t;let o=n;o||(o=a>s?"next":a<s?"prev":"reset"),t.emit(`transition${i}`),r&&"reset"===o?t.emit(`slideResetTransition${i}`):r&&a!==s&&(t.emit(`slideChangeTransition${i}`),"next"===o?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`))}var An={slideTo:function(e,t,r,n,i){void 0===e&&(e=0),void 0===r&&(r=!0),"string"==typeof e&&(e=parseInt(e,10));const a=this;let s=e;s<0&&(s=0);const{params:o,snapGrid:l,slidesGrid:d,previousIndex:c,activeIndex:u,rtlTranslate:p,wrapperEl:h,enabled:f}=a;if(!f&&!n&&!i||a.destroyed||a.animating&&o.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);const m=Math.min(a.params.slidesPerGroupSkip,s);let g=m+Math.floor((s-m)/a.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(o.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*v),r=Math.floor(100*d[e]),n=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=r&&t<n-(n-r)/2?s=e:t>=r&&t<n&&(s=e+1):t>=r&&(s=e)}if(a.initialized&&s!==u){if(!a.allowSlideNext&&(p?v>a.translate&&v>a.minTranslate():v<a.translate&&v<a.minTranslate()))return!1;if(!a.allowSlidePrev&&v>a.translate&&v>a.maxTranslate()&&(u||0)!==s)return!1}let w;s!==(c||0)&&r&&a.emit("beforeSlideChangeStart"),a.updateProgress(v),w=s>u?"next":s<u?"prev":"reset";const y=a.virtual&&a.params.virtual.enabled;if(!(y&&i)&&(p&&-v===a.translate||!p&&v===a.translate))return a.updateActiveIndex(s),o.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==o.effect&&a.setTranslate(v),"reset"!==w&&(a.transitionStart(r,w),a.transitionEnd(r,w)),!1;if(o.cssMode){const e=a.isHorizontal(),r=p?v:-v;if(0===t)y&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),y&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[e?"scrollLeft":"scrollTop"]=r})):h[e?"scrollLeft":"scrollTop"]=r,y&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return jr({swiper:a,targetPosition:r,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:r,behavior:"smooth"})}return!0}const b=hn().isSafari;return y&&!i&&b&&a.isElement&&a.virtual.update(!1,!1,s),a.setTransition(t),a.setTranslate(v),a.updateActiveIndex(s),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,n),a.transitionStart(r,w),0===t?a.transitionEnd(r,w):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(r,w))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,r,n){if(void 0===e&&(e=0),void 0===r&&(r=!0),"string"==typeof e){e=parseInt(e,10)}const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const a=i.grid&&i.params.grid&&i.params.grid.rows>1;let s=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)s+=i.virtual.slidesBefore;else{let e;if(a){const t=s*i.params.grid.rows;e=i.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=i.getSlideIndexByData(s);const t=a?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:r}=i.params;let o=i.params.slidesPerView;"auto"===o?o=i.slidesPerViewDynamic():(o=Math.ceil(parseFloat(i.params.slidesPerView,10)),r&&o%2==0&&(o+=1));let l=t-e<o;if(r&&(l=l||e<Math.ceil(o/2)),n&&r&&"auto"!==i.params.slidesPerView&&!a&&(l=!1),l){const n=r?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?i.realIndex:void 0})}if(a){const e=s*i.params.grid.rows;s=i.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else s=i.getSlideIndexByData(s)}return requestAnimationFrame(()=>{i.slideTo(s,t,r,n)}),i},slideNext:function(e,t,r){void 0===t&&(t=!0);const n=this,{enabled:i,params:a,animating:s}=n;if(!i||n.destroyed)return n;void 0===e&&(e=n.params.speed);let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<a.slidesPerGroupSkip?1:o,d=n.virtual&&a.virtual.enabled;if(a.loop){if(s&&!d&&a.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+l,e,t,r)}),!0}return a.rewind&&n.isEnd?n.slideTo(0,e,t,r):n.slideTo(n.activeIndex+l,e,t,r)},slidePrev:function(e,t,r){void 0===t&&(t=!0);const n=this,{params:i,snapGrid:a,slidesGrid:s,rtlTranslate:o,enabled:l,animating:d}=n;if(!l||n.destroyed)return n;void 0===e&&(e=n.params.speed);const c=n.virtual&&i.virtual.enabled;if(i.loop){if(d&&!c&&i.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=u(o?n.translate:-n.translate),h=a.map(e=>u(e)),f=i.freeMode&&i.freeMode.enabled;let m=a[h.indexOf(p)-1];if(void 0===m&&(i.cssMode||f)){let e;a.forEach((t,r)=>{p>=t&&(e=r)}),void 0!==e&&(m=f?a[e]:a[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=s.indexOf(m),g<0&&(g=n.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=g-n.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&n.isBeginning){const i=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(i,e,t,r)}return i.loop&&0===n.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{n.slideTo(g,e,t,r)}),!0):n.slideTo(g,e,t,r)},slideReset:function(e,t,r){void 0===t&&(t=!0);const n=this;if(!n.destroyed)return void 0===e&&(e=n.params.speed),n.slideTo(n.activeIndex,e,t,r)},slideToClosest:function(e,t,r,n){void 0===t&&(t=!0),void 0===n&&(n=.5);const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let a=i.activeIndex;const s=Math.min(i.params.slidesPerGroupSkip,a),o=s+Math.floor((a-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[o]){const e=i.snapGrid[o];l-e>(i.snapGrid[o+1]-e)*n&&(a+=i.params.slidesPerGroup)}else{const e=i.snapGrid[o-1];l-e<=(i.snapGrid[o]-e)*n&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,r)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:r}=e,n="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,a=e.clickedIndex;const s=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-n/2||a>e.slides.length-e.loopedSlides+n/2?(e.loopFix(),a=e.getSlideIndex($r(r,`${s}[data-swiper-slide-index="${i}"]`)[0]),Br(()=>{e.slideTo(a)})):e.slideTo(a):a>e.slides.length-n?(e.loopFix(),a=e.getSlideIndex($r(r,`${s}[data-swiper-slide-index="${i}"]`)[0]),Br(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}};var Tn={loopCreate:function(e,t){const r=this,{params:n,slidesEl:i}=r;if(!n.loop||r.virtual&&r.params.virtual.enabled)return;const a=()=>{$r(i,`.${n.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},s=r.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(s?n.grid.rows:1),l=r.slides.length%o!==0,d=s&&r.slides.length%n.grid.rows!==0,c=e=>{for(let t=0;t<e;t+=1){const e=r.isElement?Xr("swiper-slide",[n.slideBlankClass]):Xr("div",[n.slideClass,n.slideBlankClass]);r.slidesEl.append(e)}};if(l){if(n.loopAddBlankSlides){c(o-r.slides.length%o),r.recalcSlides(),r.updateSlides()}else Zr("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(d){if(n.loopAddBlankSlides){c(n.grid.rows-r.slides.length%n.grid.rows),r.recalcSlides(),r.updateSlides()}else Zr("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();r.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:r=!0,direction:n,setTranslate:i,activeSlideIndex:a,initial:s,byController:o,byMousewheel:l}=void 0===e?{}:e;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:p,slidesEl:h,params:f}=d,{centeredSlides:m,initialSlide:g}=f;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&f.virtual.enabled)return r&&(f.centeredSlides||0!==d.snapIndex?f.centeredSlides&&d.snapIndex<f.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0):d.slideTo(d.virtual.slides.length,0,!1,!0)),d.allowSlidePrev=u,d.allowSlideNext=p,void d.emit("loopFix");let v=f.slidesPerView;"auto"===v?v=d.slidesPerViewDynamic():(v=Math.ceil(parseFloat(f.slidesPerView,10)),m&&v%2==0&&(v+=1));const w=f.slidesPerGroupAuto?v:f.slidesPerGroup;let y=w;y%w!==0&&(y+=w-y%w),y+=f.loopAdditionalSlides,d.loopedSlides=y;const b=d.grid&&f.grid&&f.grid.rows>1;c.length<v+y||"cards"===d.params.effect&&c.length<v+2*y?Zr("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&"row"===f.grid.fill&&Zr("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const _=[],S=[],A=b?Math.ceil(c.length/f.grid.rows):c.length,T=s&&A-g<v&&!m;let E=T?g:d.activeIndex;void 0===a?a=d.getSlideIndex(c.find(e=>e.classList.contains(f.slideActiveClass))):E=a;const x="next"===n||!n,C="prev"===n||!n;let M=0,k=0;const D=(b?c[a].column:a)+(m&&void 0===i?-v/2+.5:0);if(D<y){M=Math.max(y-D,w);for(let e=0;e<y-D;e+=1){const t=e-Math.floor(e/A)*A;if(b){const e=A-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&_.push(t)}else _.push(A-t-1)}}else if(D+v>A-y){k=Math.max(D-(A-2*y),w),T&&(k=Math.max(k,v-A+g+1));for(let e=0;e<k;e+=1){const t=e-Math.floor(e/A)*A;b?c.forEach((e,r)=>{e.column===t&&S.push(r)}):S.push(t)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),"cards"===d.params.effect&&c.length<v+2*y&&(S.includes(a)&&S.splice(S.indexOf(a),1),_.includes(a)&&_.splice(_.indexOf(a),1)),C&&_.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),x&&S.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.append(c[e]),c[e].swiperLoopMoveDOM=!1}),d.recalcSlides(),"auto"===f.slidesPerView?d.updateSlides():b&&(_.length>0&&C||S.length>0&&x)&&d.slides.forEach((e,t)=>{d.grid.updateSlide(t,e,d.slides)}),f.watchSlidesProgress&&d.updateSlidesOffset(),r)if(_.length>0&&C){if(void 0===t){const e=d.slidesGrid[E],t=d.slidesGrid[E+M]-e;l?d.setTranslate(d.translate-t):(d.slideTo(E+Math.ceil(M),0,!1,!0),i&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else if(i){const e=b?_.length/f.grid.rows:_.length;d.slideTo(d.activeIndex+e,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(S.length>0&&x)if(void 0===t){const e=d.slidesGrid[E],t=d.slidesGrid[E-k]-e;l?d.setTranslate(d.translate-t):(d.slideTo(E-k,0,!1,!0),i&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else{const e=b?S.length/f.grid.rows:S.length;d.slideTo(d.activeIndex-e,0,!1,!0)}if(d.allowSlidePrev=u,d.allowSlideNext=p,d.controller&&d.controller.control&&!o){const e={slideRealIndex:t,direction:n,setTranslate:i,activeSlideIndex:a,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===f.slidesPerView&&r})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...e,slideTo:d.controller.control.params.slidesPerView===f.slidesPerView&&r})}d.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:r}=e;if(!t.loop||!r||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const n=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;n[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),n.forEach(e=>{r.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function En(e,t,r){const n=zr(),{params:i}=e,a=i.edgeSwipeDetection,s=i.edgeSwipeThreshold;return!a||!(r<=s||r>=n.innerWidth-s)||"prevent"===a&&(t.preventDefault(),!0)}function xn(e){const t=this,r=Fr();let n=e;n.originalEvent&&(n=n.originalEvent);const i=t.touchEventsData;if("pointerdown"===n.type){if(null!==i.pointerId&&i.pointerId!==n.pointerId)return;i.pointerId=n.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(i.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void En(t,n,n.targetTouches[0].pageX);const{params:a,touches:s,enabled:o}=t;if(!o)return;if(!a.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let l=n.target;if("wrapper"===a.touchEventsTarget&&!function(e,t){const r=zr();let n=t.contains(e);!n&&r.HTMLSlotElement&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||(n=function(e,t){const r=[t];for(;r.length>0;){const t=r.shift();if(e===t)return!0;r.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t)));return n}(l,t.wrapperEl))return;if("which"in n&&3===n.which)return;if("button"in n&&n.button>0)return;if(i.isTouched&&i.isMoved)return;const d=!!a.noSwipingClass&&""!==a.noSwipingClass,c=n.composedPath?n.composedPath():n.path;d&&n.target&&n.target.shadowRoot&&c&&(l=c[0]);const u=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,p=!(!n.target||!n.target.shadowRoot);if(a.noSwiping&&(p?function(e,t){return void 0===t&&(t=this),function t(r){if(!r||r===Fr()||r===zr())return null;r.assignedSlot&&(r=r.assignedSlot);const n=r.closest(e);return n||r.getRootNode?n||t(r.getRootNode().host):null}(t)}(u,l):l.closest(u)))return void(t.allowClick=!0);if(a.swipeHandler&&!l.closest(a.swipeHandler))return;s.currentX=n.pageX,s.currentY=n.pageY;const h=s.currentX,f=s.currentY;if(!En(t,n,h))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=h,s.startY=f,i.touchStartTime=qr(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1);let m=!0;l.matches(i.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(i.isTouched=!1)),r.activeElement&&r.activeElement.matches(i.focusableElements)&&r.activeElement!==l&&("mouse"===n.pointerType||"mouse"!==n.pointerType&&!l.matches(i.focusableElements))&&r.activeElement.blur();const g=m&&t.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!g||l.isContentEditable||n.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}function Cn(e){const t=Fr(),r=this,n=r.touchEventsData,{params:i,touches:a,rtlTranslate:s,enabled:o}=r;if(!o)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let l,d=e;if(d.originalEvent&&(d=d.originalEvent),"pointermove"===d.type){if(null!==n.touchId)return;if(d.pointerId!==n.pointerId)return}if("touchmove"===d.type){if(l=[...d.changedTouches].find(e=>e.identifier===n.touchId),!l||l.identifier!==n.touchId)return}else l=d;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",d));const c=l.pageX,u=l.pageY;if(d.preventedByNestedSwiper)return a.startX=c,void(a.startY=u);if(!r.allowTouchMove)return d.target.matches(n.focusableElements)||(r.allowClick=!1),void(n.isTouched&&(Object.assign(a,{startX:c,startY:u,currentX:c,currentY:u}),n.touchStartTime=qr()));if(i.touchReleaseOnEdges&&!i.loop)if(r.isVertical()){if(u<a.startY&&r.translate<=r.maxTranslate()||u>a.startY&&r.translate>=r.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else{if(s&&(c>a.startX&&-r.translate<=r.maxTranslate()||c<a.startX&&-r.translate>=r.minTranslate()))return;if(!s&&(c<a.startX&&r.translate<=r.maxTranslate()||c>a.startX&&r.translate>=r.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(n.focusableElements)&&t.activeElement!==d.target&&"mouse"!==d.pointerType&&t.activeElement.blur(),t.activeElement&&d.target===t.activeElement&&d.target.matches(n.focusableElements))return n.isMoved=!0,void(r.allowClick=!1);n.allowTouchCallbacks&&r.emit("touchMove",d),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=c,a.currentY=u;const p=a.currentX-a.startX,h=a.currentY-a.startY;if(r.params.threshold&&Math.sqrt(p**2+h**2)<r.params.threshold)return;if(void 0===n.isScrolling){let e;r.isHorizontal()&&a.currentY===a.startY||r.isVertical()&&a.currentX===a.startX?n.isScrolling=!1:p*p+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,n.isScrolling=r.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",d),void 0===n.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(n.startMoving=!0)),n.isScrolling||"touchmove"===d.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;r.allowClick=!1,!i.cssMode&&d.cancelable&&d.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&d.stopPropagation();let f=r.isHorizontal()?p:h,m=r.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;i.oneWayMovement&&(f=Math.abs(f)*(s?1:-1),m=Math.abs(m)*(s?1:-1)),a.diff=f,f*=i.touchRatio,s&&(f=-f,m=-m);const g=r.touchesDirection;r.swipeDirection=f>0?"prev":"next",r.touchesDirection=m>0?"prev":"next";const v=r.params.loop&&!i.cssMode,w="next"===r.touchesDirection&&r.allowSlideNext||"prev"===r.touchesDirection&&r.allowSlidePrev;if(!n.isMoved){if(v&&w&&r.loopFix({direction:r.swipeDirection}),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!i.grabCursor||!0!==r.allowSlideNext&&!0!==r.allowSlidePrev||r.setGrabCursor(!0),r.emit("sliderFirstMove",d)}if((new Date).getTime(),!1!==i._loopSwapReset&&n.isMoved&&n.allowThresholdMove&&g!==r.touchesDirection&&v&&w&&Math.abs(f)>=1)return Object.assign(a,{startX:c,startY:u,currentX:c,currentY:u,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);r.emit("sliderMove",d),n.isMoved=!0,n.currentTranslate=f+n.startTranslate;let y=!0,b=i.resistanceRatio;if(i.touchReleaseOnEdges&&(b=0),f>0?(v&&w&&n.allowThresholdMove&&n.currentTranslate>(i.centeredSlides?r.minTranslate()-r.slidesSizesGrid[r.activeIndex+1]-("auto"!==i.slidesPerView&&r.slides.length-i.slidesPerView>=2?r.slidesSizesGrid[r.activeIndex+1]+r.params.spaceBetween:0)-r.params.spaceBetween:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>r.minTranslate()&&(y=!1,i.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+f)**b))):f<0&&(v&&w&&n.allowThresholdMove&&n.currentTranslate<(i.centeredSlides?r.maxTranslate()+r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween+("auto"!==i.slidesPerView&&r.slides.length-i.slidesPerView>=2?r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween:0):r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-("auto"===i.slidesPerView?r.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),n.currentTranslate<r.maxTranslate()&&(y=!1,i.resistance&&(n.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-n.startTranslate-f)**b))),y&&(d.preventedByNestedSwiper=!0),!r.allowSlideNext&&"next"===r.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&"prev"===r.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),r.allowSlidePrev||r.allowSlideNext||(n.currentTranslate=n.startTranslate),i.threshold>0){if(!(Math.abs(f)>i.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,n.currentTranslate=n.startTranslate,void(a.diff=r.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&r.freeMode||i.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function Mn(e){const t=this,r=t.touchEventsData;let n,i=e;i.originalEvent&&(i=i.originalEvent);if("touchend"===i.type||"touchcancel"===i.type){if(n=[...i.changedTouches].find(e=>e.identifier===r.touchId),!n||n.identifier!==r.touchId)return}else{if(null!==r.touchId)return;if(i.pointerId!==r.pointerId)return;n=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)){if(!(["pointercancel","contextmenu"].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return}r.pointerId=null,r.touchId=null;const{params:a,touches:s,rtlTranslate:o,slidesGrid:l,enabled:d}=t;if(!d)return;if(!a.simulateTouch&&"mouse"===i.pointerType)return;if(r.allowTouchCallbacks&&t.emit("touchEnd",i),r.allowTouchCallbacks=!1,!r.isTouched)return r.isMoved&&a.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,void(r.startMoving=!1);a.grabCursor&&r.isMoved&&r.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=qr(),u=c-r.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),u<300&&c-r.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(r.lastClickTime=qr(),Br(()=>{t.destroyed||(t.allowClick=!0)}),!r.isTouched||!r.isMoved||!t.swipeDirection||0===s.diff&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset)return r.isTouched=!1,r.isMoved=!1,void(r.startMoving=!1);let p;if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,p=a.followFinger?o?t.translate:-t.translate:-r.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const h=p>=-t.maxTranslate()&&!t.params.loop;let f=0,m=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){const t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==l[e+t]?(h||p>=l[e]&&p<l[e+t])&&(f=e,m=l[e+t]-l[e]):(h||p>=l[e])&&(f=e,m=l[l.length-1]-l[l.length-2])}let g=null,v=null;a.rewind&&(t.isBeginning?v=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const w=(p-l[f])/m,y=f<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(u>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(w>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:f+y):t.slideTo(f)),"prev"===t.swipeDirection&&(w>1-a.longSwipesRatio?t.slideTo(f+y):null!==v&&w<0&&Math.abs(w)>a.longSwipesRatio?t.slideTo(v):t.slideTo(f))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(f+y):t.slideTo(f):("next"===t.swipeDirection&&t.slideTo(null!==g?g:f+y),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:f))}}function kn(){const e=this,{params:t,el:r}=e;if(r&&0===r.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:i,snapGrid:a}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=s&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=n,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function Dn(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function On(){const e=this,{wrapperEl:t,rtlTranslate:r,enabled:n}=e;if(!n)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const a=e.maxTranslate()-e.minTranslate();i=0===a?0:(e.translate-e.minTranslate())/a,i!==e.progress&&e.updateProgress(r?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Ln(e){const t=this;vn(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function Rn(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Pn=(e,t)=>{const r=Fr(),{params:n,el:i,wrapperEl:a,device:s}=e,o=!!n.nested,l="on"===t?"addEventListener":"removeEventListener",d=t;i&&"string"!=typeof i&&(r[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),r[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),r[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),r[l]("touchend",e.onTouchEnd,{passive:!0}),r[l]("pointerup",e.onTouchEnd,{passive:!0}),r[l]("pointercancel",e.onTouchEnd,{passive:!0}),r[l]("touchcancel",e.onTouchEnd,{passive:!0}),r[l]("pointerout",e.onTouchEnd,{passive:!0}),r[l]("pointerleave",e.onTouchEnd,{passive:!0}),r[l]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[l]("click",e.onClick,!0),n.cssMode&&a[l]("scroll",e.onScroll),n.updateOnWindowResize?e[d](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",kn,!0):e[d]("observerUpdate",kn,!0),i[l]("load",e.onLoad,{capture:!0}))};const Nn=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var In={addClasses:function(){const e=this,{classNames:t,params:r,rtl:n,el:i,device:a}=e,s=function(e,t){const r=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(n=>{e[n]&&r.push(t+n)}):"string"==typeof e&&r.push(t+e)}),r}(["initialized",r.direction,{"free-mode":e.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&"column"===r.grid.fill},{android:a.android},{ios:a.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...s),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}};var Fn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Yn(e,t){return function(r){void 0===r&&(r={});const n=Object.keys(r)[0],i=r[n];"object"==typeof i&&null!==i?(!0===e[n]&&(e[n]={enabled:!0}),"navigation"===n&&e[n]&&e[n].enabled&&!e[n].prevEl&&!e[n].nextEl&&(e[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&e[n]&&e[n].enabled&&!e[n].el&&(e[n].auto=!0),n in e&&"enabled"in i?("object"!=typeof e[n]||"enabled"in e[n]||(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),Ur(t,r)):Ur(t,r)):Ur(t,r)}}const zn={eventsEmitter:fn,update:bn,translate:_n,transition:{setTransition:function(e,t){const r=this;r.params.cssMode||(r.wrapperEl.style.transitionDuration=`${e}ms`,r.wrapperEl.style.transitionDelay=0===e?"0ms":""),r.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const r=this,{params:n}=r;n.cssMode||(n.autoHeight&&r.updateAutoHeight(),Sn({swiper:r,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const r=this,{params:n}=r;r.animating=!1,n.cssMode||(r.setTransition(0),Sn({swiper:r,runCallbacks:e,direction:t,step:"End"}))}},slide:An,loop:Tn,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const r="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=xn.bind(e),e.onTouchMove=Cn.bind(e),e.onTouchEnd=Mn.bind(e),e.onDocumentTouchStart=Rn.bind(e),t.cssMode&&(e.onScroll=On.bind(e)),e.onClick=Dn.bind(e),e.onLoad=Ln.bind(e),Pn(e,"on")},detachEvents:function(){Pn(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:r,params:n,el:i}=e,a=n.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const s=Fr(),o="window"!==n.breakpointsBase&&n.breakpointsBase?"container":n.breakpointsBase,l=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?e.el:s.querySelector(n.breakpointsBase),d=e.getBreakpoint(a,o,l);if(!d||e.currentBreakpoint===d)return;const c=(d in a?a[d]:void 0)||e.originalParams,u=Nn(e,n),p=Nn(e,c),h=e.params.grabCursor,f=c.grabCursor,m=n.enabled;u&&!p?(i.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&p&&(i.classList.add(`${n.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===n.grid.fill)&&i.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!f?e.unsetGrabCursor():!h&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===c[t])return;const r=n[t]&&n[t].enabled,i=c[t]&&c[t].enabled;r&&!i&&e[t].disable(),!r&&i&&e[t].enable()});const g=c.direction&&c.direction!==n.direction,v=n.loop&&(c.slidesPerView!==n.slidesPerView||g),w=n.loop;g&&r&&e.changeDirection(),Ur(e.params,c);const y=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!y?e.disable():!m&&y&&e.enable(),e.currentBreakpoint=d,e.emit("_beforeBreakpoint",c),r&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!w&&b?(e.loopCreate(t),e.updateSlides()):w&&!b&&e.loopDestroy()),e.emit("breakpoint",c)},getBreakpoint:function(e,t,r){if(void 0===t&&(t="window"),!e||"container"===t&&!r)return;let n=!1;const i=zr(),a="window"===t?i.innerHeight:r.clientHeight,s=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:a*t,point:e}}return{value:e,point:e}});s.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<s.length;e+=1){const{point:a,value:o}=s[e];"window"===t?i.matchMedia(`(min-width: ${o}px)`).matches&&(n=a):o<=r.clientWidth&&(n=a)}return n||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:r}=e,{slidesOffsetBefore:n}=r;if(n){const t=e.slides.length-1,r=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*n;e.isLocked=e.size>r}else e.isLocked=1===e.snapGrid.length;!0===r.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===r.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:In},Bn={};let qn=class e{constructor(){let t,r;for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?r=i[0]:[t,r]=i,r||(r={}),r=Ur({},r),t&&!r.el&&(r.el=t);const s=Fr();if(r.el&&"string"==typeof r.el&&s.querySelectorAll(r.el).length>1){const t=[];return s.querySelectorAll(r.el).forEach(n=>{const i=Ur({},r,{el:n});t.push(new e(i))}),t}const o=this;o.__swiper__=!0,o.support=un(),o.device=pn({userAgent:r.userAgent}),o.browser=hn(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],r.modules&&Array.isArray(r.modules)&&o.modules.push(...r.modules);const l={};o.modules.forEach(e=>{e({params:r,swiper:o,extendParams:Yn(r,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const d=Ur({},Fn,l);return o.params=Ur({},d,Bn,r),o.originalParams=Ur({},o.params),o.passedParams=Ur({},r),o.params&&o.params.on&&Object.keys(o.params.on).forEach(e=>{o.on(e,o.params.on[e])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:r}=this,n=Kr($r(t,`.${r.slideClass}, swiper-slide`)[0]);return Kr(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=$r(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const r=this;e=Math.min(Math.max(e,0),1);const n=r.minTranslate(),i=(r.maxTranslate()-n)*e+n;r.translateTo(i,void 0===t?0:t),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(r=>{const n=e.getSlideClasses(r);t.push({slideEl:r,classNames:n}),e.emit("_slideClass",r,n)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:r,slides:n,slidesGrid:i,slidesSizesGrid:a,size:s,activeIndex:o}=this;let l=1;if("number"==typeof r.slidesPerView)return r.slidesPerView;if(r.centeredSlides){let e,t=n[o]?Math.ceil(n[o].swiperSlideSize):0;for(let r=o+1;r<n.length;r+=1)n[r]&&!e&&(t+=Math.ceil(n[r].swiperSlideSize),l+=1,t>s&&(e=!0));for(let r=o-1;r>=0;r-=1)n[r]&&!e&&(t+=n[r].swiperSlideSize,l+=1,t>s&&(e=!0))}else if("current"===e)for(let e=o+1;e<n.length;e+=1){(t?i[e]+a[e]-i[o]<s:i[e]-i[o]<s)&&(l+=1)}else for(let e=o-1;e>=0;e-=1){i[o]-i[e]<s&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:r}=e;function n(){const t=e.rtlTranslate?-1*e.translate:e.translate,r=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(r.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&vn(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),r.freeMode&&r.freeMode.enabled&&!r.cssMode)n(),r.autoHeight&&e.updateAutoHeight();else{if(("auto"===r.slidesPerView||r.slidesPerView>1)&&e.isEnd&&!r.centeredSlides){const t=e.virtual&&r.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||n()}r.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const r=this,n=r.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(r.el.classList.remove(`${r.params.containerModifierClass}${n}`),r.el.classList.add(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),r.emit("changeDirection"),t&&r.update()),r}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let r=e||t.params.el;if("string"==typeof r&&(r=document.querySelector(r)),!r)return!1;r.swiper=t,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>{if(r&&r.shadowRoot&&r.shadowRoot.querySelector){return r.shadowRoot.querySelector(n())}return $r(r,n())[0]})();return!i&&t.params.createElements&&(i=Xr("div",t.params.wrapperClass),r.append(i),$r(r,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:r,wrapperEl:i,slidesEl:t.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:i,hostEl:t.isElement?r.parentNode.host:r,mounted:!0,rtl:"rtl"===r.dir.toLowerCase()||"rtl"===Qr(r,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===Qr(r,"direction")),wrongRTL:"-webkit-box"===Qr(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const r=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&r.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(e=>{e.complete?vn(t,e):e.addEventListener("load",e=>{vn(t,e.target)})}),yn(t),t.initialized=!0,yn(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const r=this,{params:n,el:i,wrapperEl:a,slides:s}=r;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),n.loop&&r.loopDestroy(),t&&(r.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),a&&a.removeAttribute("style"),s&&s.length&&s.forEach(e=>{e.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(e=>{r.off(e)}),!1!==e&&(r.el&&"string"!=typeof r.el&&(r.el.swiper=null),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(r)),r.destroyed=!0),null}static extendDefaults(e){Ur(Bn,e)}static get extendedDefaults(){return Bn}static get defaults(){return Fn}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);const r=e.prototype.__modules__;"function"==typeof t&&r.indexOf(t)<0&&r.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>e.installModule(t)),e):(e.installModule(t),e)}};Object.keys(zn).forEach(e=>{Object.keys(zn[e]).forEach(t=>{qn.prototype[t]=zn[e][t]})}),qn.use([function(e){let{swiper:t,on:r,emit:n}=e;const i=zr();let a=null,s=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(n("beforeResize"),n("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&n("orientationchange")};r("init",()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(a=new ResizeObserver(e=>{s=i.requestAnimationFrame(()=>{const{width:r,height:n}=t;let i=r,a=n;e.forEach(e=>{let{contentBoxSize:r,contentRect:n,target:s}=e;s&&s!==t.el||(i=n?n.width:(r[0]||r).inlineSize,a=n?n.height:(r[0]||r).blockSize)}),i===r&&a===n||o()})}),a.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",l))}),r("destroy",()=>{s&&i.cancelAnimationFrame(s),a&&a.unobserve&&t.el&&(a.unobserve(t.el),a=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",l)})},function(e){let{swiper:t,extendParams:r,on:n,emit:i}=e;const a=[],s=zr(),o=function(e,r){void 0===r&&(r={});const n=new(s.MutationObserver||s.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);const r=function(){i("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(r):s.setTimeout(r,0)});n.observe(e,{attributes:void 0===r.attributes||r.attributes,childList:t.isElement||(void 0===r.childList||r).childList,characterData:void 0===r.characterData||r.characterData}),a.push(n)};r({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=Jr(t.hostEl);for(let t=0;t<e.length;t+=1)o(e[t])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}}),n("destroy",()=>{a.forEach(e=>{e.disconnect()}),a.splice(0,a.length)})}]);const Hn=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Gn(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function Wn(e,t){const r=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>r.indexOf(e)<0).forEach(r=>{void 0===e[r]?e[r]=t[r]:Gn(t[r])&&Gn(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:Wn(e[r],t[r]):e[r]=t[r]})}function Un(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function Vn(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function jn(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function $n(e){void 0===e&&(e="");const t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),r=[];return t.forEach(e=>{r.indexOf(e)<0&&r.push(e)}),r.join(" ")}function Zn(e){return void 0===e&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xn.apply(this,arguments)}function Qn(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Kn(e){const t=[];return n.Children.toArray(e).forEach(e=>{Qn(e)?t.push(e):e.props&&e.props.children&&Kn(e.props.children).forEach(e=>t.push(e))}),t}function Jn(e){const t=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(e).forEach(e=>{if(Qn(e))t.push(e);else if(e.props&&e.props.slot&&r[e.props.slot])r[e.props.slot].push(e);else if(e.props&&e.props.children){const n=Kn(e.props.children);n.length>0?n.forEach(e=>t.push(e)):r["container-end"].push(e)}else r["container-end"].push(e)}),{slides:t,slots:r}}function ei(e,t){return"undefined"==typeof window?i(e,t):p(e,t)}const ti=u(null),ri=u(null),ni=c(function(e,t){let{className:r,tag:a="div",wrapperTag:o="div",children:d,onSwiper:c,...u}=void 0===e?{}:e,p=!1;const[h,f]=s("swiper"),[m,g]=s(null),[v,w]=s(!1),y=l(!1),b=l(null),_=l(null),S=l(null),A=l(null),T=l(null),E=l(null),x=l(null),C=l(null),{params:M,passedParams:k,rest:D,events:O}=function(e,t){void 0===e&&(e={}),void 0===t&&(t=!0);const r={on:{}},n={},i={};Wn(r,Fn),r._emitClasses=!0,r.init=!1;const a={},s=Hn.map(e=>e.replace(/_/,"")),o=Object.assign({},e);return Object.keys(o).forEach(o=>{void 0!==e[o]&&(s.indexOf(o)>=0?Gn(e[o])?(r[o]={},i[o]={},Wn(r[o],e[o]),Wn(i[o],e[o])):(r[o]=e[o],i[o]=e[o]):0===o.search(/on[A-Z]/)&&"function"==typeof e[o]?t?n[`${o[2].toLowerCase()}${o.substr(3)}`]=e[o]:r.on[`${o[2].toLowerCase()}${o.substr(3)}`]=e[o]:a[o]=e[o])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===r[e]&&(r[e]={}),!1===r[e]&&delete r[e]}),{params:r,passedParams:i,rest:a,events:n}}(u),{slides:L,slots:R}=Jn(d),P=()=>{w(!v)};Object.assign(M.on,{_containerClasses(e,t){f(t)}});const N=()=>{Object.assign(M.on,O),p=!0;const e={...M};if(delete e.wrapperClass,_.current=new qn(e),_.current.virtual&&_.current.params.virtual.enabled){_.current.virtual.slides=L;const e={cache:!1,slides:L,renderExternal:g,renderExternalUpdate:!1};Wn(_.current.params.virtual,e),Wn(_.current.originalParams.virtual,e)}};b.current||N(),_.current&&_.current.on("_beforeBreakpoint",P);return i(()=>()=>{_.current&&_.current.off("_beforeBreakpoint",P)}),i(()=>{!y.current&&_.current&&(_.current.emitSlidesClasses(),y.current=!0)}),ei(()=>{if(t&&(t.current=b.current),b.current)return _.current.destroyed&&N(),function(e,t){let{el:r,nextEl:n,prevEl:i,paginationEl:a,scrollbarEl:s,swiper:o}=e;Un(t)&&n&&i&&(o.params.navigation.nextEl=n,o.originalParams.navigation.nextEl=n,o.params.navigation.prevEl=i,o.originalParams.navigation.prevEl=i),Vn(t)&&a&&(o.params.pagination.el=a,o.originalParams.pagination.el=a),jn(t)&&s&&(o.params.scrollbar.el=s,o.originalParams.scrollbar.el=s),o.init(r)}({el:b.current,nextEl:T.current,prevEl:E.current,paginationEl:x.current,scrollbarEl:C.current,swiper:_.current},M),c&&!_.current.destroyed&&c(_.current),()=>{_.current&&!_.current.destroyed&&_.current.destroy(!0,!1)}},[]),ei(()=>{!p&&O&&_.current&&Object.keys(O).forEach(e=>{_.current.on(e,O[e])});const e=function(e,t,r,n,i){const a=[];if(!t)return a;const s=e=>{a.indexOf(e)<0&&a.push(e)};if(r&&n){const e=n.map(i),t=r.map(i);e.join("")!==t.join("")&&s("children"),n.length!==r.length&&s("children")}return Hn.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(r=>{if(r in e&&r in t)if(Gn(e[r])&&Gn(t[r])){const n=Object.keys(e[r]),i=Object.keys(t[r]);n.length!==i.length?s(r):(n.forEach(n=>{e[r][n]!==t[r][n]&&s(r)}),i.forEach(n=>{e[r][n]!==t[r][n]&&s(r)}))}else e[r]!==t[r]&&s(r)}),a}(k,S.current,L,A.current,e=>e.key);return S.current=k,A.current=L,e.length&&_.current&&!_.current.destroyed&&function(e){let{swiper:t,slides:r,passedParams:n,changedParams:i,nextEl:a,prevEl:s,scrollbarEl:o,paginationEl:l}=e;const d=i.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:c,pagination:u,navigation:p,scrollbar:h,virtual:f,thumbs:m}=t;let g,v,w,y,b,_,S,A;i.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(g=!0),i.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(v=!0),i.includes("pagination")&&n.pagination&&(n.pagination.el||l)&&(c.pagination||!1===c.pagination)&&u&&!u.el&&(w=!0),i.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(c.scrollbar||!1===c.scrollbar)&&h&&!h.el&&(y=!0),i.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||a)&&(c.navigation||!1===c.navigation)&&p&&!p.prevEl&&!p.nextEl&&(b=!0);const T=e=>{t[e]&&(t[e].destroy(),"navigation"===e?(t.isElement&&(t[e].prevEl.remove(),t[e].nextEl.remove()),c[e].prevEl=void 0,c[e].nextEl=void 0,t[e].prevEl=void 0,t[e].nextEl=void 0):(t.isElement&&t[e].el.remove(),c[e].el=void 0,t[e].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!n.loop?_=!0:!c.loop&&n.loop?S=!0:A=!0),d.forEach(e=>{if(Gn(c[e])&&Gn(n[e]))Object.assign(c[e],n[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in n[e])||n[e].enabled||T(e);else{const t=n[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?c[e]=n[e]:!1===t&&T(e)}}),d.includes("controller")&&!v&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&r&&f&&c.virtual.enabled?(f.slides=r,f.update(!0)):i.includes("virtual")&&f&&c.virtual.enabled&&(r&&(f.slides=r),f.update(!0)),i.includes("children")&&r&&c.loop&&(A=!0),g&&m.init()&&m.update(!0);v&&(t.controller.control=c.controller.control),w&&(!t.isElement||l&&"string"!=typeof l||(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(c.pagination.el=l),u.init(),u.render(),u.update()),y&&(!t.isElement||o&&"string"!=typeof o||(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),t.el.appendChild(o)),o&&(c.scrollbar.el=o),h.init(),h.updateSize(),h.setTranslate()),b&&(t.isElement&&(a&&"string"!=typeof a||(a=document.createElement("div"),a.classList.add("swiper-button-next"),rn(a,t.hostEl.constructor.nextButtonSvg),a.part.add("button-next"),t.el.appendChild(a)),s&&"string"!=typeof s||(s=document.createElement("div"),s.classList.add("swiper-button-prev"),rn(s,t.hostEl.constructor.prevButtonSvg),s.part.add("button-prev"),t.el.appendChild(s))),a&&(c.navigation.nextEl=a),s&&(c.navigation.prevEl=s),p.init(),p.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=n.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=n.allowSlidePrev),i.includes("direction")&&t.changeDirection(n.direction,!1),(_||A)&&t.loopDestroy(),(S||A)&&t.loopCreate(),t.update()}({swiper:_.current,slides:L,passedParams:k,changedParams:e,nextEl:T.current,prevEl:E.current,scrollbarEl:C.current,paginationEl:x.current}),()=>{O&&_.current&&Object.keys(O).forEach(e=>{_.current.off(e,O[e])})}}),ei(()=>{var e;!(e=_.current)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},[m]),n.createElement(a,Xn({ref:b,className:$n(`${h}${r?` ${r}`:""}`)},D),n.createElement(ri.Provider,{value:_.current},R["container-start"],n.createElement(o,{className:Zn(M.wrapperClass)},R["wrapper-start"],M.virtual?function(e,t,r){if(!r)return null;const i=e=>{let r=e;return e<0?r=t.length+e:r>=t.length&&(r-=t.length),r},a=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`},{from:s,to:o}=r,l=e.params.loop?-t.length:0,d=e.params.loop?2*t.length:t.length,c=[];for(let e=l;e<d;e+=1)e>=s&&e<=o&&c.push(t[i(e)]);return c.map((t,r)=>n.cloneElement(t,{swiper:e,style:a,key:t.props.virtualIndex||t.key||`slide-${r}`}))}(_.current,L,m):L.map((e,t)=>n.cloneElement(e,{swiper:_.current,swiperSlideIndex:t})),R["wrapper-end"]),Un(M)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:E,className:"swiper-button-prev"}),n.createElement("div",{ref:T,className:"swiper-button-next"})),jn(M)&&n.createElement("div",{ref:C,className:"swiper-scrollbar"}),Vn(M)&&n.createElement("div",{ref:x,className:"swiper-pagination"}),R["container-end"]))});ni.displayName="Swiper";const ii=c(function(e,t){let{tag:r="div",children:i,className:a="",swiper:o,zoom:d,lazy:c,virtualIndex:u,swiperSlideIndex:p,...h}=void 0===e?{}:e;const f=l(null),[m,g]=s("swiper-slide"),[v,w]=s(!1);function y(e,t,r){t===f.current&&g(r)}ei(()=>{if(void 0!==p&&(f.current.swiperSlideIndex=p),t&&(t.current=f.current),f.current&&o){if(!o.destroyed)return o.on("_slideClass",y),()=>{o&&o.off("_slideClass",y)};"swiper-slide"!==m&&g("swiper-slide")}}),ei(()=>{o&&f.current&&!o.destroyed&&g(o.getSlideClasses(f.current))},[o]);const b={isActive:m.indexOf("swiper-slide-active")>=0,isVisible:m.indexOf("swiper-slide-visible")>=0,isPrev:m.indexOf("swiper-slide-prev")>=0,isNext:m.indexOf("swiper-slide-next")>=0},_=()=>"function"==typeof i?i(b):i;return n.createElement(r,Xn({ref:f,className:$n(`${m}${a?` ${a}`:""}`),"data-swiper-slide-index":u,onLoad:()=>{w(!0)}},h),d&&n.createElement(ti.Provider,{value:b},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof d?d:void 0},_(),c&&!v&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!d&&n.createElement(ti.Provider,{value:b},_(),c&&!v&&n.createElement("div",{className:"swiper-lazy-preloader"})))});ii.displayName="SwiperSlide";const ai=()=>r("svg",{width:"66",height:"66",viewBox:"0 0 66 66",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M20.1172 33.0024H20.1462M32.9682 33.0024H32.9972M45.8482 33.0024H45.8772",stroke:"#4A4A4A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M32.9992 65.1998C50.7828 65.1998 65.1992 50.7834 65.1992 32.9998C65.1992 15.2162 50.7828 0.799805 32.9992 0.799805C15.2156 0.799805 0.799218 15.2162 0.799218 32.9998C0.799218 38.1508 2.0087 43.0193 4.15916 47.3368C4.73064 48.4841 4.92085 49.7955 4.58954 51.0338L2.67168 58.2016C1.83913 61.3132 4.6858 64.1599 7.7974 63.3273L14.9652 61.4095C16.2035 61.0782 17.5149 61.2684 18.6623 61.8399C22.9798 63.9903 27.8482 65.1998 32.9992 65.1998Z",stroke:"#4A4A4A",strokeWidth:"1.5"})]});var si=d(({isReply:t=!1,onNavigate:n})=>{var o;const{dataFeatureTrending:l}=ft(),{goToStage:d}=et(),c=null!==(o=null==l?void 0:l.length)&&void 0!==o?o:0,u=a(()=>{if("undefined"==typeof window)return 1;const e=window.innerWidth;return e>=1024?3:e>=640?2:1},[]),[p,h]=s(()=>u());i(()=>{if("undefined"==typeof window)return;const e=()=>h(u());return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[u]);const f=a(e=>{n?n(`/feature-request/details/${e}?openComment=true`):d("details",{detailId:e,openComment:!0})},[d,n]),m=c>p;return c<=0?e(Q,{children:r(R,{gap:"200",children:[e(V,{align:"center",children:e(Y,{variant:"headingLg",as:"p",children:"No requests found"})}),e(V,{align:"center",children:e(Y,{as:"p",alignment:"center",children:"Submit a request to help improve the functionality of SEO ON"})}),e(V,{align:"center",children:e(ai,{})})]})}):e("div",{className:"Avada-FeatureReqTrending",children:t?e("div",{className:"Avada-CardFeatureReq-Main",children:e(ni,{spaceBetween:10,loop:!0,pagination:{clickable:!0},navigation:m,modules:[on,an],className:"mySwiper",breakpoints:{0:{slidesPerView:1},640:{slidesPerView:2},1024:{slidesPerView:3}},children:l.map(t=>e(ii,{children:e("div",{className:"Avada-CardFeatureReq-Slider",style:{height:"255px"},children:e(L,{sectioned:!0,children:e(Mr,{data:t,typeTrending:!0,handleFunc:()=>f(t.id)})})})},t.id))})}):e(L,{title:e(Y,{variant:"headingMd",as:"p",children:"Trending"}),children:l.map(t=>r("div",{children:[e(L.Section,{children:e("div",{className:"Avada-CardFeatureReq-Slider",children:e(Mr,{data:t,typeTrending:!0,handleFunc:()=>f(t.id)})})}),e(K,{})]},t.id))})})});var oi=d(function({featureRequestId:t,openComment:n}){var a,l;const{handleComment:d,loadingComment:c,subscribeFeatureRequest:u,featureReqUsers:p}=ft(),{navigateTo:h}=et(),f=qe(e=>e.shopInfo),[m,g]=s(null),[v,w]=s(!1),[y,b]=s(""),[_,S]=s(!1),A=o(()=>{if(t)return t;if("undefined"==typeof window)return"";const e=window.location.pathname.match(/feature-request\/details\/([^/]+)/);return(null==e?void 0:e[1])||""},[t]),T=o(()=>"boolean"==typeof n?n:"undefined"!=typeof window&&"true"===new URLSearchParams(window.location.search).get("openComment"),[n]);i(()=>{let e;return(async()=>{try{if(!A)return;S(!0),e=await u(A,g)}finally{S(!1)}})().then(),()=>{"function"==typeof e&&e()}},[A,u]),i(()=>{T&&w(!0)},[T]);const E=async()=>{if(!(!(null==m?void 0:m.id)||y.trim().length<=0||c))try{await d({parentId:m.id,replies:!1,value:y}),w(!1),b("")}catch(e){console.error("Error submitting comment:",e)}};return e(B,{i18n:{},children:e(z,{backAction:{content:"Submit a request",onAction:()=>h("/feature-request")},title:"Back",children:r(R,{gap:"300",children:[e(L,{sectioned:!0,children:r(R,{gap:"300",children:[_?e(kr,{}):m?e("div",{className:"Avada-FeatureReqDetails",children:e(Mr,{data:m,isHover:!1,handleFunc:()=>w(!v)})}):e(Y,{as:"p",tone:"subdued",children:"Feature request not found."}),v?e(L,{children:r("div",{className:"Avada-Comment-Main",children:[e("div",{onKeyDown:e=>{if("Enter"===e.key){if(e.shiftKey)return;e.preventDefault(),E()}},children:e(P,{autoFocus:!0,value:y,placeholder:"What do you think?",multiline:5,onChange:e=>b(e),autoComplete:"off",label:"",disabled:null===(a=null==p?void 0:p[(null==f?void 0:f.shopId)||(null==f?void 0:f.id)||""])||void 0===a?void 0:a.isUserBlocked})}),e(L.Section,{actions:[{content:e(W,{onClick:()=>{w(!1),b("")},children:"Cancel"})},{content:e(W,{variant:"primary",disabled:y.length<=0,loading:c,onClick:()=>{E()},children:"Reply"})}],subdued:!0})]})}):(null==f?void 0:f.blockUserReq)?e("div",{}):e("div",{className:"Polaris-Button Polaris-Button--pressable Polaris-Button--variantSecondary Polaris-Button--sizeMedium Polaris-Button--fullWidth ",style:{color:"#616161",opacity:(null===(l=null==p?void 0:p[(null==f?void 0:f.shopId)||(null==f?void 0:f.id)||""])||void 0===l?void 0:l.isUserBlocked)?.5:1},onClick:()=>{var e;(null===(e=null==p?void 0:p[(null==f?void 0:f.shopId)||(null==f?void 0:f.id)||""])||void 0===e?void 0:e.isUserBlocked)||w(!0)},children:"Write a reply"})]})}),r(R,{gap:"300",children:[!_&&m&&e(Rr,{id:m.id,isShow:!0}),e("p",{style:{fontSize:"13px",fontWeight:"650",color:"#303030"},children:"Trending"}),!_&&e(si,{isReply:!0})]})]})})})}),li=function(e,t){return li=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},li(e,t)};