PageSourceSearch

https://bigphotohunt.com/static/js/main.e6d5cdde.js

js bigphotohunt.com collected 2026-10-04 07:26:39 UTC 2,714,072 bytes, 3 lines download raw bytes

1/*! For license information please see main.e6d5cdde.js.LICENSE.txt */
2!function(){var e={2826:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});n(2791);var r=n(9434),i=n(7019),o=n(184),a=function(){return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:"24",height:"24","aria-hidden":"true",style:{flexShrink:0},children:[(0,o.jsx)("path",{d:"M21 12C18.6 16 15.6 18 12 18C8.4 18 5.4 16 3 12C5.4 8 8.4 6 12 6C15.6 6 18.6 8 21 12Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M10 12C10 12.5304 10.2107 13.0391 10.5858 13.4142C10.9609 13.7893 11.4696 14 12 14C12.5304 14 13.0391 13.7893 13.4142 13.4142C13.7893 13.0391 14 12.5304 14 12C14 11.4696 13.7893 10.9609 13.4142 10.5858C13.0391 10.2107 12.5304 10 12 10C11.4696 10 10.9609 10.2107 10.5858 10.5858C10.2107 10.9609 10 11.4696 10 12Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},s=function(e){var t=e.variant,n=void 0===t?"feed":t,s=e.isLoggedIn,l=void 0!==s&&s,c=e.onReveal,u=(e.photoId,(0,r.I0)()),d=l?"Show Photo":"Sign In",f="grid"!==n,p=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a,{}),(0,o.jsx)("span",{className:"aco-pill-label",children:d})]});return(0,o.jsxs)("div",{className:"aco-overlay aco-overlay--".concat(n),children:[(0,o.jsx)("div",{className:"aco-scrim"}),(0,o.jsxs)("div",{className:"aco-content",children:[(0,o.jsx)("div",{className:"aco-heading",children:"Adult Content"}),(0,o.jsx)("div",{className:"aco-subline",children:"You can change this in your Account settings"}),f?(0,o.jsx)("button",{type:"button",className:"aco-pill",onClick:function(e){e.preventDefault(),e.stopPropagation(),l?c&&c():u(i.N.setSignInModalState(!0))},"aria-label":l?"Adult content. Show photo.":"Adult content. Sign in to view.",children:p}):(0,o.jsx)("span",{className:"aco-pill","aria-hidden":"true",children:p})]})]})}},3172:function(e,t,n){"use strict";n.d(t,{LX:function(){return u}});var r=n(9439),i=n(2791),o=n(9434),a=n(1737),s=n(315),l=n(6266),c="bph_blur_adult",u=function(){var e=(0,o.I0)(),t=(0,o.v9)((function(e){return e.adultReveal.revealedIds})),n=(0,i.useState)((function(){return(0,s.z)()})),u=(0,r.Z)(n,2),d=u[0],f=u[1],p=(0,o.v9)((function(e){return e.Login.isLoggedIn})),h=(0,i.useState)(l.ES),m=(0,r.Z)(h,2),v=m[0],g=m[1];(0,i.useEffect)((function(){g((0,l.ES)())}),[p]);var y=(0,i.useRef)(v);return(0,i.useEffect)((function(){y.current=v}),[v]),(0,i.useEffect)((function(){var t=function(t){var n=t&&t.key;if(!n||n===c||n===l.GT){var r=(0,s.z)();f(r);var i=(0,l.ES)(),o=i!==y.current;o&&g(i),(r&&(!n||n===c)||o)&&e((0,a.IA)())}};return window.addEventListener("storage",t),function(){return window.removeEventListener("storage",t)}}),[e]),{isPhotoGated:(0,i.useCallback)((function(e,n,r){return!(!0!==e||!d)&&((!v||!r||String(r)!==String(v))&&!(n&&t.includes(n)))}),[d,t,v]),revealPhotoById:(0,i.useCallback)((function(t){t&&e((0,a.WD)(t))}),[e])}};t.ZP=function(e,t,n){var r=u(),o=r.isPhotoGated,a=r.revealPhotoById;return{isGated:o(e,t,n),reveal:(0,i.useCallback)((function(){a(t)}),[a,t])}}},216:function(e,t,n){"use strict";var r=n(9439),i=n(2791),o=n(184);t.Z=function(e){var t=e.user,n=e.size,a=void 0===n?24:n,s=e.alt,l=(0,i.useState)(!1),c=(0,r.Z)(l,2),u=c[0],d=c[1],f=!(!t||!t.is_bot),p=function(e){return e?e.compressedProfileId?"".concat("https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_120,f_auto,q_auto/Resized_Profiles/").concat(e.compressedProfileId):e.photo_url?e.photo_url:null:null}(t),h=t&&t.name||"Member";if(f)return(0,o.jsx)("div",{"aria-label":s||h,style:{width:a,height:a,borderRadius:"50%",backgroundColor:"#FFD621",color:"#05081E",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontFamily:'"Jost", system-ui, sans-serif',fontSize:Math.max(9,Math.round(.42*a)),fontWeight:600,lineHeight:1,overflow:"hidden"},children:"K"});var m=p&&!u?p:function(e,t){var n=(e||"Member").trim();return"https://ui-avatars.com/api/?name=".concat(encodeURIComponent(n),"&size=").concat(2*t,"&rounded=true&background=01655a&color=fff")}(h,a);return(0,o.jsx)("img",{src:m,alt:s||h,onError:function(){return d(!0)},style:{width:a,height:a,borderRadius:"50%",objectFit:"cover",flexShrink:0,display:"block",backgroundColor:"#F2F3F4"}})}},6808:function(e,t,n){"use strict";n.d(t,{EF:function(){return i},YE:function(){return u},Z5:function(){return l},aP:function(){return d},ay:function(){return s},bb:function(){return f},gl:function(){return c},pB:function(){return a}});n(2791);var r=n(184),i=["all","general","critique","gear","meetups_trips","selling"],o=function(e){var t=e.children,n=e.stroke,i=e.size,o=void 0===i?12:i;return(0,r.jsx)("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:t})},a={all:{label:"All",bg:"#F2F3F4",fg:"#05081E",icon:null},critique:{label:"Critique",bg:"#F4DDD0",fg:"#7A4A2E",icon:(0,r.jsx)(o,{stroke:"#7A4A2E",children:(0,r.jsx)("path",{d:"M3 20l1.3-3.9C2.9 14 3 11 4.6 8.6c2-3 6-4 9-2.4s4.3 5.4 2.6 8.6c-1.6 3-5.3 4.4-8.7 3.3z"})})},gear:{label:"Gear",bg:"#D6DFE8",fg:"#2D4A66",icon:(0,r.jsxs)(o,{stroke:"#2D4A66",children:[(0,r.jsx)("path",{d:"M5 7h2a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1a2 2 0 0 0 2 2h2a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2"}),(0,r.jsx)("circle",{cx:"12",cy:"13",r:"3"})]})},meetups_trips:{label:"Meetups",bg:"#DDDCEF",fg:"#444287",icon:(0,r.jsxs)(o,{stroke:"#444287",children:[(0,r.jsx)("circle",{cx:"9",cy:"7",r:"3"}),(0,r.jsx)("circle",{cx:"17",cy:"9",r:"2"}),(0,r.jsx)("path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"}),(0,r.jsx)("path",{d:"M16 17h5a3 3 0 0 0 -3 -3"})]})},selling:{label:"Business",bg:"#CCE3DC",fg:"#35605A",icon:(0,r.jsxs)(o,{stroke:"#35605A",children:[(0,r.jsx)("path",{d:"M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592-5.592a2.41 2.41 0 0 0 0-3.408l-7.71-7.71a2 2 0 0 0-1.414-.586h-5.172a3 3 0 0 0-3 3z"}),(0,r.jsx)("circle",{cx:"7.8",cy:"7.8",r:"2.2"})]})},general:{label:"General",bg:"#EBE2D1",fg:"#7C6940",icon:(0,r.jsx)(o,{stroke:"#7C6940",children:(0,r.jsx)("path",{d:"M3 20l1.3-3.9a8 8 0 1 1 2.6 2.6z"})})}},s=new Map([["hunt","general"]]),l={all:"Here's everything happening on the Board right now.",critique:"Share photos and ask for honest feedback.",gear:"Cameras, lenses, bags, lights, settings and s
2oftware - tips and advice.",meetups_trips:"Organize photowalks, trips, and meetups with Big Photo Hunters worldwide.",selling:"Pricing, clients, contracts, selling prints and getting your work out there.",general:"Everything else photography-related that doesn't fit a category.",following:"Filtering to threads you follow. Categories still apply underneath."},c="Pick the category that best fits your post.",u='Be specific. Tell members what to expect (e.g. "Struggling with focus in low light, need advice")',d=[{value:"most_recent",label:"Newest First"},{value:"latest_activity",label:"Latest Activity"},{value:"oldest",label:"Oldest First"},{value:"most_replies",label:"Most Replies"},{value:"most_liked",label:"Most Liked"}],f="most_recent"},7508:function(e,t,n){"use strict";var r=n(2791),i=n(6808),o=n(184);t.Z=function(e){var t=e.category,n=e.compact,a=void 0!==n&&n,s=i.pB[t];if(!s)return null;var l=s.icon&&a?r.cloneElement(s.icon,{size:10}):s.icon;return(0,o.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:a?4:5,paddingTop:a?3:4,paddingBottom:a?3:4,paddingLeft:a?9:10,paddingRight:a?9:10,borderRadius:9999,backgroundColor:s.bg,color:s.fg,flexShrink:0,fontFamily:'"Jost", system-ui, sans-serif',fontSize:a?10:11,fontWeight:500,letterSpacing:"0.02em",lineHeight:a?"12px":"14px",whiteSpace:"nowrap"},children:[l,s.label]})}},9826:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(9439),i=n(2791),o=n(1087),a=n(3195),s=n(216),l=n(7508),c=n(7687),u=n(5201),d=n(184),f=function(e){var t=e.size,n=e.stroke,r=e.strokeWidth;return(0,d.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:(0,d.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",stroke:n,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round"})})},p=function(e){var t=e.size;return(0,d.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:(0,d.jsx)("polyline",{points:"20 6 9 17 4 12"})})},h=function(e){var t=e.post,n=e.placement,h=e.variant,m=void 0===h?"none":h,v=e.layout,g=void 0===v?"sidebar":v,y=e.eyebrowText,b=void 0===y?"This week\u2019s Board pick":y,x=e.ctaLabel,w=(0,i.useRef)(null),k=(0,i.useRef)(!1),S=(0,i.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),j=(0,r.Z)(S,2),C=j[0],_=j[1];(0,i.useEffect)((function(){if("undefined"!==typeof window){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return _(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}}),[]);var E=!(!t||!t.viewer_has_replied),N=(0,i.useCallback)((function(e,t){try{a.Z.getInstance().logEvent(e,{placement:n,variant:m,logged_in:(0,u.I)(),destination:t,viewer_replied:E})}catch(r){}}),[n,m,E]);if((0,i.useEffect)((function(){if(t&&!k.current){var e=w.current;if(e&&"undefined"!==typeof IntersectionObserver){var n=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&!k.current&&(k.current=!0,N("bpb_cta_impression",t.id),n.disconnect())}))}),{threshold:.5});return n.observe(e),function(){return n.disconnect()}}}}),[t,N]),!t)return null;var A="/board/post/".concat(t.id),D=x||"See the post",T=C?"compact":"feed"===g?"wide":"sidebar",I="wide"===T,P="homepage"===g,F="number"===typeof t.reply_count?t.reply_count:0,O=E&&"number"===typeof t.replies_since_viewer_reply?t.replies_since_viewer_reply:0,M=E?O>=1?"See new replies":"Check this post":D,Z=(0,d.jsxs)("span",{className:"bpb-ftc-eyebrow",children:[(0,d.jsx)(f,{size:12,stroke:"#7A4A2E",strokeWidth:2.2}),b]});return(0,d.jsxs)(o.rU,{to:A,onClick:function(){N("bpb_cta_click",t.id)},state:{source:"featured"},ref:w,className:"bpb-ftc bpb-ftc--".concat(T).concat(P?" bpb-ftc--homepage":""),"aria-label":"".concat(b,": ").concat(t.title||"featured discussion",". ").concat(M),children:[I?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"bpb-ftc-eyebrow-row",children:Z}),(0,d.jsxs)("div",{className:"bpb-ftc-title-row",children:[(0,d.jsx)(l.Z,{category:t.category}),(0,d.jsx)("span",{className:"bpb-ftc-title",children:t.title})]})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"bpb-ftc-eyebrow-row",children:[Z,(0,d.jsx)(l.Z,{category:t.category,compact:C})]}),(0,d.jsx)("span",{className:"bpb-ftc-title",children:t.title})]}),t.body_preview?(0,d.jsx)("span",{className:"bpb-ftc-preview",children:(0,c.L)(t.body_preview)}):null,(0,d.jsxs)("div",{className:"bpb-ftc-meta",children:[(0,d.jsx)(s.Z,{user:t.author,size:C?22:24}),(0,d.jsx)("span",{className:"bpb-ftc-name",children:t.author&&t.author.name||"Member"}),"wide"===T&&(0,d.jsx)("span",{className:"bpb-ftc-dot",children:"\xb7"}),(0,d.jsxs)("span",{className:"bpb-ftc-replies",children:[(0,d.jsx)(f,{size:C?12:13,stroke:"#6B6B70",strokeWidth:2}),"wide"===T?"".concat(F," ").concat(1===F?"reply":"replies").concat(O>=1?" \xb7 ".concat(O," new"):""):F]}),E?(0,d.jsxs)("span",{className:"bpb-ftc-btn",children:[(0,d.jsx)(p,{size:C?12:13}),M]}):(0,d.jsx)("span",{className:"bpb-ftc-btn",children:M})]})]})}},9803:function(e,t,n){"use strict";var r=n(1413),i=(n(2791),n(216)),o=n(2848),a=n(184),s={width:22,height:22,borderRadius:"50%",boxShadow:"0 0 0 2px #FFFFFF",flexShrink:0},l=function(e){var t=e.user,n=e.marginLeft,l=e.zIndex,c=(0,o.Z)(t&&t.id),u=c.anchorRef,d=c.handlers,f=c.popover;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",(0,r.Z)((0,r.Z)({type:"button",ref:u},d),{},{onClick:function(e){e.preventDefault(),d.onClick&&d.onClick(e)},"aria-label":t&&t.name||"Member",style:(0,r.Z)((0,r.Z)({},s),{},{marginLeft:n,zIndex:l,position:"relative",padding:0,border:"none",background:"none",cursor:"pointer",lineHeight:0}),children:(0,a.jsx)(i.Z,{user:t,size:22})})),f]})},c=function(e){var t=e.user,n=e.marginLeft,o=e.zIndex;return(0,a.jsx)("span",{style:(0,r.Z)((0,r.Z)({},s),{},{marginLeft:n,zIndex:o,position:"relative",lineHeight:0,display:"inline-block"}),children:(0,a.jsx)(i.Z,{user:t,size:22})})};t.Z=function(e){var t=e.replyAuthors,n=e.distinctReplierCount,i=e.decorative,o=void 0!==i&&i;if(!Array.isArray(t)||0===t.length)return null;var u=t.slice(0,3),d=("number"===typeof n?n:u.length)-u.length,f=d>99?"99+":"+".concat(d),p=o?c:l;return(0,a.jsxs)("div",(0,r.Z)((0,r.Z)({style:{display:"flex",alignItems:"center"}},o?{"aria-hidden":"true"}:null),{},{children:[u.map((function(e,t){return(0,a.jsx)(p,{user:e,marginLeft:0===t?0:-8,zIndex:t+1},e&&e.id||t)})),d>0&&(0,a.jsx)("span",{"aria-hidden":"true",style:(0,r.Z)((0,r.Z)({},s),{},{marginLeft:-8,position:"relative",zIndex:u.length+1,backgroundColor:"#F2F3F4",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:'"Jost", system-ui, sans-serif',fontWeight:500,fontSize:9,lineHeight:"12px",color:"#696B78"}),children:f})]}))}},8863:function(e,t,n){"use strict";n.d(t,{VS:function(){return r},Yp:function(){return o},e8:function(){return i}});
2var r={afterN:6,interval:6,maxPerLoad:5},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return"after".concat(e.afterN,"_interval").concat(e.interval,"_max").concat(e.maxPerLoad)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=e+1;if(n<t.afterN)return 0;if(t.interval<1)return n===t.afterN&&t.maxPerLoad>=1?1:0;var i=n-t.afterN;if(i%t.interval!==0)return 0;var o=i/t.interval+1;return o<=t.maxPerLoad?o:0}},8601:function(e,t,n){"use strict";n.d(t,{I:function(){return h}});var r,i=n(9439),o=n(2791),a=n(1570),s=n(4014),l=n(4695),c="bpbFeaturedThread",u=function(){if("undefined"===typeof window)return"anon";try{var e=(0,s.a)(localStorage.getItem("Data"))||{};return e.userid||e.userId||"anon"}catch(t){return"anon"}},d=null,f=null,p=0,h=function(){if(p+=1,r=void 0,d=null,f=null,(0,l.we)(),"undefined"!==typeof window)try{sessionStorage.removeItem(c)}catch(e){}};t.Z=function(){var e=(0,o.useState)((function(){var e=u();if(void 0!==r&&d===e)return r;var t=function(e){if("undefined"!==typeof window)try{var t=sessionStorage.getItem(c);if(!t)return;var n=JSON.parse(t);return!n||"number"!==typeof n.ts||Date.now()-n.ts>18e5||n.viewerKey!==e?void sessionStorage.removeItem(c):void 0===n.post?void 0:n.post}catch(r){return}}(e);return void 0!==t?(r=t,d=e,t):null})),t=(0,i.Z)(e,2),n=t[0],s=t[1];return(0,o.useEffect)((function(){var e=u();if(void 0===r||d!==e){void 0!==r&&d!==e&&(r=void 0,d=null,f=null);var t=!1;if(!f){var n=p;f=(0,a.or)().then((function(t){var i=(t&&t.data&&t.data.data||{}).post||null;return n===p&&(r=i,d=e,function(e,t){try{sessionStorage.setItem(c,JSON.stringify({post:e,viewerKey:t,ts:Date.now()}))}catch(n){}}(i,e)),i})).catch((function(){return n===p&&(r=null,d=e),null}))}return f.then((function(e){t||s(e)})),function(){t=!0}}s(r)}),[]),n}},4695:function(e,t,n){"use strict";n.d(t,{we:function(){return b}});var r,i=n(9439),o=n(3433),a=n(7762),s=n(2791),l=n(1570),c=n(4014),u=n(8863),d="bpbFeaturedThreads_v2",f=u.VS.maxPerLoad,p=[],h=function(){if("undefined"===typeof window)return"anon";try{var e=(0,c.a)(localStorage.getItem("Data"))||{};return e.userid||e.userId||"anon"}catch(t){return"anon"}},m=function(e){for(var t=e.length-1;t>0;t-=1){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},v=null,g=null,y=0,b=function(){if(y+=1,r=void 0,v=null,g=null,"undefined"!==typeof window)try{sessionStorage.removeItem(d)}catch(e){}};t.ZP=function(){var e=(0,s.useState)((function(){var e=h();if(void 0!==r&&v===e)return r;var t=function(e){if("undefined"!==typeof window)try{var t=sessionStorage.getItem(d);if(!t)return;var n=JSON.parse(t);return!n||"number"!==typeof n.ts||Date.now()-n.ts>18e5||n.viewerKey!==e?void sessionStorage.removeItem(d):Array.isArray(n.result)?n.result:void sessionStorage.removeItem(d)}catch(r){return}}(e);return void 0!==t?(r=t,v=e,t):p})),t=(0,i.Z)(e,2),n=t[0],c=t[1];return(0,s.useEffect)((function(){var e=h();if(void 0===r||v!==e){void 0!==r&&v!==e&&(r=void 0,v=null,g=null);var t=!1;if(!g){var n=y;g=(0,l.H)(10).then((function(t){var i=t&&t.data&&t.data.data||{},s=function(e){var t,n=Array.isArray(e)?e:[],r=new Set,i=[],s=(0,a.Z)(n);try{for(s.s();!(t=s.n()).done;){var l=t.value;l&&null!=l.id&&!r.has(l.id)&&(r.add(l.id),i.push(l))}}catch(h){s.e(h)}finally{s.f()}if(0===i.length)return p;var c=i[0],u=i.slice(1),d=m((0,o.Z)(u)).slice(0,f-1);return m([c].concat((0,o.Z)(d)))}(Array.isArray(i.posts)?i.posts:[]);return n===y&&(r=s,v=e,function(e,t){try{sessionStorage.setItem(d,JSON.stringify({result:e,viewerKey:t,ts:Date.now()}))}catch(n){}}(s,e)),s})).catch((function(){return n===y&&(r=p,v=e),p}))}return g.then((function(e){t||c(e)})),function(){t=!0}}c(r)}),[]),n}},65:function(e,t,n){"use strict";n(2791);var r=n(184);t.Z=function(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",children:[(0,r.jsx)("path",{d:"M3 12C3 13.78 3.52784 15.5201 4.51677 17.0001C5.50571 18.4802 6.91131 19.6337 8.55585 20.3149C10.2004 20.9961 12.01 21.1743 13.7558 20.8271C15.5016 20.4798 17.1053 19.6226 18.364 18.364C19.6226 17.1053 20.4798 15.5016 20.8271 13.7558C21.1743 12.01 20.9961 10.2004 20.3149 8.55585C19.6337 6.91131 18.4802 5.50571 17.0001 4.51677C15.5201 3.52784 13.78 3 12 3C9.48395 3.00947 7.06897 3.99122 5.26 5.74L3 8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M3 3V8H8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}},1046:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(4165),i=n(3433),o=n(5861),a=n(9439),s=n(2791),l=n(1989),c=n(7689),u=n(4014),d=n(9434),f=n(7019),p=n(7818),h=(n(8056),n(9704)),m=n(9343),v=n(4848),g=n(3195),y=n(184),b=function(e){var t=(0,s.use
2State)(e.isfollow),n=(0,a.Z)(t,2),i=n[0],b=n[1],x=(0,s.useState)(e.iswelcome),w=(0,a.Z)(x,2),k=w[0],S=w[1],j=(0,d.I0)(),C=localStorage.getItem("Data"),_=(0,u.a)(C),E=_.token,N=_.isLoggedIn,A=_.userid,D=function(t){g.Z.getInstance().logEvent("Secondary CTA Click",{source:"member_card",element:t,experiment_id:null,variant_id:null,page:"home"}),j(f.N.setPopupModalMessage({joinModalHeading:"",popupHeading:"You\u2019re In!",popupMessage:"Click on Continue below to get you back to the photo you were interested in. Check your email too. It's where we'll send you each week's most upvoted photos.",photoID:"",userID:e.userId})),j(f.N.setJoinNowModalState(!0))},T=(0,c.s0)(),I=function(t){if(t.preventDefault(),A==e.userId)T("/profile");else{var n={PhotoID:"",UserID:e.userId},r=h.AES.encrypt(JSON.stringify(n),"siddiqui").toString();T("/otherusers-profile?userdata=".concat(encodeURIComponent(r)))}window.scrollTo(0,0)},P=(0,d.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),F=function(){j(v.$.setSocketReceiverUserID(e.userId)),j(v.$.setReloadNotificationSenderFn(!P))},O=(0,p.V)(e.userLocation,16);(0,s.useEffect)((function(){b(e.isfollow),S(e.iswelcome)}),[e.isfollow,e.iswelcome]);var M=function(){var t=(0,o.Z)((0,r.Z)().mark((function t(n){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),b(!i),i||F(),t.prev=3,t.next=6,(0,m.P)(e.userId,!i,E,e.loginUserid,F);case 6:t.next=10;break;case 8:t.prev=8,t.t0=t.catch(3);case 10:case"end":return t.stop()}}),t,null,[[3,8]])})));return function(e){return t.apply(this,arguments)}}(),Z=function(){var t=(0,o.Z)((0,r.Z)().mark((function t(n){var i,o;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),S(!k),F(),t.prev=3,i={userID:e.userId,is_welcome:!k},o={Authorization:"Bearer ".concat(E),"Content-Type":"application/json"},t.next=8,l.Z.post("".concat("https://bigbesos.com","/user/welcome"),i,{headers:o});case 8:g.Z.getInstance().logEvent("Welcome - Hi",{UserID:e.loginUserid}),t.next=13;break;case 11:t.prev=11,t.t0=t.catch(3);case 13:case"end":return t.stop()}}),t,null,[[3,11]])})));return function(e){return t.apply(this,arguments)}}(),R=e.genreslist?Object.values(e.genreslist).slice(0,3).join(", "):"";return(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)("div",{className:"new_member",children:[(0,y.jsxs)("div",{className:"member_top",children:[(0,y.jsx)("div",{className:"member_img",children:(0,y.jsx)("a",{onClick:N?I:function(){return D("avatar")},className:"memberUser_img",style:{backgroundImage:"url(".concat(e.userPhoto||"",")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:"50%",cursor:"pointer"},children:!e.userPhoto&&(0,y.jsx)("img",{src:"https://ui-avatars.com/api/?name=".concat(e.Name,"&size=40&rounded=true&background=01655a&color=fff"),alt:"img"})})}),(0,y.jsxs)("ul",{className:"other_info",children:[(0,y.jsxs)("li",{children:[(0,y.jsx)("strong",{children:"Camera:"})," "+e.camerabrand]}),(0,y.jsxs)("li",{children:[(0,y.jsx)("strong",{children:"Genres:"})," ",R]})]})]}),(0,y.jsxs)("div",{className:"member_bottom",children:[(0,y.jsxs)("div",{className:"user_info",children:[(0,y.jsx)("h6",{className:"name",children:(0,y.jsx)("span",{className:"PointerClass",onClick:N?I:function(){return D("name")},children:e.Name})}),(0,y.jsx)("span",{className:"address",children:O})]}),e.loginUserid!==e.userId&&(0,y.jsx)("div",{className:"member_follow",onClick:N?M:function(){return D("follow")},children:i?(0,y.jsxs)("a",{className:"following",children:[(0,y.jsx)("img",{src:"/assets/img/icons/following.svg",alt:"img"}),"Following"]}):(0,y.jsxs)("a",{className:"follow",children:[(0,y.jsx)("img",{src:"/assets/img/icons/follow-black.svg",alt:"img"}),"Follow"]})}),e.loginUserid!==e.userId&&(0,y.jsx)("div",{className:"member_hi activated",children:k?(0,y.jsxs)("a",{className:"default_hi",children:[(0,y.jsx)("img",{src:"/assets/img/icons/default-hi.svg",alt:"img"}),"Hi Sent"]}):(0,y.jsxs)("a",{className:"active_hi",children:[(0,y.jsx)("img",{src:"/assets/img/icons/hi.svg",alt:"img",onClick:N?Z:function(){return D("say_hi")}}),"Say Hi"]})})]})]})})},x=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t,n,i){var o,a,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o={userType:n?"by_user":"all",offSet:t},a={"Content-Type":"application/json"},i&&(a.Authorization="Bearer ".concat(i)),e.next=6,l.Z.post("".concat("https://bigbesos.com","/photo/list_photo_for_new_members"),o,{headers:a});case 6:return s=e.sent,e.abrupt("return",s);case 10:throw e.prev=10,e.t0=e.catch(0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,n,r){return e.apply(this,arguments)}}
2(),w=0,k=function(){var e,t=(0,s.useState)([]),n=(0,a.Z)(t,2),l=n[0],c=n[1],f=(0,s.useState)([]),p=(0,a.Z)(f,2),h=p[0],m=p[1],v=(0,s.useState)(!0),g=(0,a.Z)(v,2),k=g[0],S=g[1],j=(0,s.useState)(!1),C=(0,a.Z)(j,2),_=C[0],E=C[1],N=localStorage.getItem("Data"),A=(0,u.a)(N),D=A.token,T=A.isLoggedIn,I=A.userid,P=(0,s.useRef)(),F=(0,d.v9)((function(e){return e.Login.isLoggedIn})),O=function(e){if(e[0].isIntersecting){w+=10;var t=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var t,n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E(!0),e.prev=1,e.next=4,x(w,T,D);case 4:t=e.sent,n=t.data.data,m((function(e){return[].concat((0,i.Z)(e),(0,i.Z)(n))})),(0==n.length||n.length<10)&&S(!1),E(!1),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),E(!1);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(){return e.apply(this,arguments)}}();t()}};(0,s.useEffect)((function(){var e=new IntersectionObserver(O,{root:null,threshold:0});P.current&&e.observe(P.current)}),[l]),(0,s.useEffect)((function(){var e=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w=0,E(!0),e.prev=2,e.next=5,x(0,T,D);case 5:t=e.sent,c(t.data.data),(0==t.data.data.length||t.data.data.length<10)&&S(!1),E(!1),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),E(!1);case 14:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(){return e.apply(this,arguments)}}();e()}),[F]),e=0===w?(0,i.Z)(l):[].concat((0,i.Z)(l),(0,i.Z)(h));var M=window.location.pathname;return(0,y.jsxs)(y.Fragment,{children:["/new-members"!==M?(0,y.jsx)("div",{className:"new_member_sidebar",children:(0,y.jsxs)("div",{className:"member_sidebar_content",children:[(0,y.jsx)("div",{className:"sidebar_heading",children:(0,y.jsx)("h3",{className:"title",children:"New Members"})}),(0,y.jsxs)("div",{className:"member_items",children:[e.map((function(e){return(0,y.jsx)(b,{userPhoto:e.profile_pic,userId:e.id,userLocation:e.state,Name:e.name,isfollow:e.is_follow,iswelcome:e.is_welcome,genreslist:e.genres_list,camerabrand:e.camera_brand,loginUserid:I},e.id)})),k&&_&&(0,y.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,y.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,y.jsx)("span",{className:"sr-only"})})})]})]})}):(0,y.jsx)("main",{className:"site-content",id:"main",children:(0,y.jsx)("section",{className:"photo-feed-section new-members",children:(0,y.jsx)("div",{className:"container",children:(0,y.jsx)("div",{className:"row justify-content-center",children:(0,y.jsx)("div",{className:"col-md-6 col-lg-5",children:(0,y.jsx)("div",{className:"new_member_sidebar",children:(0,y.jsxs)("div",{className:"member_sidebar_content",children:[(0,y.jsxs)("div",{className:"sidebar_heading",children:[(0,y.jsx)("h3",{className:"title",style:{fontSize:"18px"},children:"New Photo Hunters"}),(0,y.jsx)("span",{children:"Who's this?"})]}),(0,y.jsxs)("div",{className:"member_items",children:[e.map((function(e){return(0,y.jsx)(b,{userPhoto:e.profile_pic,userId:e.id,userLocation:e.state,Name:e.name,isfollow:e.is_follow,iswelcome:e.is_welcome,genreslist:e.genres_list,camerabrand:e.camera_brand,loginUserid:I},e.id)})),k&&_&&(0,y.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,y.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,y.jsx)("span",{className:"sr-only"})})})]})]})})})})})})}),k&&l.length>0&&(0,y.jsx)("div",{ref:P})]})}},5471:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var r=n(4165),i=n(5861),o=n(9439),a=n(2791),s=n(3772),l=n(3433),c=n(1989),u=n(9434),d=n(5175),f=n(1476),p=n(3195),h=n(7960),m=n(7019),v=n(6672),g=n(184),y=function(e){var t,n=e.usertoken,s=e.CheckPhotoListIsEmptyFn,y=e.UserPaymentStatus,b=(0,a.useState)([]),x=(0,o.Z)(b,2),w=(x[0],x[1]),k=(0,a.useState)([]),S=(0,o.Z)(k,2),j=(S[0],S[1]),C=(0,a.useState)(""),_=(0,o.Z)(C,2),E=_[0],N=_[1],A=(0,a.useState)(!1),D=(0,o.Z)(A,2),T=D[0],I=D[1],P=(0,a.useState)(0),F=(0,o.Z)(P,2),O=F[0],M=F[1],Z=(0,a.useState)(0),R=(0,o.Z)(Z,2),L=R[0],B=R[1],z=(0,a.useState)(0),U=(0,o.Z)(z,2),H=U[0],W=U[1],q=(0,a.useState)(0),V=(0,o.Z)(q,2),G=V[0],$=V[1],J=(0,a.useState)(""),K=(0,o.Z)(J,2),Y=K[0],X=K[1],Q=(0,a.useState)(!1),ee=(0,o.Z)(Q,2),te=(ee[0],ee[1]),ne=(0,a.useState)(""),re=(0,o.Z)(ne,2),ie=re[0],oe=re[1],ae=(0,a.useState)(!1),se=(0,o.Z)(ae,2),le=se[0],ce=se[1],ue=(0,u.I0)(),de=(0,u.v9)((function(e){return e.Gallery.GalleryUploadComponentState})),fe=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(i,o,a){var s,l,c;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return te(!0),ce(!1),I(!0),ue(d.v.setGalleryUploadComponentState({open:!0,BtnDisable:!1})),oe(""),e.prev=5,s={isGallery:!0},e.next=9,(0,h.Sr)(s,n);case 9:l=e.sent,t=l.data.data.photo_count,(c=200-t)>=o.length?(ce(!0),ve(i,o,a)):oe(c>0?"You have already uploaded ".concat(t," photos. You can upload ").concat(c," more photos. Maximum limit: 200 photos."):"You have already uploaded ".concat(t," photos. You have reached the maximum limit of 200 photos. Please remove some photos to upload new ones.")),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(5),console.log(e.t0),oe("Error checking image limit.");case 19:return e.prev=19,te(!1),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[5,15,19,22]])})));return function(t,n,r){return e.apply(this,arguments)}}(),pe=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,o,a,s,l,c,u,d,f,p,h,m,g,y,b;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:X(""),n=t.target.files,i=[],o=[],a=[],s=function(e){return new Promise((function(t){var n=new Image;n.onload=function(){var r=n.width,i=n.height;(r>6500||i>6500)&&a.push(e),t()},n.onerror=function(){return t()},n.src=URL.createObjectURL(e)}))},l=0;case 7:if(!(l<n.length)){e.next=20;break}if(c=n[l],["image/jpeg","image/png","image/heic","image/heif"].includes(c.type)||(0,v.zr)(c)){e.
2next=12;break}return i.push(c),e.abrupt("continue",17);case 12:if(!(c.size>52428800)){e.next=15;break}return o.push(c),e.abrupt("continue",17);case 15:return e.next=17,s(c);case 17:l++,e.next=7;break;case 20:if(!(i.length>0)){e.next=24;break}return u=i.map((function(e){return e.name})).join(", "),X('File name "'.concat(u,'" is not a PNG, JPG, or HEIC image.')),e.abrupt("return");case 24:if(!(o.length>0)){e.next=28;break}return d=o.map((function(e){return e.name})).join(", "),X('File name "'.concat(d,'" exceeds the maximum size limit of 50MB.')),e.abrupt("return");case 28:if(!(a.length>0)){e.next=32;break}return f=a.map((function(e){return e.name})).join(", "),X('Edges of the photo in file "'.concat(f,'" exceed 6500 pixels.')),e.abrupt("return");case 32:for(w(n),p=[],h=0,m=(new Date).toISOString(),g=0;g<n.length;g++)y=n[g],p.push({url:(0,v.zr)(y)?v.Bk:URL.createObjectURL(y),createdAt:m}),h+=y.size;return b=(h/1048576).toFixed(2),W(b),j(p),e.next=42,fe(n,p,b);case 42:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),he=(0,u.v9)((function(e){return e.Gallery.SuccessfullyUploadedGalleryPhotos})),me=(0,u.v9)((function(e){return e.Gallery.SuccessfullyManageGalleryPhotos})),ve=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(o,a,u){var h,v,g,b,x,w,k;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,h=(new Date).getTime(),v=[],g=Array.from(o),b=g.reduce((function(e,t){return e+t.size}),0)/1048576,W(b.toFixed(2)),x=g.map((function(e,t){return new Promise(function(){var o=(0,i.Z)((0,r.Z)().mark((function i(o,a){var s,l,u,d,p,m,g,y,x;return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s="image_".concat(h,"_").concat(t,".jpg"),(l=new FormData).append("photoUrl",e,s),r.next=5,f.Qc(e,{tiff:!0,xmp:!0,gps:!0});case 5:(u=r.sent)&&(m={cameraName:u.Make,focalLength:u.FocalLength,lens:u.LensModel||u.Lens,aperture:u.FNumber,iso:u.ISO,shutterSpeed:u.ExposureTime,dateTaken:null===u||void 0===u?void 0:u.DateTimeOriginal,latitude:null!==(d=u.latitude)&&void 0!==d?d:null,longitude:null!==(p=u.longitude)&&void 0!==p?p:null},g=JSON.stringify(m),l.append("metadata",g)),y=e.size/1048576,v.push({url:s,size:y,percentage:0}),x={Authorization:"Bearer ".concat(n)},c.Z.post("".concat("https://bigbesos.com","/photo/add-gallery"),l,{headers:x,onUploadProgress:function(e){var n=Math.round(e.loaded/e.total*100);v[t].percentage=n,N([].concat(v)),I(!0);var r=((new Date).getTime()-h)/1e3,i=v.reduce((function(e,t){return e+t.percentage/100*t.size*1024*1024}
2),0)/r*8e-6,o=v.reduce((function(e,t){return e+t.percentage}),0)/v.length,a=b*(o/100);M(i.toFixed(2)),B(o.toFixed(2)),$(a.toFixed(2))}}).then((function(){v[t].percentage=100,N([].concat(v)),o()})).catch((function(e){console.log("Error uploading:",e),a(e)}));case 11:case"end":return r.stop()}}),i)})));return function(e,t){return o.apply(this,arguments)}}())})),e.next=9,Promise.all(x);case 9:for(B(100),$(u),w=(0,l.Z)(new Set([].concat((0,l.Z)(me),(0,l.Z)(he),(0,l.Z)(a)))),s(!1),ue(d.v.setSuccessfullyUploadedGalleryPhotos(w)),!y&&t+g.length>5&&(ue(m.N.setPopupModalMessage({popupHeading:"Oops! Upgrade to upload.",popupMessage:"Your 1st five profile gallery photos are free. After that, upload as many as 50 photos by upgrading to our paid membership.",popupMessage2:"So you don\u2019t lose the photo(s) you just uploaded, we\u2019ll hold it for you for 12 hours. Upgrade before then to automatically add to your gallery."})),ue(m.N.setPopupModalState(!0))),k=0;k<a;k++)p.Z.getInstance().logEvent("Gallery Photo Add");e.next=22;break;case 18:e.prev=18,e.t0=e.catch(0),console.log("Error uploading:",e.t0),X("Upload failed. Please try again.");case 22:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(t,n,r){return e.apply(this,arguments)}}();return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"gallery_photo_upload",children:!T||de.BtnDisable?(0,g.jsxs)("div",{children:[Y&&(0,g.jsxs)("p",{className:"eerror",style:{textAlign:"center"},children:[Y," "]}),(0,g.jsxs)("div",{className:"gallery_photo_upload_header",children:[(0,g.jsxs)("h2",{className:"title",children:[(0,g.jsx)("img",{src:"/assets/img/icons/upload.svg",alt:"Img"}),"Upload"]}),(0,g.jsx)("p",{className:"subtitle",children:"Add photos to your Personal Gallery here."})]}),(0,g.jsx)("div",{className:"file-upload",children:(0,g.jsxs)("div",{className:"image-upload-wrap",children:[(0,g.jsx)("input",{className:"file-upload-input",type:"file",onChange:pe,multiple:!0}),(0,g.jsxs)("div",{className:"drag-text",children:[(0,g.jsx)("h4",{className:"title",children:"Drag and drop your photo here"}),(0,g.jsx)("span",{className:"or",children:"or"}),(0,g.jsx)("button",{className:"file-upload-btn btn",type:"button",children:"Upload from device"}),(0,g.jsxs)("span",{className:"support_note",children:["Max. 6500 x 6500 px., 50 MB ",(0,g.jsx)("br",{})," JPG, PNG, or HEIC format only. No Borders. ",(0,g.jsx)("br",{}),"Upload up to 20 photos at once."]})]})]})})]}):le?(0,g.jsxs)("div",{className:"gallery_photo_upload uploading",children:[(0,g.jsxs)("div",{className:"gallery_photo_upload_header",children:[(0,g.jsxs)("h2",{className:"title",children:[(0,g.jsx)("img",{src:"/assets/img/icons/upload.svg",alt:"img"}),"Upload"]}),(0,g.jsx)("p",{className:"subtitle",children:"Your photos are uploading."})]}),(0,g.jsxs)("div",{className:"gallery_photo_uploading_wrap",children:[(0,g.jsxs)("span",{className:"uploading_speed",children:[O," Mbit/s ",L,"% ",G," MB ",H," MB "]}),(0,g.jsx)("ul",{className:"uploading_list",children:E&&(null===E||void 0===E?void 0:E.map((function(e,t){return(0,g.jsxs)("li",{className:"upload_item",children:[100!==e.percentage?(0,g.jsx)("div",{className:"spinner-border text-secondary",role:"status",style:{height:"25px",width:"25px"},children:(0,g.jsx)("span",{className:"sr-only"})}):(0,g.jsx)("span",{className:"done",children:(0,g.jsx)("img",{src:"/assets/img/icons/done.svg",alt:"img"})}),(0,g.jsx)("p",{className:"file_name",children:e.url}),(0,g.jsx)("div",{className:"progress_wrap",style:{width:"500px"},children:(0,g.jsxs)("div",{className:"progress-line",children:[(0,g.jsx)("div",{className:"fill-progress",style:{width:"".concat(e.percentage,"%")}}),(0,g.jsx)("div",{className:"empty-progress"})]})}),(0,g.jsxs)("span",{className:"file_size",children:[e.size.toFixed(2)," MB"]})]},t)})))})]})]}):ie?(0,g.jsxs)("div",{className:"d-flex justify-content-center   gap-1",children:[(0,g.jsx)("img",{src:"/assets/img/icons/info.svg",style:{height:"25px"}}),(0,g.jsx)("h5",{style:{marginBottom:"0px"},children:ie})]}):(0,g.jsxs)("div",{className:"d-flex justify-content-center flex-column align-items-center gap-3",style:{margin:"170px auto"},children:[(0,g.jsx)("span",{className:"FollowModalImgLoader",style:{display:"block"}}),(0,g.jsx)("p",{children:"Please Wait"})]})})})},b=function(e){var t=e.handleUploadClick;return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"gallery_no_photo",children:[(0,g.jsx)("img",{src:"/assets/img/gallery/no-photo-icon.png",alt:""}),(0,g.jsxs)("h4",{className:"title",children:["Use this space to share ",(0,g.jsx)("br",{className:"d-md-none"})," your work with club members."]}),(0,g.jsx)("div",{className:"desc",children:(0,g.jsx)("p",{children:"Show people your style, your skills and your photography interests. Give more depth to yourself as photographer."})}),(0,g.jsx)("a",{className:"btn",onClick:t,children:"Upload First Photo"})]})})},x=n(3056),w=n(1749),k=n(6689),S=n(6856),j=n(2317),C=0,_=function(e){var t=e.usertoken,n=e.SelectedPhotoFn,s=e.IsDeleteApiRun,c=e.setIsDeleteApiRunFalse,f=e.UserPaymentStatus,m=(0,a.useState)(!1),v=(0,o.Z)(m,2),y=(v[0],v[1]),_=(0,a.useState)(!1),E=(0,o.Z)(_,2),N=E[0],A=E[1],D=(0,a.useState)([]),T=(0,o.Z)(D,2),I=T[0],P=T[1],F=(0,a.useState)([]),O=(0,o.Z)(F,2),M=O[0],Z=O[1],R=(0,a.useState)([]),L=(0,o.Z)(R,2),B=L[0],z=L[1],U=(0,a.useState)(!0),H=(0,o.Z)(U,2),W=H[0],q=H[1],V=(0,a.useState)(!1),G=(0,o.Z)(V,2),$=G[0],J=G[1],K=(0,a.useState)(!1),Y=(0,o.Z)(K,2),X=Y[0],Q=Y[1],ee=(0,a.useState)([]),te=(0,o.Z)(ee,2),ne=te[0],re=te[1],ie=(0,a.useState)(5),oe=(0,o.Z)(ie,2),ae=oe[0],se=oe[1],le=(0,a.useState)(!1),ce=(0,o.Z)(le,2),ue=ce[0],de=ce[1],fe=(0,a.useState)(!1),pe=(0,o.Z)(fe,2),he=pe[0],me=pe[1];(0,a.useEffect)((function(){var e=function(){var e=window.innerWidth;e>1400?(se(5),Q(!1)):e>1200?(se(4),Q(!1)):e>767?se(3):e>600?(se(4),Q(!0)):e>380&&se(3),window.innerWidth<=700&&Q(!0)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),(0,a.useEffect)((function(){if(s){for(var e=B.filter((function(e){return!ne.includes(e.id)}
2)),t=0;t<ne;t++)p.Z.getInstance().logEvent("Gallery Photo Delete");z(e),ge(d.v.setSuccessfullyUploadedGalleryPhotos(e)),ge(d.v.setSuccessfullyManageGalleryPhotos(e)),c(),0==e.length&&we()}}),[s]);var ve=(0,a.useRef)(),ge=(0,u.I0)(),ye=function(e){e.stopPropagation()},be=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(n){var i,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=null===n||void 0===n||null===(i=n.slice(0,5))||void 0===i?void 0:i.map((function(e){return e.id})),y(!0),e.prev=2,e.next=5,(0,h.oj)(t,o);case 5:e.sent,ge(d.v.setSuccessfullyUploadedGalleryPhotos(n.slice(0,3))),ge(d.v.setSuccessfullyManageGalleryPhotos(n.slice(0,3))),y(!1),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(2),console.log(e.t0),y(!1);case 15:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}(),xe=function(e){if(e[0].isIntersecting){C+=10;var n=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),!1,e.prev=2,e.next=5,(0,h.$i)(t,false,C,{sortingType:"arranged_photo",value:"new"});case 5:n=e.sent,i=n.data.data,n.data.data.length<10&&q(!1),Z((0,l.Z)(i)),A(!1),e.next=18;break;case 12:e.prev=12,e.t0=e.catch(2),console.log(e.t0),A(!1),q(!1),me(!0);case 18:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}();n()}};(0,a.useEffect)((function(){var e=new IntersectionObserver(xe,{root:null,threshold:0});return ve.current&&e.observe(ve.current),function(){ve.current&&e.unobserve(ve.current)}}),[I]),(0,a.useEffect)((function(){A(!0),de(!1),me(!1),C=0;var e=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,h.$i)(t,false,C,{sortingType:"arranged_photo",value:"new"});case 3:n=e.sent,P(n.data.data),i=n.data.data,A(!1),i.length<10&&q(!1),0==i.length&&de(!0),e.next=17;break;case 11:e.prev=11,e.t0=e.catch(0),console.log(e.t0),A(!1),q(!1),me(!0);case 17:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,a.useEffect)((function(){z(0===C?(0,l.Z)(I):function(e){return[].concat((0,l.Z)(e),(0,l.Z)(M))})}),[I,M]);var we=function(){ge(d.v.setGalleryUploadComponentState({open:!0,BtnDisable:!0})),ge(d.v.setProfileInfoPlusBtnIsClick(!0)),ge(d.v.setViewGallery({mainGallery:!1,manageGallery:!1}))},ke=(0,j.Z)(),Se=function(){ke("ManageGallery")};return(0,g.jsxs)(g.Fragment,{children:[B.length>0&&(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"gallery_manage",children:[(0,g.jsx)("h4",{className:"title",children:"Manage Your Personal Gallery"}),(0,g.jsx)("h6",{className:"subtitle",children:"Manage your gallery photos in this space."}),(0,g.jsx)("div",{className:"desc",children:(0,g.jsx)("p",{style:{fontSize:"14px"},children:f?"As a Pro member, please share up to 50 of your favorite photos in this space.":"Show up to five photos for free. Share as many as 50 as a Pro member."})}),!f&&(0,g.jsx)("button",{className:"btn",onClick:Se,children:"Show Up To 50 Photos"})]}),(0,g.jsx)(w.d,{onChange:function(e,t,n){if(!f&&t+1>5)Se();else{var r=(0,x.L)(B,t,n);z(r),be(r)}},children:(0,g.jsx)(k.$,{id:"items",boxesPerRow:ae,rowHeight:X?120:250,style:{height:(B.length<=6?160:5==ae?110:140)*Math.ceil(B.length/2)},className:"gallery_manage_photos ",disableDrag:!$,children:null===B||void 0===B?void 0:B.map((function(e,t){return(0,g.jsx)(S.P,{className:"queue_item ",children:(0,g.jsxs)("div",{onClick:function(){var t;t=e.id,$||re((function(e){var r=e.includes(t)?e.filter((function(e){return e!==t})):[].concat((0,l.Z)(e),[t]);return n(r),r}))},className:"".concat(t<(f?50:5)?"manage_photo_item active ".concat(ne.includes(e.id)?"selected":""):"manage_photo_item ".concat(ne.includes(e.id)?"selected":"")),style:{cursor:"pointer"},children:[(0,g.jsx)("div",{className:"grab",onMouseEnter:function(){return J(!0)},onMouseLeave:function(){return J(!1)},onClick:ye,children:(0,g.jsx)("i",{className:"bi bi-arrows-move",style:{fontSize:"20px"}})}),(0,g.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_300,f_auto,q_auto/Resized_Photos/".concat(e.compressedImageId),alt:"img"})]})},e.id)}))})})]}),ue&&(0,g.jsx)(b,{handleUploadClick:function(){ge(d.v.setGalleryUploadComponentState({open:!0,BtnDisable:!0})),ge(d.v.setProfileInfoPlusBtnIsClick(!0)),ge(d.v.setViewGallery({mainGallery:!1,manageGallery:!1}))}}),he&&(0,g.jsx)("h4",{children:B.length>0?"We couldn\u2019t load any more of your photos just now. Please refresh the page \u2014 if it keeps happening, let us know.":"We couldn\u2019t load your photos just now. Please refresh the page \u2014 if it keeps happening, let us know."}),N&&(0,g.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:"20px"},children:(0,g.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,g.jsx)("span",{className:"sr-only"})})}),W&&I.length>0&&(0,g.jsx)("div",{ref:ve})]})},E=n(6893),N=n(4805),A=n(2826),D=n(3172),T=function(e){var t=e.id,n=e.photoUrl,s=e.CompressedImageId,l=e.IsWeeklyTopTen,d=e.IsHunted,f=e.CreatedAt,h=e.TotalUpvoteCount,v=e.usertoken,y=e.isHearted,b=e.IsAdultContent,x=e.OwnerId,w=(0,a.useState)(y),k=(0,o.Z)(w,2),S=k[0],j=k[1],C=(0,a.useState)(Number(h)),_=(0,o.Z)(C,2),T=_[0],I=_[1],P=(0,u.I0)(),F=(0,u.v9)((function(e){return e.Login.isLoggedIn})),O=(0,D.ZP)(b,t,x),M=O.isGated,Z=O.reveal,R=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!S),I(S?T-1:T+1),S||p.Z.getInstance().logEvent("Gallery Photo Heart"),e.prev=3,n={isHearted:!S,galleryPhotoId:t},i={Authorization:"Bearer ".concat(v),"Content-Type":"application/json"},e.next=8,c.Z.post("".concat("https://bigbesos.com","/photo/heartedGalleryPhoto"),n,{headers:i});case 8:e.sent,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),console.log(e.t0,"error");case 14:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}();return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"grid-image-item ".concat(M?"aco-host":""),onClick:function(){return M?void(F?Z():P(m.N.setSignInModalState(!0))):(e=t,P(E.H.setLightBoxActiveImgId(e)),p.Z.getInstance().logEvent("Expand Photo"),void P(m.N.setisLightboxModalOpen(!0)));var e},style:{cursor:"pointer"},children:[(0,g.jsxs)("button",{className:"gallery_love",style:M?{zIndex:4}:void 0,onClick:function(e){e.stopPropagation(),R()},children:[(0,g.jsx)("img",{src:"/assets/img/icons/".concat(S?"heart-fill.svg":"heart.svg"),alt:"img"}),T>0&&T]}),(0,g.jsx)("img",{className:"gallery_img ",src:n||"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_500,f_auto,q_auto/Resized_Photos/".concat(s),alt:"img"}),(0,g.jsxs)("div",{className:"content",children:[(0,g.jsx)("h6",{className:"title",children:l||d?l?"Weekly Top Ten":"Hunted Photo":""}),(0,g.jsx)("span",{className:"date",children:(0,N.p)(f)})]}),M&&(0,g.jsx)(A.Z,{variant:"grid",isLoggedIn:F,photoId:t})]})})},I=0,P=function(e){var t,n,c=e.usertoken,f=e.OtherUserGAllery,p=e.OtherUserID,m=(e.ReloadGalleryPhotolist,e.UserName),v=e.CheckPhotoListIsEmptyFn,y=e.UserPaymentStatus,x=e.OtherUserPaymentStatus,w=e.profile,k=(0,a.useState)([]),S=(0,o.Z)(k,2),j=S[0],C=S[1],_=(0,a.useState)([]),N=(0,o.Z)(_,2),A=N[0],D=N[1],P=(0,a.useState)(!1),F=(0,o.Z)(P,2),O=F[0],M=F[1],Z=(0,a.useState)(!1),R=(0,o.Z)(Z,2),L=R[0],B=R[1],z=(0,a.useState)(!0),U=(0,o.Z)(z,2),H=U[0],W=U[1],q=(0,a.useState)(!1),V=(0,o.Z)(q,2),G=V[0],$=V[1],J=(0,u.I0)(),K=(0,a.useRef)(),Y=((0,u.v9)((function(e){return e.Modal.StateAfterUploadPhoto})),(0,u.v9)((function(e){return e.Gallery.GalleryUploadComponentState}))),X=((0,u.v9)((function(e){return e.Gallery.ProfileInfoPlusBtnIsClick})),(0,u.v9)((function(e){return e.Gallery.ViewGallery}))),Q=function(e){if(e[0].isIntersecting){I+=10;var t=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t,n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M(!0),e.prev=1,e.next=4,(0,h.$i)(c,p,I,{sortingType:"upload_date",value:"new"},f?x:y,w);case 4:t=e.sent,n=t.data.data,t.data.data.length<10&&W(!1),D((function(e){return[].concat((0,l.Z)(e),(0,l.Z)(n))})),M(!1),e.next=17;break;case 11:e.prev=11,e.t0=e.catch(1),console.log(e.t0),M(!1),W(!1),$(!0);case 17:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(){return e.apply(this,arguments)}}();t()}};return(0,a.useEffect)((function(){var e=new IntersectionObserver(Q,{root:null,threshold:0});return K.current&&e.observe(K.current),function(){K.current&&e.unobserve(K.current)}}
2),[j,Y]),(0,a.useEffect)((function(){J(d.v.setGalleryUploadComponentState({open:!1,BtnDisable:!1})),J(d.v.setViewGallery({mainGallery:!0,manageGallery:!1})),n=[],D([]),C([]),M(!0),B(!1),$(!1),I=0;var e=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t,n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,h.$i)(c,p,I,{sortingType:"upload_date",value:"new"},f?x:y,w);case 3:t=e.sent,n=t.data.data,C(n),M(!1),n.length<10&&W(!1),0==n.length?(B(!0),v(!0)):(v(!1),B(!1),J(d.v.setGalleryUploadComponentState({open:!1,BtnDisable:!1}))),e.next=17;break;case 11:e.prev=11,e.t0=e.catch(0),console.log(e.t0),M(!1),W(!1),$(!0);case 17:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),n=0===I?(0,l.Z)(j):[].concat((0,l.Z)(j),(0,l.Z)(A)),(0,a.useEffect)((function(){n&&J(E.H.setLightBoxState({PhotoArr:n,LoginUserPhotos:!f,gallery:!0}))}),[n]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"gutter-sizer",children:[(0,g.jsx)(s.G,{columnsCountBreakPoints:{350:1,750:2,900:3},children:(0,g.jsx)(s.Z,{gutter:"20px",children:null===(t=n)||void 0===t?void 0:t.map((function(e,t){return(0,g.jsx)(T,{id:e.id,photoUrl:e.url,CompressedImageId:e.compressedImageId,IsWeeklyTopTen:e.isWeeklyTopTen,IsHunted:e.isHunted,CreatedAt:e.createdAt,TotalUpvoteCount:e.heartedCount,usertoken:c,IsAdultContent:e.is_adult_content,OwnerId:e.user_id,isHearted:e.isHearted},e.id)}))})}),L&&!X.manageGallery&&(f?(0,g.jsx)("h4",{children:"".concat(m," hasn\u2019t added photos to their personal gallery yet.")}):(0,g.jsx)(b,{handleUploadClick:function(){J(d.v.setGalleryUploadComponentState({open:!0,BtnDisable:!0})),J(d.v.setProfileInfoPlusBtnIsClick(!0)),J(d.v.setViewGallery({mainGallery:!1,manageGallery:!1}))}})),G&&(0,g.jsx)("h4",{children:n.length>0?"We couldn\u2019t load any more photos just now. Please refresh the page \u2014 if it keeps happening, let us know.":"We couldn\u2019t load these photos just now. Please refresh the page \u2014 if it keeps happening, let us know."})]}),O&&(0,g.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:"10px"},children:(0,g.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,g.jsx)("span",{className:"sr-only"})})}),H&&n.length>0&&(0,g.jsx)("div",{ref:K})]})},F=function(e){var t=e.usertoken,n=e.OtherUserGAllery,s=e.OtherUserID,l=e.ReloadGalleryPhotolist,c=e.UserName,f=e.UserPaymentStatus,p=e.OtherUserPaymentStatus,m=e.profile,v=(0,a.useState)(!1),b=(0,o.Z)(v,2),x=b[0],w=b[1],k=(0,a.useState)([]),S=(0,o.Z)(k,2),j=S[0],C=S[1],E=(0,a.useState)(!1),N=(0,o.Z)(E,2),A=N[0],D=N[1],T=(0,a.useState)(!1),I=(0,o.Z)(T,2),F=I[0],O=I[1],M=(0,a.useState)({sortingType:"upload_date",value:"new"}),Z=(0,o.Z)(M,2),R=(Z[0],Z[1],(0,a.useState)(!0)),L=(0,o.Z)(R,2),B=(L[0],L[1],(0,a.useState)(!1)),z=(0,o.Z)(B,2),U=(z[0],z[1]),H=(0,u.I0)(),W=((0,a.useRef)(),(0,u.v9)((function(e){return e.Modal.StateAfterUploadPhoto})),(0,u.v9)((function(e){return e.Gallery.GalleryUploadComponentState}))),q=((0,u.v9)((function(e){return e.Gallery.SuccessfullyUploadedGalleryPhotos})),(0,u.v9)((function(e){return e.Gallery.ProfileInfoPlusBtnIsClick})),(0,u.v9)((function(e){return e.Gallery.ViewGallery}))),V=(0,u.v9)((function(e){return e.Gallery.IsManageGallery})),G=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D(!0),w(!0),e.prev=2,e.next=5,(0,h.DO)(t,j);case 5:e.sent,O(!1),w(!1),C([]),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(){return e.apply(this,arguments)}}(),$=function(e){U(e)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"othersWorkContentWrap fade show active",id:"otherWork",role:"tabpanel",children:[(0,g.jsxs)("div",{className:"feed_content_heading d-flex gap-lg-3 align-items-center justify-content-between flex-wrap",children:[(0,g.jsxs)("div",{className:"d-flex flex-column text-black ",style:{width:"100%"},children:[(0,g.jsx)("h3",{className:"title",style:{cursor:"pointer",marginBottom:"5px"}
2,onClick:n?null:function(){H(d.v.setViewGallery({mainGallery:!0,manageGallery:!1}))},children:n?"".concat(c.split(" ")[0].substring(0,10),"'s Personal Gallery"):"My Personal Gallery"}),(0,g.jsx)("p",{style:{marginTop:"10px"},children:"".concat(n?"Photos that ".concat(c.split(" ")[0].substring(0,10)," is sharing with you to show their style."):"Add photos to this space to show Members your photography style.")})]}),!n&&(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("ul",{className:"gallery_tools",children:[(0,g.jsx)("li",{className:"tool",onClick:function(){H(d.v.setGalleryUploadComponentState({open:!0,BtnDisable:!0})),H(d.v.setProfileInfoPlusBtnIsClick(!0)),H(d.v.setViewGallery({mainGallery:!1,manageGallery:!1}))},children:(0,g.jsxs)("button",{disabled:W.BtnDisable,style:{border:"none",backgroundColor:"transparent",filter:W.BtnDisable?"opacity(0.5)":"none",cursor:W.BtnDisable?"not-allowed":"pointer"},children:[(0,g.jsx)("img",{src:"/assets/img/icons/g-plus.svg",alt:"Add"}),(0,g.jsx)("span",{className:"tip",children:(0,g.jsx)("span",{children:"Add"})})]})}),(0,g.jsx)("li",{className:"tool",children:(0,g.jsxs)("button",{onClick:function(){O(!0)},style:{border:"none",backgroundColor:"transparent"},children:[(0,g.jsx)("img",{src:"/assets/img/icons/g-trash.svg",alt:"img",style:{filter:"brightness(0.5)",cursor:"pointer"}}),(0,g.jsx)("span",{className:"tip",children:(0,g.jsx)("span",{style:{backgroundColor:"white"},children:"Delete"})})]})}),(0,g.jsx)("li",{className:"tool",children:(0,g.jsxs)("button",{onClick:function(){H(d.v.setGalleryUploadComponentState({open:!1,BtnDisable:!1})),q.mainGallery||q.manageGallery?H(d.v.setViewGallery({mainGallery:!q.mainGallery,manageGallery:!q.manageGallery})):H(d.v.setViewGallery({mainGallery:!1,manageGallery:!0}))},style:{border:"none",backgroundColor:"transparent",filter:V?"opacity(0.5)":"none",cursor:V?"not-allowed":"pointer"},children:[(0,g.jsx)("img",{src:"/assets/img/icons/g-picture.svg",alt:"img"}),(0,g.jsx)("span",{className:"tip",children:(0,g.jsx)("span",{children:"Manage"})})]})})]})})]}),q.mainGallery&&(0,g.jsx)(P,{OtherUserGAllery:n,usertoken:t,ReloadGalleryPhotolist:l,OtherUserID:s,UserName:c,CheckPhotoListIsEmptyFn:$,UserPaymentStatus:f,OtherUserPaymentStatus:p,profile:m})]}),q.manageGallery&&!n&&(0,g.jsx)(_,{usertoken:t,SelectedPhotoFn:function(e){C(e)},IsDeleteApiRun:A,setIsDeleteApiRunFalse:function(){D(!1)},UserPaymentStatus:f}),W.open&&!n&&(0,g.jsx)(y,{UserPaymentStatus:f,usertoken:t,CheckPhotoListIsEmptyFn:$}),F&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"backdrop"}),(0,g.jsx)("div",{className:"modal fade bph-modal show",id:"QueuedPhotoModal",tabIndex:-1,"aria-labelledby":"sharePhotoModal","aria-hidden":"true",style:{display:"block"},children:(0,g.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,g.jsx)("div",{className:"modal-content",children:(0,g.jsx)("div",{className:"modal-body",children:(0,g.jsx)("div",{className:"onboarding_modal photoUpload_modal photoQueued",children:(0,g.jsxs)("div",{className:"modal_inner",children:[(0,g.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:function(){O(!1)}}),(0,g.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,g.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,g.jsx)("div",{className:"modal_content photoQueue_content removed",children:(0,g.jsxs)("div",{className:"modal_title",children:[(0,g.jsxs)("h3",{className:"title",children:[(null===j||void 0===j?void 0:j.length)>0&&(0,g.jsx)("img",{src:"/assets/img/icons/remove.svg",alt:"img"}),(null===j||void 0===j?void 0:j.length)>0?"Remove":"To delete gallery photos"]}),(0,g.jsx)("p",{className:"subtitle",children:(null===j||void 0===j?void 0:j.length)>0?"Are you sure you want to delete this photo(s) from your Other Work Gallery?":q.manageGallery?"First select and highlight the photo(s) you want to delete. Then click the trash can icon.":" First go to Manage view, select photo(s) to delete then click the trash can."}),(0,g.jsx)("button",{className:"btn",type:"submit",onClick:function(){O(!1)},children:(null===j||void 0===j?void 0:j.length)>0?"No, Don\u2019t Delete":"OK"}),(null===j||void 0===j?void 0:j.length)>0&&(x?(0,g.jsx)("span",{className:"loader btn_note",style:{borderTop:"solid black",margin:"10px auto"}}):(0,g.jsx)("span",{className:"btn_note",style:{cursor:"pointer"},onClick:G,children:"Yes, delete this photo(s)."}))]})})]})})})})})})]})]})}},2294:function(e,t,n){"use strict";var r=n(9439),i=n(2791),o=n(1087),a=n(9434),s=n(7019),l=n(5201),c=n(7884),u=n(1570),d=n(2818),f=n(6054),p=n(5817),h=n(184);t.Z=function(){var e=(0,a.I0)(),t=(0,i.useState)("photos"),n=(0,r.Z)(t,2),m=n[0],v=(n[1],(0,i.use
2State)(!1)),g=(0,r.Z)(v,2),y=g[0],b=g[1],x=(0,i.useRef)(0),w=(0,i.useCallback)((function(){if((0,l.I)()){var e=x.current+=1;(0,u.h8)().then((function(t){if(e===x.current){var n=t&&t.data&&t.data.data||{};b(!!n.has_unseen)}})).catch((function(){}))}}),[]);(0,i.useEffect)((function(){w()}),[w]),(0,i.useEffect)((function(){if((0,l.I)())return(0,d.K)((function(e){e.clearedAll?b(!1):w()}))}),[w]);var k=function(t){return function(n){(0,l.I)()||(n.preventDefault(),(0,c.VB)({type:"subnav",returnUrl:t}),e(s.N.setPopupModalMessage({joinModalHeading:(0,c.dO)("subnav")})),e(s.N.setJoinNowModalState(!0)))}},S=function(e){var t=e.to,n=e.tab,r=e.activeTab,i=e.label,a=e.labelText,s=e.onClick,l=e.cornerDot,c=void 0!==l&&l,u=e.hasTicker,d=void 0!==u&&u,f=e.state;return(0,h.jsxs)("li",{className:d?"has-ticker":void 0,"data-label":a,style:{position:"relative"},children:[(0,h.jsx)(o.OL,{to:t,state:f,activeClassName:"active","aria-current":r===n?"page":void 0,onClick:s,children:i}),c&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("span",{"aria-hidden":"true",style:{position:"absolute",top:-2,right:-3,width:8,height:8,borderRadius:"50%",backgroundColor:"#1A9E6A",boxShadow:"0 0 0 2px #fff"}}),(0,h.jsx)("span",{style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},children:"Something new on the Board for you"})]})]})};return(0,h.jsx)("div",{className:"subnav-offset",children:(0,h.jsx)("div",{className:"container container-two",children:(0,h.jsxs)("ul",{className:"nav-tabs nav tab-style-one subnav-tabs",role:"tablist",children:[(0,h.jsx)(S,{to:"/",tab:"photos",activeTab:m,label:"Photos",labelText:"Photos"}),(0,h.jsx)(S,{to:"/activity",tab:"activity",activeTab:m,label:"Activity",labelText:"Activity",onClick:k("/activity")}),(0,h.jsx)(S,{to:"/people",tab:"people",activeTab:m,label:"People",labelText:"People",onClick:k("/people")}),p.T?(0,h.jsx)(S,{to:"/review",tab:"review",activeTab:m,hasTicker:!0,labelText:"Review",label:(0,h.jsxs)(h.Fragment,{children:["Review",(0,h.jsx)("span",{className:"ticker",children:"New"})]}),state:{entry:"nav_tab"},onClick:function(e){(0,f.Z)("Review Door Click",{door:"nav_tab",logged_in:(0,l.I)()}),k("/review")(e)}}):(0,h.jsx)(S,{to:"/photo-analysis",tab:"photo-analysis",activeTab:m,label:"Analyze",labelText:"Analyze",onClick:k("/photo-analysis")}),(0,h.jsx)(S,{to:"/board",tab:"board",activeTab:m,state:{openAtTop:!0},cornerDot:y,hasTicker:!p.T,labelText:"Board",label:p.T?"Board":(0,h.jsxs)(h.Fragment,{children:["Board",(0,h.jsx)("span",{className:"ticker",children:"New"})]})})]})})})}},6461:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(4165),i=n(5861),o=n(9439),a=n(2791),s=n(7689),l=n(4805),c=n(6617),u=n(9434),d=n(7019),f=n(7818),p=n(4180),h=n(8056),m=n(4061),v=n(9704),g=n(3195),y=n(9343),b=n(3054),x=n(6893),w=n(4848),k=n(9837),S=n(184),j=function(){return(0,S.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",children:[(0,S.jsx)("path",{d:"M3 12C3 13.78 3.52784 15.5201 4.51677 17.0001C5.50571 18.4802 6.91131 19.6337 8.55585 20.3149C10.2004 20.9961 12.01 21.1743 13.7558 20.8271C15.5016 20.4798 17.1053 19.6226 18.364 18.364C19.6226 17.1053 20.4798 15.5016 20.8271 13.7558C21.1743 12.01 20.9961 10.2004 20.3149 8.55585C19.6337 6.91131 18.4802 5.50571 17.0001 4.51677C15.5201 3.52784 13.78 3 12 3C9.48395 3.00947 7.06897 3.99122 5.26 5.74L3 8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,S.jsx)("path",{d:"M3 3V8H8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})},C=n(65),_=function(){return(0,S.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,S.jsxs)("g",{"clip-path":"url(#clip0_6532_48655)",children:[(0,S.jsx)("path",{d:"M5 23H19",stroke:"#CDCED2","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,S.jsx)("path",{d:"M5 3H19",stroke:"#CDCED2","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,S.jsx)("path",{d:"M17 23V18.828C16.9999 18.2976 16.7891 17.789 16.414 17.414L12 13L7.586 17.414C7.2109 17.789 7.00011 18.2976 7 18.828V23",stroke:"#CDCED2","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,S.jsx)("path",{d:"M7 3V7.172C7.00011 7.70239 7.2109 8.21101 7.586 8.586L12 13L16.414 8.586C16.7891 8.21101 16.9999 7.70239 17 7.172V3",stroke:"#CDCED2","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),(0,S.jsx)("defs",{children:(0,S.jsx)("clipPath",{id:"clip0_6532_48655",children:(0,S.jsx)("rect",{width:"24",height:"24",fill:"
2currentColor"})})})]})},E=n(6866),N=function(){return(0,S.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:18,viewBox:"0 0 19 18",fill:"none",children:[(0,S.jsx)("path",{d:"M8.20099 15.75C8.33265 15.978 8.522 16.1674 8.75002 16.299C8.97804 16.4306 9.2367 16.4999 9.49999 16.4999C9.76328 16.4999 10.0219 16.4306 10.25 16.299C10.478 16.1674 10.6673 15.978 10.799 15.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,S.jsx)("path",{d:"M10.937 1.73561C10.2601 1.50751 9.53864 1.44383 8.83226 1.54982C8.12588 1.65581 7.45487 1.92843 6.87474 2.34514C6.2946 2.76185 5.82199 3.31067 5.49599 3.94623C5.17 4.58179 4.99998 5.28582 4.99999 6.00011C4.99999 9.37436 3.94174 10.4671 2.94499 11.4954C2.84717 11.6029 2.7827 11.7365 2.75941 11.88C2.73613 12.0234 2.75503 12.1706 2.81383 12.3035C2.87262 12.4364 2.96878 12.5494 3.09059 12.6287C3.21241 12.708 3.35465 12.7502 3.49999 12.7501H15.5C15.6453 12.7502 15.7876 12.708 15.9094 12.6287C16.0312 12.5494 16.1274 12.4364 16.1862 12.3035C16.245 12.1706 16.2639 12.0234 16.2406 11.88C16.2173 11.7365 16.1528 11.6029 16.055 11.4954C15.9006 11.3364 15.7542 11.17 15.6162 10.9966",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,S.jsx)("path",{d:"M14 8.25C15.2426 8.25 16.25 7.24264 16.25 6C16.25 4.75736 15.2426 3.75 14 3.75C12.7574 3.75 11.75 4.75736 11.75 6C11.75 7.24264 12.7574 8.25 14 8.25Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},A=n(5817);function D(e,t){return!0===t&&e?"review":"analyze"}var T=function(e){var t=e.props,n=e.OtheruserProfileNavigateHandler,s=e.MainImgHandler,l=e.voteHandler,c=e.SharePhotobtnHandler,f=e.FollowHandler,p=e.CongratulationssHandler,h=e.BoostState,m=e.BoostSvgs,v=e.setIsModalOpen,y=e.address,b=e.formattedDate,x=e.formattedLikes,w=e.votebtnactive,k=e.follow,j=e.IsCongratulate,C=e.comingUp,_=e.UserPaymentStatus,T=e.setAiReportNotReadyPhotoID,I=e.currentWeekHunted,P=e.isAiReportGenerated,F=e.isAiReportAccessible,O=e.aiReportOnItSeen,M=e.weeklyStanding,Z=e.onReviewClick,R=(0,a.useState)(t.is_notify),L=(0,o.Z)(R,2),B=L[0],z=L[1],U=(0,a.useState)(!1),H=(0,o.Z)(U,2),W=H[0],q=H[1],V=(0,u.I0)(),G=function(){t.isLoggedIn||"/otherusers-profile"==t.currentUrl?l():(V(d.N.setPopupModalMessage({joinModalHeading:"to upvote",popupHeading:"Your Upvote is Official.",popupMessage:"You\u2019re in! Don\u2019t forget to check your email Tuesday to see if this photo is one of the week\u2019s most upvoted.",photoID:t.postId,userID:t.Userid})),V(d.N.setJoinNowModalState(!0)))};if(t.congBtn)return(0,S.jsxs)("div",{className:"feed_meta",children:[(0,S.jsxs)("div",{className:"feed_author",children:[(0,S.jsx)("div",{className:"avatar",children:(0,S.jsx)("a",{onClick:t.isLoggedIn?n:s,children:(0,S.jsx)("img",{src:t.UserPhoto||"https://ui-avatars.com/api/?name=".concat(t.Name,"&size=40&rounded=true&background=01655a&color=fff"),alt:"user"})})}),(0,S.jsxs)("div",{className:"author_text",children:[(0,S.jsx)("a",{className:"user_name",onClick:t.isLoggedIn?n:s,children:t.Name}),(0,S.jsxs)("div",{className:"author_meta",children:[y&&(0,S.jsx)("span",{className:"location",children:y}),b&&(0,S.jsx)("span",{className:"date",children:b})]})]})]}),(0,S.jsx)("a",{onClick:c,className:"feed_share ms-auto d-md-none",children:(0,S.jsx)("img",{src:"/assets/img/icons/share-icon-black.svg",alt:"img",className:"img-fluid share-img"})}),t.loginUserid!==t.Userid&&(0,S.jsxs)("a",{className:"btn btn-follow feed_follow d-md-none",onClick:t.isLoggedIn?f:s,children:[(0,S.jsx)("img",{className:"follow",src:"/assets/img/icons/follow.svg",alt:"img",style:{display:k?"none":"inline",filter:k?"":"invert(1)"}}),(0,S.jsx)("img",{className:"following",src:"/assets/img/icons/following.svg",alt:"img",style:{display:k?"inline":"none"}})]}),(0,S.jsxs)("div",{className:"feed_meta_right",children:[(0,S.jsxs)("a",{onClick:c,className:"feed_share d-none d-md-inline-flex",children:[(0,S.jsx)("img",{src:"/assets/img/icons/share-icon-black.svg",alt:"img",className:"img-fluid share-img"}),"Share"]}),t.loginUserid!==t.Userid&&(0,S.jsxs)("a",{className:"btn btn-follow feed_follow d-none d-md-inline-flex",onClick:t.isLoggedIn?f:s,children:[(0,S.jsx)("img",{className:"follow",src:"/assets/img/icons/follow.svg",alt:"img",style:{display:k?"none":"inline",filter:k?"":"invert(1)"}}),(0,S.jsx)("img",{className:"following",src:"/assets/img/icons/following.svg",alt:"img",style:{display:k?"inline":"none"}}),(0,S.jsx)("span",{className:"follow",style:{display:k?"none":"inline"},children:"Follow"}),(0,S.jsx)("span",{className:"following",style:{display:k?"inline":"none"},children:"Following"})]}),t.congBtn&&t.loginUserid!==t.Userid&&(j?(0,S.jsxs)("a",{style:{cursor:"default",gap:"10px",padding:"10px 27px",border:"solid 1px gray",flexGrow:"1"},className:"btn cong-btn cong-send",children:[(0,S.jsx)("img",{src:"/assets/img/icons/green2-star.svg",className:"img-fluid cong-img",alt:"img"}),(0,S.jsx)("span",{children:"Congratulated"})]}):(0,S.jsxs)("a",{onClick:t.isLoggedIn?p:s,className:"btn cong-btn cong-not-send",style:{gap:"5px",flexGrow:"1"},children:[(0,S.jsx)("img",{src:"/assets/img/icons/star.svg",className:"img-fluid cong-img",alt:"img"}),(0,S.jsx)("span",{children:"Congratulations!"})]})),(0,S.jsx)("div",{className:"feed_vote",children:(0,S.jsxs)("a",{onClick:G,className:"btn btn-vote ".concat(w?"active":""),children:[(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,S.jsx)("path",{d:"M18 15L12 9L6 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),x]})})]})]});var $=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,E.BC)(t.postId,t.Userid,z,q);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,S.jsxs)("div",{className:"feed_meta",children:[(0,S.jsxs)("div",{className:"feed_author",children:[(0,S.jsx)("div",{className:"avatar",children:(0,S.jsx)("a",{className:"user_img",onClick:t.isLoggedIn?n:s,style:{backgroundImage:"url(".concat(t.UserPhoto||"",")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:"50%",cursor:"pointer"},children:!t.UserPhoto&&(0,S.jsx)("img",{src:"https://ui-avatars.c
2om/api/?name=".concat(t.Name,"&size=40&rounded=true&background=01655a&color=fff"),alt:"img"})})}),(0,S.jsxs)("div",{className:"author_text",children:[(0,S.jsx)("a",{className:"user_name",onClick:t.isLoggedIn?n:s,children:t.Name}),(0,S.jsxs)("div",{className:"author_meta",children:[y&&(0,S.jsx)("span",{className:"location",children:y}),b&&(0,S.jsx)("span",{className:"date",children:b})]})]})]}),(0,S.jsx)("div",{className:"feed_vote d-md-none",children:C?(0,S.jsx)("a",{onClick:function(){B||$()},className:"btn notify-btn ",style:{backgroundColor:B?" #CDCED2":"#FFD621",cursor:B?" default":"pointer"},children:W?(0,S.jsx)("span",{className:"loader"}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(N,{}),B?"Notify Set":"Notify Me"]})}):(0,S.jsxs)("a",{onClick:G,className:"btn btn-vote ".concat(t.congBtn?"weeklyTop10Linke-btn":""," ").concat(w?"active":""),children:[(0,S.jsx)("img",{src:"/assets/img/icons/arrow-up.svg",alt:"img"}),(0,S.jsx)("span",{children:x})]})}),(0,S.jsxs)("div",{className:"feed_meta_right",children:[(0,S.jsxs)("a",{onClick:c,className:"feed_share",children:[(0,S.jsx)("img",{src:"/assets/img/icons/share-icon-black.svg",alt:"img",className:"img-fluid share-img"}),"Share"]}),t.loginUserid!==t.Userid?(0,S.jsx)("a",{className:"btn btn-follow feed_follow",children:k?(0,S.jsxs)("span",{onClick:f,className:"btn btn-follow",style:{width:"90px"},children:[(0,S.jsx)("img",{style:{height:"28px"},src:"/assets/img/icons/following.svg",alt:"img"}),(0,S.jsx)("span",{style:{color:"#37394b",fontWeight:"500"},children:"Following"})]}):(0,S.jsxs)("span",{onClick:t.isLoggedIn?f:s,className:"btn btn-follow follow",style:{width:"90px"},children:[(0,S.jsx)("img",{src:"/assets/img/icons/follow.svg",alt:"img",style:{filter:"invert(1)"}}),(0,S.jsx)("span",{style:{color:"#37394b",fontWeight:"500"},children:"Follow"})]})}):h&&t.show&&(0,S.jsxs)("a",{style:{cursor:["Rehunted","Rehunted_Before"].includes(h)?"default":"pointer"},className:"btn boost_btn ".concat("Rehunt"===h?"":"Expired"===h?"expired":"boosted"),onClick:["Rehunted","Rehunted_Before"].includes(h)?null:function(){v(!0),"Rehunt"!==h||_||g.Z.getInstance().logEvent("Rehunt Not Paid")},children:["Rehunted_Before"===h?"Rehunted":h,(0,S.jsx)("span",{className:"icon",children:null===m||void 0===m?void 0:m[h]})]}),(0,S.jsx)("div",{className:"feed_vote d-none d-md-inline-flex",children:C?(0,S.jsx)("button",{onClick:function(){B||$()},className:"btn notify-btn ",style:{backgroundColor:B?" #CDCED2":"#FFD621",cursor:B?" default":"pointer"},children:W?(0,S.jsx)("span",{className:"loader"}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(N,{}),B?"Notify Set":"Notify Me"]})}):(0,S.jsxs)("a",{onClick:G,className:"btn btn-vote ".concat(t.show?"profileView":""," ").concat(t.congBtn?"weeklyTop10Linke-btn":""," ").concat(w?"active":""),children:[(0,S.jsx)("img",{src:"/assets/img/icons/arrow-up.svg",alt:"img"}),(0,S.jsx)("span",{children:x})]})}),t.congBtn&&t.loginUserid!==t.Userid&&(j?(0,S.jsxs)("a",{style:{cursor:"default",gap:"5px",padding:"10px 27px",border:"solid 1px gray"},className:"btn cong-btn cong-send",children:[(0,S.jsx)("img",{src:"/assets/img/icons/green2-star.svg",className:"img-fluid cong-img",alt:"img"}),(0,S.jsx)("span",{children:"Congratulated"})]}):(0,S.jsxs)("a",{onClick:t.isLoggedIn?p:s,className:"btn cong-btn cong-not-send",style:{gap:"5px"},children:[(0,S.jsx)("img",{src:"/assets/img/icons/star.svg",className:"img-fluid cong-img",alt:"img"}),(0,S.jsx)("span",{children:"Congratulations!"})]})),t.loginUserid==t.Userid&&t.show&&("review"===D(M,A.T)?(0,S.jsx)("button",{type:"button",className:"btn aiBtn ws-review-pill",onClick:Z,children:"Review"}):(0,S.jsxs)("button",{className:"btn aiBtn",onClick:function(){I&&_?T(t.postId):(V(d.N.setAiReportAPiPayload({upvotes:t.TotalVotes,photoId:t.postId,photoUrl:t.img,isAiReportGenerated:P,isAiReportAccessible:F,aiReportOnItSeen:O})),V(d.N.setAiReportModal(!0)))},children:[(0,S.jsx)("img",{src:"/assets/img/ai-report/aibtnicon.png",alt:"AI",className:"aiBtnIcon"}),"Analyze"]}))]})]})},I=n(8770),P=n(4885),F=n.n(P),O=n(8329),M=n(2317),Z=n(2826),R=n(3172),L=n(1676),B=function(e){var t,n,N,A=(0,a.useState)(e.voted),D=(0,o.Z)(A,2),P=D[0],B=D[1],z=(0,a.useState)(e.voted||!1),U=(0,o.Z)(z,2),H=U[0],W=U[1],q=(0,a.useState)(e.TotalVotes),V=(0,o.Z)(q,2),G=V[0],$=V[1],J=(0,a.useState)(e.is_follow),K=(0,o.Z)(J,2),Y=K[0],X=K[1],Q=(0,a.useState)(e.is_congrat),ee=(0,o.Z)(Q,2),te=ee[0],ne=ee[1],re=(0,a.useState)(!1),ie=(0,o.Z)(re,2),oe=ie[0],ae=ie[1],se=(0,a.useState)(null===e||void 0===e?void 0:e.boostedWeeklyPhoto),le=(0,o.Z)(se,2),ce=le[0],ue=le[1],de=(0,a.useState)(!1),fe=(0,o.Z)(de,2),pe=fe[0],he=fe[1],me=(0,a.useState)(""),ve=(0,o.Z)(me,2),ge=ve[0],ye=ve[1],be=(0,a.useState)(!1),xe=(0,o.Z)(be,2),we=xe[0],
2ke=xe[1],Se=(0,u.I0)(),je=(0,h.Z)(e.img),Ce=(0,R.ZP)(e.isAdultContent,e.postId,e.Userid),_e=Ce.isGated,Ee=Ce.reveal,Ne=(0,a.useRef)(null),Ae=(0,a.useRef)(_e);(0,a.useEffect)((function(){Ae.current&&!_e&&Ne.current&&Ne.current.focus(),Ae.current=_e}),[_e]);var De=(0,a.useRef)(null),Te=(0,u.v9)((function(e){return e.photoTracking.trackedIds})),Ie=new Set(Te);(0,a.useEffect)((function(){if(e.isLoggedIn&&e.scheduleGlobalPhotoViews&&!we){var t=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting){var n=e.postId;if(!Ie.has(n)){Se((0,I.zZ)(n));var r={photoId:n,status:e.boostedWeeklyPhoto||""};e.globalPhotoViewBuffer.push(r),e.scheduleGlobalPhotoViews(),ke(!0)}}}))}),{root:null,threshold:.5});return De.current&&t.observe(De.current),function(){De.current&&t.unobserve(De.current)}}}),[e.isLoggedIn,e.postId,e.globalAlreadyTrackedIds,e.globalPhotoViewBuffer,we]);var Pe=(0,f.V)(e.Userlocation,16),Fe=(0,l.p)(e.postedDate),Oe=(0,c.J)(G),Me=(0,u.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),Ze=function(){Se(w.$.setSocketReceiverUserID(e.Userid)),Se(w.$.setReloadNotificationSenderFn(!Me))},Re=(0,s.s0)(),Le=!(!e.weeklyStanding||!0!==e.weeklyStanding.stamp),Be=function(){Se(d.N.setPopupModalMessage({joinModalHeading:"",popupHeading:"You\u2019re In.",popupMessage:"Next, upvote the photo you were looking at. Give it a chance to be featured in our Tuesday email!",photoID:e.postId,userID:e.Userid})),Se(d.N.setJoinNowModalState(!0))},ze=(0,u.v9)((function(e){return e.LightBox.UpdateTheMianFeedpage}));(0,a.useEffect)((function(){(null===ze||void 0===ze?void 0:ze.photoID)===e.postId&&(ze.TotalVote!==G&&($(ze.TotalVote),W(!H),B(!P)),X(null===ze||void 0===ze?void 0:ze.Follow))}),[ze]),(0,a.useEffect)((function(){B(e.voted||!1),W(e.voted||!1)}),[e.voted]);var Ue=function(){var t=(0,i.Z)((0,r.Z)().mark((function t(){var n,i,o,a;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.usertoken||(n=O.Z.get("batchId"))||(n=F()(),i=new Date,o=new Date(i.getTime()+432e5),O.Z.set("batchId",n,{expires:o})),W(!H),B(!P),P?(a="remove",$(1*G-1),Se(x.H.setUpdateTheMianFeedpage({TotalVote:1*G-1,Follow:Y,photoID:e.postId,votebtnactive:!H}))):($(1*G+1),Se(x.H.setUpdateTheMianFeedpage({TotalVote:1*G+1,Follow:Y,photoID:e.postId,votebtnactive:!H})),a="add",g.Z.getInstance().setUserId(e.loginUserid),g.Z.getInstance().logEvent("Upvote"),Ze()),t.prev=4,t.next=7,(0,b.T)(e.postId,a,e.usertoken,n);case 7:t.sent,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(4);case 12:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}(),He=(0,u.v9)((function(e){return e.Modal.PopupModalMessage}));
2(0,a.useEffect)((function(){e.postId&&He.photoID==e.postId&&!e.voted&&(Ue(),Se(d.N.setPopupModalMessage({photoID:"",userID:""})))}),[]);var We=function(){var t=(0,i.Z)((0,r.Z)().mark((function t(n){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),X(!Y),Y||Ze(),Se(x.H.setUpdateTheMianFeedpage({TotalVote:G,Follow:!Y,photoID:e.postId})),t.prev=4,t.next=7,(0,y.P)(e.Userid,!Y,e.usertoken,e.loginUserid,Ze);case 7:t.sent,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(4);case 12:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(e){return t.apply(this,arguments)}}(),qe=function(){var t=(0,i.Z)((0,r.Z)().mark((function t(n){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),ne(!te),t.prev=2,t.next=5,(0,k.Z)(e.usertoken,e.Userid,e.postId,te,e.loginUserid);case 5:t.sent,Ze(),t.next=11;break;case 9:t.prev=9,t.t0=t.catch(2);case 11:case"end":return t.stop()}}),t,null,[[2,9]])})));return function(e){return t.apply(this,arguments)}}(),Ve=(0,M.Z)(),Ge=function(){var t=(0,i.Z)((0,r.Z)().mark((function t(){var n,i,o;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.postedDate.split(" ")[0],he(!0),ye(""),t.prev=3,t.next=6,(0,E.cJ)(e.postId,n);case 6:t.sent,g.Z.getInstance().logEvent("Rehunt"),localStorage.setItem("RehuntedPost",JSON.stringify(e.PostFullData)),ue("Rehunted"),he(!1),ae(!1),t.next=19;break;case 14:t.prev=14,t.t0=t.catch(3),he(!1),ye(null===t.t0||void 0===t.t0||null===(i=t.t0.response)||void 0===i||null===(o=i.data)||void 0===o?void 0:o.message),console.error(t.t0);case 19:case"end":return t.stop()}}),t,null,[[3,14]])})));return function(){return t.apply(this,arguments)}}(),$e={Rehunt:(0,S.jsx)(C.Z,{}),Rehunted:(0,S.jsx)(j,{}),Rehunted_Before:(0,S.jsx)(j,{}),"Out of Time":(0,S.jsx)(_,{})};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:"feed_item  style-2",ref:De,children:[(0,S.jsxs)("div",{className:"feed_item_inner ".concat(e.isLoggedIn&&je?"logged-in":""),children:[(0,S.jsxs)("a",{ref:Ne,tabIndex:-1,onClick:_e?void 0:e.isLoggedIn?function(t){t.preventDefault(),Se(x.H.setLightBoxActiveImgId(e.postId)),Se(d.N.setisLightboxModalOpen(!0)),g.Z.getInstance().logEvent("Expand Photo")}:Be,style:{width:"100%"},className:"feed_img ".concat(e.isLoggedIn&&je?"logged-in":""," aco-revealed-target ").concat(_e?"aco-host":""," ").concat(Le?"ws-stamp-host":""),children:[je?(0,S.jsx)("img",{className:"main-img",src:e.img,alt:_e?"":"img","aria-hidden":_e?"true":void 0}):(0,S.jsx)(p.Z,{}),Le&&je&&(0,S.jsx)(L.Z,{size:"full",standing:e.weeklyStanding}),_e&&je&&(0,S.jsx)(Z.Z,{variant:"feed",isLoggedIn:e.isLoggedIn,onReveal:Ee,photoId:e.postId})]}),(0,S.jsx)(T,{props:e,OtheruserProfileNavigateHandler:function(t){if(t.preventDefault(),e.loginUserid==e.Userid)Re("/profile");else{var n={PhotoID:e.postId,UserID:e.Userid},r=v.AES.encrypt(JSON.stringify(n),"siddiqui").toString();Re("/otherusers-profile?userdata=".concat(encodeURIComponent(r)))}},MainImgHandler:Be,voteHandler:Ue,SharePhotobtnHandler:function(){Se(d.N.setSharePhotoModalState(!0)),Se(d.N.setShareModalPhotoInfo(e.loginUserid!==e.Userid?{path:e.img,id:e.postId,shareType:"Share Other User Photo"}:{path:e.img,id:e.postId,shareType:""}))},FollowHandler:We,CongratulationssHandler:qe,BoostState:ce,BoostSvgs:$e,setIsModalOpen:ae,address:Pe,formattedDate:Fe,formattedLikes:Oe,votebtnactive:H,follow:Y,IsCongratulate:te,comingUp:e.comingUp,UserPaymentStatus:e.UserPaymentStatus,currentUrl:e.currentUrl,setAiReportNotReadyPhotoID:e.setAiReportNotReadyPhotoID,currentWeekHunted:e.currentWeekHunted,isAiReportGenerated:null===(t=e.PostFullData)||void 0===t?void 0:t.aiReportGenerated,isAiReportAccessible:null===(n=e.PostFullData)||void 0===n?void 0:n.isAiReportAccessible,aiReportOnItSeen:null===(N=e.PostFullData)||void 0===N?void 0:N.aiReportOnItSeen,weeklyStanding:e.weeklyStanding,onReviewClick:function(){return Re("/review/photo/".concat(e.postId,"?src=profile"))}})]}),(0,S.jsx)(m.Z,{displayUserSocailPhoto:e.displaySocailUserPhoto,usertoken:e.usertoken,Name:e.display_name,loginUserid:e.loginUserid,isLoggedIn:e.isLoggedIn,img:e.img,postId:e.postId,First1Comments:e.First1Comments,TotalComments:e.TotalComments,show:e.show,sharebtn:e.sharebtn,description:e.description,feedback:e.feedback,metadata:e.metadata,Userid:e.Userid,UserPaymentStatus:e.UserPaymentStatus,highlightCommentId:e.highlightCommentId})]}),oe&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:"backdrop"}),(0,S.jsx)("div",{className:"modal fade bph-modal show",id:"QueuedPhotoModal",tabIndex:-1,"aria-labelledby":"sharePhotoModal","aria-hidden":"true",style:{display:"block",marginTop:"30px"},children:(0,S.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,S.jsx)("div",{className:"modal-content",children:(0,S.jsx)("div",{className:"modal-body",children:(0,S.jsx)("div",{className:"onboarding_modal photoUpload_modal photoQueued",children:(0,S.jsxs)("div",{className:"modal_inner",children:[(0,S.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:function(){return ae(!1)}}),(0,S.jsx)("div",{className:"modal_logo d-none d-md-inline-flex ",children:(0,S.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:""})}),(0,S.jsx)("div",{className:"modal_content photoQueue_content",children:(0,S.jsxs)("div",{className:"modal_title",children:[(0,S.jsxs)("h3",{className:"title",children:[(0,S.jsx)("img",{src:"/assets/img/icons/info.svg",alt:""}),"Out of Time"==ce?"Oops. Too Late. ":" Rehunt Your Photo"]}),(0,S.jsx)("p",{className:"desc",children:"Out of Time"==ce?"Rehunt can only be used during the week your photo is being hunted.":e.UserPaymentStatus?"Push your photo back to the top\u2014for members who haven\u2019t seen it or didn\u2019t upvote.":"Rehunt gives your photo a once-a-week boost to the top of the feed\u2014for members who didn\u2019t see it or didn\u2019t upvote."}),(0,S.jsx)("br",{}),(0,S.jsx)("p",{className:"desc",children:"Out of Time"==ce?"That window\u2019s closed for this one\u2014make sure to use it on your next hunted photo!":e.UserPaymentStatus?"As a Pro member, you get a smart, once-a-week boost to help your photo reach more people\u2014and get the love it deserves.":"It\u2019s part of our Pro membership, designed to get more eyes on\u2014and love for\u2014your best shots."}),ge&&(0,S.jsxs)("p",{style:{color:"red",marginBottom:"-20px"},className:"desc",children:['"',ge,'"']}),(0,S.jsx)("button",{style:{marginTop:"22px"},className:"btn",type:"submit",onClick:function(){"Out of Time"!==ce?e.UserPaymentStatus?Ge():Ve("Rehunt"):ae(!1)},children:"Out of Time"!==ce?e.UserPaymentStatus?pe?(0,S.jsx)("span",{className:"loader"}):"Rehunt My Photo":"Go Pro to Get It":"Ok"}),"Out of Time"!==ce&&(0,S.jsx)("span",{className:"btn_note",style:{cursor:"pointer"},onClick:function(){return ae(!1)},children:"Not for this photo"})]})})]})})})})})})]})]})}},4061:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(4165),i=n(1413),o=n(5861),a=n(9439),s=n(2791),l=n(1989),c=n(7689),u=n(9434),d=n(7019),f=(n(747),n(3433)),p=n(8067),h=n(6617),m=n(9704),v=n(4848),g=n(184),y=function(e){var t=e.initialText,n=e.onSave,r=e.onCancel,i=e.saving,o=e.error,l=(0,s.use
2State)(t||""),c=(0,a.Z)(l,2),u=c[0],d=c[1],f=(0,s.useRef)(null),p=function(e){e&&(e.style.height="auto",e.style.height="".concat(e.scrollHeight,"px"))};(0,s.useEffect)((function(){var e=f.current;if(e){p(e),e.focus();var t=e.value.length;e.setSelectionRange(t,t)}}),[]);var h=!u.trim();return(0,g.jsxs)("div",{className:"comment_edit_box",children:[(0,g.jsx)("textarea",{ref:f,className:"comment_edit_field",value:u,onChange:function(e){d(e.target.value),p(e.target)},rows:1,disabled:i,"aria-label":"Edit your comment"}),o&&(0,g.jsx)("p",{className:"comment_edit_error",children:o}),(0,g.jsxs)("div",{className:"comment_edit_actions",children:[(0,g.jsx)("button",{type:"button",className:"comment_edit_save",onClick:function(){return n(u)},disabled:h||i,children:i?"Saving...":"Save"}),(0,g.jsx)("button",{type:"button",className:"comment_edit_cancel",onClick:r,disabled:i,children:"Cancel"})]})]})},b=n(3195),x=function(e){var t=new Date(e).getTime();return!Number.isNaN(t)&&Date.now()-t<=72e5},w=function(e){var t=e.commentId,n=e.initialText,i=e.initialIsEdited,c=e.usertoken,u=e.loginUserid,d=(0,s.useState)(!1),f=(0,a.Z)(d,2),p=f[0],h=f[1],m=(0,s.useState)(n),v=(0,a.Z)(m,2),g=v[0],y=v[1],x=(0,s.useState)(Boolean(i)),w=(0,a.Z)(x,2),k=w[0],S=w[1],j=(0,s.useState)(!1),C=(0,a.Z)(j,2),_=C[0],E=C[1],N=(0,s.useState)(""),A=(0,a.Z)(N,2),D=A[0],T=A[1],I=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(n){var i,o,a,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(n||"").trim()){e.next=4;break}return T("Comment can't be empty."),e.abrupt("return");case 4:return E(!0),T(""),e.prev=6,e.next=9,l.Z.post("".concat("https://bigbesos.com","/comment/edit"),{commentID:t,commentText:i},{headers:{Authorization:"Bearer ".concat(c),"Content-Type":"application/json"}});case 9:if(o=e.sent,(a=o&&o.data&&o.data.data)&&"Success"===o.data.status){e.next=13;break}throw new Error("edit-failed");case 13:y(a.comment_text),S(Boolean(a.is_edited)),h(!1),b.Z.getInstance().logEvent("Edit A Comment",{UserID:u}),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(6),s=e.t0&&e.t0.response&&e.t0.response.data&&e.t0.response.data.code,T("EDIT_WINDOW_CLOSED"===s?"This comment can no longer be edited.":"Couldn't save your edit. Please try again.");case 23:return e.prev=23,E(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[6,19,23,26]])})));return function(t){return e.apply(this,arguments)}}();return{isEditing:p,startEdit:function(){T(""),h(!0)},cancelEdit:function(){T(""),h(!1)},saveEdit:I,displayText:g,isEdited:k,saving:_,error:D}},k=function(e){var t=new Date(e).getTime();return!Number.isNaN(t)&&Date.now()-t<=72e5},S=150,j=200,C=function(){return"undefined"!==typeof window&&"function"===typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches},_=function(e){var t=e.commentId,n=e.usertoken,i=e.loginUserid,c=e.onDeleted,u=(0,s.useState)(!1),d=(0,a.Z)(u,2),f=d[0],p=d[1],h=(0,s.useState)(!1),m=(0,a.Z)(h,2),v=m[0],g=m[1],y=(0,s.useState)(""),x=(0,a.Z)(y,2),w=x[0],k=x[1],S=(0,s.useState)(!1),j=(0,a.Z)(S,2),C=j[0],_=j[1],E=(0,s.useState)(!1),N=(0,a.Z)(E,2),A=N[0],D=N[1],T=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var o,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g(!0),k(""),e.prev=2,e.next=5,l.Z.post("".concat("https://bigbesos.com","/comment/delete"),{commentID:t},{headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"}});case 5:if(o=e.sent,o&&o.data&&o.data.data&&"Success"===o.data.status){e.next=9;break}throw new Error("delete-failed");case 9:b.Z.getInstance().logEvent("Delete A Comment",{UserID:i}),p(!1),"function"===typeof c&&c(t),e.next=19;break;case 14:e.prev=14,e.t0=e.catch(2),a=e.t0&&e.t0.response&&e.t0.response.data&&e.t0.response.data.code,p(!1),"DELETE_WINDOW_CLOSED"===a?_(!0):"HAS_REPLIES"===a?(D(!0),k("This one has replies, so it can't be deleted, but you can still edit it.")):k("Couldn't delete your comment. Please try again.");case 19:return e.prev=19,g(!1),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[2,14,19,22]])})));return function(){return e.apply(this,arguments)}}();return{confirming:f,deleting:v,error:w,windowClosed:C,hasRepliesNow:A,requestDelete:function(){k(""),p(!0)},cancelDelete:function(){k(""),p(!1)},confirmDelete:T}}
2,E=function(e,t){var n=(0,s.useState)(!1),r=(0,a.Z)(n,2),i=r[0],o=r[1],l=(0,s.useRef)(!1),c=(0,s.useRef)(t);c.current=t;var u=function(){l.current||(l.current=!0,"function"===typeof c.current&&c.current())};return(0,s.useEffect)((function(){if(i){var t=e&&e.current;if(t){var n=S+j,r=function(e){e.target===t&&"height"===e.propertyName&&u()};t.addEventListener("transitionend",r);var o=setTimeout(u,n+100);return function(){t.removeEventListener("transitionend",r),clearTimeout(o)}}u()}}),[i]),{exiting:i,startExit:function(){var t=e&&e.current;t&&!C()?(t.style.height="".concat(t.getBoundingClientRect().height,"px"),t.offsetHeight,o(!0)):u()}}},N=function(e){var t=e.confirming,n=e.deleting,r=e.onCancel,i=e.onConfirm,o=e.variant,l=void 0===o?"comment":o,c=e.children,u=(0,s.useRef)(null),d=(0,s.useRef)(null),f=(0,s.useState)(!1),p=(0,a.Z)(f,2),h=p[0],m=p[1],v=(0,s.useRef)(t);(0,s.useLayoutEffect)((function(){var e=u.current;if(e){var n=v.current!==t;v.current=t;var r=e.getBoundingClientRect().height,i=d.current;if(d.current=r,n&&(h||m(!0),null!=i&&i!==r&&!C())){e.style.transition="none",e.style.height="".concat(i,"px"),e.offsetHeight,e.style.transition="height 200ms ease-in-out",e.style.height="".concat(r,"px");var o=function t(n){(!n||n.target===e&&"height"===n.propertyName)&&(e.style.transition="",e.style.height="",e.removeEventListener("transitionend",t))};e.addEventListener("transitionend",o);var a=setTimeout(o,260);return function(){e.removeEventListener("transitionend",o),clearTimeout(a)}}}}),[t,h]);var y=(0,s.useRef)(null),b=(0,s.useRef)(null);(0,s.useEffect)((function(){[{el:y.current,hidden:t},{el:b.current,hidden:!t}].forEach((function(e){var t=e.el,n=e.hidden;t&&("inert"in t&&(t.inert=n),t.querySelectorAll("button, a[href], input, select, textarea, [tabindex]").forEach((function(e){if(n){var t;if(void 0===e.dataset.cdPrevTabindex)e.dataset.cdPrevTabindex=null!==(t=e.getAttribute("tabindex"))&&void 0!==t?t:"";e.setAttribute("tabindex","-1")}else if(void 0!==e.dataset.cdPrevTabindex){var r=e.dataset.cdPrevTabindex;""===r?e.removeAttribute("tabindex"):e.setAttribute("tabindex",r),delete e.dataset.cdPrevTabindex}})))}))}),[t]);var x="reply"===l?"Delete this reply?":"Delete this comment?",w=function(e){return"comment_meta_swap__layer".concat(e?" is-in":" is-out").concat(h?" has-toggled":"")};return(0,g.jsxs)("div",{ref:u,className:"comment_meta_swap".concat(t?" is-confirming":""),children:[(0,g.jsx)("div",{ref:y,className:w(!t),"aria-hidden":t?"true":void 0,children:c}),(0,g.jsx)("div",{ref:b,className:w(t),role:"group","aria-label":x,"aria-hidden":t?void 0:"true",children:(0,g.jsxs)("div",{className:"comment_delete_confirm",children:[(0,g.jsx)("span",{className:"comment_delete_question",children:x}),(0,g.jsxs)("span",{className:"comment_delete_controls",children:[(0,g.jsx)("button",{type:"button",className:"comment_delete_keep",onClick:r,disabled:n||!t,tabIndex:t?0:-1,children:"Keep it"}),(0,g.jsx)("button",{type:"button",className:"comment_delete_yes",onClick:i,disabled:n||!t,tabIndex:t?0:-1,children:n?"Deleting...":"Yes, delete it"})]})]})})]})},A=function(e){var t=(0,s.useState)(e.totalVote),n=(0,a.Z)(t,2),i=n[0],d=n[1],f=(0,s.useState)(e.isVote||!1),b=(0,a.Z)(f,2),S=b[0],j=b[1],C=(0,s.use
2State)(e.isVote||!1),A=(0,a.Z)(C,2),D=A[0],T=A[1],I=(0,h.J)(i||0),P=(0,p.O)(e.CeatedAt),F=w({commentId:e.id,initialText:e.commentText,initialIsEdited:e.is_edited,usertoken:e.usertoken,loginUserid:e.loginUserid}),O=F.isEditing,M=F.startEdit,Z=F.cancelEdit,R=F.saveEdit,L=F.displayText,B=F.isEdited,z=F.saving,U=F.error,H=(0,s.useRef)(null),W=_({commentId:e.id,usertoken:e.usertoken,loginUserid:e.loginUserid,onDeleted:function(){return ee()}}),q=W.confirming,V=W.deleting,G=W.error,$=W.windowClosed,J=W.requestDelete,K=W.cancelDelete,Y=W.confirmDelete,X=E(H,(function(){"function"===typeof e.onReplyDeleted&&e.onReplyDeleted(e.id)})),Q=X.exiting,ee=X.startExit,te=e.loginUserid===e.userid&&x(e.CeatedAt)&&!$,ne=e.loginUserid===e.userid&&k(e.CeatedAt)&&!$,re=(0,u.I0)(),ie=(0,u.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),oe=(0,c.s0)(),ae=function(t){if(t.preventDefault(),e.loginUserid===e.userid)oe("/profile");else{var n={PhotoID:"",UserID:e.userid},r=m.AES.encrypt(JSON.stringify(n),"siddiqui").toString();oe("/otherusers-profile?userdata=".concat(encodeURIComponent(r)))}window.scrollTo(0,0)},se=function(){var t=(0,o.Z)((0,r.Z)().mark((function t(n){var i,o,a,s;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),T(!D),j(!S),S?i="remove":(i="add",re(v.$.setSocketReceiverUserID(e.userid)),re(v.$.setReloadNotificationSenderFn(!ie))),t.prev=4,o={commentID:e.id,actionType:i},a={Authorization:"Bearer ".concat(e.usertoken),"Content-Type":"application/json"},t.next=9,l.Z.post("".concat("https://bigbesos.com","/vote/comment"),o,{headers:a});case 9:s=t.sent,d(s.data.data.voteCount),t.next=15;break;case 13:t.prev=13,t.t0=t.catch(4);case 15:case"end":return t.stop()}}
2),t,null,[[4,13]])})));return function(e){return t.apply(this,arguments)}}();return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("li",{ref:H,className:"comment".concat(Q?" comment--exiting":""),children:[(0,g.jsx)("div",{className:"comment_img",onClick:ae,style:{backgroundImage:"url(".concat(e.userPhoto||"",")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:"50%",cursor:"pointer"},children:!e.userPhoto&&(0,g.jsx)("img",{src:"https://ui-avatars.com/api/?name=".concat(e.username,"&size=40&rounded=true&background=01655a&color=fff"),alt:"img"})}),(0,g.jsxs)("div",{className:"comment_text",children:[(0,g.jsx)("h6",{className:"name",style:{cursor:"pointer"},onClick:ae,children:e.username}),(0,g.jsxs)("p",{className:"text",children:[!e.replyMentionHidden&&(0,g.jsxs)("span",{style:{color:"green",cursor:"pointer"},onClick:function(t){if(t.preventDefault(),e.loginUserid===e.replyToId)oe("/profile");else{var n={PhotoID:"",UserID:e.replyToId},r=m.AES.encrypt(JSON.stringify(n),"siddiqui").toString();oe("/otherusers-profile?userdata=".concat(encodeURIComponent(r)))}window.scrollTo(0,0)},children:["@",e.replyToName," "]}),!O&&L]}),O&&(0,g.jsx)(y,{initialText:L,onSave:R,onCancel:Z,saving:z,error:U}),(0,g.jsx)(N,{confirming:q,deleting:V,onCancel:K,onConfirm:Y,variant:"reply",children:(0,g.jsxs)("div",{className:"comment_meta",children:[(0,g.jsxs)("span",{className:"likes ".concat(D?"active":""),onClick:se,children:[I," Like",(0,g.jsx)("img",{className:"stock",src:"/assets/img/icons/thumb.svg",alt:"img"}),(0,g.jsx)("img",{className:"fill",src:"/assets/img/icons/thumb-fill.svg",alt:"img"})]}),(0,g.jsxs)("button",{onClick:function(){e.ReplyCommentsInfoFun({username:e.username,photoID:e.photoID,parentCommentID:e.topcommentID,replyCommentID:e.id,userid:e.userid})},className:"reply",type:"button",children:["Reply ",(0,g.jsx)("img",{src:"/assets/img/icons/reply.svg",alt:"img"})]}),te&&!O&&(0,g.jsx)("button",{type:"button",className:"comment_edit_trigger",onClick:M,children:"Edit"}),ne&&!O&&(0,g.jsx)("button",{type:"button",className:"comment_delete_trigger",onClick:J,children:"Delete"}),(0,g.jsxs)("span",{className:"date",children:[P,B&&(0,g.jsx)("span",{className:"edited-tag",children:" \xb7 (edited)"})]})]})}),G&&(0,g.jsx)("p",{className:"comment_edit_error",children:G})]})]})})},D=n(4014),T=function(e){var t=(0,s.useState)(""),n=(0,a.Z)(t,2),i=n[0],c=n[1],d=(0,s.useState)(!1),f=(0,a.Z)(d,2),p=f[0],h=f[1],m=(0,s.useState)(!0),y=(0,a.Z)(m,2),x=y[0],w=y[1],k=(0,s.useRef)(null),S=(0,s.useRef)(null),j=(0,s.useState)(null),C=(0,a.Z)(j,2),_=C[0],E=C[1],N=e.userCommentinfo.username,A=e.userCommentinfo.replyCommentID||e.userCommentinfo.parentCommentID,T=(0,s.useRef)(A);(0,s.useEffect)((function(){T.current!==A&&(T.current=A,w(!0))}),[A]);var I=localStorage.getItem("Data"),P=(0,D.a)(I),F=P.useDisplay_name,O=P.Display_UserSocailPhoto,M=P.token,Z=(0,u.I0)(),R=(0,u.v9)((function(e){return e.Socket.ReloadNotificationSenderFn}));(0,s.useLayoutEffect)((function(){var e=k.current;if(e){e.focus();var t=e.value.length;e.setSelectionRange(t,t)}}),[]),(0,s.useLayoutEffect)((function(){var e=function(){var e=S.current,t=k.current;if(t){if(!e)return t.style.paddingLeft="",void E(null);t.style.paddingLeft="";var n=window.getComputedStyle(t);e.style.fontFamily=n.fontFamily,e.style.fontWeight=n.fontWeight,e.style.maxWidth="";var r=t.getBoundingClientRect().width;r>0&&(e.style.maxWidth="".concat(Math.round(.45*r),"px"));var i=parseFloat(n.paddingLeft)||0,o=.28*(parseFloat(n.fontSize)||14),a=i+e.offsetWidth+o;t.style.paddingLeft="".concat(a,"px"),E(a)}};e(),window.addEventListener("resize",e);var t=!0;return document.fonts&&document.fonts.ready&&"function"===typeof document.fonts.ready.then&&document.fonts.ready.then((function(){t&&e()})).catch((function(){})),function(){t=!1,window.removeEventListener("resize",e)}}),[x,N]);var L=function(){return w(!1)};(0,s.useEffect)((function(){var e=k.current;if(e){var t=function(t){x&&"deleteContentBackward"===t.inputType&&0===e.selectionStart&&0===e.selectionEnd&&(t.preventDefault(),L())};return e.addEventListener("beforeinput",t),function(){return e.removeEventListener("beforeinput",t)}}}),[x]);var B=function(){var t=(0,o.Z)((0,r.Z)().mark((function t(n){var o,a,s,u;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),o=i.trim()){t.next=4;break}return t.abrupt("return");case 4:return h(!0),t.prev=5,(a=e.userCommentinfo.replyCommentID?{photoID:e.userCommentinfo.photoID,commentText:o,topcommentID:e.userCommentinfo.parentCommentID,subcommentID:e.userCommentinfo.replyCommentID}:{photoID:e.userCommentinfo.photoID,commentText:o,topcommentID:e.userCommentinfo.parentCommentID}).hideMention=!x,s={Authorization:"Bearer ".concat(M),"Content-Type":"application/json"},t.next=11,l.Z.post("".concat("https://bigbesos.com","/comment/add"),a,{headers:s});case 11:u=t.sent,Z(v.$.setSocketReceiverUserID(e.userid)),Z(v.$.setReloadNotificationSenderFn(!R)),b.Z.getInstance().logEvent("Comment Reply"),e.setvalueFn({id:u.data.data.id,comment_text:u.data.data.comment_text,username:F,user_profile_pic:O,createdAt:u.data.data.createdAt,parentCommentID:e.userCommentinfo.parentCommentID,replyToName:u.data.data.replyToName,reply_mention_hidden:u.data.data.reply_mention_hidden,totalVote:u.data.data.total_likes,isVote:u.data.data.is_vote,user_id:u.data.data.user_id,photoID:e.userCommentinfo.photoID}),c(""),h(!1),e.onClose&&e.onClose(),t.next=23;break;case 20:t.prev=20,t.t0=t.catch(5),h(!1);case 23:case"end":return t.stop()}}),t,null,[[5,20]])})));return function(e){return t.apply(this,arguments)}}();return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("form",{onSubmit:B,style:{width:"100%",marginLeft:"50px"},children:(0,g.jsxs)("div",{className:"feed_comment",children:[(0,g.jsx)("div",{className:"comment_user",style:{backgroundImage:"url(".concat(O||"",")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:"50%",cursor:"pointer"}
2,children:!O&&(0,g.jsx)("img",{src:"https://ui-avatars.com/api/?name=".concat(F,"&size=40&rounded=true&background=01655a&color=fff"),alt:"img"})}),(0,g.jsxs)("div",{className:"comment_field",children:[x&&(0,g.jsxs)("span",{className:"reply_mention_chip",ref:S,"aria-hidden":"true",children:["@",N]}),(0,g.jsx)("input",{type:"text",ref:k,className:"".concat(i?"typed":""),id:"comment",value:i,onChange:function(e){c(e.target.value)},onKeyDown:function(t){if("Escape"===t.key)return t.preventDefault(),void(e.onClose&&e.onClose());if("Backspace"===t.key&&x){var n=t.target;0===n.selectionStart&&0===n.selectionEnd&&(t.preventDefault(),L())}},style:null!==_?{paddingLeft:"".concat(_,"px")}:void 0,"aria-label":x?"Reply to ".concat(N):"Write a reply"}),p?(0,g.jsx)("span",{className:"".concat(i?"Commentloader":"")}):(0,g.jsx)("button",{type:"submit",className:"comment-btn",children:(0,g.jsx)("img",{src:"/assets/img/icons/subtract.svg",alt:"img"})})]})]})})})},I=n(9343),P=function(e){var t=(0,s.useState)(!1),n=(0,a.Z)(t,2),i=n[0],d=n[1],S=(0,s.useState)(""),j=(0,a.Z)(S,2),C=j[0],D=j[1],P=(0,s.useState)([]),F=(0,a.Z)(P,2),O=F[0],M=F[1],Z=(0,s.useState)(!1),R=(0,a.Z)(Z,2),L=R[0],B=R[1],z=(0,s.useState)(e.totalVote),U=(0,a.Z)(z,2),H=U[0],W=U[1],q=(0,s.useState)(e.isVote||!1),V=(0,a.Z)(q,2),G=V[0],$=V[1],J=(0,s.useState)(e.isVote||!1),K=(0,a.Z)(J,2),Y=K[0],X=K[1],Q=(0,s.useState)(!1),ee=(0,a.Z)(Q,2),te=ee[0],ne=ee[1],re=(0,s.useState)(!1),ie=(0,a.Z)(re,2),oe=ie[0],ae=ie[1],se=(0,s.useState)(e.is_follow),le=(0,a.Z)(se,2),ce=le[0],ue=le[1],de=(0,s.useState)(Number(e.totalReplies)||0),fe=(0,a.Z)(de,2),pe=fe[0],he=fe[1],me=(0,p.O)(e.CeatedAt),ve=w({commentId:e.id,initialText:e.commentText,initialIsEdited:e.is_edited,usertoken:e.usertoken,loginUserid:e.loginUserid}),ge=ve.isEditing,ye=ve.startEdit,be=ve.cancelEdit,xe=ve.saveEdit,we=ve.displayText,ke=ve.isEdited,Se=ve.saving,je=ve.error,Ce=(0,s.useRef)(null),_e=Math.max(pe,O?O.length:0),Ee=_({commentId:e.id,usertoken:e.usertoken,loginUserid:e.loginUserid,onDeleted:function(){return Re()}}),Ne=Ee.confirming,Ae=Ee.deleting,De=Ee.error,Te=Ee.windowClosed,Ie=Ee.hasRepliesNow,Pe=Ee.requestDelete,Fe=Ee.cancelDelete,Oe=Ee.confirmDelete,Me=E(Ce,(function(){"function"===typeof e.onCommentDeleted&&e.onCommentDeleted(e.id)})),Ze=Me.exiting,Re=Me.startExit,Le=e.loginUserid===e.userid&&x(e.CeatedAt)&&!Te,Be=e.loginUserid===e.userid&&k(e.CeatedAt)&&0===_e&&!Ie&&!Te,ze=function(e){var t=i&&C&&C.replyCommentID===e.replyCommentID;d(!t),D(e)},Ue=(0,h.J)(H||0),He=(0,u.I0)(),We=(0,u.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),qe=function(){He(v.$.setSocketReceiverUserID(e.userid)),He(v.$.setReloadNotificationSenderFn(!We))},Ve=(0,c.s0)(),Ge=function(t){if(t.preventDefault(),e.loginUserid===e.userid)Ve("/profile");else{var n={PhotoID:"",UserID:e.userid},r=m.AES.encrypt(JSON.stringify(n),"siddiqui").toString();Ve("/otherusers-profile?userdata=".concat(encodeURIComponent(r)))}window.scrollTo(0,0)};(0,s.useEffect)((function(){if(e.onReplyBoxToggle)return e.onReplyBoxToggle(e.id,i),function(){return e.onReplyBoxToggle(e.id,!1)}}),[i]);var $e=function(){var t=(0,o.Z)((0,r.Z)().mark((function t(n){var i,o,a,s;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),X(!Y),$(!G),G?i="remove":(i="add",qe(),b.Z.getInstance().logEvent("Like A Comment",{UserID:e.loginUserid})),t.prev=4,o={commentID:e.id,actionType:i},a={Authorization:"Bearer ".concat(e.usertoken),"Content-Type":"application/json"},t.next=9,l.Z.post("".concat("https://bigbesos.com","/vote/comment"),o,{headers:a});case 9:s=t.sent,W(s.data.data.voteCount),t.next=15;break;case 13:t.prev=13,t.t0=t.catch(4);case 15:case"end":return t.stop()}}
2),t,null,[[4,13]])})));return function(e){return t.apply(this,arguments)}}(),Je=function(){var t=(0,o.Z)((0,r.Z)().mark((function t(){var n,i,o;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return B(!0),ae(!0),t.prev=2,n={photoID:e.photoID,topcommentID:e.id},i={Authorization:"Bearer ".concat(e.usertoken),"Content-Type":"application/json"},t.next=7,l.Z.post("".concat("https://bigbesos.com","/comment/list_replies"),n,{headers:i});case 7:o=t.sent,M(o.data.data),ae(!1),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),ae(!1);case 15:case"end":return t.stop()}}),t,null,[[2,12]])})));return function(){return t.apply(this,arguments)}}(),Ke=function(){var t=(0,o.Z)((0,r.Z)().mark((function t(n){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),ue(!ce),ce||qe(),t.prev=3,t.next=6,(0,I.P)(e.userid,!ce,e.usertoken,e.loginUserid,qe);case 6:t.next=10;break;case 8:t.prev=8,t.t0=t.catch(3);case 10:case"end":return t.stop()}}),t,null,[[3,8]])})));return function(e){return t.apply(this,arguments)}}();return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("li",{ref:Ce,className:"comment".concat(e.isHighlighted?" comment--highlighted":"").concat(Ze?" comment--exiting":""),"data-comment-id":e.id,children:[(0,g.jsx)("div",{className:"comment_img",onClick:Ge,style:{backgroundImage:"url(".concat(e.userPhoto||"",")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:"50%",cursor:"pointer"},children:!e.userPhoto&&(0,g.jsx)("img",{src:"https://ui-avatars.com/api/?name=".concat(e.username,"&size=40&rounded=true&background=01655a&color=fff"),alt:"img"})}),(0,g.jsxs)("div",{className:"comment_text",children:[(0,g.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[(0,g.jsx)("h6",{className:"name",style:{cursor:"pointer"},onClick:Ge,children:e.username}),e.loginUserid!==e.userid&&(0,g.jsx)("span",{className:"PointerClass",onClick:Ke,style:{display:"flex",alignItems:"center",fontSize:"13px"},children:ce?"Following":"Follow"})]}),ge?(0,g.jsx)(y,{initialText:we,onSave:xe,onCancel:be,saving:Se,error:je}):(0,g.jsx)("p",{className:"text",children:we}),(0,g.jsx)(N,{confirming:Ne,deleting:Ae,onCancel:Fe,onConfirm:Oe,variant:"comment",children:(0,g.jsxs)("div",{className:"comment_meta",children:[(0,g.jsxs)("span",{className:"likes ".concat(Y?"active":""),onClick:$e,children:[Ue," Like",(0,g.jsx)("img",{className:"stock",src:"/assets/img/icons/thumb.svg",alt:"img"}),(0,g.jsx)("img",{className:"fill",src:"/assets/img/icons/thumb-fill.svg",alt:"img"})]}),(0,g.jsxs)("button",{onClick:function(){var t=i&&C&&!C.replyCommentID;d(!t),D({username:e.username,photoID:e.photoID,parentCommentID:e.id})},className:"reply",type:"button",children:["Reply ",(0,g.jsx)("img",{src:"/assets/img/icons/reply.svg",alt:"img"})]}),Le&&!ge&&(0,g.jsx)("button",{type:"button",className:"comment_edit_trigger",onClick:ye,children:"Edit"}),Be&&!ge&&(0,g.jsx)("button",{type:"button",className:"comment_delete_trigger",onClick:Pe,children:"Delete"}),(0,g.jsxs)("span",{className:"date",children:[me,ke&&(0,g.jsx)("span",{className:"edited-tag",children:" \xb7 (edited)"})]})]})}),De&&(0,g.jsx)("p",{className:"comment_edit_error",children:De}),pe>0&&!L&&(0,g.jsxs)("div",{style:{display:"flex",gap:"10px",color:"black"},onClick:Je,children:[(0,g.jsx)("i",{style:{fontSize:"1rem"},className:"bi bi-arrow-return-right"}),(0,g.jsxs)("span",{className:"PointerClass",children:[pe," Replies"]})]})]}),(0,g.jsxs)("ul",{className:"children ".concat(L||te?"children-expanded":""),children:[O&&O.map((function(t){return(0,g.jsx)(A,{ReplyCommentsInfoFun:ze,commentText:t.comment_text,username:t.username,id:t.id,topcommentID:e.id,userPhoto:t.user_profile_pic,replyToName:t.replyToName,replyMentionHidden:t.reply_mention_hidden,replyToId:t.replyToId,usertoken:e.usertoken,CeatedAt:t.createdAt,is_edited:t.is_edited,isVote:t.is_vote,totalVote:t.total_likes,photoID:e.photoID,userid:t.user_id,loginUserid:e.loginUserid,onReplyDeleted:function(e){M((function(t){return t.filter((function(t){return t.id!==e}))})),he((function(e){return Math.max(0,e-1)}))}},t.id)})),oe&&(0,g.jsx)("div",{style:{display:"flex",width:"23px",height:"23px"},children:(0,g.jsx)("div",{className:"spinner-border text-warning",role:"status",style:{width:"100%",height:"100%"},children:(0,g.jsx)("span",{className:"visually-hidden"})})})]}),i&&(0,g.jsx)(T,{photoid:e.photoId,userCommentinfo:C,setvalueFn:function(e){ne(!0),M([].concat((0,f.Z)(O),[e])),he((function(e){return e+1}))},userid:C.userid||e.userid,onClose:function(){return d(!1)}})]})})}
2,F=0,O=function(e){var t=(0,s.useState)([]),n=(0,a.Z)(t,2),i=n[0],c=n[1],u=(0,s.useState)([]),d=(0,a.Z)(u,2),p=d[0],h=d[1],m=(0,s.useState)(!0),v=(0,a.Z)(m,2),y=v[0],b=v[1],x=(0,s.useState)(!1),w=(0,a.Z)(x,2),k=w[0],S=w[1],j=localStorage.getItem("Data"),C=(0,D.a)(j).token,_=function(){var t=(0,o.Z)((0,r.Z)().mark((function t(n){var i,o,a,s;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),F+=4,S(!0),t.prev=3,i={photoID:e.postid,offSet:F},o={Authorization:"Bearer ".concat(C),"Content-Type":"application/json"},t.next=8,l.Z.post("".concat("https://bigbesos.com","/comment/list"),i,{headers:o});case 8:a=t.sent,s=a.data.data.comments,c((function(e){return[].concat((0,f.Z)(e),(0,f.Z)(s))})),S(!1),t.next=16;break;case 14:t.prev=14,t.t0=t.catch(3);case 16:case"end":return t.stop()}}),t,null,[[3,14]])})));return function(e){return t.apply(this,arguments)}}();(0,s.useEffect)((function(){F=0}),[e.postid]),(0,s.useEffect)((function(){var t=function(){var t=(0,o.Z)((0,r.Z)().mark((function t(){var n,i,o;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return S(!0),t.prev=1,n={photoID:e.postid,offSet:0},i={Authorization:"Bearer ".concat(C),"Content-Type":"application/json"},t.next=6,l.Z.post("".concat("https://bigbesos.com","/comment/list"),n,{headers:i});case 6:o=t.sent,c(o.data.data.comments),h(o.data.data.total_comments),S(!1),o.data.data.total_comments<4&&b(!1),t.next=15;break;case 13:t.prev=13,t.t0=t.catch(1);case 15:case"end":return t.stop()}}),t,null,[[1,13]])})));return function(){return t.apply(this,arguments)}}();t()}),[]),(0,s.useEffect)((function(){i.length===p&&b(!1)}),[i]),(0,s.useEffect)((function(){if(e.inputValue){var t=[].concat((0,f.Z)(i),[e.inputValue]);c(t)}}),[e.inputValue]);var E=function(t){c((function(e){return e.filter((function(e){return e.id!==t}))})),h((function(e){return"number"===typeof e?Math.max(0,e-1):e})),"function"===typeof e.onCommentDeleted&&e.onCommentDeleted(t)};return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"comment_lists",children:[(0,g.jsxs)("ul",{children:[null===i||void 0===i?void 0:i.map((function(t){return(0,g.jsx)(P,{commentText:t.comment_text,username:t.username,userid:t.user_id,id:t.id,userPhoto:t.user_profile_pic,CeatedAt:t.createdAt,is_edited:t.is_edited,isVote:t.is_vote,is_follow:t.is_follow,totalVote:t.total_votes,totalReplies:t.total_replies,photoID:e.postid,usertoken:C,loginUserid:e.loginUserid,onReplyBoxToggle:e.onReplyBoxToggle,isHighlighted:!!e.highlightCommentId&&e.highlightCommentId===t.id,onCommentDeleted:E},t.id)})),k&&(0,g.jsx)("div",{style:{display:"flex",width:"33px",height:"30px"},children:(0,g.jsx)("div",{className:"spinner-border text-warning",role:"status",children:(0,g.jsx)("span",{className:"visually-hidden"})})})]}),y&&!k&&(0,g.jsx)("p",{className:"more_comment",children:(0,g.jsxs)("span",{className:"PointerClass",onClick:_,children:[(0,g.jsx)("img",{src:"/assets/img/icons/comment.svg",alt:"img"}),"View More"]})})]})})},M=n(892),Z=n(7482),R=n(6344),L=n(4805),B=n(4885),z=n.n(B),U=n(8329),H=function(e){var t,n=(0,s.useState)(!!e.highlightCommentId),f=(0,a.Z)(n,2),p=f[0],h=f[1],y=(0,s.useState)(!1),x=(0,a.Z)(y,2),w=x[0],k=x[1],S=(0,s.useState)(""),j=(0,a.Z)(S,2),C=j[0],_=j[1],E=(0,s.useState)(!1),N=(0,a.Z)(E,2),A=N[0],D=N[1],T=(0,s.useState)(""),I=(0,a.Z)(T,2),F=I[0],B=I[1],H=(0,s.useState)(e.First1Comments),W=(0,a.Z)(H,2),q=W[0],V=W[1],G=(0,s.useState)(!1),$=(0,a.Z)(G,2),J=$[0],K=$[1],Y=(0,s.useState)(Number(e.TotalComments)),X=(0,a.Z)(Y,2),Q=X[0],ee=X[1],te=(0,s.useState)((function(){return new Set})),ne=(0,a.Z)(te,2),re=ne[0],ie=ne[1],oe=(0,s.useCallback)((function(e,t){ie((function(n){if(t===n.has(e))return n;var r=new Set(n);return t?r.add(e):r.delete(e),r}))}),[]),ae=re.size>0,se=function(t){var n=null;ee((function(e){return n=Math.max(0,(Number(e)||0)-1)}));var r=null,i=Array.isArray(q);i&&(r=q.filter((function(e){return e.id!==t})),V(r.length?r:null));var o={total_comments:n};i&&(o.comments=r),(0,M.vX)(M.jT,e.postId,o)},le=(0,u.I0)(),ce=(0,u.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),ue=(0,c.s0)(),de=e.metadata?JSON.parse(e.metadata):{};w&&(t=(0,Z.e)(null===de||void 0===de?void 0:de.shutterSpeed));var fe=(0,L.p)(null===de||void 0===de?void 0:de.dateTaken),pe=function(){k(!w),w||b.Z.getInstance().logEvent("Camera Settings",{UserID:e.loginUserid})}
2,he=function(){var t=m.AES.encrypt(JSON.stringify(e.postId),"siddiqui").toString();ue("/edit-photo?photoid=".concat(encodeURIComponent(t)))},me=function(){var t=(0,o.Z)((0,r.Z)().mark((function t(n){var o,a,s,c,u,f,h;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),C.trim()){t.next=3;break}return t.abrupt("return");case 3:if(e.isLoggedIn){t.next=6;break}return le(d.N.setJoinNowModalState(!0)),t.abrupt("return");case 6:return K(!0),le(v.$.setSocketReceiverUserID(e.Userid)),le(v.$.setReloadNotificationSenderFn(!ce)),(o=U.Z.get("batchId"))||(o=z()(),a=new Date,s=new Date(a.getTime()+432e5),U.Z.set("batchId",o,{expires:s})),t.prev=10,c=(0,i.Z)({photoID:e.postId,commentText:C},o&&!e.usertoken&&{batchId:o}),u={Authorization:"Bearer ".concat(e.usertoken),"Content-Type":"application/json"},t.next=15,l.Z.post("".concat("https://bigbesos.com","/comment/add"),c,{headers:u});case 15:f=t.sent,b.Z.getInstance().setUserId(e.loginUserid),b.Z.getInstance().logEvent("Comment",{UserID:e.loginUserid}),p?(ee(Q+1),B({id:f.data.data.id,comment_text:f.data.data.comment_text,username:e.Name,user_profile_pic:e.displayUserSocailPhoto,createdAt:f.data.data.createdAt,is_vote:f.data.data.is_vote,total_likesdata:f.data.data.itotal_likesdata,photoID:e.postId})):(ee(Q+1),h={id:f.data.data.id,comment_text:f.data.data.comment_text,username:e.Name,user_profile_pic:e.displayUserSocailPhoto,createdAt:f.data.data.createdAt,is_vote:f.data.data.is_vote,total_likesdata:f.data.data.itotal_likesdata,photoID:e.postId,user_id:f.data.data.user_id},V([h])),_(""),D(!0),K(!1),t.next=27;break;case 24:t.prev=24,t.t0=t.catch(10),K(!1);case 27:case"end":return t.stop()}}),t,null,[[10,24]])})));return function(e){return t.apply(this,arguments)}}();return(0,g.jsxs)(g.Fragment,{children:[e.description?(0,g.jsxs)("div",{className:"feed_description",children:[(0,g.jsxs)("div",{className:"text",children:[(0,g.jsx)("span",{style:{fontWeight:"500",color:"black"},children:"About My Photo:"})," ",e.description]}),e.show&&(0,g.jsx)("a",{onClick:he,className:"btn feed-edit d-md-none",children:(0,g.jsx)("img",{src:"/assets/img/icons/pencil.svg",alt:"img"})}),e.show&&(0,g.jsxs)("a",{onClick:he,className:"btn feed-edit d-none d-md-inline-flex",children:[(0,g.jsx)("img",{src:"/assets/img/icons/pencil.svg",alt:"img"}),"Edit"]})]}):e.show&&(0,g.jsx)("div",{className:"feed_description",children:(0,g.jsx)("div",{className:"add_desc_btn",children:(0,g.jsx)("a",{onClick:he,className:"btn btn-feedback",children:"Add Description"})})}),(0,g.jsxs)("div",{className:"".concat(!e.show&&e.feedback&&e.feedback["I am not looking for feedback"]?"dis":""," ").concat(e.show?"feed_feedback ":e.feedback&&"I am not looking for feedback"!==e.feedback["I am not looking for feedback"]||e.metadata&&Object.keys(de).length>0?"feed_feedback":" "),children:[e.feedback&&"I am not looking for feedback"!==e.feedback["I am not looking for feedback"]?(0,g.jsxs)("div",{className:"feedback_cat",children:[(0,g.jsxs)("ul",{style:{flexWrap:"wrap"},children:[(0,g.jsx)("h5",{className:"label",children:"Helpful Feedback:"}),Object.values(e.feedback).map((function(e,t,n){return(0,g.jsx)("li",{children:(0,g.jsx)("a",{children:e})},t)}))]}),e.show&&(0,g.jsx)("a",{onClick:he,className:"btn feed-edit d-md-none",children:(0,g.jsx)("img",{src:"/assets/img/icons/pencil.svg",alt:"img"})}),e.show&&(0,g.jsxs)("a",{onClick:he,className:"btn feed-edit d-none d-md-inline-flex",children:[(0,g.jsx)("img",{src:"/assets/img/icons/pencil.svg",alt:"img"}),"Edit"]})]}):e.show&&(0,g.jsx)("div",{className:"choose_feedback",children:(0,g.jsx)("a",{onClick:he,className:"btn btn-feedback",children:"Choose Specific Feedback"})}),e.metadata&&Object.keys(de).length>0&&(0,g.jsxs)("div",{className:"metadata d-none d-md-inline-flex",children:[(0,g.jsx)("img",{className:"exif",src:"/assets/img/icons/exif.svg",alt:"img"}),(0,g.jsxs)("button",{className:"".concat(w?"active":""),type:"button",onClick:e.isLoggedIn?pe:function(){le(d.N.setJoinNowModalState(!0))},children:["Camera Settings",(0,g.jsx)("img",{className:"arrow",src:"/assets/img/icons/arrow-up.svg",alt:"img"})]})]})]}),e.metadata&&Object.keys(de).length>0&&(0,g.jsxs)("div",{className:"metadata d-md-none",children:[(0,g.jsx)("img",{className:"exif",src:"/assets/img/icons/exif.svg",alt:"img"}),(0,g.jsxs)("button",{className:"".concat(w?"active":""),type:"button",onClick:e.isLoggedIn?pe:function(){le(d.N.setJoinNowModalState(!0))},children:["Camera Settings",(0,g.jsx)("img",{className:"arrow",src:"/assets/img/icons/arrow-up.svg",alt:"img"})]})]}),(0,g.jsx)("div",{className:"feed_device_info  ".concat(w?"expand":""),children:(0,g.jsx)("div",{children:(0,g.jsxs)("div",{className:"feed_device_info-inter-Div",children:[(null===de||void 0===de?void 0:de.cameraName)&&(0,g.jsx)("h5",{className:"device_name",children:(0,R.sX)(de.cameraName)}),(0,g.jsxs)("div",{className:"device_info",children:[(0,g.jsxs)("div",{className:"info_box",children:[(null===de||void 0===de?void 0:de.focalLength)&&(0,g.jsxs)("span",{children:[(0,g.jsx)("strong",{children:"Focal Length:"})," ",(0,R._S)(null===de||void 0===de?void 0:de.focalLength)]}),(null===de||void 0===de?void 0:de.lens)&&(0,g.jsxs)("span",{children:[(0,g.jsx)("strong",{children:"Lens:"})," ",(0,R.Lu)(de.lens)]})]}),(0,g.jsxs)("div",{className:"info_box",children:[(null===de||void 0===de?void 0:de.aperture)&&(0,g.jsxs)("span",{children:[(0,g.jsx)("strong",{children:"Aperture:"})," ",null===de||void 0===de?void 0:de.aperture]}),(null===de||void 0===de?void 0:de.iso)&&(0,g.jsxs)("span",{children:[(0,g.jsx)("strong",{children:"ISO:"})," ","object"===typeof de.iso&&null!==de.iso&&"0"in de.iso?de.iso[0]:de.iso||""]})]}),(0,g.jsxs)("div",{className:"info_box",children:[(null===de||void 0===de?void 0:de.shutterSpeed)&&(0,g.jsxs)("span",{children:[(0,g.jsx)("strong",{children:"Shutter Speed:"})," ",t," s"]}),fe&&(0,g.jsxs)("span",{children:[(0,g.jsx)("strong",{children:"Date Taken:"})," ",fe]})]})]})]})})}),e.isLoggedIn&&(0,g.jsxs)("div",{className:"feed_comment ",children:[(0,g.jsxs)("div",{className:"following_users",children:[!p&&1==Q&&(0,g.jsx)("span",{className:"count",id:"viewComment",children:"Add your comment to this photo."}),!p&&Q>1&&(0,g.jsxs)("a",{className:"count",id:"viewComment",onClick:function(){h(!p)},children:["View all ",Q," comments"]}),p&&(0,g.jsx)("a",{id:"hideComment",onClick:function(){h(!p)},className:"hide_comment",children:"Hide Comments"}),!q&&0==Q&&(0,g.jsx)("span",{className:"count",children:"Be first to leave a comment!"})]}),e.sharebtn&&(0,g.jsx)("div",{className:"share_btn d-none d-md-block",children:(0,g.jsx)("a",{className:"btn",onClick:function(){le(d.N.setSharePhotoModalState(!0)),le(d.N.setShareModalPhotoInfo({path:e.img,id:e.postId}))},children:"Share for more votes!"})})]}),e.isLoggedIn&&!p&&(0,g.jsx)("div",{className:"comment_lists viewList",children:(0,g.jsx)("ul",{children:null===q||void 0===q?void 0:q.map((function(t){return(0,g.jsx)(P,{commentText:t.comment_text,username:t.username,userid:t.user_id,id:t.id,userPhoto:t.user_profile_pic,CeatedAt:t.createdAt,isVote:t.is_vote,totalVote:t.total_votes,totalReplies:t.total_replies,photoID:e.postId,usertoken:e.usertoken,loginUserid:e.loginUserid,is_vote:e.is_vote,is_follow:t.is_follow,onReplyBoxToggle:oe,isHighlighted:!!e.highlightCommentId&&e.highlightCommentId===t.id,onCommentDeleted:se},t.id)}))})}),e.isLoggedIn&&p&&(0,g.jsx)(O,{postid:e.postId,inputValue:F,loginUserid:e.loginUserid,highlightCommentId:e.highlightCommentId,onReplyBoxToggle:oe,onCommentDeleted:se}),(0,g.jsx)("div",{className:"feed_comment_main".concat(ae?" feed_comment_main--hidden":""),"aria-hidden":ae,children:(0,g.jsx)("form",{onSubmit:me,children:(0,g.jsxs)("div",{className:"feed_comment",children:[(0,g.jsx)("div",{className:"comment_user",style:{backgroundImage:"url(".concat(e.displayUserSocailPhoto||"",")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:"50%",cursor:"pointer"},children:!e.displayUserSocailPhoto&&(0,g.jsx)("img",{src:"https://ui-avatars.c
2om/api/?name=".concat(e.Name,"&size=40&rounded=true&background=01655a&color=fff"),alt:"img"})}),(0,g.jsxs)("div",{className:"comment_field",children:[(0,g.jsx)("input",{type:"text",name:"comment",placeholder:A?"Thanks! Comments make the (photography) world go \u2018round!":"Add a comment and make a photographer smile.",className:"".concat(C?"typed":""),value:C,onChange:function(e){_(e.target.value)},disabled:ae}),J?(0,g.jsx)("span",{className:"".concat(C?"Commentloader":"")}):(0,g.jsx)("button",{type:"submit",className:"comment-btn",disabled:ae,children:(0,g.jsx)("img",{src:"/assets/img/icons/subtract.svg",alt:"img"})})]})]})})})]})}},3763:function(e,t,n){"use strict";var r=n(4942),i=n(1413),o=n(2791),a=n(4164),s=n(184),l={position:"absolute",width:44,height:44,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255,255,255,0.14)",border:"none",borderRadius:9999,cursor:"pointer"},c=function(e){var t,n=e.dir,o=e.onClick;return(0,s.jsx)("button",{type:"button","aria-label":"prev"===n?"Previous photo":"Next photo",onClick:function(e){e.stopPropagation(),o()},style:(0,i.Z)((0,i.Z)({},l),{},(t={},(0,r.Z)(t,"prev"===n?"left":"right",16),(0,r.Z)(t,"top","50%"),(0,r.Z)(t,"transform","translateY(-50%)"),t)),children:(0,s.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"#FFFFFF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:"prev"===n?(0,s.jsx)("polyline",{points:"15 18 9 12 15 6"}):(0,s.jsx)("polyline",{points:"9 18 15 12 9 6"})})})};t.Z=function(e){var t=e.photos,n=e.index,r=e.onClose,u=e.onIndex,d=Array.isArray(t)?t.length:0,f=(0,o.useCallback)((function(){u((n-1+d)%d)}),[n,d,u]),p=(0,o.useCallback)((function(){u((n+1)%d)}),[n,d,u]);(0,o.useEffect)((function(){var e=document.body.style.overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}}),[]),(0,o.useEffect)((function(){var e=function(e){"Escape"===e.key?r():"ArrowLeft"===e.key&&d>1?f():"ArrowRight"===e.key&&d>1&&p()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[r,f,p,d]);var h=d>0?t[n]:null;return h?(0,a.createPortal)((0,s.jsxs)("div",{onClick:r,style:{position:"fixed",inset:0,zIndex:2147483e3,backgroundColor:"rgba(26, 26, 26, 0.88)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,s.jsx)("button",{type:"button","aria-label":"Close",onClick:function(e){e.stopPropagation(),r()},style:(0,i.Z)((0,i.Z)({},l),{},{top:16,right:16}),children:(0,s.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"#FFFFFF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,s.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),d>1&&(0,s.jsx)(c,{dir:"prev",onClick:f}),d>1&&(0,s.jsx)(c,{dir:"next",onClick:p}),(0,s.jsx)("img",{src:h.photo_url,alt:"",onClick:function(e){return e.stopPropagation()},style:{maxWidth:"92vw",maxHeight:"92vh",objectFit:"contain",display:"block"}}),d>1&&(0,s.jsxs)("div",{style:{position:"absolute",bottom:20,left:"50%",transform:"translateX(-50%)",color:"#FFFFFF",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,backgroundColor:"rgba(255,255,255,0.14)",borderRadius:9999,padding:"4px 12px"},children:[n+1," / ",d]})]}),document.body):null}},2848:function(e,t,n){"use strict";n.d(t,{Z:function(){return ee}});var r=n(9439),i=n(2791),o=n(4164),a=n(4165),s=n(5861),l=n(1413),c=n(7689),u=n(9434),d=n(9704),f=n(1570),p=n(9343),h=n(4848),m=n(7019),v=n(5201),g=n(7884),y=n(4014),b=n(184),x="#FFFFFF",w="#0A1A33",k="#6B7A8F",S="#8898AE",j="#FFF2C9",C="#F4F6F9",_="#C8D0DA",E="#0A1A33",N="#FFFFFF",A="#0A1A33",D='"Jost", system-ui, sans-serif',T=new Map,I=function(e){var t=T.get(e);return t?Date.now()-t.fetchedAt>9e4?(T.delete(e),null):t.data:null},P=function(e,t){T.set(e,{data:t,fetchedAt:Date.now()})},F=function(){return T.clear()},O=function(e){return"undefined"===typeof window?function(){}:(window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)})},M=function(){return"undefined"!==typeof window&&window.innerWidth<768},Z=function(){return!1},R=function(e){return{width:e?"100%":320,maxWidth:e?326:320,backgroundColor:x,borderRadius:16,padding:20,boxSh
2adow:e?"0 12px 32px rgba(10, 26, 51, 0.14), 0 2px 6px rgba(10, 26, 51, 0.08)":"0 12px 32px rgba(10, 26, 51, 0.12), 0 2px 6px rgba(10, 26, 51, 0.06)",fontFamily:D,color:w,display:"flex",flexDirection:"column",gap:16,boxSizing:"border-box"}},L=function(e){return{position:"absolute",top:e?6:16,right:e?6:16,width:e?44:24,height:e?44:24,background:"transparent",border:"none",padding:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:k,borderRadius:e?22:4}},B=function(){return(0,b.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true",children:(0,b.jsx)("path",{d:"M2 2 L10 10 M10 2 L2 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})},z=function(){return(0,b.jsxs)("svg",{width:"20",height:"16",viewBox:"0 0 20 16","aria-hidden":"true",style:{display:"block"},children:[(0,b.jsx)("rect",{x:"0.5",y:"3.5",width:"19",height:"12",rx:"2",fill:"none",stroke:_,strokeWidth:"1.25"}),(0,b.jsx)("circle",{cx:"10",cy:"9.5",r:"3",fill:"none",stroke:_,strokeWidth:"1.25"}),(0,b.jsx)("rect",{x:"6",y:"0.5",width:"8",height:"3",rx:"1",fill:"none",stroke:_,strokeWidth:"1.25"})]})},U=function(e){var t=e.src;return(0,b.jsx)("div",{style:{flex:1,aspectRatio:"1 / 1",borderRadius:10,overflow:"hidden",backgroundColor:C,display:"flex",alignItems:"center",justifyContent:"center"},children:t?(0,b.jsx)("img",{src:t,alt:"",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}):(0,b.jsx)(z,{})})},H=function(){return(0,b.jsx)("div",{style:{flex:1,aspectRatio:"1 / 1"},"aria-hidden":"true"})},W=function(e){var t=e.width,n=e.height,r=void 0===n?12:n;return(0,b.jsx)("div",{style:{width:t,height:r,borderRadius:4,backgroundColor:C}})},q=function(e){var t=e.isMobile;return(0,b.jsxs)("div",{style:R(t),children:[(0,b.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:12},children:[(0,b.jsx)("div",{style:{width:44,height:44,borderRadius:22,backgroundColor:C,flexShrink:0}}),(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6,flex:1,paddingTop:4},children:[(0,b.jsx)(W,{width:"60%",height:14}),(0,b.jsx)(W,{width:"40%",height:11})]})]}),(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,b.jsx)(W,{width:"70%"}),(0,b.jsx)(W,{width:"55%"})]}),(0,b.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,b.jsx)(H,{}),(0,b.jsx)(H,{}),(0,b.jsx)(H,{})]}),(0,b.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:4},children:[(0,b.jsx)(W,{width:80,height:14}),(0,b.jsx)(W,{width:88,height:t?44:36})]})]})},V=function(e){var t=e.onClose,n=e.isMobile;return(0,b.jsxs)("div",{style:(0,l.Z)((0,l.Z)({},R(n)),{},{position:"relative"}),children:[(0,b.jsx)("button",{type:"button",style:L(n),onClick:t,"aria-label":"Close",children:(0,b.jsx)(B,{})}),(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,paddingRight:24},children:[(0,b.jsx)("div",{style:{width:44,height:44,borderRadius:22,flexShrink:0,backgroundColor:C,display:"flex",alignItems:"center",justifyContent:"center",color:_},"aria-hidden":"true",children:(0,b.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",children:[(0,b.jsx)("circle",{cx:"10",cy:"7",r:"3.5",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0,b.jsx)("path",{d:"M3 17c1.5-3.5 4.2-5 7-5s5.5 1.5 7 5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,b.jsx)("span",{style:{fontWeight:600,fontSize:15,lineHeight:"20px"},children:"Member unavailable"}),(0,b.jsx)("span",{style:{fontWeight:400,fontSize:13,lineHeight:"16px",color:k},children:"This account is no longer active."})]})]})]})},G=function(e){var t,n=e.userId,o=e.onClose,x=(0,i.useSyncExternalStore)(O,M,Z),C=(0,i.useState)((function(){return I(n)})),_=(0,r.Z)(C,2),T=_[0],z=_[1],W=(0,i.useState)(!T),G=(0,r.Z)(W,2),$=G[0],J=G[1],K=(0,i.useState)(!1),Y=(0,r.Z)(K,2),X=Y[0],Q=Y[1],ee=(0,i.useState)(null!==(t=null===T||void 0===T?void 0:T.isFollowedByViewer)&&void 0!==t&&t),te=(0,r.Z)(ee,2),ne=te[0],re=te[1],ie=(0,i.useRef)(Math.random().toString(36).slice(2)),oe=(0,i.useRef)(null),ae=(0,u.I0)(),se=(0,c.s0)(),le=(0,u.v9)((function(e){return e.Follow.FollowState}));(0,i.useEffect)((function(){F()}),[le]),(0,i.useEffect)((function(){var e=I(n);if(e)return z(e),re(e.isFollowedByViewer),void J(!1);var t=ie.current,r=new AbortController;oe.current=r;var i=null;J(!0);var o=Date.now();return(0,f.rs)({userId:n},{signal:r.signal}).then((function(e){var a;if(ie.current===t&&!r.signal.aborted){var s=null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.data;if(s){P(n,s);var l=Date.now()-o,c=Math.max(0,80-l);i=setTimeout((function(){i=null,ie.current===t&&(z(s),re(s.isFollowedByViewer),J(!1))}),c)}}})).catch((function(e){r.signal.aborted||ie.current===t&&(z({isActive:!1}),J(!1))})),function(){ie.current=Math.random().toString(36).slice(2),r.abort(),oe.current=null,i&&clearTimeout(i)}}),[n]);var ce=(0,i.useCallback)((function(){if(T&&T.userId){var e={PhotoID:"",UserID:T.userId}
2,t=d.AES.encrypt(JSON.stringify(e),"siddiqui").toString(),n="/otherusers-profile?userdata=".concat(encodeURIComponent(t));if(!(0,v.I)())return(0,g.VB)({type:"view-profile",returnUrl:n}),ae(m.N.setPopupModalMessage({joinModalHeading:(0,g.dO)("view-profile")})),ae(m.N.setJoinNowModalState(!0)),void(o&&o());se(n),"undefined"!==typeof window&&window.scrollTo(0,0),o&&o()}}),[T,se,o,ae]),ue=(0,i.useCallback)((0,s.Z)((0,a.Z)().mark((function e(){var t,n,r,i,o,s;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(T&&!X){e.next=2;break}return e.abrupt("return");case 2:if((0,v.I)()){e.next=7;break}return(0,g.VB)({type:"follow-user",userId:T.userId}),ae(m.N.setPopupModalMessage({joinModalHeading:(0,g.dO)("follow-user")})),ae(m.N.setJoinNowModalState(!0)),e.abrupt("return");case 7:re(t=!ne),Q(!0),n="",r="";try{i=(0,y.a)(localStorage.getItem("Data")),n=(null===i||void 0===i?void 0:i.token)||"",r=(null===i||void 0===i?void 0:i._id)||(null===i||void 0===i?void 0:i.id)||""}catch(a){}return o=function(){ae(h.$.setSocketReceiverUserID(T.userId))},e.prev=14,e.next=17,(0,p.P)(T.userId,t,n,r,o,"Follow");case 17:s=(0,l.Z)((0,l.Z)({},T),{},{isFollowedByViewer:t}),P(T.userId,s),z(s),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(14),re(!t);case 25:return e.prev=25,Q(!1),e.finish(25);case 28:case"end":return e.stop()}}),e,null,[[14,22,25,28]])}))),[T,ne,X,ae]);if($)return(0,b.jsx)(q,{isMobile:x});if(!T||!T.isActive)return(0,b.jsx)(V,{onClose:o,isMobile:x});var de=T.location||(T.handle?"@".concat(T.handle):""),fe=function(e){if(!e)return"";try{return new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"})}catch(t){return""}}(T.joinDate),pe=Array.isArray(T.recentPostPhotos)&&T.recentPostPhotos.length>0,he=pe?[0,1,2].map((function(e){return(t=T.recentPostPhotos[e])?t.compressedImageId?"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_172,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId):t.photo_url||null:null;var t})):[];return(0,b.jsxs)("div",{style:(0,l.Z)((0,l.Z)({},R(x)),{},{position:"relative"}),role:"dialog","aria-label":"Member preview for ".concat(T.displayName||"this member"),children:[(0,b.jsx)("button",{type:"button",style:L(x),onClick:o,"aria-label":"Close",children:(0,b.jsx)(B,{})}),(0,b.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:12,paddingRight:24},children:[(0,b.jsx)("div",{style:{width:44,height:44,borderRadius:22,backgroundColor:j,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:T.avatarUrl?(0,b.jsx)("img",{src:T.avatarUrl,alt:"",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}):(0,b.jsx)("span",{style:{fontWeight:600,fontSize:16,color:w},children:T.initials||""})}),(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2,flex:1,minWidth:0},children:[(0,b.jsx)("span",{style:{fontWeight:700,fontSize:18,lineHeight:"22px",color:w,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:T.displayName||"Member"}),de&&(0,b.jsx)("span",{style:{fontWeight:400,fontSize:13,lineHeight:"16px",color:k},children:de})]})]}),(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[T.camera&&(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,b.jsx)("span",{style:{width:96,flexShrink:0,fontWeight:600,fontSize:10,lineHeight:"14px",letterSpacing:"0.12em",textTransform:"uppercase",color:S},children:"Camera"}),(0,b.jsx)("span",{style:{fontWeight:500,fontSize:13,lineHeight:"16px",color:w},children:T.camera})]}),fe&&(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,b.jsx)("span",{style:{width:96,flexShrink:0,fontWeight:600,fontSize:10,lineHeight:"14px",letterSpacing:"0.12em",textTransform:"uppercase",color:S},children:"Member since"}),(0,b.jsx)("span",{style:{fontWeight:500,fontSize:13,lineHeight:"16px",color:w},children:fe})]})]}),pe&&(0,b.jsx)("div",{style:{display:"flex",gap:8},children:he.map((function(e,t){return e?(0,b.jsx)(U,{src:e},t):(0,b.jsx)(H,{},t)}))}),(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,paddingTop:4},children:[(0,b.jsx)("button",{type:"button",onClick:ce,style:{background:"none",border:"none",padding:x?"12px 0":0,cursor:"pointer",fontFamily:D,fontWeight:500,fontSize:x?15:14,lineHeight:"18px",color:w,minHeight:x?44:void 0,display:"inline-flex",alignItems:"center"},children:"View profile \u2192"}),!T.isSelf&&(0,b.jsx)("button",{type:"button",onClick:ue,disabled:X,"aria-pressed":ne,style:{padding:x?"12px 26px":"10px 22px",backgroundColor:ne?"#FFFFFF":E,color:ne?w:N,borderRadius:999,borderStyle:"solid",borderWidth:ne?1.5:0,borderColor:ne?A:"transparent",fontFamily:D,fontWeight:600,fontSize:x?15:14,lineHeight:"18px",cursor:X?"wait":"pointer",opacity:X?.7:1,minHeight:x?44:void 0},children:ne?"Following":"Follow"})]})]})},$=16,J=null,K=function(e){return"undefined"===typeof window?function(){}:(window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)})},Y=function(){return"undefined"!==typeof window?window.innerWidth:1024},X=function(){return 1024},Q=function(e){var t=e.anchorRef,n=e.userId,a=e.onClose,s=e.onCardPointerEnter,l=e.onCardPointerLeave,c=(0,i.useRef)(null),u=(0,i.useState)({top:0,left:0,ready:!1}),d=(0,r.Z)(u,2),f=d[0],p=d[1],h=(0,i.useSyncExternalStore)(K,Y,X),m=h<768?Math.min(326,Math.max(0,h-32)):320,v=(0,i.useRef)(a);(0,i.useEffect)((function(){v.current=a}),[a]),(0,i.useEffect)((function(){var e=function(){return v.current&&v.current()};if(J&&J!==e){var t=J;J=e,t()}else J=e;return function(){J===e&&(J=null)}}),[]);var g=(0,i.useCallback)((function(){var e=null===t||void 0===t?void 0:t.current,n=c.current;if(e&&n){var r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),o=window.innerWidth,a=window.innerHeight,s=r.bottom+8,l=r.left+r.
2width/2-i.width/2;if(l<$&&(l=$),l+i.width>o-$&&(l=o-$-i.width),s+i.height>a-$){var u=r.top-8-i.height;s=u>=$?u:Math.max($,a-$-i.height)}p({top:s,left:l,ready:!0})}}),[t,m]);return(0,i.useLayoutEffect)((function(){return g(),window.addEventListener("resize",g),function(){return window.removeEventListener("resize",g)}}),[g]),(0,i.useEffect)((function(){var e=c.current;if(e){var n=requestAnimationFrame((function(){var t=e.querySelector('button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');t&&t.focus()}));return function(){cancelAnimationFrame(n),e.contains(document.activeElement)&&null!==t&&void 0!==t&&t.current&&t.current.focus()}}}),[t]),(0,i.useEffect)((function(){var e=function(e){"Escape"===e.key&&a()},n=function(e){c.current&&e.target&&1===e.target.nodeType&&c.current.contains(e.target)||a()},r=function(e){var n=c.current,r=null===t||void 0===t?void 0:t.current;n&&(n.contains(e.target)||r&&r.contains(e.target)||a())},i=function(){return a()};return window.addEventListener("keydown",e),window.addEventListener("scroll",n,!0),window.addEventListener("pointerdown",r),window.addEventListener("popstate",i),function(){window.removeEventListener("keydown",e),window.removeEventListener("scroll",n,!0),window.removeEventListener("pointerdown",r),window.removeEventListener("popstate",i)}}),[t,a]),"undefined"===typeof document?null:(0,o.createPortal)((0,b.jsx)("div",{ref:c,onPointerEnter:s,onPointerLeave:l,style:{position:"fixed",top:f.top,left:f.left,width:m,zIndex:9e3,visibility:f.ready?"visible":"hidden"},children:(0,b.jsx)(G,{userId:n,onClose:a})}),document.body)},ee=function(e){var t=(0,i.useRef)(null),n=(0,i.useRef)(null),o=(0,i.useRef)(null),a=(0,i.useState)(!1),s=(0,r.Z)(a,2),l=s[0],c=s[1];(0,i.useEffect)((function(){return function(){n.current&&clearTimeout(n.current),o.current&&clearTimeout(o.current)}}),[]);var u=(0,i.useCallback)((function(){n.current&&(clearTimeout(n.current),n.current=null),o.current&&(clearTimeout(o.current),o.current=null)}),[]),d=(0,i.useCallback)((function(){u(),c(!0)}),[u]),f=(0,i.useCallback)((function(){u(),c(!1)}),[u]),p=(0,i.useCallback)((function(e){"touch"!==e.pointerType&&"pen"!==e.pointerType&&(o.current&&(clearTimeout(o.current),o.current=null),n.current||l||(n.current=setTimeout((function(){n.current=null,c(!0)}),250)))}),[l]),h=(0,i.useCallback)((function(e){if("touch"!==e.pointerType&&"pen"!==e.pointerType)return n.current?(clearTimeout(n.current),void(n.current=null)):void(l&&!o.current&&(o.current=setTimeout((function(){o.current=null,c(!1)}),150)))}),[l]),m=(0,i.useCallback)((function(e){e&&"function"===typeof e.stopPropagation&&e.stopPropagation(),l?f():d()}),[l,d,f]),v=!!e;return{open:v&&l,enabled:v,anchorRef:t,handlers:v?{onPointerEnter:p,onPointerLeave:h,onClick:m}:{},popover:v&&l?(0,b.jsx)(Q,{anchorRef:t,userId:e,onClose:f,onCardPointerEnter:u,onCardPointerLeave:h}):null}}},1101:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(9439),i=n(2791),o=n(3772),a=function(e,t){return"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_".concat(t,",f_auto,q_auto/Resized_Photos/").concat(e)},s=n(6617),l=n(9434),c=n(7019),u=n(2826),d=n(3172),f=n(184),p=function(e){var t=e.photos,n=e.onThumbClick,p=e.isLoggedIn,h=void 0!==p&&p,m=(0,l.I0)(),v=(0,i.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),g=(0,r.Z)(v,2),y=g[0],b=g[1];(0,i.useEffect)((function(){if("undefined"!==typeof window){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return b(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}}),[]);var x=(0,d.LX)(),w=x.isPhotoGated,k=x.revealPhotoById;if(!t||0===t.length)return null;var S=y?"8px":"12px";return(0,f.jsx)(o.G,{columnsCountBreakPoints:{0:2,768:3},children:(0,f.jsx)(o.Z,{gutter:S,children:t.map((function(e){var t,r=e.compressedImageId?a(e.compressedImageId,400):e.photo_url,i=e.compressedImageId?a(e.compressedImageId,700):e.photo_url,o=e.description||(e.name?"Hunted photo by ".concat(e.name):"Hunted photo"),l=null!==(t=e.photo_id)&&void 0!==t?t:e.id,d=w(e.is_adult_content,l,e.user_id);return(0,f.jsxs)("button",{type:"button",className:"profile-grid-thumb ".concat(d?"aco-host":""),onClick:function(){return d?void(h?k(l):m(c.N.setSignInModalState(!0))):n(e)},"aria-label":d?h?"Adult content. Show photo.":"Adult content. Sign in to view.":"Open ".concat(o),children:[(0,f.jsx)("img",{loading:"lazy",decoding:"async",src:r,srcSet:"".concat(r," 1x, ").concat(i," 2x"),alt:d?"":o}),d?(0,f.jsx)(u.Z,{variant:"grid",isLoggedIn:h,photoId:l}):(0,f.jsxs)("span",{className:"profile-grid-votes",children:[(0,f.jsx)("img",{src:"/assets/img/icons/arrow-up.svg",alt:"","aria-hidden":"true"}),(0,s.J)(e.total_votes)]})]},e.id)}))})})}},2932:function(e,t,n){"use strict";var r=n(2791),i=n(184),o=[{value:"feed",label:"Feed",Icon:function(){return(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[(0,i.jsx)("path",{d:"M19 3H5C3.895 3 3 3.895 3 5V19C3 20.105 3.895 21 5 21H19C20.105 21 21 20.105 21 19V5C21 3.895 20.105 3 19 3Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M21 9H3",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M21 15H3",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}},{value:"grid",label:"Grid",Icon:function(){return(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[(0,i.jsx)("path",{d:"M19 3H5C3.895 3 3 3.895 3 5V19C3 20.105 3.895 21 5 21H19C20.105 21 21 20.105 21 19V5C21 3.895 20.105 3 19 3Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M3 9H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M3 15H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M9 3V21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M15 3V21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}}];
2t.Z=function(e){var t=e.view,n=e.onChange,a=(0,r.useRef)({}),s=(0,r.useRef)(!1);(0,r.useEffect)((function(){if(s.current){s.current=!1;var e=a.current[t];e&&e.focus()}}),[t]);return(0,i.jsxs)("div",{className:"profile-view-toggle",role:"radiogroup","aria-label":"Photo layout",children:[o.map((function(e){var r=e.value,o=e.label,l=e.Icon,c=t===r;return(0,i.jsx)("button",{ref:function(e){a.current[r]=e},type:"button",role:"radio","aria-checked":c,"aria-label":"".concat(o," view"),tabIndex:c?0:-1,className:"profile-view-toggle__seg ".concat(c?"is-selected":""),onClick:function(){return n(r)},onKeyDown:function(e){return function(e,t){"ArrowRight"===e.key||"ArrowDown"===e.key||"ArrowLeft"===e.key||"ArrowUp"===e.key?(e.preventDefault(),s.current=!0,n("feed"===t?"grid":"feed")):" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),n(t))}(e,r)},children:(0,i.jsx)(l,{})},r)})),(0,i.jsx)("span",{className:"visually-hidden","aria-live":"polite",children:"grid"===t?"Grid view":"Feed view"})]})}},2913:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(9439),i=n(2791),o=n(184),a={viewer:null,processing:"ken-bot \xb7 live",inflight:"your report \xb7 ken-bot \xb7 live",card:"ken-bot \xb7 at work"},s={card:"ken-bot\xb7at work"},l=function(e){return e.lineMobile?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"ryp-ticker-line-desktop",children:e.line}),(0,o.jsx)("span",{className:"ryp-ticker-line-mobile",children:e.lineMobile})]}):e.line},c=function(e){var t=e.variant,n=void 0===t?"processing":t,c=e.line,u=void 0===c?"":c,d=e.lineMobile,f=void 0===d?null:d,p=e.onActivate,h=void 0===p?null:p,m=e.className,v=void 0===m?"":m,g=n in a?a[n]:a.processing,y=s[n]||null,b=(0,i.useState)({line:u,lineMobile:f}),x=(0,r.Z)(b,2),w=x[0],k=x[1],S=(0,i.useState)(null),j=(0,r.Z)(S,2),C=j[0],_=j[1],E=(0,i.useRef)({line:u,lineMobile:f});(0,i.useEffect)((function(){if(u!==E.current.line||f!==E.current.lineMobile){var e={line:u,lineMobile:f};_(E.current),k(e),E.current=e;var t=setTimeout((function(){return _(null)}),260);return function(){return clearTimeout(t)}}}),[u,f]);var N=!w.line,A=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("span",{className:"ryp-ticker-belt","aria-hidden":"true",children:[(0,o.jsx)("span",{className:"ryp-ticker-prompt",children:"viewer"===n?">":">\xa0"}),(0,o.jsxs)("span",{className:"ryp-ticker-clip",children:[null!==C&&""!==C.line&&(0,o.jsx)("span",{className:"ryp-ticker-line ryp-ticker-line--out",children:l(C)}),(0,o.jsx)("span",{className:"ryp-ticker-line ryp-ticker-line--in",children:l(w)},w.line)]}),(0,o.jsx)("span",{className:"ryp-ticker-cursor"})]}),!N&&g&&(0,o.jsx)("span",{className:"ryp-ticker-tag","aria-hidden":"true",children:y?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"ryp-ticker-tag-desktop",children:g}),(0,o.jsx)("span",{className:"ryp-ticker-tag-mobile",children:y})]}):g})]});return"inflight"===n&&h?(0,o.jsx)("button",{type:"button",className:"ryp-ticker ryp-ticker--inflight ".concat(v).trim(),onClick:h,"aria-label":"Your report is being written",children:A}):(0,o.jsx)("div",{className:"ryp-ticker ryp-ticker--".concat(n," ").concat(v).trim(),"aria-hidden":"true",children:A})}},2719:function(e,t,n){"use strict";n(2791);var r=n(2913),i=n(2969),o=n(4467),a=(n(1142),n(184)),s=[{label:"Composition",short:"Composition",value:"9.0"},{label:"Lighting",short:"Lighting",value:"5.1"},{label:"Color & Tone",short:"Color & Tone",value:"8.5"},{label:"Focus & Detail",short:"Focus",value:"8.8"},{label:"Story & Emotion",short:"Story",value:"9.2"},{label:"Editing & Execution",short:"Editing",value:"7.7"}];t.Z=function(e){var t=e.compact,n=void 0!==t&&t,l=e.soft,c=void 0!==l&&l,u=(0,i.f)(o.KA).index,d=o.KA[u]||o.KA[0];return(0,a.jsxs)("div",{className:"rypc-card rypc-card--example".concat(n?" rypc-card--compact":"").concat(c?" rypc-card--soft":""),"aria-hidden":"true",children:[(0,a.jsx)(r.Z,{variant:"card",line:d.line,lineMobile:d.lineMobile}),(0,a.jsx)("div",{className:"rypc-card-sample",children:"Sample"}),(0,a.jsxs)("div",{className:"rypc-card-body",children:[(0,a.jsxs)("div",{className:"rypc-card-head",children:[(0,a.jsx)("div",{className:"rypc-card-thumb"}),(0,a.jsxs)("div",{className:"rypc-card-overall",children:[(0,a.jsxs)("div",{className:"rypc-card-m
2icrolabel",children:[(0,a.jsx)("span",{className:"rypc-card-copy--wide",children:"Your overall"}),(0,a.jsx)("span",{className:"rypc-card-copy--narrow",children:"Overall"})]}),(0,a.jsxs)("div",{className:"rypc-card-overall-row",children:[(0,a.jsx)("span",{className:"rypc-card-overall-num",children:"8.4"}),(0,a.jsx)("span",{className:"rypc-card-overall-of",children:"/ 10"})]})]})]}),(0,a.jsxs)("div",{className:"rypc-card-read",children:[(0,a.jsxs)("div",{className:"rypc-card-read-label",children:[(0,a.jsx)("span",{className:"rypc-card-copy--wide",children:"KEN-BOT'S REVIEW \xb7 EXAMPLE"}),(0,a.jsx)("span",{className:"rypc-card-copy--narrow",children:"KEN-BOT'S REVIEW"})]}),(0,a.jsxs)("div",{className:"rypc-card-quote",children:[(0,a.jsx)("span",{className:"rypc-card-quote--wide",children:'"The story is doing the work here; the light is fighting it."'}),(0,a.jsx)("span",{className:"rypc-card-quote--narrow",children:"\u201cThe story is doing the work here; the light is fighting it. The blown sky keeps pulling your eye off her face.\u201d"})]}),(0,a.jsx)("div",{className:"rypc-card-bar rypc-card-bar--one"}),(0,a.jsx)("div",{className:"rypc-card-bar rypc-card-bar--two"})]}),(0,a.jsxs)("div",{className:"rypc-card-rank",children:[(0,a.jsxs)("div",{className:"rypc-card-rank-row",children:[(0,a.jsxs)("div",{className:"rypc-card-microlabel",children:[(0,a.jsx)("span",{className:"rypc-card-copy--wide",children:"Where you stand"}),(0,a.jsx)("span",{className:"rypc-card-copy--narrow",children:"Where it stands"})]}),(0,a.jsx)("div",{className:"rypc-card-rank-value",children:"Top 11% \xb7 Big Photo Hunt"})]}),(0,a.jsx)("div",{className:"rypc-card-track",children:(0,a.jsx)("div",{className:"rypc-card-fill"})})]}),(0,a.jsxs)("div",{className:"rypc-card-tiles",children:[(0,a.jsx)("div",{className:"rypc-card-tile-row",children:s.slice(0,3).map((function(e){return(0,a.jsxs)("div",{className:"rypc-card-tile",children:[(0,a.jsx)("div",{className:"rypc-card-tile-label",children:e.label}),(0,a.jsx)("div",{className:"rypc-card-tile-num",children:e.value})]},e.label)}))}),(0,a.jsx)("div",{className:"rypc-card-tile-row",children:s.slice(3).map((function(e){return(0,a.jsxs)("div",{className:"rypc-card-tile",children:[(0,a.jsxs)("div",{className:"rypc-card-tile-label",children:[(0,a.jsx)("span",{className:"rypc-tile-label-full",children:e.label}),(0,a.jsx)("span",{className:"rypc-tile-label-short",children:e.short})]}),(0,a.jsx)("div",{className:"rypc-card-tile-num",children:e.value})]},e.label)}))})]}),(0,a.jsxs)("div",{className:"rypc-card-limiter",children:[(0,a.jsx)("span",{className:"rypc-card-limiter-label",children:"#1 thing holding it back:"}),(0,a.jsx)("span",{className:"rypc-card-limiter-value",children:"Lighting"})]}),(0,a.jsxs)("div",{className:"rypc-card-fixit",children:[(0,a.jsxs)("div",{className:"rypc-card-fixit-title",children:[(0,a.jsx)("span",{className:"rypc-card-copy--wide",children:"Your fix-it plan: 3 prioritized improvements"}),(0,a.jsx)("span",{className:"rypc-card-copy--narrow",children:"Fix-it plan: 3 prioritized improvements"})]}),(0,a.jsx)("div",{className:"rypc-card-fixit-bar rypc-card-fixit-bar--one"}),(0,a.jsx)("div",{className:"rypc-card-fixit-bar rypc-card-fixit-bar--two"})]})]})]})}},1676:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});n(2791);var r=n(184),i=["thumb","grid","full"];var o=function(e){var t=e.standing,n=e.size,o=void 0===n?"thumb":n,a=e.className,s=void 0===a?"":a,l=function(e){if(!e||"top"!==e.band)return null;var t=e.value;return!Number.isInteger(t)||t<1||t>30?null:"Top ".concat(t,"%")}(t);if(!l)return null;var c=-1===i.indexOf(o)?"thumb":o;return(0,r.jsx)("span",{className:"ws-stamp ws-stamp--".concat(c).concat(s?" ".concat(s):""),children:l})}},6054:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(1413),i=n(3195),o=n(4014),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var n=t.photo_id||t.report_id;if("string"===typeof n&&0===n.indexOf("fixture-"))return;var a=(0,o.a)(localStorage.getItem("Data"))||{},s=(0,r.Z)({UserID:a.userid},t);0,i.Z.getInstance().logEvent(e,s)}catch(l){}}},4467:function(e,t,n){"use strict";n.d(t,{Gk:function(){return a},KA:function(){return d},Rh:function(){return l},TR:function(){return c},UZ:function(){return r},dH:function(){return f},fY:function(){return p},uz:function(){return u},wZ:function(){return h}});var r=["reading","analyzing","comparing","scoring","writing"],i={reading:["opening your photo\u2026","checking the image is safe to review\u2026","running the safety check\u2026","loading the review instructions\u2026","reading the scoring rules\u2026","getting set up\u2026","clearing your photo for review\u2026","loading ken-bot's instructions\u2026","starting your review\u2026","lining up the review\u2026"],analyzing:[],comparing:["looking at your photo properly\u2026","reading light, color and focus\u2026","weighing your composition\u2026","looking at how you framed it\u2026","checking focus and fine detail\u2026","reading the color and tone\u2026","looking at the light you had\u2026","asking what the photo is saying\u2026","judging the edit\u2026","naming what this photo does well\u2026","writing down its strengths\u2026","grading it on the community rubric\u2026","scoring all six attributes\u2026","pulling the community averages\u2026","comparing to 20,000+ community photos\u2026","working out where you place\u2026","finding your percentile\u2026","lining you up against the pool\u2026","checking how this scores vs others\u2026","putting numbers to all six\u2026","grading your six craft areas\u2026","scoring composition and framing\u2026","scoring the light you had\u2026","scoring color and tone\u2026","scoring focus and detail\u2026","scoring story and emotion\u2026","scoring editing and execution\u2026","putting a number on each area\u2026","using the weekly grader\u2026","averaging your six scores\u2026","working out your overall score\u2026","calibrating the scores\u2026","evening out the scoring bias\u2026","keeping the scoring fair\u2026","holding every score to one bar\u2026","applying the same rules as always\u2026","opening the community scoreboard\u2026","reading every scored photo\u2026","counting who beat your score\u2026","averaging the whole community\u2026","working out the community average\u2026","checking the photos above you\u2026","averaging the photos above you\u2026","placing you in the pool\u2026","sorting you into the rankings\u2026","working out your standing\u2026","comparing you to the top scorers\u2026","measuring the gap to the average\u2026","seeing where each score lags\u2026","ranking your six by the gap\u2026","finding which area lags most\u2026","seeing how far off the average\u2026","checking which gap costs you most\u2026","weighing all six against the pool\u2026","loading the scored photos\u2026","reading the whole pool\u2026","counting the pool\u2026","going through every scored photo\u2026","checking every photo ever scored\u2026","stacking you against the pool\u2026","finding your place in the pool\u2026","working out your percentile\u2026","counting the photos below yours\u2026","counting the photos above yours\u2026","averaging the six areas\u2026","working out the six averages\u2026","measuring each gap\u2026","comparing each score to average\u2026","finding the area furthest back\u2026","checking what the top photos do\u2026","seeing what separates you\u2026","lining your six up against theirs\u2026","counting how many scored higher\u2026","counting how many scored lower\u2026","reading the pool's six averages\u2026","checking each area vs the pool\u2026","seeing which areas beat average\u2026","seeing which areas fall behind\u2026","totting up the community numbers\u2026","reading the scoreboard\u2026","sizing up the whole field\u2026","working out where you land\u2026","checking how high you placed\u2026","turning your scores into a rank\u2026","measuring you against the field\u2026","finding the photos just above you\u2026","reading what better photos did\u2026","checking their six against yours\u2026","working out what they have on you\u2026","spotting the widest gap\u2026","sorting the gaps biggest first\u2026","picking the area that costs most\u2026","weighing each score vs average\u2026","holding your six up to the pool's\u2026","forming an opinion on your photo\u2026","deciding what to say about it\u2026","putting the opinion together\u2026","looking at your photo once more\u2026","weighing the whole picture\u2026","writing down what stands out\u2026"],scoring:["finding the one thing holding it back\u2026","working out what to fix first\u2026","turning scores into advice\u2026","ranking the fixes by impact\u2026","writing your fix-it plan\u2026","deciding what matters most\u2026","picking the top three changes\u2026","checking what would help fastest\u2026","naming your biggest limiter\u2026","putting the advice in order\u2026","explaining where you placed\u2026","putting your rank into words\u2026","writing up your six scores\u2026","explaining your score spread\u2026","writing the holding-it-back note\u2026","naming the fix that pays off most\u2026","writing your first move\u2026","lining up your next moves\u2026","sketching the moves after that\u2026","writing ken-bot's greeting\u2026","choosing how to open your report\u2026","turning the gap into a fix\u2026","writing the first move in full\u2026","listing the moves after the first\u2026"],writing:["saving your report\u2026",'filing it to the "Your reports" tab\u2026',"almost done\u2026","wrapping up\u2026","writing it all down\u2026","putting your report together\u2026"]},o=r.map((function(e){return i[e]||[]})),a=o.reduce((function(e,t){return e.concat(t)}),[]),s=o.reduce((function(e,t,n){return e.concat(t.map((function(){return n})))}),[]),l=["still working on it\u2026","this one is taking longer\u2026","still going\u2026","bear with me\u2026","still at it\u2026","taking a bit more time on this\u2026"],c=r.map((function(e,t){return s.reduce((function(e,n,r){return n===t?e.concat(r):e}),[])})),u=["Let me pull up your camera info.","Now I'm looking at your light, your color, your focus, all of it.","Let me see how this stacks up against other Big Photo Hunt photos.","Finding your rank, and the one thing to work on next.","Writing up what I found."],d=[{line:"fetching the file\u2026",lineMobile:null},{line:"opening the file\u2026",lineMobile:null},{line:"decoding the image\u2026",lineMobile:null},{line:"reading the file header\u2026",lineMobile:null},{line:"pulling the metadata\u2026",lineMobile:null},{line:"hashing the file\u2026",lineMobile:null},{line:"scaling to working size\u2026",lineMobile:null},{line:"converting the color space\u2026",lineMobile:null},{line:"loading the scoring model\u2026",lineMobile:null},{line:"queuing the next photo\u2026",lineMobile:null},{line:"reading the histogram\u2026",lineMobile:null},{line:"checking clipped highlights\u2026",lineMobile:null},{line:"measuring dynamic range\u2026",lineMobile:null},{line:"checking chromatic aberration\u2026",lineMobile:"checking color fringing\u2026"},{line:"sampling the tone curve\u2026",lineMobile:null},{line:"reading noise at high ISO\u2026",lineMobile:null},{line:"measuring the color cast\u2026",lineMobile:null},{line:"looking for vignetting\u2026",lineMobile:null},{line:"checking depth of field\u2026",lineMobile:null},{line:"measuring saturation\u2026",lineMobile:null},{line:"sampling shadow detail\u2026",lineMobile:null},{line:"reading lens distortion\u2026",lineMobile:null},{line:"measuring subject separation\u2026",lineMobile:null},{line:"scoring composition\u2026",lineMobile:null},{line:"checking the framing\u2026",lineMobile:null},{line:"measuring contrast\u2026",lineMobile:null},{line:"reading exposure\u2026",lineMobile:null},{line:"weighing the negative space\u2026",lineMobile:null},{line:"weighing shadow\u2026",lineMobile:null},{line:"judging the crop\u2026",lineMobile:null},{line:"reading the leading lines\u2026",lineMobile:null},{line:"sizing up the mood\u2026",lineMobile:null},{line:"weighing the subject\u2026",lineMobile:null},{line:"judging the timing\u2026",lineMobile:null},{line:"checking the edges\u2026",lineMobile:null},{line:"scoring a street portrait's composition\u2026",lineMobile:"scoring a street portrait\u2026"},{line:"reading the light in the harbor at dusk\u2026",lineMobile:"reading the harbor at dusk\u2026"},{line:"weighing the shadows in a backlit face\u2026",lineMobile:"weighing a backlit face\u2026"},{line:"checking focus on the gull mid-turn\u2026",lineMobile:"checking the gull mid-turn\u2026"},{line:"judging the edit on the night market\u2026",lineMobile:"judging the night market\u2026"},{line:"reading color on the neon shopfront\u2026",lineMobile:"reading the neon shopfront\u2026"},{line:"reading grain in a pushed night shot\u2026",lineMobile:"reading grain at night\u2026"},{line:"weighing the story in the empty pool\u2026",lineMobile:"weighing the empty pool\u2026"},{line:"scoring a long exposure at the coast\u2026",lineMobile:"scoring a long exposure\u2026"},{line:"reading motion in the dog mid-leap\u2026",lineMobile:"reading the dog mid-leap\u2026"},{line:"reading warmth in steam over coffee\u2026",lineMobile:"reading steam over coffee\u2026"},{line:"judging depth on the crowded platform\u2026",lineMobile:"judging the crowded platform\u2026"},{line:"scoring the story in a child running\u2026",lineMobile:"scoring a child running\u2026"}
2,{line:"reading tone in autumn woods\u2026",lineMobile:"reading autumn woods\u2026"},{line:"sizing up depth in the mountain pass\u2026",lineMobile:"sizing up the mountain pass\u2026"}],f=[{key:"composition",label:"Composition"},{key:"lighting",label:"Lighting"},{key:"colorTone",label:"Color & Tone"},{key:"focusDetail",label:"Focus & Detail"},{key:"storyEmotion",label:"Story & Emotion"},{key:"editingExecution",label:"Editing & Execution"}],p=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return f.map((function(n,r){var i="pending";return t||r<e?i="done":r===e&&(i="active"),{key:n.key,label:n.label,state:i}}))},h=function(e){return e<0?0:e>=s.length?r.length-1:s[e]}},1912:function(e,t,n){"use strict";n.d(t,{B2:function(){return a},En:function(){return f},F3:function(){return c},GD:function(){return d},JW:function(){return o},N5:function(){return u},ST:function(){return x},Zg:function(){return b},i4:function(){return s},ie:function(){return v},nA:function(){return h},o6:function(){return y},of:function(){return g},tz:function(){return p},xo:function(){return w}});var r=n(1413),i=n(7762),o=[{key:"composition_target",label:"Composition",improveKey:"composition_improve"},{key:"light_target",label:"Lighting",improveKey:"lighting_improve"},{key:"color_target",label:"Color & Tone",improveKey:"color_and_tone_improve"},{key:"focus_target",label:"Focus & Detail",improveKey:"focus_and_detail_improve"},{key:"story_emotion",label:"Story & Emotion",improveKey:"story_and_emotion_improve"},{key:"edit_target",label:"Editing & Execution",improveKey:"editing_and_execution_improve"}];function a(e){if(null==e)return null;if("object"===typeof e)return e;if("string"!==typeof e)return null;try{var t=JSON.parse(e);return t&&"object"===typeof t?t:null}catch(n){return null}}function s(e,t){if(!e)return null;var n,a=null,s=(0,i.Z)(o);try{for(s.s();!(n=s.n()).done;){var l=n.value,c=e[l.key];"number"===typeof c&&((!a||c<a.score)&&(a=(0,r.Z)((0,r.Z)({},l),{},{score:c})))}}catch(p){s.e(p)}finally{s.f()}if(!a)return null;var u=t&&"string"===typeof t.key?t.key:null,d=u?o.find((function(e){return e.key===u})):null;if(!d)return a;var f=e[d.key];return(0,r.Z)((0,r.Z)({},d),{},{score:"number"===typeof f?f:null})}var l=function(e,t){return e.score-t.score||e.boardIndex-t.boardIndex};function c(e,t){if(!e)return[];var n=o.map((function(t,n){return(0,r.Z)((0,r.Z)({},t),{},{boardIndex:n,score:e[t.key]})})).filter((function(e){return"number"===typeof e.score})),a=Array.isArray(t)?t.filter((function(e){return"string"===typeof e})):[];if(0===a.length)return n.sort(l);var s,c=[],u=(0,i.Z)(a);try{var d=function(){var e=s.value,t=n.find((function(t){return t.key===e}));t&&-1===c.indexOf(t)&&c.push(t)};for(u.s();!(s=u.n()).done;)d()}catch(f){u.e(f)}finally{u.f()}return c.concat(n.filter((function(e){return-1===c.indexOf(e)})).sort(l))}function u(e){if("string"!==typeof e||""===e.trim())return null;for(var t,n=e.trim(),r=/[.!?]\s+/g;null!==(t=r.exec(n));){var i=n.slice(0,t.index+1);if(i.length>=25)return{first:i,rest:n.slice(r.lastIndex)}}return{first:null,rest:n}}function d(e,t){if(!e||"number"!==typeof e.value)return null;if("top"!==e.band&&"bottom"!==e.band)return null;var n="top"===e.band?"Top ":"Bottom ",r=function(e){var t=e&&"object"===typeof e?e.huntStanding:null;if(!t||"object"!==typeof t||Array.isArray(t))return null;var n=t.standing;return n&&"object"===typeof n?"top"!==n.band&&"bottom"!==n.band?null:Number.isFinite(n.value)?"string"!==typeof t.huntLabel||""===t.huntLabel.trim()?null:{standing:{band:n.band,value:n.value},huntLabel:t.huntLabel}:null:null}({huntStanding:t});return r?{prefix:"top"===r.standing.band?"Top ":"Bottom ",value:r.standing.value,suffix:"% of ".concat(r.huntLabel,"."),subLine:"top"===e.band?"Top ".concat(e.value,"% in the community overall."):"Bottom ".concat(e.value,"% in the community. For now."),barStanding:r.standing}:{prefix:n,value:e.value,suffix:"top"===e.band?"% of the Big Photo Hunt community.":"% of the Big Photo Hunt community. For now.",subLine:null,barStanding:e}}function f(e){return e&&"number"===typeof e.value?"top"===e.band?"Top ".concat(e.value,"%"):"bottom"===e.band?"Bottom ".concat(e.value,"%"):null:null}function p(e){return e&&"number"===typeof e.value?"top"===e.band?100-e.value:"bottom"===e.band?e.value:null:null}function h(e){return e&&"number"===typeof e.value?"bottom"===e.band?"weak":"top"===e.band&&e.value<=25?"strong":"average":"average"}var m=["strong","average","weak"];function v(e){var t=e&&"string"===typeof e.tone?e.tone.trim().toLowerCase():null;return t&&-1!==m.indexOf(t)?t:h(e?e.standing:null)}function g(e){if("string"!==typeof e)return null;var t=e.indexOf("@");return t<1||t===e.length-1?null:"".concat(e[0],"\u2022\u2022\u2022").concat(e.slice(t))}function y(e){return"number"===typeof e&&isFinite(e)?e.toFixed(1):null}function b(e){var t=e&&e.response;return t?429===t.status?"global_cap"===(t.data&&t.data.data&&t.data.data.reason)?"unavailable":"cap":503===t.status?"moderation_unavailable"===(t.data&&t.data.data&&t.data.data.reason)?"moderation_unavailable":"unavailable":422
2===t.status?"moderation":"fallback":"network"}function x(e){var t=e&&e.response;if(!t||400!==t.status)return null;var n=t.data&&t.data.data;return n&&"generation_failed"===n.reason?{retryAvailable:!0===n.retryAvailable}:null}function w(e,t){if("number"!==typeof e)return null;var n="number"===typeof t;return{fillPercent:Math.max(0,Math.min(100,10*e)),markerPercent:n?Math.max(0,Math.min(100,10*t)):null,isYellow:!!n&&e>=t}}},460:function(e,t,n){"use strict";n.d(t,{G:function(){return s},k:function(){return l}});var r=n(1912),i=function(e){return Number.isInteger(e)&&e>=1&&e<=100?e:null},o=function(e){if(!e)return null;var t=i(e.value);return null===t?null:"top"===e.band?t<=50?{band:"top",value:t}:null:"bottom"===e.band?{band:"bottom",value:t}:null},a=function(e,t){var n="string"===typeof e?r.JW.find((function(t){return t.key===e})):null;if(n)return n.label;if("string"!==typeof t||""===t.trim())return null;var i=t.trim(),o=r.JW.find((function(e){return e.key===i}));return o?o.label:i};function s(e){if(!e)return null;var t=o(e.standing);if(!t)return null;var n="top"===t.band?"Top":"Bottom",r="bottom"===t.band?". For now.":"";if("weekly_overall"===e.kind)return{big:"".concat(n," ").concat(t.value,"%"),sub:"of every photo in last week's Hunt".concat(r)};if("alltime_overall"===e.kind)return{big:"".concat(n," ").concat(t.value,"%"),sub:"of all photos ever hunted".concat(r)};if("weekly_best_attribute"===e.kind){var i=a(e.attributeKey,e.attributeLabel);return i?{big:i,sub:"was your strongest attribute last week"}:null}return null}function l(e){if(!e)return null;var t=e.hero_kind;if("weekly_overall"===t){if("top"!==e.hero_band)return null;var n=i(e.hero_value);if(null===n)return null;var r=a(null,e.best_label);return{pre:"It landed in the ",strong:"top ".concat(n,"%"),post:r?" and scored best in ".concat(r,"."):"."}}if("weekly_best_attribute"===t){var o,s,l=a(null,e.best_label)||a(null,e.hero_label);if(!l)return null;var c=null!==(o=e.best_band)&&void 0!==o?o:e.hero_band,u=i(null!==(s=e.best_value)&&void 0!==s?s:e.hero_value);return"top"===c&&null!==u?{pre:"",strong:l,post:" was its strength this week, landing in the top ".concat(u,"%.")}:{pre:"",strong:l,post:" was its strength this week. Ken-Bot has notes on the rest."}}if("alltime_overall"===t){var d=i(e.hero_value);return null===d?null:"top"===e.hero_band?{pre:"It sits in the ",strong:"top ".concat(d,"%"),post:" of all photos ever hunted."}:"bottom"===e.hero_band?{pre:"It sits in the ",strong:"bottom ".concat(d,"%"),post:" of all photos ever hunted. For now."}:null}return null}},2969:function(e,t,n){"use strict";n.d(t,{f:function(){return m},q:function(){return p}});var r=n(9439),i=n(2791),o=n(3339),a=n(4467),s=a.UZ.length-1,l=a.dH.length-1,c={slow:3800,fast:550,stall:45e3},u=6e4,d=function(e,t){for(var n=e.slice(),r=n.length-1;r>0;r-=1){var i=Math.floor(Math.random()*(r+1)),o=[n[i],n[r]];n[r]=o[0],n[i]=o[1]}if(n.length>1&&n[0]===t){var a=[n[1],n[0]];n[0]=a[0],n[1]=a[1]}return n},f=function(e){for(var t=Math.max(0,e);t<=s;t+=1)if(a.TR[t].length>0)return t;return-1},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.photoId,n=void 0===t?null:t,p=e.anonToken,h=void 0===p?null:p,m=e.active,v=void 0===m||m,g=e.done,y=void 0!==g&&g,b=e.initiatedByThisClient,x=void 0!==b&&b,w=e.fixture,k=void 0===w?null:w,S=(0,i.useState)(0),j=(0,r.Z)(S,2),C=j[0],_=j[1],E=(0,i.useState)(!1),N=(0,r.Z)(E,2),A=N[0],D=N[1],T=(0,i.useState)(0),I=(0,r.Z)(T,2),P=I[0],F=I[1],O=(0,i.useState)(0),M=(0,r.Z)(O,2),Z=M[0],R=M[1],L=(0,i.useState)(!1),B=(0,r.Z)(L,2),z=B[0],U=B[1],H=(0,i.useRef)(!1),W=(0,i.useRef)(-1),q=(0,i.useRef)(!1),V=(0,i.useRef)(!1),G=(0,i.useRef)(Date.now()),$=(0,i.useRef)(Date.now()),J=(0,i.useRef)(!1),K=(0,i.useRef)(y);K.current=y;var Y=(0,i.useRef)(-1),X=(0,i.useRef)([]),Q=(0,i.useRef)(-1),ee=(0,i.useRef)(0),te=(0,i.useRef)([]),ne=(0,i.useRef)(-1),re=(0,i.useState)(-1),ie=(0,r.Z)(re,2),oe=ie[0],ae=ie[1],se=(0,i.useRef)(null),le=(0,i.useRef)(null),ce=!!n&&!k&&!x,ue=function(e){X.current.length||(X.current=d(a.TR[e],Q.current));var t=X.current.shift();return Q.current=t,ee.current+=1,t},de=function(e){return!(e<=Y.current)&&(Y.current=e,X.current=[],ee.current=0,ae(-1),!0)},fe=function(e){if(!H.current){var t=f(e);t<0||(H.current=!0,de(t),_(ue(t)),D(!0))}},pe=function(){if(V.current||K.current)return s;if(n||k)return q.current?Math.max(0,W.current):x?0:-1;var e=Date.now()-G.current;return e<4800?0:e<48e3?2:3};(0,i.useEffect)((function(){v&&(ce||fe(0))}),[v,ce]),(0,i.useEffect)((function(){if(v&&A){var e=!1,t=function(){var e=pe();if(!(e<0)){var t=f(e);
2if(!(t<0)){de(t);var n=Y.current;!function(e){return ee.current>=a.TR[e].length}(n)?_(ue(n)):ae(function(){te.current.length||(te.current=d(a.Rh.map((function(e,t){return t})),ne.current));var e=te.current.shift();return ne.current=e,e}())}}},n=function n(){e||(se.current=setTimeout((function(){t(),n()}),"undefined"!==typeof window&&"function"===typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches?2700:2e3+Math.floor(2001*Math.random())))};return le.current=function(){if(!e&&H.current){var r=pe();if(!(r<0))f(r)<=Y.current||(se.current&&clearTimeout(se.current),t(),n())}},n(),function(){e=!0,le.current=null,se.current&&clearTimeout(se.current)}}}),[v,A,n,k,x]),(0,i.useEffect)((function(){if(v&&A){var e=k?c[k.run]||c.slow:1e4,t=setInterval((function(){F((function(e){return e>=l?e:e+1}))}),e);return function(){return clearInterval(t)}}}),[v,A,k]),(0,i.useEffect)((function(){if(v&&A){var e=null,t=function(){e&&(clearInterval(e),e=null)},n=function(){if(V.current||K.current)return R(100),void t();var e=Math.max(0,Date.now()-$.current),n=Math.min(e/u,.92);R(Math.round(100*n)),U(e>=9e4)};return e=setInterval(n,250),n(),document.addEventListener("visibilitychange",n),function(){t(),document.removeEventListener("visibilitychange",n)}}}),[v,A]),(0,i.useEffect)((function(){if(v&&n&&!k){var e=!1,t=null;return function r(){(0,o.Y0)({photoId:n,anonToken:h}).then((function(t){if(!e){var n=t&&t.data&&t.data.data;if(n&&n.inFlight){if(q.current=!0,"number"===typeof n.phaseIndex&&n.phaseIndex>W.current&&(W.current=n.phaseIndex),!J.current&&"number"===typeof n.startedAt){var r=Date.now()-n.startedAt;r>=0&&r<=9e5&&(J.current=!0,$.current=n.startedAt)}fe(W.current)}else q.current&&(V.current=!0);le.current&&le.current()}})).catch((function(){})).finally((function(){e||V.current||(t=setTimeout(r,1800))}))}(),function(){e=!0,t&&clearTimeout(t)}}}),[v,n,h,k]),(0,i.useEffect)((function(){if(v&&k){q.current=!0,W.current=0;var e=c[k.run]||c.slow,t=setInterval((function(){W.current>=s?(V.current=!0,clearInterval(t)):W.current+=1,le.current&&le.current()}),e);return function(){return clearInterval(t)}}}),[v,k]);var he=!A,me=oe>=0,ve=(0,a.wZ)(C),ge=ve>=s;return{active:v,silent:he,phaseIndex:he?-1:ve,phase:he?null:a.UZ[ve],tickerLineIndex:he?-1:C,tickerLine:he?"":me?a.Rh[oe]:a.Gk[C],checklistState:he?[]:(0,a.fY)(P,ge),voiceLine:he?null:a.uz[ve],progressPercent:he?0:Z,runningLong:!he&&z}},h=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=[],r=0;r<e;r+=1)n.push(r);for(var i=n.length-1;i>0;i-=1){var o=Math.floor(Math.random()*(i+1)),a=[n[o],n[i]];n[i]=a[0],n[o]=a[1]}if(n.length>1&&n[0]===t){var s=[n[1],n[0]];n[0]=s[0],n[1]=s[1]}return n},m=function(e){var t=e&&e.length?e.length:0,n=(0,i.useRef)(null),o=(0,i.useRef)(0);null===n.current&&(n.current=h(t));var a=(0,i.useState)((function(){return n.current.length?n.current[0]:0})),s=(0,r.Z)(a,2),l=s[0],c=s[1];return(0,i.useEffect)((function(){if(n.current.length!==t&&(n.current=h(t),o.current=0,n.current.length&&c(n.current[0])),!(t<2)){var e=null;return function r(){e=setTimeout((function(){o.current+=1,o.current>=n.current.length&&(n.current=h(t,n.current[n.current.length-1]),o.current=0),c(n.current[o.current]),r()}),"undefined"!==typeof window&&"function"===typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches?3e3:2e3+Math.floor(2001*Math.random()))}(),function(){e&&clearTimeout(e)}}}),[t]),{index:l,line:e&&e.length?e[l%e.length]:""}}},892:function(e,t,n){"use strict";n.d(t,{Ff:function(){return v},Hi:function(){return b},Nj:function(){return i},SY:function(){return f},ZH:function(){return u},iP:function(){return y},ij:function(){return p},jT:function(){return o},pi:function(){return m},vX:function(){return g}});var r=n(1413),i="bpb-board",o="hunt-feed-v2",a=function(){try{var e="undefined"!==typeof performance&&performance.getEntriesByType?performance.getEntriesByType("navigation"):[];return e.length>0&&"reload"===e[0].type}catch(t){return!1}}(),s=function(e){return"restore:".concat(e)},l=function(e){try{var t=sessionStorage.getItem(s(e));return t?JSON.parse(t):null}catch(n){return null}},c=function(e,t){try{return sessionStorage.setItem(s(e),JSON.stringify(t)),!0}catch(n){return!1}},u=function(e){try{sessionStorage.removeItem(s(e))}catch(t){}},d=new Set,f=function(e){d.has(e)||(d.add(e),a&&u(e))},p=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).filterSig,n=l(e);if(!n||"object"!==typeof n)return null;var r=n.timestamp,i=n.filterSig;return!r||Date.now()-r>18e5||null!=t&&null!=i&&i!==t?(u(e),null):n},h=function(e,t){var n=l(e)||{};return c(e,(0,r.Z)((0,r.Z)((0,r.Z)({},n),t),{},{timestamp:Date.now()}))},m=function(e,t,n,i){if(void 0===i)return h(e,null!=n?{scrollY:t,filterSig:n}:{scrollY:t});if(null===i){var o=l(e)||{},a=(0,r.Z)({},o);
2return delete a.anchorId,delete a.anchorTop,a.scrollY=t,null!=n&&(a.filterSig=n),c(e,(0,r.Z)((0,r.Z)({},a),{},{timestamp:Date.now()}))}var s={scrollY:t,anchorId:i.anchorId,anchorTop:i.anchorTop};return null!=n&&(s.filterSig=n),h(e,s)},v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.cursor,i=n.filterSig,o=Array.isArray(t)?t.slice(0,100):[];return h(e,{rows:o,cursor:null!==r&&void 0!==r?r:null,filterSig:null!==i&&void 0!==i?i:null})},g=function(e,t,n){if(null==t||!n||"object"!==typeof n)return!1;var i=l(e);if(!i||!Array.isArray(i.rows))return!1;var o=!1,a=String(t),s=i.rows.map((function(e){return e&&String(e.id)===a?(o=!0,(0,r.Z)((0,r.Z)({},e),n)):e}));return!!o&&c(e,(0,r.Z)((0,r.Z)({},i),{},{rows:s}))},y=function(e){if(!e||"object"!==typeof e)return e;var t=e.User||e.author||null,n="string"===typeof e.body?e.body.slice(0,300):e.body;return{id:e.id,title:e.title,category:e.category,body:n,createdAt:e.createdAt,like_count:e.like_count,reply_count:e.reply_count,viewer_has_liked:e.viewer_has_liked,viewer_is_following:e.viewer_is_following,is_locked:e.is_locked,has_pinned_reply:e.has_pinned_reply,is_pinned:e.is_pinned,reply_authors:e.reply_authors,distinct_replier_count:e.distinct_replier_count,User:t?{id:t.id,name:t.name,photo_url:t.photo_url,compressedProfileId:t.compressedProfileId,is_bot:t.is_bot,is_founder:t.is_founder,profileCode:t.profileCode}:t}},b=function(e){return e&&"object"===typeof e?{id:e.id,photo_url:e.photo_url,compressedImageId:e.compressedImageId,total_votes:e.total_votes,is_vote:e.is_vote,name:e.name,photo_posted_date:e.photo_posted_date,state:e.state,user_photo_url:e.user_photo_url,user_id:e.user_id,is_adult_content:e.is_adult_content,comments:e.comments,total_comments:e.total_comments,description:e.description,feedback_type:e.feedback_type,metadata:e.metadata,is_follow:e.is_follow,boostedWeeklyPhoto:e.boostedWeeklyPhoto,is_notify:e.is_notify}:e}},6250:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(2791),i=function(){try{window.scrollTo({top:0,left:0,behavior:"instant"})}catch(e){}};t.Z=function(){(0,r.useLayoutEffect)((function(){i()}),[])}},4325:function(e,t,n){"use strict";n(2791);var r=n(184);t.Z=function(){return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{style:{width:"100%",height:"100vh",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,r.jsx)("span",{className:"loader",style:{width:"50px",height:"50px",borderTop:"3px solid #000000"}})})})}},4180:function(e,t,n){"use strict";n(2791);var r=n(8290),i=(n(5862),n(184));t.Z=function(){return(0,i.jsx)("div",{style:{position:"relative",width:"100%",paddingTop:"66.67%"},children:(0,i.jsx)(r.Z,{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}})})}},4218:function(e,t,n){"use strict";n(2791);var r=n(8290),i=(n(5862),n(184));t.Z=function(){return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("section",{className:"profile-area",children:[(0,i.jsx)("div",{className:"profile_cover"}),(0,i.jsx)("div",{className:"container",children:(0,i.jsx)("div",{className:"row",children:(0,i.jsxs)("div",{className:"col",children:[(0,i.jsx)("div",{className:"about_profile",children:(0,i.jsxs)("div",{className:"about_profile_inner",children:[(0,i.jsx)("div",{className:"profile_user",children:(0,i.jsx)(r.Z,{circle:!0,height:"100%",width:"100%"})}),(0,i.jsx)("div",{className:"profile_details_warp",children:(0,i.jsxs)("div",{className:"details_profile",children:[(0,i.jsxs)("div",{className:"information",children:[(0,i.jsx)("h4",{className:"name",children:(0,i.jsx)(r.Z,{width:"70%",height:15})}),(0,i.jsx)("span",{className:"address",children:(0,i.jsx)(r.Z,{width:"80%",height:15})})]}),(0,i.jsx)("div",{className:"following_follower",children:(0,i.jsxs)("ul",{className:"users",children:[(0,i.jsx)("li",{children:(0,i.jsx)("a",{style:{cursor:"default"},children:(0,i.jsx)(r.Z,{circle:!0,height:35,width:35})})}),(0,i.jsx)("li",{children:(0,i.jsx)("a",{style:{cursor:"default"},children:(0,i.jsx)(r.Z,{circle:!0,height:35,width:35})})}),(0,i.jsx)("li",{children:(0,i.jsx)("a",{style:{cursor:"default"},children:(0,i.jsx)(r.Z,{circle:!0,height:35,width:35})})}),(0,i.jsx)("li",{children:(0,i.jsx)("a",{style:{cursor:"default"},children:(0,i.jsx)(r.Z,{circle:!0,height:35,width:35})})})]})})]})})]})}),(0,i.jsxs)("div",{className:"about_profile_desc",children:[(0,i.jsxs)("div",{className:"profile_desc_text",children:[(0,i.jsx)(r.Z,{width:"100%",height:15}),(0,i.jsx)(r.Z,{width:"50%",height:15})]}),(0,i.jsx)("div",{className:"profile_system_desc",children:(0,i.jsxs)("div",{className:"profile_system_desc_inner",children:[(0,i.jsxs)("div",{className:"system_item",children:[(0,i.jsxs)("span",{children:[" ",(0,i.jsx)(r.Z,{width:"70%",height:15})]}),(0,i.jsx)("p",{children:(0,i.jsx)(r.Z,{width:"80%",height:15})})]}),(0,i.jsxs)("div",{className:"system_item",children:[(0,i.jsxs)("span",{children:[" ",(0,i.jsx)(r.Z,{width:"70%",height:15})]}),(0,i.jsx)("p",{children:(0,i.jsx)(r.Z,{width:"80%",height:15})})]}),(0,i.jsxs)("div",{className:"system_item",children:[(0,i.jsxs)("span",{children:[" ",(0,i.jsx)(r.Z,{width:"70%",height:15})]}),(0,i.jsx)("p",{children:(0,i.jsx)(r.Z,{width:"80%",height:15})})]}),(0,i.jsxs)("div",{className:"system_item",style:{marginTop:"30px"},children:[(0,i.jsxs)("span",{children:[" ",(0,i.jsx)(r.Z,{width:"70%",height:15})]}),(0,i.jsx)("p",{children:(0,i.jsx)(r.Z,{width:"80%",height:15})})]}),(0,i.jsxs)("div",{className:"system_item",style:{marginTop:"30px"},children:[(0,i.jsxs)("span",{children:[" ",(0,i.jsx)(r.Z,{width:"70%",height:15})]}),(0,i.jsx)("p",{children:(0,i.jsx)(r.Z,{width:"80%",height:15})})]}),(0,i.jsxs)("div",{className:"system_item",style:{marginTop:"30px"},children:[(0,i.jsxs)("span",{children:[" ",(0,i.jsx)(r.Z,{width:"70%",height:15})]}),(0,i.jsx)("p",{children:(0,i.jsx)(r.Z,{width:"80%",height:15})})]})]})})]})]})})})]})})}},2239:function(e,t,n){"use strict";var r=n(4165),i=n(5861),o=n(2791),a=n(5764),s=n(184);t.Z=function(e){var t=e.sessionId,n=(0,a.useStripe)();return(0,o.useEffect)((function(){var e=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var i,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!t){e.next=6;break}return e.next=3,n.redirectToCheckout({sessionId:t});case 3:i=e.sent,(o=i.error)&&console.error("Stripe error:",o);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[n,t]),(0,s.jsx)("div",{children:(0,s.jsx)("p",{children:"Redirecting to checkout..."})})}},1854:function(e,t,n){"use strict";n(2791);var r=n(184);t.Z=function(e){var t=e.reminderAlreadySet,n=e.onClose,i=e.onEmailReminder;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"backdrop"}),(0,r.jsx)("div",{className:"modal fade bph-modal show",id:"QueuedPhotoModal",tabIndex:-1,"aria-labelledby":"sharePhotoModal","aria-hidden":"true",style:{display:"block"},children:(0,r.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,r.jsx)("div",{className:"modal-content",children:(0,r.jsx)("div",{className:"modal-body",children:(0,r.jsx)("div",{className:"onboarding_modal photoUpload_modal photoQueued",children:(0,r.jsxs)("div",{className:"modal_inner",children:[(0,r.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:n}),(0,r.jsx)("div",{className:"modal_logo d-none d-md-inline-flex ",children:(0,r.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,r.jsx)("div",{className:"modal_content photoQueue_content",children:(0,r.jsx)("div",{className:"modal_title",children:t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:"title",children:"Ready Monday"}),(0,r.jsx)("p",{className:"desc",children:"Reports unlock after each weekly Hunt closes so we can compare your photo to everyone else's. You already signed up for an email reminder."}),(0,r.jsx)("br",{}),(0,r.jsx)("p",{className:"desc",children:"Look for it Monday!"}),(0,r.jsx)("button",{className:"btn",type:"button",onClick:n,children:"OK"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:"title",children:"Ready Monday \u2705"}),(0,r.jsx)("p",{className:"desc",children:"Reports unlock after each weekly Hunt closes so we can compare your photo to the full week's submissions. Yours will now be ready Monday."}),(0,r.jsx)("br",{}),(0,r.jsx)("p",{className:"desc",children:"Want us to email you when it's ready?"}),(0,r.jsx)("button",{className:"btn",type:"button",onClick:i,children:"Email me Monday"}),(0,r.jsx)("span",{className:"btn_note",onClick:n,style:{cursor:"pointer"},children:"No thanks"})]})})})]})})})})})})]})}},8833:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(4165),i=n(5861),o=n(9439),a=n(2791),s=(n(6497),n(6593),n(7019)),l=n(9434),c=(n(747),n(1989)),u=n(5764),d=n(7112),f=n(2239),p=n(4014),h=n(184),m=function(e){var t=e.loading,n=e.handleButtonClick,r=e.productKey,i=e.buttonText,o=e.ProMembersPackage;return(0,h.jsx)(h.Fragment,{children:t!==r?(0,h.jsx)("button",{onClick:function(){return n(r,o)},className:"btn",children:i}):(0,h.jsx)("button",{className:"btn",children:(0,h.jsx)("span",{className:"loader"})})})},v=n(4444),g=n(7689),y=n(3195),b=(n(65),n(1121),(0,d.J)("".concat("pk_live_51NpY5dBI5nC1v0mzcQsHKDfaAmuBqP0fubi3FSizYSeUkl4WxjBZ4Lc1EoRJp7fVZBWE67IxBj29UDWzp7kfnxqi00RZssPZhC"))),x=function(){var e,t,n=(0,a.useState)(""),d=(0,o.Z)(n,2),x=d[0],w=d[1],k=(0,a.useState)(!1),S=(0,o.Z)(k,2),j=S[0],C=S[1],_=(0,a.useState)(""),E=(0,o.Z)(_,2),N=E[0],A=E[1],D=(0,a.useState)(!1),T=(0,o.Z)(D,2),I=T[0],P=T[1],F=(0,a.useState)("yearly"),O=(0,o.Z)(F,2),M=O[0],Z=O[1],R=(0,g.s0)(),L=(0,l.v9)((function(e){return e.PayWall.PayWallModalTitleObj})),B={PersonalWebiste:{Title:"Share up to 250 photos, display them by galleries and \n  expand your photography presence online.",Subtitle:"Plus, show family, friends and potential clients the breadth of your skills."},Vault:{Title:"Keep up to 10,000 of your most important photos safe and secure \n backed up off-site and in the cloud.",Subtitle:"Included with all Pro Hunter memberships, in addition to everything else."},Upgradebtn:{Title:"Everything in our Pro Membership is built to give you the tools and \n smiles to keep growing your photography week after week.",Subtitle:"Plus, your own website, massive cloud storage, and an AI coach are all included."},ManageGallery:{Title:"Upgrade to add up to 50 photos to your personal profile gallery",Subtitle:"Become a Participating Member and use your gallery space to show Members your style beyond what is in a weekly Big Photo Hunt."},Rehunt:{Title:"Upgrade to have full control over when your photos get hunted.",Subtitle:"Become a Participating Member to schedule your hunted photos, manage them and post them exactly how and when you want."},NewGiveaway:{Title:"Upgrade to be eligible for all monthly giveaways.",Subtitle:"Become a Participating Member to be automatically included in all contests while also getting access to all our special tools giving you more eyeballs on your photos."},"2monthTrial":{Title:"Your first 60 days are free. \n Cancel at anytime.",Subtitle:"Get access to photo analysis reports, your Personal Photography Website and the \u201cBoost\u201d to your weekly photos."},"14daysFreeTrial":{Title:"Your first 14 days are free. \n Cancel at anytime.",Subtitle:"Get access to photo analysis reports, your Personal Photography Website and the \u201cBoost\u201d to your weekly photos."},"30daysFreeTrial":{Title:"Your first 30 days are free. \n Cancel at anytime.",Subtitle:"Get access to photo analysis reports, your Personal Photography Website and the \u201cBoost\u201d to your weekly photos."},prevMonthlyTownhall:{Title:"Upgrade to attend all live events and watch recorded sessions",Subtitle:"Become a Participating Member to join fellow club members for talks with professional photographers, to learn skills and have photos reviewed."},QueueManager:{Title:"Upgrade to have full control over when your photos get hunted.",Subtitle:"Become a Participating Member to schedule your hunted photos, manage them and post them exactly how and when you want."},townhallPage:{Title:"Upgrade to attend all live events and watch recorded sessions",Subtitle:"Become a Participating Member to join fellow club members for talks with professional photographers, to learn skills and have photos reviewed."},AiReport:{Title:"Get AI-powered analysis built from thousands of real hunted photos, so you know exactly what to improve and how to get more upvotes.",Subtitle:""},ReviewGoDeep:{Title:"Everything Pro already includes, today. Weekly Ken-Bot AI Photo Reports on your photos, and Deep Reports will be included when they launch.",Subtitle:"Plus queue photos 4 weeks ahead, Re-Hunt your photos, get featured in Coming Up, 25 profile photos and giveaway auto-entry."}};(0,a.useEffect)((function(){var e=localStorage.getItem("Data"),t=(0,p.a)(e).user_email;w(t||""),"/pmupgrade"==z?y.Z.getInstance().logEvent("Paywall General Standalone"):y.Z.getInstance().logEvent("Paywall General")}),[]);var z=window.location.pathname,U=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){var i,o,a,s,l,u,d,f;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("/14dfspecial"!=z){e.next=6;break}i="https://buy.stripe.com/cN2eWvg20dmocmscMN?prefilled_email=".concat(x),o="https://buy.stripe.com/fZe15F7vu0zCgCIcMO?prefilled_email=".concat(x),window.location.href="monthlyPro"==n?i:o,e.next=34;break;case 6:if("/2mfspecial"!=z){e.next=12;break}a="https://buy.stripe.com/7sI3dN2bacikaekcMP?prefilled_email=".concat(x),s="https://buy.stripe.com/bIY01B7vugyAaekaEI?prefilled_email=".concat(x),window.location.href="monthlyPro"==n?a:s,e.next=34;break;case 12:if("/30dfforyou"!=z){e.next=18;break}
2l=" https://buy.stripe.com/3cI14m7aLaLueqSfRA0ZW0f?prefilled_email=".concat(x),u=" https://buy.stripe.com/5kQ7sK0Mn6vedmOcFo0ZW0g?prefilled_email=".concat(x),window.location.href="monthlyPro"==n?l:u,e.next=34;break;case 18:return e.prev=18,P(t),C(!1),d={email:x,productId:t,successUrl:z+"?subscribed=true",cancelUrl:"".concat(z+"?modal=paywall")},e.next=24,c.Z.post("".concat("https://bigbesos.com","/payment/create-checkout-session"),d,{headers:{"Content-Type":"application/json"}});case 24:f=e.sent,P(!1),f.data&&f.data.data&&f.data.data.id?A(f.data.data.id):console.error("Error: Invalid response data"),e.next=34;break;case 29:e.prev=29,e.t0=e.catch(18),console.error("Error creating checkout session:",e.t0),P(!1),C(!0);case 34:case"end":return e.stop()}}),e,null,[[18,29]])})));return function(t,n){return e.apply(this,arguments)}}(),H=(0,l.I0)(),W=function(){"/pmupgrade"!=z&&"/14dfspecial"!=z&&"/2mfspecial"!=z&&"/30dfforyou"!=z||R("/"),H(s.N.setisPayWallOpen(!1))},q=["/14dfspecial","/30dfforyou","/2mfspecial"].includes(z),V=(0,v.Z)(W,!q);return(0,h.jsxs)(h.Fragment,{children:[N&&(0,h.jsx)(u.Elements,{stripe:b,children:(0,h.jsx)(f.Z,{sessionId:N})}),(0,h.jsx)("div",{className:"backdrop",onClick:W}),(0,h.jsx)("div",{className:"modal bph-modal paywallModal2",id:"paywallModal2",tabIndex:-1,"aria-labelledby":"paywallModal2","aria-hidden":"true",style:{display:"block",zIndex:"1100"},children:(0,h.jsx)("div",{className:"modal-dialog modalAnimation",children:(0,h.jsx)("div",{className:"modal-content",ref:V,children:(0,h.jsx)("div",{className:"modal-body",children:(0,h.jsxs)("div",{className:"paywall_modal_wrap",children:[(0,h.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:W}),(0,h.jsxs)("div",{className:"modal_price",children:[(0,h.jsxs)("div",{className:"modal_section_title text-center",children:[(0,h.jsx)("h2",{className:"title",children:"Upgrade Your Hunt"}),(0,h.jsx)("div",{className:"desc",style:{whiteSpace:"pre-line"},children:null===(e=B[null===L||void 0===L?void 0:L.objectTitle])||void 0===e?void 0:e.Title}),(0,h.jsxs)("p",{className:"modal_section_title_desc",style:{fontSize:"16px"},children:[" ",null===(t=B[null===L||void 0===L?void 0:L.objectTitle])||void 0===t?void 0:t.Subtitle]})]}),(0,h.jsxs)("div",{className:"modal_price_table",children:[(0,h.jsxs)("ul",{className:"price_table_tab",role:"tablist",children:[(0,h.jsx)("li",{className:"tab_item",role:"presentation",children:(0,h.jsx)("button",{className:"tab_item_link ".concat("monthly"===M?"active":""),"data-bs-toggle":"tab","data-bs-target":"#tabMonthly",type:"button",role:"tab","aria-selected":"monthly"===M,onClick:function(){return Z("monthly")},children:"Monthly"})}),(0,h.jsx)("li",{className:"tab_item",role:"presentation",children:(0,h.jsx)("button",{className:"tab_item_link ".concat("yearly"===M?"active":""),"data-bs-toggle":"tab","data-bs-target":"#tabYearly",type:"button",role:"tab","aria-selected":"yearly"===M,onClick:function(){return Z("yearly")},children:"Annual"})})]}),j&&!I&&(0,h.jsx)("h6",{style:{color:"red",textAlign:"center"},children:"something went wrong please try again later "}),(0,h.jsxs)("div",{className:"tab-content price_table_content",children:[(0,h.jsxs)("div",{className:"tab-pane ".concat("monthly"===M?"active fade-in-element":""),id:"tabMonthly",role:"tabpanel",children:[(0,h.jsxs)("div",{className:"price_table_paywall_cards",children:[(0,h.jsx)("div",{className:"price_table_item_left",children:(0,h.jsxs)("div",{className:"price_table_item_inner",children:[(0,h.jsxs)("div",{className:"price_table_header",children:[(0,h.jsx)("h3",{className:"title",children:"Free"}),(0,h.jsxs)("h1",{className:"price",children:["$0 ",(0,h.jsxs)("span",{className:"period",children:["USD",(0,h.jsx)("br",{}),"month"]})]})]}),(0,h.jsx)("div",{className:"price_table_btn current",children:(0,h.jsx)("a",{href:"#",className:"btn",children:"Your Current Plan"})}),(0,h.jsx)("div",{className:"price_table_feature",children:(0,h.jsxs)("ul",{children:[(0,h.jsx)("li",{children:"Participation in weekly photo hunts"}),(0,h.jsx)("li",{children:"Personal Gallery of 5 photos"}),(0,h.jsx)("li",{children:"Queue next week\u2019s photo"})]})})]})}),(0,h.jsx)("div",{className:"price_table_item_right",children:(0,h.jsxs)("div",{className:"price_table_item_inner",children:[(0,h.jsxs)("div",{className:"price_table_header",children:[(0,h.jsx)("h3",{className:"title",children:"Pro Hunter"}),(0,h.jsxs)("h1",{className:"price",children:["$14",(0,h.jsxs)("span",{className:"period",children:["USD",(0,h.jsx)("br",{}),"month"]})]}),(0,h.jsx)("p",{className:"price_table_save_price"})]}),(0,h.jsx)("div",{className:"price_table_btn",style:{marginTop:"20px"},children:(0,h.jsx)(m,{loading:I,handleButtonClick:U,productKey:"prod_QiNJYlwmxuFcaK",buttonText:"Get Pro",ProMembersPackage:"monthlyPro"})}),(0,h.jsx)("div",{className:"price_table_feature",children:(0,h.jsxs)("ul",{children:[(0,h.jsx)("li",{children:"Everything from Free mode"}),(0,h.jsx)("li",{children:"Queue photos 4 weeks ahead"}),(0,h.jsx)("li",{style:{fontWeight:"bold"},children:"Weekly Ken-Bot AI Photo Reports "}),(0,h.jsx)("li",{children:"Re-Hunt your photos"}),(0,h.jsx)("li",{children:"Feature your photos in \u201cComing Up\u201d"}),(0,h.jsx)("li",{children:"Display 25 photos on your profile"}),(0,h.jsx)("li",{children:"Auto-entry to give aways"})]})})]})})]}),(0,h.jsx)("div",{className:"price_table_bottom_note",children:"Questions? Chat with us below."})]}),(0,h.jsxs)("div",{className:"tab-pane ".concat("yearly"===M?" active fade-in-element":""),id:"tabYearly",role:"tabpanel",children:[(0,h.jsxs)("div",{className:"price_table_paywall_cards",children:[(0,h.jsx)("div",{className:"price_table_item_left",children:(0,h.jsxs)("div",{className:"price_table_item_inner",children:[(0,h.jsxs)("div",{className:"price_table_header",children:[(0,h.jsx)("h3",{className:"title",children:"Free"}),(0,h.jsxs)("h1",{className:"price",children:["$0 ",(0,h.jsxs)("span",{className:"period",children:["USD",(0,h.jsx)("br",{}),"month"]})]})]}),(0,h.jsx)("div",{className:"price_table_btn current",children:(0,h.jsx)("a",{href:"#",className:"btn",children:"Your Current Plan"})}),(0,h.jsx)("div",{className:"price_table_feature",children:(0,h.jsxs)("ul",{children:[(0,h.jsx)("li",{children:"Participation in weekly photo hunts"}),(0,h.jsx)("li",{children:"Personal Gallery of 5 photos"}),(0,h.jsx)("li",{children:"Queue next week\u2019s photo"})]})})]})}),(0,h.jsx)("div",{className:"price_table_item_right",children:(0,h.jsxs)("div",{className:"price_table_item_inner",children:[(0,h.jsxs)("div",{className:"price_table_header",children:[(0,h.jsx)("h3",{className:"title",children:"Pro Hunter"}),(0,h.jsxs)("h1",{className:"price",children:["$9",(0,h.jsxs)("span",{className:"period",children:["per month",(0,h.jsx)("br",{}),"$108/year"]})]}),(0,h.jsxs)("p",{className:"price_table_save_price",children:[(0,h.jsx)("span",{className:"price_table_save_price_span",children:"Save $48 "}),"with yearly billing"]})]}),(0,h.jsx)("div",{className:"price_table_btn",children:(0,h.jsx)(m,{loading:I,handleButtonClick:U,productKey:"prod_QiNJNNYxSvCkHG",buttonText:"Get Pro",ProMembersPackage:"AnnualPro"})}),(0,h.jsx)("div",{className:"price_table_feature",children:(0,h.jsxs)("ul",{children:[(0,h.jsx)("li",{children:"Everything from Free mode"}),(0,h.jsx)("li",{children:"Queue photos 4 weeks ahead"}),(0,h.jsx)("li",{style:{fontWeight:"bold"},children:"Weekly Ken-Bot AI Photo Reports "}),(0,h.jsx)("li",{children:"Re-Hunt your photos"}),(0,h.jsx)("li",{children:"Feature your photos in \u201cComing Up\u201d"}),(0,h.jsx)("li",{children:"Display 25 photos on your profile"}),(0,h.jsx)("li",{children:"Auto-entry to give aways"})]})})]})})]}),(0,h.jsx)("div",{className:"price_table_bottom_note",children:"Questions? Please use our chat at the bottom of the page."})]})]})]})]})]})})})})})]})}},2189:function(e,t,n){"use strict";var r=n(4165),i=n(5861),o=n(9439),a=n(2791),s=n(7005),l=n(8040),c=n(2260),u=n(1989),d=n(9434),f=n(7019),p=n(4014),h=n(9704),m=n(1830),v=n.n(m),g=n(3195),y=n(514),b=n(6672),x=n(184);t.Z=function(e){var t=e.bphProfile,n=e.setIsProfileModalOpen,m=e.UpdatePersonalSiteDetailLocaly,w=(0,a.useState)(""),k=(0,o.Z)(w,2),S=(k[0],k[1]),j=(0,a.useState)(""),C=(0,o.Z)(j,2),_=C[0],E=C[1],N=(0,a.useState)(""),A=(0,o.Z)(N,2),D=(A[0],A[1]),T=(0,a.useState)(""),I=(0,o.Z)(T,2),P=I[0],F=I[1],O=(0,a.useState)(!1),M=(0,o.Z)(O,2),Z=M[0],R=M[1],L=(0,a.useState)({x:0,y:0}),B=(0,o.Z)(L,2),z=B[0],U=B[1],H=(0,a.useState)(1),W=(0,o.Z)(H,2),q=W[0],V=W[1],G=(0,a.useState)(0),$=(0,o.Z)(G,2),J=$[0],K=$[1],Y=(0,a.useState)(null),X=(0,o.Z)(Y,2),Q=X[0],ee=X[1],te=(0,a.useState)(""),ne=(0,o.Z)(te,2),re=ne[0],ie=ne[1],oe=(0,a.useState)("310px"),ae=(0,o.Z)(oe,2),se=ae[0],le=(ae[1],(0,d.I0)()),ce=window.location.pathname,ue=localStorage.getItem("Data"),de=(0,p.a)(ue),fe=de.token,pe=de.userid,he=(0,d.v9)((function(e){return e.Modal.MeApiState})),me=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t,n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return document.querySelector(".profile-img-modal-close_btn").click(),e.prev=1,e.next=4,(0,l.ZP)(_,Q);case 4:t=e.sent,n=t.file,i=t.url,D(i),S(n),le(f.N.setCropImg({cropImgPath:i,cropImg:n}
2)),E(""),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(1);case 15:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(){return e.apply(this,arguments)}}(),ve=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var n,i,o,a,s,c,d,p;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!0),e.prev=1,n=(new Date).getTime(),e.next=5,(0,l.ZP)(_,Q);case 5:if(i=e.sent,o=i.file,a=i.url,D(a),S(o),s=new FormData,t?(s.append("page","upload_photo"),s.append("photoUrl",o,"profile_image_".concat(n,".jpeg"))):s.append("profile_pic",o,"profile_image_".concat(n,".jpeg")),c={Authorization:"Bearer ".concat(fe)},!t){e.next=19;break}return e.next=16,u.Z.post("".concat("https://bigbesos.com","/user/edit_profile"),s,{headers:c,onUploadProgress:function(e){ie(Math.round(e.loaded/e.total*100))}});case 16:d=e.sent,e.next=22;break;case 19:return e.next=21,(0,y.Vu)(s,!0,{onUploadProgress:function(e){ie(Math.round(e.loaded/e.total*100))}});case 21:d=e.sent;case 22:t?(le(f.N.setMeApiState(!he)),"siddiqui",de.Display_UserSocailPhoto=d.data.data.photo_url,p=h.AES.encrypt(JSON.stringify(de),"siddiqui").toString(),localStorage.setItem("Data",p),g.Z.getInstance().logEvent("Add Avatar Photo",{UserID:pe})):m({compressedProfilePic:d.data.data.personalWebsite.compressedProfilePic}),v().fire("","Upload successfully!","success"),E(""),R(!1),document.querySelector(".profile-img-modal-close_btn").click(),e.next=32;break;case 29:e.prev=29,e.t0=e.catch(1),R(!1);case 32:case"end":return e.stop()}}),e,null,[[1,29]])})));return function(){return e.apply(this,arguments)}}(),ge=["image/jpeg","image/png","image/heic","image/heif"];return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"backdrop"}),(0,x.jsx)("div",{className:"modal fade bph-modal show",id:"profileUploadModal",tabIndex:-1,"aria-labelledby":"profileUploadModal","aria-hidden":"true",style:{display:"block"},children:(0,x.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,x.jsx)("div",{className:"modal-content",children:(0,x.jsx)("div",{className:"modal-body",children:(0,x.jsx)("div",{className:"onboarding_modal photoUpload_modal profileUpload",children:(0,x.jsxs)("div",{className:"modal_inner",children:[(0,x.jsx)("button",{type:"button",className:"btn-close profile-img-modal-close_btn","data-bs-dismiss":"modal","aria-label":"Close",onClick:function(){le(f.N.setProfileUploadModalState(!1)),n(!1)}}),(0,x.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,x.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,x.jsxs)("div",{className:"modal_content",children:[(0,x.jsx)("div",{className:"modal_title",children:(0,x.jsxs)("h2",{className:"title",children:[(0,x.jsx)("img",{src:"/assets/img/icons/upload.svg",alt:"img"}),"Upload a photo of you"]})}),(0,x.jsxs)("div",{className:"file-upload",children:[!_&&(0,x.jsx)("p",{className:"subtitle profile-upload-before-title",children:"Add a photo to your profile so we can show the other Big Photo Hunters your beautiful face! "}),_&&(0,x.jsx)("p",{className:"subtitle profile-upload-after-title",style:{display:"block"},children:"Position yourself in the circle"}),P&&(0,x.jsxs)("p",{className:"eerror",style:{textAlign:"center"},children:[P," "]}),!_&&(0,x.jsxs)("div",{className:"profile-image-upload-wrap",children:[(0,x.jsx)("input",{className:"profile-upload-input",type:"file",onChange:function(e){F("");var t=e.target.files[0];if(ge.includes(t.type)||(0,b.zr)(t)){var n=new Image;n.src=URL.createObjectURL(t),n.onload=(0,i.Z)((0,r.Z)().mark((function e(){var i,o,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.decode();case 2:if(i=n.width,o=n.height,!(i>5e3||o>5e3)){e.next=8;break}return F("Please ensure the edges of your photo are less than 5000 pixels."),e.abrupt("return");case 8:if(!(t.size>52428800)){e.next=13;break}return F("Please ensure that your file is less than 50MB."),e.abrupt("return");case 13:(a=new FileReader).onload=function(){E(a.result)},a.readAsDataURL(t);case 16:case"end":return e.stop()}}),e)}))),n.onerror=function(){(0,b.zr)(t)?F("This browser can't crop HEIC photos. Please upload a JPG or PNG here, or upload from your phone \u2014 HEIC works there."):F("Sorry, we could not read that image file. Please try a different photo.")}}else F("Please upload only JPG, PNG, or HEIC files.")}}),(0,x.jsxs)("div",{className:"drag-text",children:[(0,x.jsx)("h4",{className:"title",children:"Drag and drop your photo here"}),(0,x.jsx)("span",{className:"or",children:"or"}),(0,x.jsx)("button",{className:"file-upload-btn btn",type:"button",onClick:function(){document.querySelector(".profile-upload-input").click()},children:"Upload from device"}),(0,x.jsx)("span",{className:"support_note",children:"Max. 5000 x 5000 px., 50 MB, JPG, PNG, or HEIC format only."})]})]}),_&&(0,x.jsxs)("div",{children:[(0,x.jsx)(s.ZP,{image:_,crop:z,zoom:q,rotation:J,aspect:1,cropShape:"round",onZoomChange:V,onRotationChange:K,onCropChange:U,onCropComplete:function(e,t){ee(t)},style:{containerStyle:{height:"".concat(se),width:"100%",margin:"auto",position:"relative"}}
2,classes:{reactEasyCrop_Container:""}}),(0,x.jsx)("div",{className:"slider_container",children:!Z&&(0,x.jsx)(c.Z,{min:1,max:3,step:.1,value:q,onChange:function(e,t){return V(t)}})}),(0,x.jsxs)("div",{className:"profile-image-title-wrap",style:{display:"flex",flexDirection:"column",minWidth:"200px",margin:"auto",alignItems:"center"},children:[["/profile","/manage-p-website"].includes(ce)?Z?(0,x.jsx)("div",{className:"progress",style:{width:"80%",marginTop:"10px"},children:(0,x.jsx)("div",{className:"progress-bar bg-warning",role:"progressbar",style:{width:"".concat(re,"%"),color:"black"},"aria-valuenow":re,"aria-valuemin":0,"aria-valuemax":100,children:"".concat(re,"%")})}):(0,x.jsx)("button",{style:{minWidth:"200px"},type:"button",className:"btn",onClick:ve,children:"Upload"}):(0,x.jsx)("button",{type:"button",className:"btn",onClick:me,children:"SAVE"}),!Z&&(0,x.jsx)("label",{className:"remove-profile-image",style:{marginTop:"10px"},onClick:function(){E("")},children:"Select a different photo"})]})]})]})]})]})})})})})})]})}},9334:function(e,t,n){"use strict";var r=n(4165),i=n(5861),o=n(3433),a=n(9439),s=n(2791),l=n(9434),c=n(8246),u=n(8268),d=n(7019),f=n(184);t.Z=function(e){var t,n,p,h,m,v,g=e.setEditModal,y=(0,l.v9)((function(e){return e.Modal.setQueuedTargetBtnAndValueObj})),b=(0,s.useState)((null===(t=y.photoObject)||void 0===t?void 0:t.description)||""),x=(0,a.Z)(b,2),w=x[0],k=x[1],S=(0,s.useState)(!1),j=(0,a.Z)(S,2),C=j[0],_=j[1],E=(0,s.useState)((0,u.YC)(null===(n=y.photoObject)||void 0===n?void 0:n.genres_list)),N=(0,a.Z)(E,2),A=N[0],D=N[1],T=(0,s.useState)(null!==(p=y.photoObject)&&void 0!==p&&p.feedback_type?null===(h=y.photoObject)||void 0===h?void 0:h.feedback_type.split(","):[]),I=(0,a.Z)(T,2),P=I[0],F=I[1],O=(0,s.useState)(null!==(m=y.photoObject)&&void 0!==m&&m.day?[null===(v=y.photoObject)||void 0===v?void 0:v.day]:[]),M=(0,a.Z)(O,2),Z=M[0],R=M[1],L=(0,s.useState)(""),B=(0,a.Z)(L,2),z=B[0],U=B[1],H=(0,s.useState)("description"),W=(0,a.Z)(H,2),q=W[0],V=W[1],G=(0,l.I0)();(0,s.useEffect)((function(){var e,t,n=null!==(e=y.photoObject)&&void 0!==e&&e.feedback_type?null===(t=y.photoObject)||void 0===t?void 0:t.feedback_type.split(","):[],r={};n.forEach((function(e){r[e]=e})),U(r)}),[]);var $=240-w.length,J=function(e){var t=e.target.value.toString();e.target.checked?(document.querySelectorAll(".queuedGenreCheckBox").forEach((function(t){t!==e.target&&(t.checked=!1)})),D([t])):D(A.filter((function(e){return e!==t})))},K=function(e){var t=e.target.value.toString(),n=e.target.checked;if("I am not looking for feedback"==P[0])return e.target.checked=!1,void("I am not looking for feedback"==e.target.value&&F([]));if(n)if("I am not looking for feedback"==t&&n)for(var r=document.querySelectorAll(".checkkk"),i=0;i<r.length;i++)"I am not looking for feedback"==t&&(r[i].checked=!1,e.target.checked=!0,F([t]));else P.length<=2?F([].concat((0,o.Z)(P),[t])):e.target.checked=!1;else F(P.filter((function(e){return e!==t})))},Y=(0,s.useState)([]),X=(0,a.Z)(Y,2),Q=X[0],ee=X[1];(0,s.useEffect)((function(){ee(function(){var e=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],t=e.indexOf(y.photoObject.day),n=[];if(-1!==t){for(var r=Math.max(0,t-Number(y.daysLeft)+1);r<=t;r++)n.push(e[r]);for(var i=t;i<e.length;i++)n.push(e[i])}return n}())}),[]);var te=function(e){var t=e.target.value.toString();e.target.checked&&Q.includes(t)&&R([t])},ne=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t,n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),t=w.trim(),e.prev=2,n={photo_id:y.photoObject.id,description:t,genres_list:null===A||void 0===A?void 0:A.join(","),feedback_type:null===P||void 0===P?void 0:P.join(","),day:null===Z||void 0===Z?void 0:Z.join(",")},e.next=6,(0,c.e8)(y.usertoken,n);case 6:G(d.N.setQueueEditValue(n)),g(!1),_(!1),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(2),console.error(e.t0),_(!1);case 15:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(){return e.apply(this,arguments)}}();return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"backdrop"}),(0,f.jsx)("div",{className:"modal fade bph-modal show",id:"QueuedPhotoModal",tabIndex:-1,"aria-labelledby":"sharePhotoModal","aria-hidden":"true",style:{display:"block"},children:(0,f.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,f.jsx)("div",{className:"modal-content",children:(0,f.jsx)("div",{className:"modal-body",children:(0,f.jsx)("div",{className:"onboarding_modal photoUpload_modal ".concat("description"!==q?"feedback":""," edit_field"),children:(0,f.jsxs)("div",{className:"modal_inner",children:[(0,f.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:function(){g(!1)}}),(0,f.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,f.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),"description"==q&&(0,f.jsxs)("div",{className:"modal_content",children:[(0,f.jsxs)("div",{className:"modal_title",children:[(0,f.jsxs)("h2",{className:"title",children:[(0,f.jsx)("img",{src:"/assets/img/icons/popup-pencil.svg",alt:"img"}),"Edit"]}),(0,f.jsx)("p",{className:"subtitle",children:"Edit your photo description below."})]}),(0,f.jsxs)("div",{className:"edit_field_content",children:[(0,f.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_300,f_auto,q_auto/Resized_Photos/".concat(y.photoObject.compressedImageId),alt:"img"}),(0,f.jsx)("div",{className:"desc",children:"Edit 1/4"}),(0,f.jsx)("div",{className:"desc",children:"Tell us about your photo."}),(0,f.jsxs)("div",{className:"form_group",children:[(0,f.jsx)("textarea",{name:"description",id:"description",placeholder:"Tell club members what we are looking at here, or something else about this photo",value:w,onChange:function(e){var t=e.target.value;k(t.slice(0,240))}}),(0,f.jsxs)("span",{className:"limit",children:["(",$," characters) "]}
2)]}),(0,f.jsx)("button",{className:"btn",type:"submit",onClick:function(){V("genres_list")},children:"Next"})]})]}),"genres_list"==q&&(0,f.jsxs)("div",{className:"modal_content",children:[(0,f.jsxs)("div",{className:"modal_title",children:[(0,f.jsxs)("h2",{className:"title",children:[(0,f.jsx)("img",{src:"/assets/img/icons/popup-pencil.svg",alt:"img"}),"Edit"]}),(0,f.jsx)("p",{className:"subtitle",children:"Edit your photo's genre below."})]}),(0,f.jsxs)("div",{className:"edit_field_content",children:[(0,f.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_300,f_auto,q_auto/Resized_Photos/".concat(y.photoObject.compressedImageId),alt:"img"}),(0,f.jsx)("div",{className:"desc",children:"Edit 2/4"}),(0,f.jsx)("div",{className:"desc",children:"What genre is this photo?"}),(0,f.jsx)("div",{className:"row g-md-3",children:u.oe.map((function(e,t){return(0,f.jsx)("div",{className:"col-xl-4 col-6",children:(0,f.jsxs)("div",{className:"form_group checkbox",children:[(0,f.jsx)("input",{className:"queuedGenreCheckBox",type:"checkbox",name:e.id,id:e.id,defaultChecked:A.includes(e.value),value:e.value,onChange:J}),(0,f.jsx)("label",{htmlFor:e.id,children:e.value})]})},t)}))}),(0,f.jsx)("button",{className:"btn",type:"submit",onClick:function(){V("feedback_type")},children:"Next"})]})]}),"feedback_type"==q&&(0,f.jsxs)("div",{className:"modal_content",children:[(0,f.jsxs)("div",{className:"modal_title",children:[(0,f.jsxs)("h2",{className:"title",children:[(0,f.jsx)("img",{src:"/assets/img/icons/popup-pencil.svg",alt:"img"}),"Edit"]}),(0,f.jsx)("p",{className:"subtitle",children:"Edit your feedback request below."})]}),(0,f.jsxs)("div",{className:"edit_field_content",children:[(0,f.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_300,f_auto,q_auto/Resized_Photos/".concat(y.photoObject.compressedImageId),alt:"img"}),(0,f.jsx)("div",{className:"desc",children:"Edit 3/4"}),(0,f.jsx)("div",{className:"desc",children:"What type of feedback are you looking for (3 max.)?"}),(0,f.jsx)("div",{className:"row g-md-3",children:z&&u.vY.map((function(e,t){return(0,f.jsx)("div",{className:"col-xl-4 col-6",children:(0,f.jsxs)("div",{className:"form_group checkbox",children:[(0,f.jsx)("input",{className:"checkkk",type:"checkbox",name:e.value,value:e.value,id:e.value,defaultChecked:z[e.value],onChange:K}),(0,f.jsx)("label",{htmlFor:e.value,children:e.value})]})},t)}))}),(0,f.jsx)("button",{className:"btn",type:"submit",onClick:function(){V("day")},children:"Next"})]})]}),"day"==q&&(0,f.jsxs)("div",{className:"modal_content",children:[(0,f.jsxs)("div",{className:"modal_title",children:[(0,f.jsxs)("h2",{className:"title",children:[(0,f.jsx)("img",{src:"/assets/img/icons/popup-pencil.svg",alt:""}),"Edit"]}),(0,f.jsx)("p",{className:"subtitle",children:"Edit the day of the week you wouldlike this photo to automatically post."})]}),(0,f.jsxs)("div",{className:"edit_field_content",children:[(0,f.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_300,f_auto,q_auto/Resized_Photos/".concat(y.photoObject.compressedImageId),alt:"img",style:{marginBottom:"20px"}}),(0,f.jsx)("div",{className:"desc",children:"Edit 4/4"}),(0,f.jsx)("div",{className:"post_date",children:"It will post at 12:00am EST on the day you pick."}),(0,f.jsx)("div",{className:"row g-md-3",children:u.dn.map((function(e,t){return(0,f.jsx)("div",{className:"col-6",children:(0,f.jsxs)("div",{className:"form_group checkbox ".concat(Q.includes(e.value)?"":"blurred"),children:[(0,f.jsx)("input",{type:"checkbox",name:e.value,id:e.id,value:e.value,checked:Z.includes(e.value),onChange:te,disabled:!Q.includes(e.value)}),(0,f.jsx)("label",{htmlFor:e.id,children:e.value})]})},t)}))}),C?(0,f.jsx)("button",{className:"btn",children:(0,f.jsx)("span",{className:"loader"})}):(0,f.jsx)("button",{className:"btn",type:"submit",onClick:ne,children:"Save"})]})]})]})})})})})})]})}},2260:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9439),i=n(2791),o=n(184),a=function(e){var t=e.min,n=void 0===t?0:t,a=e.max,s=void 0===a?100:a,l=e.step,c=void 0===l?1:l,u=e.value,d=e.onChange,f
2=(0,i.useState)(!1),p=(0,r.Z)(f,2),h=p[0],m=p[1],v=(0,i.useRef)(null),g=(0,i.useRef)(null),y=(u-n)/(s-n)*100,b=function(e){h&&S(e)},x=function(){m(!1)},w=function(e){h&&(e.preventDefault(),S(e.touches[0]))},k=function(){m(!1)},S=function(e){if(v.current){var t=v.current.getBoundingClientRect(),r=e.clientX-t.left,i=Math.max(0,Math.min(100,r/t.width*100)),o=n+i/100*(s-n);1!==c&&(o=Math.round(o/c)*c),o=Math.max(n,Math.min(s,o)),d&&d(null,o)}};return(0,i.useEffect)((function(){return h&&(document.addEventListener("mousemove",b),document.addEventListener("mouseup",x),document.addEventListener("touchmove",w),document.addEventListener("touchend",k)),function(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",k)}}),[h]),(0,o.jsx)("div",{className:"custom-slider-container",children:(0,o.jsxs)("div",{className:"custom-slider",ref:v,onMouseDown:function(e){m(!0),S(e)},onTouchStart:function(e){m(!0),S(e.touches[0])},children:[(0,o.jsx)("div",{className:"custom-slider-track",children:(0,o.jsx)("div",{className:"custom-slider-fill",style:{width:"".concat(y,"%")}})}),(0,o.jsx)("div",{className:"custom-slider-thumb ".concat(h?"dragging":""),ref:g,style:{left:"".concat(y,"%")}})]})})}},4444:function(e,t,n){"use strict";var r=n(2791);t.Z=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(t){var r=function(t){n.current&&!n.current.contains(t.target)&&e()};return document.addEventListener("mousedown",r),function(){document.removeEventListener("mousedown",r)}}}),[e,t]),n}},8056:function(e,t,n){"use strict";var r=n(9439),i=n(2791);t.Z=function(e){var t=(0,i.useState)(!1),n=(0,r.Z)(t,2),o=n[0],a=n[1];return(0,i.useEffect)((function(){var t=new Image;t.src=e,t.onload=function(){a(!0)}}),[e]),o}},2317:function(e,t,n){"use strict";var r=n(2791),i=n(9434),o=n(747),a=n(7019);t.Z=function(){var e=(0,i.I0)(),t=(0,r.useCallback)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Upgradebtn";e(o.h.setPayWallModalTitleObj({objectTitle:t})),e(a.N.setisPayWallOpen(!0))}),[e]);return t}},2644:function(e,t,n){"use strict";var r=n(1413),i=n(2791),o=function(e,t,n){var r=document.head.querySelector("meta[".concat(e,'="').concat(t,'"]')),i=r?r.getAttribute("content"):null;return r||((r=document.createElement("meta")).setAttribute(e,t),document.head.appendChild(r)),r.setAttribute("content",n),{el:r,original:i,created:null===i,value:n}};t.Z=function(e){var t=e.title,n=e.description,a=e.canonical,s=e.ogImage,l=e.jsonLd,c=e.noindex,u=l?JSON.stringify(l):null;(0,i.useEffect)((function(){var e=t?document.title:null;t&&(document.title=t);var i=[];n&&(i.push((0,r.Z)({kind:"meta"},o("name","description",n))),i.push((0,r.Z)({kind:"meta"},o("property","og:description",n))),i.push((0,r.Z)({kind:"meta"},o("name","twitter:description",n)))),t&&(i.push((0,r.Z)({kind:"meta"},o("property","og:title",t))),i.push((0,r.Z)({kind:"meta"},o("name","twitter:title",t)))),a&&(i.push((0,r.Z)({kind:"link"},function(e,t){var n=document.head.querySelector('link[rel="'.concat(e,'"]')),r=n?n.getAttribute("href"):null;return n||((n=document.createElement("link")).setAttribute("rel",e),document.head.appendChild(n)),n.setAttribute("href",t),{el:n,original:r,created:null===r,value:t}}("canonical",a))),i.push((0,r.Z)({kind:"meta"},o("property","og:url",a)))),c&&i.push((0,r.Z)({kind:"meta"},o("name","robots","noindex, follow"))),s&&(i.push((0,r.Z)({kind:"meta"},o("property","og:image",s))),i.push((0,r.Z)({kind:"meta"},o("name","twitter:image",s))));var l=null;return u&&((l=document.createElement("script")).type="application/ld+json",l.text=u,document.head.appendChild(l)),function(){t&&document.title===t&&(document.title=e),i.forEach((function(e){var t=e.el,n=e.original,r=e.created,i=e.value;("META"===t.tagName?t.getAttribute("content"):t.getAttribute("href"))===i&&(r?t.remove():null!==n&&("META"===t.tagName?t.setAttribute("content",n):t.setAttribute("href",n)))})),l&&l.remove()}}),[t,n,a,s,u,c])}},1121:function(e,t,n){"use strict";n.r(t);var r=n(2791),i=n(7019),o=n(9434),a=n(1087),s=n(3195),l=(n(9705),n(6497),n(4277),n(8870),n(2317)),c=n(184);t.default=function(e){var t=e.usertoken,n=(0,o.I0)(),u=(0,o.v9)((function(e){return e.PayWall.UserPaymentStatus})),d=(0,l.Z)(),f=function(){t?d("NewGiveaway"):n(i.N.setJoinNowModalState(!0))},p=function(){window.scrollTo({top:0,behavior:"smooth"})};return(0,r.useEffect)((function(){s.Z.getInstance().logEvent("Paywall Giveaway")}),[]),(0,c.jsxs)("main",{className:"site-content",id:"main",children:[(0,c.jsx)("section",{className:"page-title giveaway",children:(0,c.jsx)("div",{className:"container",children:(0,c.jsx)("div",{className:"row",children:(0,c.jsx)("div",{className:"col",children:(0,c.jsx)("div",{className:"page_title_inner",children:(0,c.jsx)("h2",{className:"title",children:"Monthly giveaway"})})})})})}),(0,c.jsx)("section",{className:"content-area giveaway",children:(0,c.jsx)("div",{className:"container",children:(0,c.jsx)("div",{className:"row",children:(0,c.jsx)("div",{className:"col",children:(0,c.jsxs)("div",{className:"content_inner",children:[(0,c.jsxs)("div",{className:"content_heading",children:[(0,c.jsx)("h3",{className:"title",children:"Our Current Giveaway"}),(0,c.jsx)("div",{className:"desc",children:"The ten Pro Member\u2019s with the most total upvotes win!"}),!u&&(0,c.jsx)("button",{onClick:f,className:"btn",children:"Upgrade"})]}),(0,c.jsxs)("div",{className:"content_image",children:[(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,c.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/v1752215565/Resized_Photos/qr8dx5b5fsbulzgdccym.webp",alt:"img"})}),(0,c.jsx)("h5",{className:"title",children:"Summer\u2019s here \u2014 so let\u2019s add some color. The 10 Pro Members with the most upvotes this month will win a limited-run, colorful Big Photo Hunt t-shirt!"}),(0,c.jsxs)("p",{children:["Pro Members are automatically entered to win each month so we're all encouraged to post our best work.",!u&&(0,c.jsxs)(c.Fragment,{children:["Anyone can become a ",(0,c.jsx)(a.rU,{onClick:f,children:"Pro Member."})]})]}),(0,c.jsx)("div",{className:"button",children:!u&&(0,c.jsx)("button",{onClick:f,className:"btn",children:"Upgrade"})})]}),(0,c.jsxs)("div",{className:"content_block",children:[(0,c.jsx)("h2",{className:"title",children:" This Month\u2019s Giveaway: Big Photo Hunt Color Tees!"}),(0,c.jsx)("p",{style:{textAlign:"start"},children:" I\u2019m colorblind, so my go-to t-shirt color is black. But this summer, I\u2019m feeling inspired \u2014 so I\u2019m taking a risk and cranking out four bright new colors. Score one by getting the most upvotes, and you\u2019ll add a little color to your hunt."}),(0,c.jsx)("br",{}),(0,c.jsx)("br",{}),(0,c.jsx)("div",{className:"desc",children:(0,c.jsx)("div",{className:"button",children:!u&&(0,c.jsx)("button",{onClick:f,className:"btn",children:"Upgrade"})})})]}),(0,c.jsx)("div",{className:"youtube_video",children:(0,c.jsx)("div",{className:"video_inner"})}),(0,c.jsx)("div",{className:"content_block",children:(0,c.jsxs)("div",{className:"desc",children:[(0,c.jsx)("h2",{className:"title",children:"But Wait. There's More!"}),(0,c.jsx)("p",{children:"Not actually. But Ron Popeil, the father of infomercials used to say this so I want to say it. \u200c"})]})}),(0,c.jsxs)("div",{className:"content_block",children:[(0,c.jsx)("br",{}),(0,c.jsxs)("div",{className:"desc",children:[(0,c.jsx)("h2",{className:"title",children:"Some Details"}),(0,c.jsx)("p",{children:"As always, we want you to know the details:"}),(0,c.jsx)("br",{}),(0,c.jsxs)("ul",{children:[(0,c.jsx)("li",{children:"The contest winners will be the Pro Members with the most total upvotes on all their submitted photos during the contest period."}),(0,c.jsx)("li",{children:"This contest runs from July 7, 2025 at 12:00am EST to August 31, 2025 at 11:59pm EST."}),(0,c.jsxs)("li",{children:["Make sure to check out the ",(0,c.jsx)(a.rU,{style:{color:"blue"},onClick:p,to:"/terms",children:"terms & conditions"})," for the giveaway to know if you are eligible."]}),(0,c.jsxs)("li",{children:["You must be a Pro Member for at least one day during the contest month AND during the month that the winners are announced. This means that at minimum there are two months that you will be a Pro Member. There are no exceptions at all, whatsoever. For any reason. Period. We recommend signing up for ",(0,c.jsx)(a.rU,{style:{color:"blue"},to:"/pmupgrade",children:"our annual membership."}),"  It's 50% cheaper and you won't get caught with your pants down."]}),(0,c.jsx)("li",{children:"Photos that have already been included in a previous Big Photo Hunt weekly hunt are not eligible."}),(0,c.jsx)("li",{children:" The winner is responsible for shipping and if applicable, and taxes, duties or customs for their prize."})]}
2),(0,c.jsxs)("p",{children:["See Previous month's giveaways and winners ",(0,c.jsx)(a.rU,{onClick:p,to:"/previousgiveaways",children:"here"})]}),(0,c.jsx)("div",{className:"button",children:!u&&(0,c.jsx)("button",{onClick:f,className:"btn",children:"Upgrade"})})]})]})]})})})})})]})}},1737:function(e,t,n){"use strict";n.d(t,{IA:function(){return a},WD:function(){return o}});var r=(0,n(9829).oM)({name:"adultReveal",initialState:{revealedIds:[]},reducers:{revealPhoto:function(e,t){e.revealedIds.includes(t.payload)||e.revealedIds.push(t.payload)},clearRevealed:function(e){e.revealedIds.length&&(e.revealedIds=[])}}}),i=r.actions,o=i.revealPhoto,a=i.clearRevealed;t.ZP=r},7421:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=(0,n(9829).oM)({name:"Common",initialState:{activityCalloutData:null,currentEventData:{},pastEvents:[]},reducers:{setActivityCalloutData:function(e,t){e.activityCalloutData=t.payload},setCurrentEventData:function(e,t){e.currentEventData=t.payload},setPastEvents:function(e,t){e.pastEvents=t.payload}}}),i=r.actions;t.Z=r.reducer},1003:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=(0,n(9829).oM)({name:"Follow",initialState:{FollowState:"",FollowerImgmodalUserInfo:"",FollowerimgModalOpen:!1,ClickedFollowCardInfo:""},reducers:{setFollowState:function(e,t){e.FollowState=t.payload},setFollowerImgmodalUserInfo:function(e,t){e.FollowerImgmodalUserInfo=t.payload},setFollowerimgModalOpen:function(e,t){e.FollowerimgModalOpen=t.payload},setClickedFollowCardInfo:function(e,t){e.ClickedFollowCardInfo=t.payload}}}),i=r.actions;t.Z=r},5175:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=(0,n(9829).oM)({name:"Gallery",initialState:{GalleryUploadState:!1,GalleryUploadComponentState:!1,SuccessfullyUploadedGalleryPhotos:[],SuccessfullyManageGalleryPhotos:[],ProfileInfoPlusBtnIsClick:!1,ViewGallery:{mainGallery:!0,manageGallery:!1},IsManageGallery:!1},reducers:{getGalleryUploadState:function(e,t){e.GalleryUploadState=t.payload},setGalleryUploadComponentState:function(e,t){e.GalleryUploadComponentState=t.payload},setSuccessfullyUploadedGalleryPhotos:function(e,t){e.SuccessfullyUploadedGalleryPhotos=t.payload},setSuccessfullyManageGalleryPhotos:function(e,t){e.SuccessfullyManageGalleryPhotos=t.payload},setProfileInfoPlusBtnIsClick:function(e,t){e.ProfileInfoPlusBtnIsClick=t.payload},setViewGallery:function(e,t){e.ViewGallery=t.payload},setIsManageGallery:function(e,t){e.IsManageGallery=t.payload}}}),i=r.actions;t.Z=r},6893:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=(0,n(9829).oM)({name:"LightBox",initialState:{LightBoxState:[],LightBoxActiveImgId:"",LoadMorePhotos:{fetchMorePhotos:!1,fetchAction:!1},UpdateTheMianFeedpage:""},reducers:{setLightBoxState:function(e,t){e.LightBoxState=t.payload},setLightBoxActiveImgId:function(e,t){e.LightBoxActiveImgId=t.payload},setLoadMorePhotos:function(e,t){e.LoadMorePhotos=t.payload},setUpdateTheMianFeedpage:function(e,t){e.UpdateTheMianFeedpage=t.payload}}}),i=r.actions;t.Z=r},3244:function(e,t,n){"use strict";n.d(t,{s:function(){return i}});var r=(0,n(9829).oM)({name:"Login",initialState:{isLoggedIn:!1},reducers:{setIsLoggedIn:function(e,t){e.isLoggedIn=t.payload}}}),i=r.actions;t.Z=r},7019:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=(0,n(9829).oM)({name:"Modal",initialState:{JoinModalBackbtn:!1,StateAfterUploadPhoto:!1,ShareModalPhotoInfo:"",PopupModalMessage:"",PopupModalState:!1,PhotoUploadModalState:!1,CoverPhotoUploadModalState:!1,PhotoUploadType:"",ProfileUploadModalState:!1,SharePhotoModalState:!1,CropImg:"",CoverCropImg:"",MeApiState:!1,JoinNowModalState:!1,SignInModalState:!1,FacebookEmailState:!1,QueuedModalState:!1,isQueued:{queue:!1},setQueuedTargetBtnAndValueObj:"",UploadPhotoFromGalleryModalState:!1,GalleryModalPhotoObject:"",QueuePhotoObjectSelectedFromQueuePage:"",QueueEditValue:"",isLightboxModalOpen:!1,isPayWallOpen:!1,closeModal:!0,AiReportModal:!1,AiReportAPiPayload:{},lastGeneratedPhotoId:null,generationStartedPhotoId:null},reducers:{setJoinModalBackbtn:function(e,t){e.JoinModalBackbtn=t.payload},setStateAfterUploadPhoto:function(e,t){e.StateAfterUploadPhoto=t.payload},setShareModalPhotoInfo:function(e,t){e.ShareModalPhotoInfo=t.payload},setPopupModalState:function(e,t){e.PopupModalState=t.payload},setPhotoUploadModalState:function(e,t){e.PhotoUploadModalState=t.payload},setCoverPhotoUploadModalState:function(e,t){e.CoverPhotoUploadModalState=t.payload},setPhotoUploadType:function(e,t){e.PhotoUploadType=t.payload},setProfileUploadModalState:function(e,t){e.ProfileUploadModalState=t.payload},setSharePhotoModalState:function(e,t){e.SharePhotoModalState=t.payload},setPopupModalMessage:function(e,t){e.PopupModalMessage=t.payload},setCropImg:function(e,t){e.CropImg=t.payload},setCoverCropImg:function(e,t){e.CoverCropImg=t.payload},setMeApiState:function(e,t){e.MeApiState=t.payload},setJoinNowModalState:function(e,t){e.JoinNowModalState=t.payload},setSignInModalState:function(e,t){e.SignInModalState=t.payload},setFacebookEmailState:function(e,t){e.FacebookEmailState=t.payload},setQueuedModalState:function(e,t){e.QueuedModalState=t.payload},setisQueued:function(e,t){e.isQueued=t.payload},setQueuedTargetBtnAndValueObj:function(e,t){e.setQueuedTargetBtnAndValueObj=t.payload},setUploadPhotoFromGalleryModalState:function(e,t){e.UploadPhotoFromGalleryModalState=t.payload},setGalleryModalPhotoObject:function(e,t){e.GalleryModalPhotoObject=t.payload},setQueuePhotoObjectSelectedFromQueuePage:function(e,t){e.QueuePhotoObjectSelectedFromQueuePage=t.payload},setQueueEditValue:function(e,t){e.QueueEditValue=t.payload},setisLightboxModalOpen:function(e,t){e.isLightboxModalOpen=t.payload},setisPayWallOpen:function(e,t){e.isPayWallOpen=t.payload},setCloseMOdal:function(e,t){e.closeModal=t.payload},setAiReportModal:function(e,t){e.AiReportModal=t.payload},setAiReportAPiPayload:function(e,t){e.AiReportAPiPayload=t.payload}
2,setLastGeneratedPhotoId:function(e,t){e.lastGeneratedPhotoId=t.payload},setGenerationStartedPhotoId:function(e,t){e.generationStartedPhotoId=t.payload}}}),i=r.actions;t.Z=r},747:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=(0,n(9829).oM)({name:"PayWall",initialState:{PayWallModalTitleObj:{},UserPaymentStatus:!1,isSamCardSideBarOpen:!1,SamCardProductName:"",PersonalSite:{}},reducers:{setPayWallModalTitleObj:function(e,t){e.PayWallModalTitleObj=t.payload},setUserPaymentStatus:function(e,t){e.UserPaymentStatus=t.payload},setisSamCardSideBarOpen:function(e,t){e.isSamCardSideBarOpen=t.payload},setSamCardProductName:function(e,t){e.SamCardProductName=t.payload},setPersonalSite:function(e,t){e.PersonalSite=t.payload}}}),i=r.actions;t.Z=r},8770:function(e,t,n){"use strict";n.d(t,{zZ:function(){return o}});var r=(0,n(9829).oM)({name:"photoTracking",initialState:{trackedIds:[]},reducers:{addTrackedId:function(e,t){e.trackedIds.includes(t.payload)||e.trackedIds.push(t.payload)}}}),i=r.actions,o=i.addTrackedId;i.removeTrackedId,i.resetTrackedIds;t.ZP=r},4848:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=(0,n(9829).oM)({name:"Socket",initialState:{SocketReceiverUserID:null,ReloadNotificationSenderFn:!1,ReloadGetNorificationApi:!1},reducers:{setSocketReceiverUserID:function(e,t){e.SocketReceiverUserID=t.payload},setReloadNotificationSenderFn:function(e,t){e.ReloadNotificationSenderFn=t.payload},setReloadGetNorificationApi:function(e,t){e.ReloadGetNorificationApi=t.payload}}}),i=r.actions;t.Z=r},8224:function(e,t,n){"use strict";n.d(t,{SE:function(){return i},Y0:function(){return a},Y5:function(){return o},zk:function(){return s}});var r=n(8007),i=r.Ry({email:r.Z_().email().required("Please enter your email"),password:r.Z_().required("Please enter your password").test("min-length","Password must be at least 8 characters",(function(e){return!e||e.length>=8}))}),o=r.Ry({Newpassword:r.Z_().min(8).required("Please enter  your password"),Confirmpassword:r.Z_().min(8).required().oneOf([r.iH("Newpassword"),null],"Password and Confirm Password must match ")}),a=["critique","gear","meetups_trips","selling","general"],s=r.Ry({category:r.Z_().oneOf(a,"Please choose a category").required("Please choose a category"),title:r.Z_().trim().min(1,"Please enter a title").max(200,"Title must be 200 characters or fewer").required("Please enter a title"),body:r.Z_().trim().min(1,"Please write something in the body").max(1e5,"Body must be 100,000 characters or fewer").required("Please write something in the body")});r.Ry().shape({image:r.nK().test("fileSize","File size must be less than 200MB",(function(e){return!e||e.size<=209715200})).test("imageDimensions","Image dimensions must be within 2800px",(function(e){if(!e)return!0;var t=new Image;return t.src=window.URL.createObjectURL(e),t.width<=2800&&t.height<=2800})).test("imageFormat","Only JPG format allowed",(function(e){return!e||"image/jpeg"===e.type}))})},3956:function(e,t,n){"use strict";n.d(t,{Bd:function(){return a},Fe:function(){return c},V9:function(){return u},_I:function(){return l},xg:function(){return s}});var r=n(4165),i=n(5861),o=n(4993),a=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={photoId:t.photoId,upvotes:t.upvotes},"/reports/photo",e.next=5,o.Z.post("/reports/photo",n);case 5:return i=e.sent,e.abrupt("return",i);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/reports/fetch",e.next=4,o.Z.post("/reports/fetch",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/photo/request_ai_report_reminder",e.next=4,o.Z.post("/photo/request_ai_report_reminder",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/reports/feedback/get",e.next=4,o.Z.post("/reports/feedback/get",{reportId:t});case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/reports/feedback/add",e.next=4,o.Z.post("/reports/feedback/add",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}()},5457:function(e,t,n){"use strict";n.d(t,{$O:function(){return d},CS:function(){return c},km:function(){return u},px:function(){return l}});var r=n(4165),i=n(1413),o=n(5861),a=n(1989),s=n(4993),l=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t,n,o){var s,l;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s=(0,i.Z)({emailOrUsername:t,password:n},o&&{batchId:o}),e.next=4,a.Z.post("".concat("https://bigbesos.com","/auth/login"),s);case 4:return l=e.sent,e.abrupt("return",l);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,n,r){return e.apply(this,arguments)}}(),c=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s.Z.post("/auth/Me",{});case 3:return t=e.sent,e.abrupt("return",t);case 7:throw e.prev=7,e.t0=e.catch(0),e.t0;case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t,n,o,s,l){var c,u,d,f,p,h=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=h.length>5&&void 0!==h[5]?h[5]:"",u=h.length>6&&void 0!==h[6]?h[6]:"",d=h.length>7&&void 0!==h[7]?h[7]:{},e.prev=3,f=(0,i.Z)((0,i.Z)((0,i.Z)({email:t.trim(),userType:n,referral_code:o,contact_url:c,form_elapsed_ms:u},s&&{batchId:s}),l&&{socialToken:l}),void 0!==d.captchaToken&&{captchaToken:d.captchaToken}),e.next=7,a.Z.post("".concat("https://bigbesos.com","/auth/user"),f);case 7:return p=e.sent,e.abrupt("return",p);case 11:throw e.prev=11,e.t0=e.catch(3),console.log(e.t0,"error"),e.t0;case 15:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t,n,r,i,o){return e.apply(this,arguments)}}(),d=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t,n,o){var a,l;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=(0,i.Z)((0,i.Z)((0,i.Z)({},t&&{userID:t}),n&&{profile:n}),{},{userType:o?"user":"all"}
2),e.next=4,s.Z.post("/user/get_user_profile",a);case 4:return l=e.sent,e.abrupt("return",l);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,n,r){return e.apply(this,arguments)}}()},1570:function(e,t,n){"use strict";n.d(t,{AS:function(){return _},DZ:function(){return x},GY:function(){return j},H:function(){return W},H$:function(){return V},IW:function(){return P},Ns:function(){return M},OI:function(){return B},Pb:function(){return K},QW:function(){return q},SP:function(){return T},Wb:function(){return E},XS:function(){return L},Xc:function(){return X},bE:function(){return Y},cn:function(){return b},et:function(){return z},fR:function(){return Q},h8:function(){return J},iO:function(){return F},iz:function(){return N},kq:function(){return A},ni:function(){return k},or:function(){return H},oy:function(){return C},pF:function(){return Z},rs:function(){return R},sC:function(){return D},uC:function(){return S},uy:function(){return O},vn:function(){return I},vq:function(){return U},wD:function(){return w}});var r,i=n(1413),o=n(5987),a=n(4165),s=n(5861),l=n(3433),c=n(4993),u=n(4014),d=n(1467),f=["photos"],p=new Set,h=1200,m="bph_bpb_read_report_at",v=!1,g=function(){if(v)return r;v=!0;var e=function(){try{if("undefined"===typeof window||!window.sessionStorage)return 0;var e=window.sessionStorage.getItem(m);if(!e)return 0;window.sessionStorage.removeItem(m);var t=Number(e);if(!Number.isFinite(t))return 0;var n=Date.now()-t;return n<0||n>=h?0:h-n}catch(r){return 0}}();return e<=0?void 0:((r=new Promise((function(t){setTimeout(t,e)}))).then((function(){r=void 0})),r)},y=function(){var e,t=g();if(0===p.size)return t||Promise.resolve();var n=new Promise((function(t){e=setTimeout(t,h)})),r=Promise.race([Promise.all((0,l.Z)(p)).then((function(){})),n]).finally((function(){return clearTimeout(e)}));return t?Promise.all([r,t]).then((function(){})):r},b=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y();case 3:return"/bpb/getBoardFeed",e.next=6,c.Z.post("/bpb/getBoardFeed",t);case 6:return n=e.sent,e.abrupt("return",n);case 10:throw e.prev=10,e.t0=e.catch(0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/getTopContributors",e.next=4,c.Z.post("/bpb/getTopContributors",t||{});case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y();case 3:return"/bpb/getPostDetail",e.next=6,c.Z.post("/bpb/getPostDetail",t);case 6:return n=e.sent,e.abrupt("return",n);case 10:throw e.prev=10,e.t0=e.catch(0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/getReplies",e.next=4,c.Z.post("/bpb/getReplies",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/resolveReplyAnchor",e.next=4,c.Z.post("/bpb/resolveReplyAnchor",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y();
2case 3:return"/bpb/getNewReplies",e.next=6,c.Z.post("/bpb/getNewReplies",t);case 6:return n=e.sent,e.abrupt("return",n);case 10:throw e.prev=10,e.t0=e.catch(0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),C=function(e){try{return function(e){var t=Promise.resolve(e).catch((function(){}));p.add(t);var n=setTimeout((function(){return p.delete(t)}),h);return t.finally((function(){clearTimeout(n),p.delete(t)})),e}(c.Z.post("/bpb/markRepliesRead",e))}catch(t){return Promise.reject(t)}},_=function(e){var t=e.post_id,n=e.reply_ids;if(!t||!Array.isArray(n)||0===n.length)return!1;if("function"!==typeof fetch)return!1;var r=(0,d.IS)();if(!r){var i=localStorage.getItem("Data"),o=(0,u.a)(i);r=o&&o.token||null}if(!r)return!1;try{return fetch("".concat("https://bigbesos.com","/bpb/markRepliesRead"),{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)},body:JSON.stringify({post_id:t,reply_ids:n})}).catch((function(){})),function(){try{if("undefined"===typeof window||!window.sessionStorage)return;window.sessionStorage.setItem(m,String(Date.now()))}catch(e){}}(),!0}catch(a){return!1}},E=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/getPostSidebar",e.next=4,c.Z.post("/bpb/getPostSidebar",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),N=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/createPost",e.next=4,c.Z.post("/bpb/createPost",t,{headers:{"Content-Type":"multipart/form-data"}});case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),A=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n,r,i,s,l,u,d;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n="/bpb/createReply",i=(r=t||{}).photos,s=(0,o.Z)(r,f),!(i&&i.length>0)){e.next=14;break}return(l=new FormData).append("postId",s.postId),s.parentReplyId&&l.append("parentReplyId",s.parentReplyId),l.append("body",s.body),"boolean"===typeof s.followThread&&l.append("followThread",String(s.followThread)),i.forEach((function(e){l.append("photos",e)})),e.next=12,c.Z.post(n,l,{headers:{"Content-Type":"multipart/form-data"}});case 12:return u=e.sent,e.abrupt("return",u);case 14:return e.next=16,c.Z.post(n,s);case 16:return d=e.sent,e.abrupt("return",d);case 20:throw e.prev=20,e.t0=e.catch(0),e.t0;case 23:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(t){return e.apply(this,arguments)}}(),D=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y();case 3:return"/bpb/searchPosts",e.next=6,c.Z.post("/bpb/searchPosts",t);case 6:return n=e.sent,e.abrupt("return",n);case 10:throw e.prev=10,e.t0=e.catch(0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/searchMembers",e.next=4,c.Z.post("/bpb/searchMembers",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n,r,o,s;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.title,r=t.body,o=t.category,e.prev=1,"/bpb/titleCoach",e.next=5,c.Z.post("/bpb/titleCoach",(0,i.Z)({title:n,body:"string"===typeof r?r.slice(0,4e3):r},o?{category:o}:{}));case 5:return s=e.sent,e.abrupt("return",s);case 9:throw e.prev=9,e.t0=e.catch(1),e.t0;case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/editPost",e.next=4,c.Z.post("/bpb/editPost",t,{headers:{"Content-Type":"multipart/form-data"}});case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),F=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/editReply",e.next=4,c.Z.post("/bpb/editReply",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),O=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/toggleLike",e.next=4,c.Z.post("/bpb/toggleLike",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),M=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/toggleFollow",e.next=4,c.Z.post("/bpb/toggleFollow",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),Z=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/reportPost",e.next=4,c.Z.post("/bpb/reportPost",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),R=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n,r,i=arguments;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(i.length>1&&void 0!==i[1]?i[1]:{}).signal,e.prev=1,"/bpb/getMemberCard",e.next=5,c.Z.post("/bpb/getMemberCard",t,{signal:n});case 5:return r=e.sent,e.abrupt("return",r);case 9:throw e.prev=9,e.t0=e.catch(1),e.t0;case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}(),L=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/pinReply",e.next=4,c.Z.post("/bpb/pinReply",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/unpinReply",e.next=4,c.Z.post("/bpb/unpinReply",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),z=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/getNewPostsCount",e.next=4,c.Z.post("/bpb/getNewPostsCount",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),U=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/getViewerBoardState",e.next=4,c.Z.post("/bpb/getViewerBoardState",{});case 4:return t=e.sent,e.abrupt("return",t);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/getFeaturedThread",e.next=4,c.Z.post("/bpb/getFeaturedThread",{});case 4:return t=e.sent,e.abrupt("return",t);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/getFeaturedThreads",n="number"===typeof t?{limit:t}:{},e.next=5,c.Z.post("/bpb/getFeaturedThreads",n);case 5:return r=e.sent,e.abrupt("return",r);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),q=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/getTopTenTeaserThreads",e.next=4,c.Z.post("/bpb/getTopTenTeaserThreads",{});case 4:return t=e.sent,e.abrupt("return",t);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/dismissWelcomeBanner",e.next=4,c.Z.post("/bpb/dismissWelcomeBanner",{});case 4:return t=e.sent,e.abrupt("return",t);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),G=null,$=0,J=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t,n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(G&&Date.now()-$<250)){e.next=2;break}return e.abrupt("return",G);case 2:return t=(0,s.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y();case 2:return"/bpb/getHasUnseenReplies",e.abrupt("return",c.Z.post("/bpb/getHasUnseenReplies",{}));case 4:case"end":return e.stop()}}),e)})))(),G=t,$=Date.now(),n=function(){G===t&&(G=null)},t.then(n,n),e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),K=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;
2)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/markBoardVisit",e.next=4,c.Z.post("/bpb/markBoardVisit",{});case 4:return t=e.sent,e.abrupt("return",t);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/markBoardSeen",e.next=4,c.Z.post("/bpb/markBoardSeen",{});case 4:return t=e.sent,e.abrupt("return",t);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),X=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y();case 3:return"/bpb/getMyThreads",e.next=6,c.Z.post("/bpb/getMyThreads",t);case 6:return n=e.sent,e.abrupt("return",n);case 10:throw e.prev=10,e.t0=e.catch(0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),Q=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/bpb/markAllThreadsRead",e.next=4,c.Z.post("/bpb/markAllThreadsRead",{});case 4:return t=e.sent,e.abrupt("return",t);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}()},9837:function(e,t,n){"use strict";var r=n(4165),i=n(5861),o=n(3195),a=n(1989),s=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n,i,s,l,c){var u,d,f;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u={user_id:n,photo_id:i,notification_type:"congratulate_weekly_toptenuser",is_thanked:!s,NotificationId:c},d={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=5,a.Z.post("".concat("https://bigbesos.com","/notify/sendthanks"),u,{headers:d});case 5:return f=e.sent,o.Z.getInstance().logEvent("Congratulations",{UserID:l}),e.abrupt("return",f);case 10:throw e.prev=10,e.t0=e.catch(0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,n,r,i,o,a){return e.apply(this,arguments)}}();t.Z=s},3892:function(e,t,n){"use strict";n.d(t,{FL:function(){return s},e5:function(){return l},kF:function(){return a}});var r=n(4165),i=n(5861),o=n(4993),a=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/townhall/list",e.next=4,o.Z.post("/townhall/list",{});case 4:return t=e.sent,e.abrupt("return",t);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),s=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/townhall/monthly-list",e.next=4,o.Z.post("/townhall/monthly-list",{});case 4:return t=e.sent,e.abrupt("return",t);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),l=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/admin/fetchActivityCallout",e.next=4,o.Z.post("/admin/fetchActivityCallout",{});case 4:return t=e.sent,e.abrupt("return",t);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}()},9343:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(4165),i=n(5861),o=n(1989),a=n(3195),s=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n,i,s,l,c){var u,d,f;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n&&a.Z.getInstance().logEvent("".concat(c?"Follow Back":"Follow"),{UserID:s}),u={followerID:t,is_follow:n},d={Authorization:"Bearer ".concat(i),"Content-Type":"application/json"},e.next=6,o.Z.post("".concat("https://bigbesos.com","/follow/user"),u,{headers:d});case 6:return!1===(f=e.sent).data.data.first_time_follow&&l(),e.abrupt("return",f);case 11:throw e.prev=11,e.t0=e.catch(0),e.t0;case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(t,n,r,i,o,a){return e.apply(this,arguments)}}()},3339:function(e,t,n){"use strict";n.d(t,{Ap:function(){return g},CF:function(){return h},DV:function(){return a},Sr:function(){return y},Tj:function(){return l},U$:function(){return c},Y0:function(){return d},_q:function(){return p},cs:function(){return f},dv:function(){return m},fU:function(){return s},xG:function(){return u},z:function(){return v}});var r=n(4165),i=n(5861),o=n(4993),a=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/free-report/photo",e.next=4,o.Z.post("/free-report/photo",{photoId:t});case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t,n,i=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>
20&&void 0!==i[0]?i[0]:0,e.prev=1,"/free-report/photos",e.next=5,o.Z.post("/free-report/photos",{offSet:t});case 5:return n=e.sent,e.abrupt("return",n);case 9:throw e.prev=9,e.t0=e.catch(1),e.t0;case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(){return e.apply(this,arguments)}}(),l=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t,n,i=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:0,e.prev=1,"/free-report/reports",e.next=5,o.Z.post("/free-report/reports",{offSet:t});case 5:return n=e.sent,e.abrupt("return",n);case 9:throw e.prev=9,e.t0=e.catch(1),e.t0;case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/free-report/quota",e.next=4,o.Z.post("/free-report/quota",{});case 4:return t=e.sent,e.abrupt("return",t);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/free-report/standing",e.next=4,o.Z.post("/free-report/standing",{photoId:t});case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t,n,i,a,s,l,c,u=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=u.length>0&&void 0!==u[0]?u[0]:{}).photoId,i=void 0===n?null:n,a=t.anonToken,s=void 0===a?null:a,e.prev=1,"/free-report/status",l={},i&&(l.photoId=i),s&&(l.anonToken=s),e.next=8,o.Z.post("/free-report/status",l);case 8:return c=e.sent,e.abrupt("return",c);case 12:throw e.prev=12,e.t0=e.catch(1),e.t0;case 15:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,a,s=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:null,e.prev=1,"/free-report/notify-me",i=n?{source:t,reportId:n}:{source:t},e.next=6,o.Z.post("/free-report/notify-me",i);case 6:return a=e.sent,e.abrupt("return",a);case 10:throw e.prev=10,e.t0=e.catch(1),e.t0;case 13:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,a,s,l,c,u,d=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(n=d.length>1&&void 0!==d[1]?d[1]:{}).photoId,a=void 0===i?null:i,s=n.anonToken,l=void 0===s?null:s,e.prev=1,"/free-report/deep-report/reserve",c={source:t},a&&(c.photoId=a),l&&(c.anonToken=l),e.next=8,o.Z.post("/free-report/deep-report/reserve",c);case 8:return u=e.sent,e.abrupt("return",u);case 12:throw e.prev=12,e.t0=e.catch(1),e.t0;case 15:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/free-report/viewed",e.next=4,o.Z.post("/free-report/viewed",{photoId:t});case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,a,s,l,c,u,d,f,p,h,m,v=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(n=v.length>1&&void 0!==v[1]?v[1]:{}).anonToken,a=void 0===i?null:i,s=n.metadata,l=void 0===s?"":s,c=n.formElapsedMs,u=void 0===c?null:c,d=n.onUploadProgress,f=void 0===d?null:d,e.prev=1,"/free-report/upload",(p=new FormData).append("photo",t,t.name),a&&p.append("anonToken",a),l&&p.append("metadata",l),p.append("contact_url",""),null!=u&&p.append("form_elapsed_ms",String(u)),h={headers:{"Content-Type":"multipart/form-data"}},f&&(h.onUploadProgress=f),e.next=13,o.Z.post("/free-report/upload",p,h);case 13:return m=e.sent,e.abrupt("return",m);case 17:throw e.prev=17,e.t0=e.catch(1),e.t0;case 20:case"end":return e.stop()}}),e,null,[[1,17]])})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,a,s,l=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>1&&void 0!==l[1]?l[1]:null,i=l.length>2&&void 0!==l[2]?l[2]:null,e.prev=2,"/free-report/public-report",a={photoId:t},n&&(a.anonToken=n),i&&(a.reportToken=i),e.next=9,o.Z.post("/free-report/public-report",a);case 9:return s=e.sent,e.abrupt("return",s);case 13:throw e.prev=13,e.t0=e.catch(2),e.t0;case 16:case"end":return e.stop()}}),e,null,[[2,13]])})));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/free-report/claim",e.next=4,o.Z.post("/free-report/claim",{anonToken:t});case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){var i,a,s,l,c,u,d,f,p,h=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(i=h.length>2&&void 0!==h[2]?h[2]:{}).reportId,s=void 0===a?null:a,l=i.anonToken,c=void 0===l?null:l,u=i.formElapsedMs,d=void 0===u?null:u,e.prev=1,"/free-report/email-capture",f={email:t,source:n,contact_url:""},s&&(f.reportId=s),c&&(f.anonToken=c),null!=d&&(f.form_elapsed_ms=String(d)),e.next=9,o.Z.post("/free-report/email-capture",f);case 9:return p=e.sent,e.abrupt("return",p);case 13:throw e.prev=13,e.t0=e.catch(1),e.t0;case 16:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(t,n){return e.apply(this,arguments)}}()},7960:function(e,t,n){"use strict";n.d(t,{$i:function(){return a},DO:function(){return l},Sr:function(){return c},oj:function(){return s}});var r=n(4165),i=n(5861),o=n(1989),a=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n,i,a,s,l){var c,u,d;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c=l?{profile:l,offset:i,sortingType:"upload_date",value:"new",isPaid:s}:n?{user_id:n,offset:i,sortingType:"upload_date",value:"new",isPaid:s}:{offset:i,sortingType:a.sortingType,value:a.value,isPaid:s},u={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=5,o.Z.post("".concat("https://bigbesos.com","/photo/view-gallery"),c,{headers:u});case 5:return d=e.sent,e.abrupt("return",d);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n,r,i,o,a){return e.apply(this,arguments)}}(),s=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){var i,a,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i={photoId:n,sortingType:"arranged_photo",value:"new"},a={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=5,o.Z.post("".concat("https://bigbesos.com","/photo/manage-gallery"),i,{headers:a});case 5:return s=e.sent,e.abrupt("return",s);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}(),l=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){var i,a,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i={photoId:n},a={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=5,o.Z.post("".concat("https://bigbesos.com","/photo/delete-gallery"),i,{headers:a});case 5:return s=e.sent,e.abrupt("return",s);case 9:throw e.prev=9,e.t0=e.catch(0),console.error("Error removing queued photo:",e.t0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}(),c=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){var i,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={Authorization:"Bearer ".concat(n)},e.prev=1,e.next=4,o.Z.post("".concat("https://bigbesos.com","/photo/get_photo_per_week"),t,{headers:i});case 4:return a=e.sent,e.abrupt("return",a);case 8:throw e.prev=8,e.t0=e.catch(1),e.t0;case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}()},514:function(e,t,n){"use strict";n.d(t,{DC:function(){return k},Og:function(){return m},PQ:function(){return d},Rj:function(){return s},SA:function(){return g},Vu:function(){return b},XB:function(){return S},Xp:function(){return u},ey:function(){return x},jO:function(){return f},mR:function(){return h},mk:function(){return p},rP:function(){return l},sn:function(){return y},te:function(){return w},ux:function(){return c},zZ:function(){return v}});var r=n(4165),i=n(1413),o=n(5861),a=n(4993),s={template1:"PP Template 1",template2:"PP Template 2",template3:"PP Template 3",template4:"PP Template 4",template5:"PP Template 5"},l=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,o,s,l,c,u=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>1&&void 0!==u[1]&&u[1],o=u.length>2&&void 0!==u[2]?u[2]:{},e.prev=2,"/personal-website/selectTemplate",s=n?{headers:{"Content-Type":"multipart/form-data"}}:{},l=(0,i.Z)((0,i.Z)({},s),o),e.next=8,a.Z.post("/personal-website/selectTemplate",t,l);case 8:return c=e.sent,e.abrupt("return",c);case 12:throw e.prev=12,e.t0=e.catch(2),e.t0;case 15:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={}
2,"/personal-website/listPhotos",e.next=5,a.Z.post("/personal-website/listPhotos",n);case 5:return i=e.sent,e.abrupt("return",i);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/personal-website/fetch",e.next=4,a.Z.post("/personal-website/fetch",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/personal-website/update",e.next=4,a.Z.post("/personal-website/update",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/personal-website/photos",e.next=4,a.Z.post("/personal-website/photos",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/personal-website/fetch",e.next=4,a.Z.post("/personal-website/fetch",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),h=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/personal-website/contactUs",e.next=4,a.Z.post("/personal-website/contactUs",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/vote/personal_photo",e.next=4,a.Z.post("/vote/personal_photo",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,o,s=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},e.prev=1,"/personal-website/uploadPhotos",e.next=5,a.Z.post("/personal-website/uploadPhotos",t,(0,i.Z)({headers:{"Content-Type":"multipart/form-data"}},n));case 5:return o=e.sent,e.abrupt("return",o);case 9:throw e.prev=9,e.t0=e.catch(1),e.t0;case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/personal-website/confirmPhotos",e.next=4,a.Z.post("/personal-website/confirmPhotos",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/personal-website/detail",e.next=4,a.Z.post("/personal-website/detail",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,o,s,l,c,u=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>1&&void 0!==u[1]&&u[1],o=u.length>2&&void 0!==u[2]?u[2]:{},e.prev=2,"/personal-website/updateData",s=n?{headers:{"Content-Type":"multipart/form-data"}}:{},l=(0,i.Z)((0,i.Z)({}
2,s),o),e.next=8,a.Z.patch("/personal-website/updateData",t,l);case 8:return c=e.sent,e.abrupt("return",c);case 12:throw e.prev=12,e.t0=e.catch(2),e.t0;case 15:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/personal-website/delete-personal-photos",e.next=4,a.Z.post("/personal-website/delete-personal-photos",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),w=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/personal-website/manage-personal-photos",e.next=4,a.Z.post("/personal-website/manage-personal-photos",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/personal-page/followUser",e.next=4,a.Z.post("/personal-page/followUser",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,"/personal-website/create-personal-gallery",e.next=4,a.Z.post("/personal-website/create-personal-gallery",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}()},6866:function(e,t,n){"use strict";n.d(t,{BC:function(){return f},P1:function(){return p},TG:function(){return u},_b:function(){return c},cJ:function(){return d},j0:function(){return l},yU:function(){return s},z6:function(){return h}});var r=n(4165),i=n(1413),o=n(5861),a=n(4993),s=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t,n,o,s,l,c){var u,d,f;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u=(0,i.Z)({userType:t,sortingType:n,offSet:o},l&&c&&"by_recent_photos"==n&&{rehuntedPhoto:c}),d=l?"/photo/list":"/photo/list_photo_for_landing",e.next=5,a.Z.post(d,u);case 5:return f=e.sent,e.abrupt("return",f);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n,r,i,o,a){return e.apply(this,arguments)}}(),l=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t,n){var i,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i={photo_id:t,userType:n?"by_user":"all"},e.next=4,a.Z.post("/photo/get_photo_by_id",i);case 4:return o=e.sent,e.abrupt("return",o);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,n){return e.apply(this,arguments)}}(),c=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t,n,i,o,s){var l,c,u;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l={userType:t,sortingType:n||"by_recent_photos",offSet:i},c=s?"/photo/list_upvoted_photo":"/photo/list",e.next=5,a.Z.post(c,l);case 5:return u=e.sent,e.abrupt("return",u);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n,r,i,o){return e.apply(this,arguments)}}(),u=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t,n){var i,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i={offSet:t},"photo/list_participating_members",e.next=5,a.Z.post("photo/list_participating_members",i);case 5:return o=e.sent,e.abrupt("return",o);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}(),d=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t,n){var i,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i={photoId:t,postedDate:n}
2,"photo/boostWeeklyPhotos",e.next=5,a.Z.post("photo/boostWeeklyPhotos",i);case 5:return o=e.sent,e.abrupt("return",o);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t,n,i,o){var s,l;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(!0),e.prev=1,s={photoId:t,photoMemberId:n},"notify/comingNextPhotos",e.next=6,a.Z.post("notify/comingNextPhotos",s);case 6:return l=e.sent,i(!0),o(!1),e.abrupt("return",l);case 12:throw e.prev=12,e.t0=e.catch(1),o(!1),e.t0;case 16:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t,n,r,i){return e.apply(this,arguments)}}(),p=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var t,n,i,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.Z.post("photo/week_unseen_target",{});case 2:return o=e.sent,e.abrupt("return",null!==(t=null===o||void 0===o||null===(n=o.data)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.oldestUnseenPhotoId)&&void 0!==t?t:null);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={photoID:t},"photo/updateViewedPhotos",e.next=5,a.Z.post("photo/updateViewedPhotos",n);case 5:return i=e.sent,e.abrupt("return",i);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}()},8246:function(e,t,n){"use strict";n.d(t,{YE:function(){return d},e8:function(){return c},pS:function(){return l},rG:function(){return s},rK:function(){return u}});var r=n(4165),i=n(5861),o=n(1989),a=n(4993),s=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=4,o.Z.post("".concat("https://bigbesos.com","/photo/view_queued_photo"),{},{headers:n});case 4:return i=e.sent,e.abrupt("return",i);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){var i,a,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i={photoID:n},a={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=5,o.Z.post("".concat("https://bigbesos.com","/photo/remove_queued_photo"),i,{headers:a});case 5:return s=e.sent,e.abrupt("return",s);case 9:throw e.prev=9,e.t0=e.catch(0),console.error("Error removing queued photo:",e.t0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}(),c=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){var i,a,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i=n,a={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=5,o.Z.post("".concat("https://bigbesos.com","/photo/edit_photo"),i,{headers:a});case 5:return s=e.sent,e.abrupt("return",s.data);case 9:throw e.prev=9,e.t0=e.catch(0),console.error("Error editing photo:",e.t0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}(),u=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){var i,a,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i={photos:n},a={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=5,o.Z.post("".concat("https://bigbesos.com","/photo/sort_queued_photo"),i,{headers:a});case 5:return s=e.sent,e.abrupt("return",s);case 9:throw e.prev=9,e.t0=e.catch(0),console.error("Error removing queued photo:",e.t0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}(),d=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t,n){var i,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i={photoId:t,isComingNext:n},"photo/updateComingNextPhoto",e.next=5,a.Z.post("photo/updateComingNextPhoto",i);case 5:return o=e.sent,e.abrupt("return",o);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}()},1514:function(e,t,n){"use strict";n.d(t,{co:function(){return u},OR:function(){return c},Vv:function(){return f},AW:function(){return d}});var r=n(4165),i=n(5861),o=n(4993),a=n(1413),s=function(e,t,n){return{url:"",ratio:t,kind:e,caption:n}},l={id:"drop-summer-2026",dropNumber:1,name:"Summer 2026 T\u2011Shirt",status:"active",windowOpenAt:"2026-06-01T00:00:00-04:00",windowCloseAt:"2026-06-30T23:59:59-04:00",shipEtaText:"approx. Jul 28",priceCents:2999,shippingLabel:"+ FLAT US SHIPPING",eyebrow:"SUMMER 2026 \xb7 DROP NO. 01",tagline:"For the ones who chase the light all summer.",colors:[{id:"navy",name:"Navy",hex:"#1F2A44",available:!0}
2,{id:"bone",name:"Bone",hex:"#E7E1D4",available:!0},{id:"olive",name:"Olive",hex:"#565A40",available:!0},{id:"black",name:"Black",hex:"#14151A",available:!0}],sizes:[{id:"s",label:"S",available:!0},{id:"m",label:"M",available:!0},{id:"l",label:"L",available:!0},{id:"xl",label:"XL",available:!0},{id:"xxl",label:"2XL",available:!0}],photos:[s("lifestyle","4:5","Navy, on a foggy morning"),s("on-model-front","4:5",null),s("on-model-back","4:5",null)],storyLead:"We made this one for the early risers - the people who are out before the coffee shops open because the light only does that thing for twenty minutes.",storyBody:"It's a mid\u2011weight, soft\u2011washed cotton tee in a navy that reads quiet, not loud. The print sits soft in the fabric, not stamped on top of it. We picked the fit, the weight, and the color to be the shirt you actually reach for, not the one that lives in a drawer. Designed in-house by the Big Photo Hunt team, for this summer only.",story:"This shirt is about the season we're in - the long evenings, the late light, the walks that turn into shoots. We wanted something a photographer would actually want to wear, not merch with a logo slapped on. Mid-weight cotton that gets better with washing. A print that sits soft in the fabric instead of on top of it. A design that's a quiet nod to the craft, not a billboard. If you've been on the Hunt this summer, this is your shirt for it.",storySignature:"\u2014 Ken",howItWorks:{intro:"Big Photo Hunt Shop is a seasonal drop - one new item each season, on sale for 30 days, then retired for good. This is summer's.",lines:["Order by [end date].","Production starts the day after the window closes.","Ships approximately [X weeks] after the window closes."],lockedLine:"Once it's gone, it's gone - no restocks, ever."},sizeGuide:{guidance:"Lay a shirt you love flat and measure across the chest, pit to pit. Body length is collar seam to bottom hem.",table:[{size:"S",chest:19,length:28},{size:"M",chest:20.5,length:29},{size:"L",chest:22,length:30},{size:"XL",chest:24,length:31},{size:"2XL",chest:26,length:32}],betweenSizes:"Between sizes? We recommend sizing up."},faq:[{q:"When will it ship?",a:"Production starts the day after the window closes on [date]. Your shirt ships about [X weeks] after that - we'll email you tracking the moment it's on its way."},{q:"Can I cancel my order?",a:"Yes - anytime before the window closes on [date], just email us and we'll refund you in full, no hassle. After that, we can't cancel: the run is committed and your shirt is being printed."},{q:"What if it doesn't fit?",a:"Check the size guide above before you order - it's got real measurements, so grab a shirt you love and compare. Because every shirt is made to order, we can't take fit returns. But if anything shows up damaged, misprinted, or just wrong, email us and we'll make it right."},{q:"Do you ship outside the US?",a:"Not yet - for now we ship within the US only. If that changes, the folks on our list will be the first to know."},{q:"Will you make this again next year?",a:"Nope. Every drop is a one-time print run. The Summer 2026 T-shirt only exists in the quantity ordered during this window. When the window closes, this design retires for good. That's the whole idea."},{q:"How is it printed, and what's the fabric?",a:"[Fabric - placeholder]. Printed with [method - placeholder] so the design sits soft in the fabric instead of on top of it. Built to be worn and washed for years."},{q:"Can I kiss you?",a:"Only if you're wearing the shirt. \ud83d\ude18"}]},c=((0,a.Z)((0,a.Z)({},l),{},{id:"drop-fall-2026",dropNumber:2,name:"Fall 2026 Hoodie",status:"closed",windowOpenAt:"2026-09-01T00:00:00-04:00",windowCloseAt:"2026-09-30T23:59:59-04:00",eyebrow:"FALL 2026 \xb7 DROP NO. 02",tagline:"For the cold-light months.",story:"The fall drop. Heavier weight for the shorter days. Thank you to everyone who pulled one on."}),(0,a.Z)((0,a.Z)({},l),{},{id:"drop-summer-2026-past",dropNumber:1,name:"Summer 2026 T\u2011shirt",status:"closed",windowOpenAt:"2026-06-01T00:00:00-04:00",windowCloseAt:"2026-06-30T23:59:59-04:00",eyebrow:"SUMMER 2026 \xb7 DROP NO. 01",tagline:"For the ones who chase the light all summer.",story:"Our first drop. The pilot. Thank y
2ou to everyone who took a chance on it."}),function(){var e=(0,i.Z)((0,r.Z)().mark((function e(){var t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null,e.next=3;break;case 3:return e.prev=3,e.next=6,o.Z.get("/shop/state");case 6:return t=e.sent,e.abrupt("return",t.data.data);case 10:throw e.prev=10,e.t0=e.catch(3),e.t0;case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}()),u=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=2;break;case 2:if(t){e.next=4;break}return e.abrupt("return",null);case 4:return e.prev=4,e.next=7,o.Z.get("/shop/order/".concat(encodeURIComponent(t)));case 7:return n=e.sent,e.abrupt("return",n.data.data);case 11:throw e.prev=11,e.t0=e.catch(4),e.t0;case 14:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(t){return e.apply(this,arguments)}}(),d=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,a,s,l=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=l.length>1&&void 0!==l[1]?l[1]:"",i=l.length>2&&void 0!==l[2]?l[2]:"",t&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)){e.next=6;break}throw(a=new Error("invalid_email")).code="invalid_email",a;case 6:return e.prev=6,e.next=9,o.Z.post("/shop/notify",{email:t,contact_url:n,form_elapsed_ms:i});case 9:return s=e.sent,e.abrupt("return",s.data.data);case 13:throw e.prev=13,e.t0=e.catch(6),e.t0;case 16:case"end":return e.stop()}}),e,null,[[6,13]])})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,a,s,l;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.dropId,i=t.size,a=t.color,s=t.qty,e.next=4;break;case 4:return e.next=6,o.Z.post("/shop/checkout-session",{dropId:n,size:i,color:a,qty:s});case 6:return l=e.sent,e.abrupt("return",l.data.data.id);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},3054:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(4165),i=n(1413),o=n(5861),a=n(1989),s=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t,n,o,s){var l,c,u;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l=(0,i.Z)({photoID:t,actionType:n},s&&!o&&{batchId:s}),c={Authorization:"Bearer ".concat(o),"Content-Type":"application/json"},e.next=5,a.Z.post("".concat("https://bigbesos.com","/vote/perform"),l,{headers:c});case 5:return u=e.sent,e.abrupt("return",u);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n,r,i){return e.apply(this,arguments)}}()},7818:function(e,t,n){"use strict";function r(e,t){if(e){var n=e.split(" ");if(n.length<=2)return e;var r=n[0],i=n[1],o=n[n.length-1];r.endsWith(",")&&(r=r.slice(0,-1));n[0].endsWith(",");i.endsWith(",")&&(i=i.slice(0,-1));var a="".concat(r," ").concat(i,", ").concat(o);return a.length<=t?a:a.slice(0,t)+"\u2026"}}n.d(t,{V:function(){return r}})},8067:function(e,t,n){"use strict";function r(e){var t=new Date-new Date(e),n=Math.floor(t/1e3);if(n<60)return"".concat(n,"s ago");if(n<3600){var r=Math.floor(n/60);return"".concat(r,"m ago")}if(n<86400){var i=Math.floor(n/3600);return"".concat(i,"h ago")}if(n<2592e3){var o=Math.floor(n/86400);return"".concat(o,"d ago")}if(n<31536e3){var a=Math.floor(n/2592e3);return"".concat(a,"mo ago")}var s=Math.floor(n/31536e3);return"".concat(s,"y ago")}n.d(t,{O:function(){return r}})},8040:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(4165),i=n(5861),o=function(e){return new Promise((function(t,n){var r=new Image;r.addEventListener("load",(function(){return t(r)})),r.addEventListener("error",(function(e){return n(e)})),r.setAttribute("crossOrigin","anonymous"),r.src=e}))};function a(e){return e*Math.PI/180}function s(e,t,n){var r=a(n);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function l(e,t){return c.apply(this,arguments)}function c(){return c=(0,i.Z)((0,r.Z)().mark((function e(t,n){var i,l,c,u,d,f,p,h,m,v,g=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=g.length>2&&void 0!==g[2]?g[2]:0,l=g.length>3&&void 0!==g[3]?g[3]:{horizontal:!1,vertical:!1},e.next=4,o(t);case 4:if(c=e.sent,u=document.createElement("canvas"),d=u.getContext("2d")){e.next=9;break}return e.abrupt("return",null);case 9:return f=a(i),p=s(c.width,c.height,i),h=p.width,m=p.height,u.width=h,u.height=m,d.translate(h/2,m/2),d.rotate(f),d.scale(l.horizontal?-1:1,l.vertical?-1:1),d.translate(-c.width/2,-c.height/2),d.drawImage(c,0,0),v=d.getImageData(n.x,n.y,n.width,n.height),u.width=n.width,u.height=n.height,d.putImageData(v,0,0),e.abrupt("return",new Promise((function(e,t){u.toBlob((function(t){t.name="cropped.jpeg",e({file:t,url:URL.createObjectURL(t)})}),"image/jpeg")})));case 23:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}},6617:function(e,t,n){"use strict";function r(e){if(e>=1e6){var t=(e/1e6).toFixed(1);return t.endsWith(".0")?t.slice(0,-2)+"M":t+"M"}if(e>=1e3){var n=(e/1e3).toFixed(1);return n.endsWith(".0")?n.slice(0,-2)+"K":n+"K"}return e.toString()}n.d(t,{J:function(){return r}})},4805:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(6112);function i(e){var t=(0,r.pV)(e);if(!t)return"";
2var n=t.toLocaleString("en-US",{month:"long",year:"numeric"}).substring(0,3);return"".concat(n," ").concat(t.getFullYear())}},7580:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var r=function(e,t){e.preventDefault();var n=document.querySelector(t);n&&n.scrollIntoView({behavior:"smooth"})}},4993:function(e,t,n){"use strict";var r=n(4165),i=n(5861),o=n(1989),a=n(4014),s=n(1467),l=o.Z.create({baseURL:"https://bigbesos.com",headers:{"Content-Type":"application/json"}});l.interceptors.request.use((function(e){var t=(0,s.IS)();if(!t){var n=localStorage.getItem("Data"),r=(0,a.a)(n);t=(null===r||void 0===r?void 0:r.token)||null}return t&&(e.headers.Authorization="Bearer ".concat(t)),e}));var c=!1;function u(e){c||(c=!0,alert(e),localStorage.removeItem("Data"),(0,s.Os)(),window.location.replace("/"),window.scrollTo(0,0))}l.interceptors.response.use((function(e){return e}),function(){var e=(0,i.Z)((0,r.Z)().mark((function e(t){var n,i,a,d,f;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.Z.isCancel||!o.Z.isCancel(t)){e.next=2;break}return e.abrupt("return",Promise.reject(t));case 2:if(i=t.response){e.next=5;break}return e.abrupt("return",Promise.reject(t));case 5:if("jwt expired"!==(a=null===(n=i.data)||void 0===n?void 0:n.message)){e.next=9;break}return u("Your session has expired. Please log in again."),e.abrupt("return",Promise.reject(t));case 9:if("Your Account is Blocked"!==a){e.next=12;break}return u("Your Account is Blocked"),e.abrupt("return",Promise.reject(t));case 12:if("User Profile is Blocked"!==a){e.next=15;break}return c||(c=!0,alert("User Profile is Blocked"),window.location.replace("/"),window.scrollTo(0,0)),e.abrupt("return",Promise.reject(t));case 15:if(d=t.config,401!==i.status||!d||d._retry||!(0,s.IS)()){e.next=35;break}if(d._retry=!0,(0,s.Os)(),!(0,s.IS)()){e.next=21;break}return e.abrupt("return",Promise.reject(t));case 21:if(!("undefined"!==typeof FormData&&d.data instanceof FormData)){e.next=24;break}return e.abrupt("return",Promise.reject(t));case 24:return d.headers&&delete d.headers.Authorization,e.prev=25,e.next=28,l(d);case 28:return e.abrupt("return",e.sent);case 31:return e.prev=31,e.t0=e.catch(25),401===(null===(f=e.t0.response)||void 0===f?void 0:f.status)&&u("Your session has expired. Please log in again."),e.abrupt("return",Promise.reject(e.t0));case 35:return e.abrupt("return",Promise.reject(t));case 36:case"end":return e.stop()}}),e,null,[[25,31]])})));return function(t){return e.apply(this,arguments)}}()),t.Z=l},315:function(e,t,n){"use strict";n.d(t,{i:function(){return o},z:function(){return i}});var r="bph_blur_adult",i=function(){return"off"!==function(e){try{return"undefined"!==typeof window&&window.localStorage?window.localStorage.getItem(e):null}catch(t){return null}}(r)},o=function(e){!function(e,t){try{return!("undefined"===typeof window||!window.localStorage)&&(window.localStorage.setItem(e,t),!0)}catch(n){return!1}}(r,!1===e?"off":"on")}},1467:function(e,t,n){"use strict";function r(){var e=window.location.hostname;return e.endsWith("bigphotohunt.com")?".bigphotohunt.com":e.endsWith("eldevbph1.bigphotohunt.com")?".eldevbph1.bigphotohunt.com":e.endsWith("elstagebph1.bigphotohunt.com")?".elstagebph1.bigphotohunt.com":e.endsWith("lvh.me")?".lvh.me":e.endsWith("nip.io")?".nip.io":e}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:604800,n=["bph_token=".concat(encodeURIComponent(e)),"Path=/","Domain=".concat(r()),"Max-Age=".concat(t),"SameSite=Lax"];"https:"===window.location.protocol&&n.push("Secure"),document.cookie=n.join("; ")}function o(){var e=document.cookie.split("; ").find((function(e){return e.startsWith("bph_token=")}));if(!e)return null;try{return decodeURIComponent(e.split("=")[1])}catch(t){return null}}function a(){var e=["bph_token=","Path=/","Domain=".concat(r()),"Max-Age=0","SameSite=Lax"];"https:"===window.location.protocol&&e.push("Secure"),document.cookie=e.join("; ")}n.d(t,{IS:function(){return o},Os:function(){return a},vn:function(){return i}})},5201:function(e,t,n){"use strict";n.d(t,{I:function(){return i}});var r=n(4014),i=function(){var e=(0,r.a)(localStorage.getItem("Data"))||{};return!!(e.isLoggedIn||e.userid||e.userId)}},7884:function(e,t,n){"use strict";n.d(t,{$Y:function(){return p},Us:function(){return f},VB:function(){return d},_7:function(){return m},dO:function(){return l},eT:function(){return h},of:function(){return g}});var r=n(1413),i=n(4767),o="bpbPendingAction",a=new Set(["view-profile","subnav","new-post","like-reply","report","following-filter","read-replies","deep-link"]),s={reply:"to reply","new-post":"to post","like-post":"to like","like-reply":"to like","follow-thread":"to follow","follow-user":"to follow","read-replies":"to read more"},l=function(e){return s[e]||""},c=function(){return"undefined"===typeof window?"/":window.location.pathname+window.location.search},u=function(e){if(!e)return"";var t=e.indexOf("?");return-1===t?e:e.slice(0,t)},d=function(e){if("undefined"!==typeof window&&e&&e.type)try{var t=(0,r.Z)((0,r.Z)({},e),{},{returnUrl:(0,i.Q)(e.returnUrl||c()),ts:Date.now()});localStorage.setItem(o,JSON.stringify(t))}catch(n){}},f=function(){if("undefined"===typeof window)return null;try{var e=localStorage.getItem(o);if(!e)return null;var t=JSON.parse(e);return!t||!t.type||"number"!==typeof t.ts||Date.now()-t.ts>6e5?(p(),null):t}catch(n){return p(),null}},p=function(){if("undefined"!==typeof window)try{localStorage.removeItem(o)}catch(e){}},h=function(e){var t=e.navigate,n=e.hasLegacyRedirect,r=void 0!==n&&n,i=f();if(!i)return!1;var o=!1;try{o=!!localStorage.getItem("source")}catch(s){o=!1}return o||r?(p(),!1):(t(i.returnUrl,{replace:!0}),a.has(i.type)&&p(),!0)},m=function(){var e=f();return e?a.has(e.type)||u(e.returnUrl)!==u(c())?null:e:null},v=new Set(["like-post","follow-thread","follow-user","reply","like-reply","report","following-filter","new-post","view-profile","subnav","read-replies"]),g=function(){var e=f();if(!e)return null;if(v.has(e.type))return"board";var t=u(e.returnUrl);return"/board"===t||t.startsWith("/board/")?"board":null}},2818:function(e,t,n){"use strict";n.d(t,{K:function(){return o},w:function(){return i}});var r="bpb:unseen-maybe-changed",i=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).clearedAll,t=void 0!==e&&e;"undefined"!==typeof window&&window.dispatchEvent(new CustomEvent(r,{detail:{clearedAll:t}}))},o=function(e){if("undefined"===typeof window)return function(){};var t=function(t){return e(t&&t.detail||{clearedAll:!1})};return window.addEventListener(r,t),function(){return window.removeEventListener(r,t)}}},4014:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(9704),i=function(e){var t={};if(e){var n=r.AES.decrypt(e,"siddiqui");try{t=JSON.parse(n.toString(r.enc.Utf8))}catch(i){console.error("Error parsing decrypted user data:",i)}}return t}},8268:function(e,t,n){"use strict";n.d(t,{CE:function(){return s},CJ:function(){return d},Kr:function(){return i},PU:function(){return o},Pf:function(){return m},W8:function(){return r},YC:function(){return c},bh:function(){return a},cx:function(){return g},dn:function(){return v},fr:function(){return h},oe:function(){return u},u$:function(){return p},vY:function(){return f}});var r=[{value:"Canon",displayText:"Canon"},{value:"Olympus",displayText:"Olympus"},{value:"Fuji",displayText:"Fuji"},{value:"Pentax",displayText:"Pentax"},{value:"Leica",displayText:"Leica"},{value:"Sony",displayText:"Sony"},{value:"Lumix",displayText:"Lumix"},{value:"Smartphone",displayText:"Smartphone"},{value:"Nikon",displayText:"Nikon"}
2,{value:"other",displayText:"Other"}],i=[{value:"A professional"},{value:"A hobbyist having fun"},{value:"I am still learning"},{value:"I post on social media only"},{value:"I just like to look"},{value:"I'm only here supporting a friend"}],o=[{value:"1"},{value:"2"},{value:"3"},{value:"4"},{value:"5"},{value:"6"},{value:"7"},{value:"8"},{value:"9"},{value:"10"}],a=[{value:"Discover Photographers"},{value:"Inspiration"},{value:"Exposure For My Photos"},{value:"Meet Other Photographers"},{value:"Get Feedback"},{value:"Something Else"},{value:"Grow My Social Media"},{value:"Tips From Others"},{value:"Improve My Photography"},{value:"Win Cool Stuff"}],s="Nude/Boudoir",l=function(e){return e.trim().toLowerCase().replace(/\s+/g,"")},c=function(e){return e&&"string"===typeof e?e.split(",").map((function(e){return function(e){if(!e||"string"!==typeof e)return e;var t=e.trim();return l(t)===l("Nude / Boudoir")?s:t}(e)})).filter((function(e){return""!==e})):[]},u=[{value:"Abstract",id:"Abstract1"},{value:"Aerial",id:"Aerial1"},{value:"Art",id:"Art1"},{value:"Astro",id:"Astro1"},{value:"Documentary",id:"Documentary1"},{value:"Drone",id:"Drone1"},{value:"Events",id:"Events1"},{value:"Food",id:"Food1"},{value:"Landscape",id:"Landscape1"},{value:"Nature",id:"Nature1"},{value:s,id:"NudeBoudoir1"},{value:"Portrait",id:"Portrait1"},{value:"Product",id:"Product1"},{value:"Sport",id:"Sport1"},{value:"Street",id:"Street1"},{value:"Travel",id:"Travel1"},{value:"Wildlife",id:"Wildlife1"},{value:"Other",id:"Other1"}],d=[].concat(u),f=[{value:"Balance",id:"Balance2"},{value:"Composition",id:"Composition2"},{value:"Color",id:"Color2"},{value:"Layering",id:"Layering2"},{value:"Light and Exposure",id:"Light and Exposure2"},{value:"Shadows",id:"Shadows2"},{value:"Story",id:"Story2"},{value:"Subject",id:"Subject2"},{value:"Technical Settings",id:"Technical Settings2"},{value:"The Edit",id:"The Edit2"}
2,{value:"General Feedback",id:"General Feedback2"},{value:"I am not looking for feedback",id:"I am not looking for feedback2"}],p=[{value:"A friend told me",id:"friend"},{value:"Blog or Publication",id:"Blog"},{value:"Newsletter",id:"Newsletter"},{value:"Podcast",id:"Podcast"},{value:"Search Engine",id:"Engine"},{value:"Instagram",id:"Social_Instagram"},{value:"Facebook",id:"Social_Facebook"},{value:"TikTok",id:"Social_TikTok"},{value:"Reddit",id:"Social_Reddit"},{value:"X",id:"Social_X"},{value:"Other social media",id:"Social_Other"},{value:"YouTube",id:"YouTube"},{value:"Something Else",id:"Something"}],h=[{value:"Abstract",id:"Abstract2"},{value:"AI",id:"AI2"},{value:"Animals",id:"Animals2"},{value:"Anticipation",id:"Anticipation2"},{value:"Architecture",id:"Architecture2"},{value:"Black & White",id:"BlackAndWhite2"},{value:"Camera Settings",id:"CameraSettings2"},{value:"Composition",id:"Composition2"},{value:"Editing",id:"Editing2"},{value:"Events",id:"Events2"},{value:"Exposure",id:"Exposure2"},{value:"Fast Shutter",id:"FastShutter2"},{value:"Film",id:"Film2"},{value:"Fstop",id:"Fstop2"},{value:"Getting Smiles",id:"GettingSmiles2"},{value:"Journalism",id:"Journalism2"},{value:"Landscape",id:"Landscape2"},{value:"Lighting",id:"Lighting2"},{value:"Macro",id:"Macro2"},{value:"Meeting People",id:"MeetingPeople2"},{value:"Nude",id:"Nude2"},{value:"Pets",id:"Pets2"},{value:"Portraits",id:"Portraits2"},{value:"Printing",id:"Printing2"},{value:"Product Photos",id:"ProductPhotos2"},{value:"Slow ISO",id:"SlowISO2"},{value:"Social Media",id:"SocialMedia2"},{value:"Storytelling",id:"Storytelling2"},{value:"Street",id:"Street2"},{value:"Teaching",id:"Teaching2"},{value:"Travel",id:"Travel2"},{value:"Underwater",id:"Underwater2"},{value:"Weddings",id:"Weddings2"},{value:"White Balance",id:"WhiteBalance2"}],m=[{value:"Collaboration",id:"Collaboration3"},{value:"Photowalks",id:"Photowalks3"},{value:"Travel",id:"Travel3"},{value:"Conversation",id:"Conversation3"},{value:"Friendship",id:"Friendship3"},{value:"Reviewing My Work",id:"ReviewingMyWork3"},{value:"Learning",id:"Learning3"},{value:"Networking",id:"Networking3"},{value:"Job Opportunities",id:"JobOpportunities3"},{value:"Dating/Romance",id:"DatingRomance3"},{value:"Sharing Experiences",id:"SharingExperiences3"},{value:"Sharing Gear",id:"SharingGear3"},{value:"Visiting Me",id:"VisitingMe3"},{value:"Grab Coffee",id:"GrabCoffee3"},{value:"Modeling",id:"Modeling3"},{value:"Visit Exhibits",id:"VisitExhibits3"}],v=[{lable:"Monday - 1st day",value:"Monday",id:"Monday1"},{lable:"Tuesday",value:"Tuesday",id:"Tuesday1"},{lable:"Wednesday",value:"Wednesday",id:"Wednesday1"},{lable:"Thursday",value:"Thursday",id:"Thursday1"},{lable:"Friday",value:"Friday",id:"Friday1"},{lable:"Saturday",value:"Saturday",id:"Saturday1"},{lable:"Sunday - 7th day",value:"Sunday",id:"Sunday1"}],g=[{value:"To \u201cRehunt\u201d my photos",id:0},{value:"To use \u201cComing Next\u201d feature",id:1},{value:"For Photo Review",id:2},{value:"To post photos in my profile gallery",id:3},{value:"To attend live events",id:4},{value:"To Watch recorded events",id:5},{value:"For the monthly giveaway",id:6},{value:"Other",id:7}]},6112:function(e,t,n){"use strict";n.d(t,{pV:function(){return l}});var r=n(9439),i=1826,o=2100,a=/^(\d{4})[:-](\d{1,2})[:-](\d{1,2})(?:[ T](\d{1,2}):(\d{1,2}):(\d{1,2})(?:\.\d+)?(Z|[+-]\d{2}:?\d{2})?)?$/,s=function(e){return String(e).padStart(2,"0")};function l(e){if(e instanceof Date)return Number.isNaN(e.getTime())?null:e;if("string"!==typeof e)return null;var t=e.trim();if(""===t)return null;var n=a.exec(t);if(!n){var l=new Date(t);return Number.isNaN(l.getTime())?null:l}var c=(0,r.Z)(n,8),u=c[1],d=c[2],f=c[3],p=c[4],h=void 0===p?"00":p,m=c[5],v=void 0===m?"00":m,g=c[6],y=void 0===g?"00":g,b=c[7],x=void 0===b?"":b,w=Number(u),k=Number(d),S=Number(f);if(w<i||w>o||k<1||k>12||S<1||S>31)return null;if(Number(h)>23||Number(v)>59||Number(y)>59)return null;var j=new Date(Date.UTC(w,k-1,S));if(j.getUTCFullYear()!==w||j.getUTCMonth()!==k-1||j.getUTCDate()!==S)return null;var C=new Date("".concat(u,"-").concat(s(d),"-").concat(s(f),"T").concat(s(h),":").concat(s(v),":").concat(s(y)).concat(x));return Number.isNaN(C.getTime())?null:C}},5817:function(e,t,n){"use strict";n.d(t,{T:function(){return r},w:function(){return i}});var r="true"===String("false").trim().toLowerCase(),i="true"===String("false").trim().toLowerCase()},6344:function(e,t,n){"use strict";n.d(t,{Lu:function(){return a},_S:function(){return o},sX:function(){return i}});var r={"ricoh imaging company, ltd.":"Ricoh",ricoh:"Ricoh","nikon corporation":"Nikon",nikon:"Nikon",sony:"Sony",fujifilm:"Fujifilm","fuji photo film co., ltd.":"Fujifilm",motorola:"Motorola","
2noritsu koki":"Noritsu","olympus corporation":"Olympus","olympus imaging corp.":"Olympus","olympus optical co.,ltd":"Olympus","leica camera ag":"Leica",leica:"Leica","hmd global":"Nokia","jk imaging, ltd.":"Kodak","eastman kodak company":"Kodak","kodak alaris, inc.":"Kodak",samsung:"Samsung",lge:"LG","lg electronics":"LG","autel robotics":"Autel",epson:"Epson","agfaphoto gmbh":"Agfa","pentax corporation":"Pentax",huawei:"Huawei",oppo:"Oppo","minolta co., ltd.":"Minolta",honor:"Honor",canon:"Canon",apple:"Apple",dji:"DJI",panasonic:"Panasonic"};function i(e){if(!e)return"-";var t=e.trim();return r[t.toLowerCase()]||t}function o(e){if(null===e||void 0===e||""===e)return"-";var t=String(e).replace(/\s*mm\s*/gi,"").trim(),n=parseFloat(t);if(isNaN(n))return String(e);var r=n%1===0?String(n):n.toFixed(1);return"".concat(r,"mm")}function a(e){return e?String(e).replace(/(\d+\.\d+)\s*mm/gi,(function(e,t){return"".concat(parseFloat(t).toFixed(1),"mm")})):"-"}},9021:function(e,t){"use strict";t.Z=function(e){if(!e)return"";var t=new Date(e),n=Math.max(1,Math.floor((Date.now()-t.getTime())/1e3));if(n<60)return"just now";var r=Math.floor(n/60);if(r<60)return"".concat(r,"m ago");var i=Math.floor(r/60);if(i<24)return"".concat(i,"h ago");var o=Math.floor(i/24);return o<7?"".concat(o,"d ago"):t.toLocaleDateString(void 0,{month:"short",day:"numeric"})}},6672:function(e,t,n){"use strict";n.d(t,{Bk:function(){return a},zr:function(){return o}});var r=["image/heic","image/heif","image/heic-sequence","image/heif-sequence"],i=[".heic",".heif"],o=function(e){if(!e)return!1;var t=(e.type||"").toLowerCase();if(r.includes(t))return!0;var n=(e.name||"").toLowerCase();return i.some((function(e){return n.endsWith(e)}))},a="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="320" height="240" viewBox="0 0 320 240"><rect width="320" height="240" fill="#EEF1F4"/><rect x="112" y="78" width="96" height="70" rx="8" fill="none" stroke="#8A98A6" stroke-width="4"/><circle cx="136" cy="102" r="8" fill="#8A98A6"/><path d="M120 148 L150 118 L170 138 L186 126 L198 148 Z" fill="#8A98A6"/><text x="160" y="184" font-family="Arial,Helvetica,sans-serif" font-size="19" font-weight="bold" fill="#54636F" text-anchor="middle">HEIC photo</text><text x="160" y="207" font-family="Arial,Helvetica,sans-serif" font-size="12" fill="#54636F" text-anchor="middle">Preview appears after upload</text></svg>'))},7687:function(e,t,n){"use strict";n.d(t,{A:function(){return o},L:function(){return i}});var r=function(e){return String(e).replace(/\\([!-/:-@[-`{-~])/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/`{1,3}([^`]*)`{1,3}/g,"$1").replace(/(\*\*|__)(.*?)\1/g,"$2").replace(/(\*|_)(.*?)\1/g,"$2").replace(/~~(.*?)~~/g,"$1").replace(/\*\*|__/g,"").replace(/^\s{0,3}#{1,6}\s+/gm,"").replace(/^\s{0,3}>\s?/gm,"").replace(/^\s{0,3}[-*+]\s+/gm,"").replace(/^\s{0,3}\d+\.\s+/gm,"").replace(/\\[ \t]*(?=\r?\n|$)/gm,"").replace(/\s+/g," ").trim()},i=function(e){if(!e)return"";var t=String(e),n=t.match(/^\s*#{1,6}[ \t]+.*(?:\r?\n|$)/);if(n){var i=r(t.slice(n[0].length));if(i)return i}return r(t)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:150,n=i(e);if(!n||n.length<=t)return n;var r=n.slice(0,t+1),o=r.lastIndexOf(" ");return(o>0?r.slice(0,o):r.slice(0,t)).trimEnd()+"\u2026"}},3583:function(e,t,n){"use strict";n.d(t,{$B:function(){return d},DO:function(){return p},TK:function(){return u},XE:function(){return h},j7:function(){return v},kk:function(){return f},um:function(){return m}});var r="bph_photo_review_token",i="bph_photo_review_last_photo_id",o="bph_photo_review_email",a=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,s=function(e){try{return"undefined"!==typeof window&&window.localStorage?window.localStorage.getItem(e):null}catch(t){return null}},l=function(e,t){try{return!("undefined"===typeof window||!window.localStorage)&&(window.localStorage.setItem(e,t),!0)}catch(n){return!1}},c=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,u=function(){var e=s(r);return e&&c.test(e)?e:null},d=function(e){"string"===typeof e&&c.test(e)&&l(r,e)},f=function(){var e=u();if(e)return e;var t="undefined"!==typeof window&&window.crypto&&"function"===typeof window.crypto.randomUUID?window.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.floor(16*Math.random());return("x"===e?t:3&t|8).toString(16)}));return d(t),t},p=function(e){"string"===typeof e&&e&&l(i,e)},h=function(){var e=s(o);return"string"===typeof e&&e.length<=254&&a.test(e)?e:null},m=function(e){if("string"===typeof e){var t=e.trim().toLowerCase();t.length<=254&&a.test(t)&&l(o,t)}},v=function(e){try{if("string"!==typeof e)return!1;var t=e.split(".");if(3!==t.length)return!1;var n=JSON.parse(window.atob(t[1].replace(/-/g,"+").replace(/_/g,"/")));return!(!n||"number"!==typeof n.exp)&&1e3*n.exp>Date.now()+3e4}catch(r){return!1}}},4610:function(e,t,n){"use strict";n.d(t,{m:function(){return i},w:function(){return o}});var r="bph_profile_photo_view",i=function(){return"grid"===function(e){try{return"undefined"!==typeof window&&window.localStorage?window.localStorage.getItem(e):null}catch(t){return null}}(r)?"grid":"feed"},o=function(e){"feed"!==e&&"grid"!==e||function(e,t){try{return!("undefined"===typeof window||!window.localStorage)&&(window.localStorage.setItem(e,t),!0)}catch(n){return!1}}(r,e)}},4767:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=["rt"],i=function(e){if("string"!==typeof e)return e;var t=e.indexOf("?");if(-1===t)return e;var n=e.slice(0,t),i=e.slice(t+1).split("&").filter((function(e){var t=e.indexOf("="),n=-1===t?e:e.slice(0,t);return!r.includes(n.toLowerCase())}));return i.length?"".concat(n,"?").concat(i.join("&")):n}},7062:function(e,t,n){"use strict";n.d(t,{AD:function(){return o},AH:function(){return a},Qt:function(){return s},aT:function(){return i},q8:function(){return r}});var r="https://bigphotohunt.com",i={title:"Big Photo Hunt - Growing Our Photography Together",description:"Big Photo Hunt is the world's friendliest photography community. Submit one photo a week, get upvoted by thousands of members, and see who lands in the Weekly Top Ten. Join free."}
2,o={"/":{title:"Big Photo Hunt | The Friendliest Photography Community",description:"Join the world's friendliest photography community. Post one photo a week, get feedback and upvotes from thousands of members, and land in the Weekly Top Ten."},"/topten":{title:"Weekly Photo Contest: The Top Ten | Big Photo Hunt",description:"See the ten most-upvoted photos from this week's photo contest. Members post one photo a week and vote for their favorites. Come see who made the Top Ten."},"/how-works":{title:"How the Weekly Photo Hunt Works | Big Photo Hunt",description:"Join free, post one photo a week, and get upvotes and feedback from photographers worldwide. Here are the simple steps to being part of Big Photo Hunt."},"/about":{title:"About Us: Why We Built This | Big Photo Hunt",description:"Big Photo Hunt is a friendly club for amateur and aspiring photographers, built by Ken so we can share photos, swap feedback, and grow our photography together."},"/new-members":{title:"A Photography Community for Beginners | Big Photo Hunt",description:"New to photography? Meet the newest members of Big Photo Hunt, a beginner-friendly community where every question is welcome and no one gatekeeps."},"/hunt-score":{title:"Your Hunt Score Explained | Big Photo Hunt",description:"Your Hunt Score tracks the upvotes your photos earn over time. See how you rank, how to grow your score, and what the end-of-year awards are all about."},"/monthly-townhall":{title:"Monthly Town Halls and Photo Reviews | Big Photo Hunt",description:"Join our monthly town hall and live photo reviews. Hang out with the community, watch real photo critiques, and pick up ideas to grow your photography."},"/previous-monthly-townhall":{title:"Past Town Halls and Photo Reviews | Big Photo Hunt",description:"Missed a live event? Catch up on past Big Photo Hunt town halls and photo reviews. Watch the recordings and see what the community talked through."},"/newyorkcity-photowalk":{title:"NYC Photowalk on September 19, 2026 | Big Photo Hunt",description:"Join Ken and Big Photo Hunters for a free, guided photowalk through New York City on September 19, 2026. Meet other photographers, swap stories, and capture great photos together."},"/previousgiveaways":{title:"Past Monthly Giveaways and Winners | Big Photo Hunt",description:"A look back at our monthly giveaways: the prizes and the members who won them. Each month, the Pro Members with the most upvotes take home something cool."},"/giveaway":{title:"Enter Our Monthly Photo Giveaway | Big Photo Hunt",description:"Every month, the Pro Members with the most upvotes win prizes. See what you can win this month and how to get in on the Big Photo Hunt giveaway."},"/new-giveaway":{title:"This Month's Photo Giveaway | Big Photo Hunt",description:"See this month's Big Photo Hunt giveaway. The ten Pro Members with the most total upvotes win. Here's the prize and how to join in the fun."},"/meet-terry":{title:"Meet Terry the Tarsier, Our Mascot | Big Photo Hunt",description:"Meet Terry the Tarsier, the wide-eyed mascot of Big Photo Hunt. Learn why a tiny primate with camera-like eyes is the face of our photography community."},"/invite-friend":{title:"Invite a Friend, Get Free Pro | Big Photo Hunt",description:"Invite your favorite people to Big Photo Hunt and you both get free Pro membership. Share your personal invite link and grow the community together."},"/feedback":{title:"How to Give and Receive Photography Feedback | Big Photo Hunt",description:"Practical tips for giving and receiving photography feedback, with real examples. Learn how constructive critique helps every photographer improve."},"/contact":{title:"Contact Us and Say Hello | Big Photo Hunt",description:"Have a question, an idea, or some feedback? Reach out to Big Photo Hunt by email or the chat bubble on any page. We would love to hear from you."},"/feature-request":{title:"Request a Feature or Report a Bug | Big Photo Hunt",description:"Want Big Photo Hunt to do something it can't yet, or spotted a bug? Tell us in one place. We're building this together, and we look at every request from our members.",noindex:!0},"/terms":{title:"Terms and Conditions | Big Photo Hunt",description:"The terms and conditions for using Big Photo Hunt. Please read these before joining our photography community, entering giveaways, or posting photos."},"/policy":{title:"Privacy Policy | Big Photo Hunt",description:"How Big Photo Hunt handles your information and keeps it safe. Read our privacy policy to understand what we collect and how we use it."},"/pierretlambert-course":{title:"The Photo Course Ken Recommends | Big Photo Hunt",description:"Ken's favorite photography course is not his own. See why he recommends Pierre Lambert's 30 Days To Great Photos, plus a 25% discount for members."},"/board":{title:"The Big Photo Board Community | Big Photo Hunt",description:"The Big Photo Board is where our photography community talks between hunts. Ask questions, share photos, get feedback, and connect with photographers."},"/comment-invite":{title:"A Photo for Your Comment | Big Photo Hunt",description:"Someone in the Big Photo Hunt community is waiting on a comment, and we think you are the right person for this one. Take a look and say what you see.",noindex:!0}},a=function(e){if(!e)return"/";for(var t=String(e).toLowerCase();t.length>1&&t.endsWith("/");)t=t.slice(0,-1);return t||"/"},s=function(e){return"/"===e?r+"/":r+e}},3452:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();if(!e)return"closed";var n=e.windowOpenAt?Date.parse(e.windowOpenAt):null,r=e.windowCloseAt?Date.parse(e.windowCloseAt):null;return Number.isNaN(n)||Number.isNaN(r)?e.status||"closed":n&&t<n?"upcoming":r&&t>=r?"closed":"active"}}
2,7482:function(e,t,n){"use strict";function r(e){var t=1,n=0,r=0,i=1,o=e;do{var a=Math.floor(o),s=t;t=a*t+n,n=s;var l=r;r=a*r+i,i=l,o=1/(o-a)}while(Math.abs(e-t/r)>1e-6*e);return"".concat(t,"/").concat(r)}n.d(t,{e:function(){return r}})},262:function(e,t,n){"use strict";n.d(t,{Q:function(){return o}});var r={facebook:{base:"https://www.facebook.com/",hosts:["facebook.com","www.facebook.com","m.facebook.com","web.facebook.com","fb.com","www.fb.com"],handle:/^(?=.*[A-Za-z0-9])[A-Za-z0-9.]+$/},instagram:{base:"https://www.instagram.com/",hosts:["instagram.com","www.instagram.com"],handle:/^(?=.*[A-Za-z0-9])[A-Za-z0-9._]{1,30}$/},twitter:{base:"https://twitter.com/",hosts:["twitter.com","www.twitter.com","mobile.twitter.com","x.com","www.x.com"],handle:/^(?=.*[A-Za-z0-9])[A-Za-z0-9_]{1,15}$/}};function i(e,t){var n=r[t];if(!n||"string"!==typeof e)return null;var i=e.trim();if(!i)return null;var o=i.toLowerCase(),a=/^[a-z][a-z0-9+.-]*:\/\//i.test(i),s=i;if(a||0===o.indexOf("www.")||n.hosts.some((function(e){return o===e||0===o.indexOf(e+"/")}))){var l;try{l=new URL(a?i:"https://".concat(i))}catch(f){return null}if("http:"!==l.protocol&&"https:"!==l.protocol)return null;if(-1===n.hosts.indexOf(l.hostname.toLowerCase()))return null;if("facebook"===t){var c=function(e,t){if(!/^\/?profile\.php$/i.test(e))return null;var n=new URLSearchParams(t).get("id");return n&&/^\d+$/.test(n)?n:null}(l.pathname,l.search);if(c)return"".concat(n.base,"profile.php?id=").concat(c)}var u=l.pathname.replace(/^\/+/,"").split("/")[0]||"";try{u=decodeURIComponent(u)}catch(f){}s=u}if(s=s.replace(/^@+/,""),"facebook"===t){var d=s.match(/^profile\.php\?id=(\d+)$/i);if(d)return"".concat(n.base,"profile.php?id=").concat(d[1])}return s&&n.handle.test(s)?"".concat(n.base).concat(s):null}function o(e,t){return"website"===e?function(e){if("string"!==typeof e)return null;var t=e.trim();if(!t||/\s/.test(t))return null;var n,r=/^[a-z][a-z0-9+.-]*:\/\//i.test(t);try{n=new URL(r?t:"https://".concat(t))}catch(i){return null}return"http:"!==n.protocol&&"https:"!==n.protocol?null:n.hostname&&-1!==n.hostname.indexOf(".")?n.href:null}(t):i(t,e)}},6266:function(e,t,n){"use strict";n.d(t,{ES:function(){return s},GT:function(){return o}});var r,i=n(4014),o="Data",a="",s=function(){var e;try{e="undefined"!==typeof window&&window.localStorage?window.localStorage.getItem(o):null}catch(s){return""}if(e===r)return a;var t="";try{var n=(0,i.a)(e)||{};t=n.userid||n.userId||""}catch(s){t=""}return r=e,a=t}},9667:function(e,t,n){var r;!function(i,o){"use strict";var a="function",s="undefined",l="object",c="string",u="model",d="name",f="type",p="vendor",h="version",m="architecture",v="console",g="mobile",y="tablet",b="smarttv",x="wearable",w="embedded",k="Amazon",S="Apple",j="ASUS",C="BlackBerry",_="Browser",E="Chrome",N="Firefox",A="Google",D="Huawei",T="LG",I="Microsoft",P="Motorola",F="Opera",O="Samsung",M="Sharp",Z="Sony",R="Xiaomi",L="Zebra",B="Facebook",z=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},U=function(e,t){return typeof e===c&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},W=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,350)},q=function(e,t){for(var n,r,i,s,c,u,d=0;d<t.length&&!c;){var f=t[d],p=t[d+1];for(n=r=0;n<f.length&&!c;)if(c=f[n++].exec(e))for(i=0;i<p.length;i++)u=c[++r],typeof(s=p[i])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):o:this[s[0]]=u?s[1].call(this,u,s[2]):o:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):o):this[s]=u||o;d+=2}},V=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(U(t[n][r],e))return"?"===n?o:n}else if(U(t[n],e))return"?"===n?o:n;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,h],[/opios[\/ ]+([\w\.]+)/i],[h,[d,F+" Mini"]],[/\bopr\/([\w\.]+)/i],[h,[d,F]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[d,"UC"+_]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[h,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[h,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[h,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+_],h],[/\bfocus\/([\w\.]+)/i],[h,[d,N+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[d,F+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[d,F+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[d,"MIUI "+_]],[/fxios\/([-\w\.]+)/i],[h,[d,N]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+_]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+_],h],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,B],h],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[d,E+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,E+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[d,"Android "+_]],[/(chrome|omniweb|arora|[t
vendor: 4,844 bytes, line 2
2izenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[h,V,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[d,N+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,h],[/(cobalt)\/([\w\.]+)/i],[d,[h,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,H]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[p,O],[f,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[p,O],[f,g]],[/((ipod|iphone)\d+,\d+)/i],[u,[p,S],[f,g]],[/(ipad\d+,\d+)/i],[u,[p,S],[f,y]],[/\((ip(?:hone|od)[\w ]*);/i],[u,[p,S],[f,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[p,S],[f,y]],[/(macintosh);/i],[u,[p,S]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[p,D],[f,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[p,D],[f,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[p,R],[f,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[p,R],[f,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[p,"OPPO"],[f,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[p,"Vivo"],[f,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[p,"Realme"],[f,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[p,P],[f,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[p,P],[f,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[p,T],[f,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[p,T],[f,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[p,"Lenovo"],[f,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[p,"Nokia"],[f,g]],[/(pixel c)\b/i],[u,[p,A],[f,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[p,A],[f,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[p,Z],[f,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[p,Z],[f,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[p,"OnePlus"],[f,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[p,k],[f,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[p,k],[f,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,p,[f,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[p,C],[f,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[p,j],[f,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[p,j],[f,g]],[/(nexus 9)/i],[u,[p,"HTC"],[f,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[u,/_/g," "],[f,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[p,"Acer"],[f,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[p,"Meizu"],[f,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[p,M],[f,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 4,378 bytes, line 2
2s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,u,[f,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,u,[f,y]],[/(surface duo)/i],[u,[p,I],[f,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[p,"Fairphone"],[f,g]],[/(u304aa)/i],[u,[p,"AT&T"],[f,g]],[/\bsie-(\w*)/i],[u,[p,"Siemens"],[f,g]],[/\b(rct\w+) b/i],[u,[p,"RCA"],[f,y]],[/\b(venue[\d ]{2,7}) b/i],[u,[p,"Dell"],[f,y]],[/\b(q(?:mv|ta)\w+) b/i],[u,[p,"Verizon"],[f,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[p,"Barnes & Noble"],[f,y]],[/\b(tm\d{3}\w+) b/i],[u,[p,"NuVision"],[f,y]],[/\b(k88) b/i],[u,[p,"ZTE"],[f,y]],[/\b(nx\d{3}j) b/i],[u,[p,"ZTE"],[f,g]],[/\b(gen\d{3}) b.+49h/i],[u,[p,"Swiss"],[f,g]],[/\b(zur\d{3}) b/i],[u,[p,"Swiss"],[f,y]],[/\b((zeki)?tb.*\b) b/i],[u,[p,"Zeki"],[f,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],u,[f,y]],[/\b(ns-?\w{0,9}) b/i],[u,[p,"Insignia"],[f,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[p,"NextBook"],[f,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],u,[f,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],u,[f,g]],[/\b(ph-1) /i],[u,[p,"Essential"],[f,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[p,"Envizen"],[f,y]],[/\b(trio[-\w\. ]+) b/i],[u,[p,"MachSpeed"],[f,y]],[/\btu_(1491) b/i],[u,[p,"Rotor"],[f,y]],[/(shield[\w ]+) b/i],[u,[p,"Nvidia"],[f,y]],[/(sprint) (\w+)/i],[p,u,[f,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[p,I],[f,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[p,L],[f,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[p,L],[f,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,u,[f,v]],[/droid.+; (shield) bui/i],[u,[p,"Nvidia"],[f,v]],[/(playstation [345portablevi]+)/i],[u,[p,Z],[f,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[p,I],[f,v]],[/smart-tv.+(samsung)/i],[p,[f,b]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[p,O],[f,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,T],[f,b]],[/(apple) ?tv/i],[p,[u,S+" TV"],[f,b]],[/crkey/i],[[u,E+"cast"],[p,A],[f,b]],[/droid.+aft(\w)( bui|\))/i],[u,[p,k],[f,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[p,M],[f,b]],[/(bravia[\w ]+)( bui|\))/i],[u,[p,Z],[f,b]],[/(mitv-\w{5}) bui/i],[u,[p,R],[f,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[p,W],[u,W],[f,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,b]],[/((pebble))app/i],[p,u,[f,x]],[/droid.+; (glass) \d/i],[u,[p,A],[f,x]],[/droid.+; (wt63?0{2,3})\)/i],[u,[p,L],[f,x]],[/(quest( 2)?)/i],[u,[p,B],[f,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[f,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[f,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[f,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,g]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[d,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[h,V,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[h,V,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,h],[/\(bb(10);/i],[h,[d,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+);
2 rv:.+ gecko\/([\w\.]+)/i],[h,[d,N+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[h,[d,E+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],h],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,h],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,h]]},J=function e(t,n){if(typeof t===l&&(n=t,t=o),!(this instanceof e))return new e(t,n).getResult();var r=t||(typeof i!==s&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),a=n?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}($,n):$;return this.getBrowser=function(){var e,t={};return t[d]=o,t[h]=o,q.call(t,r,a.browser),t.major=typeof(e=t.version)===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o,t},this.getCPU=function(){var e={};return e[m]=o,q.call(e,r,a.cpu),e},this.getDevice=function(){var e={};return e[p]=o,e[u]=o,e[f]=o,q.call(e,r,a.device),e},this.getEngine=function(){var e={};return e[d]=o,e[h]=o,q.call(e,r,a.engine),e},this.getOS=function(){var e={};return e[d]=o,e[h]=o,q.call(e,r,a.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>350?W(e,350):e,this},this.setUA(r),this};J.VERSION="0.7.33",J.BROWSER=z([d,h,"major"]),J.CPU=z([m]),J.DEVICE=z([u,p,f,v,g,b,y,x,w]),J.ENGINE=J.OS=z([d,h]),typeof t!==s?(e.exports&&(t=e.exports=J),t.UAParser=J):n.amdO?(r=function(){return J}.call(t,n,t,e))===o||(e.exports=r):typeof i!==s&&(i.UAParser=J);var K=typeof i!==s&&(i.jQuery||i.Zepto);if(K&&!K.ua){var Y=new J;K.ua=Y.getResult(),K.ua.get=function(){return Y.getUA()},K.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var n in t)K.ua[n]=t[n]}}}("object"===typeof window?window:this)},9829:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return!!e&&!!e[G]}function o(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===$}(e)||Array.isArray(e)||!!e[V]||!!(null===(t=e.constructor)||void 0===t?void 0:t[V])||f(e)||p(e))}function a(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:J)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function s(e){var t=e[G];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:f(e)?2:p(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===s(e)?e.get(t):e[t]}function u(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e){return U&&e instanceof Map}function p(e){return H&&e instanceof Set}function h(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[G];for(var n=J(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function v(e,t){return void 0===t&&(t=!1),y(e)||i(e)||!o(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,(function(e,t){return v(t,!0)}),!0)),e}function g(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=Y[e];return t||r(18,e),t}function x(e,t){Y[e]||(Y[e]=t)}function w(){return B}function k(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function S(e){j(e),e.p.forEach(_),e.p=null}function j(e){e===B&&(B=e.l)}function C(e){return B={p:[],l:B,h:e,m:!0,_:0}}function _(e){var t=e[G];0===t.i||1===t.i?t.j():t.g=!0}function E(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.O||b("ES5").S(t,e,i),i?(n[G].P&&(S(t),r(4)),o(e)&&(e=N(t,e),t.l||D(t,e)),t.u&&b("Patches").M(n[G].t,e,t.u,t.s)):e=N(t,n,[]),S(t),t.u&&t.v(t.u,t.s),e!==q?e:void 0}function N(e,t,n){if(y(t))return t;var r=t[G];if(!r)return a(t,(function(i,o){return A(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return D(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=m(r.k):r.o,o=i,s=!1;3===r.i&&(o=new Set(i),i.clear(),s=!0),a(o,(function(t,o){return A(e,r,i,t,o,n,s)})),D(e,i,!1),n&&e.u&&b("Patches").N(r,n,e.u,e.s)}return r.o}function A(e,t,n,r,a,s,c){if(i(a)){var d=N(e,a,s&&t&&3!==t.i&&!l(t.R,r)?s.concat(r):void 0);if(u(n,r,d),!i(d))return;e.m=!1}else c&&n.add(a);if(o(a)&&!y(a)){if(!e.h.D&&e._<1)return;N(e,a),t&&t.A.l||D(e,a)}}function D(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&v(t,n)}function T(e,t){var n=e[G];return(n?h(n):e)[t]}function I(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function P(e){e.P||(e.P=!0,e.l&&P(e.l))}function F(e){e.o||(e.o=m(e.t))}function O(e,t,n){var r=f(t)?b("MapSet").F(t,n):p(t)?b("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:w(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=X;
vendor: 5,882 bytes, line 2
2n&&(i=[r],o=Q);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):b("ES5").J(t,n);return(n?n.A:w()).p.push(r),r}function M(e){return i(e)||r(22,e),function e(t){if(!o(t))return t;var n,r=t[G],i=s(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=Z(t,i),r.I=!1}else n=Z(t,i);return a(n,(function(t,i){r&&c(r.t,t)===i||u(n,t,e(i))})),3===i?new Set(n):n}(e)}function Z(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}function R(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[G];return X.get(t,e)},set:function(t){var n=this[G];X.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][G];if(!i.P)switch(i.i){case 5:r(i)&&P(i);break;case 4:n(i)&&P(i)}}}function n(e){for(var t=e.t,n=e.k,r=J(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==G){var a=t[o];if(void 0===a&&!l(t,o))return!0;var s=n[o],c=s&&s[G];if(c?c.t!==a:!d(s,a))return!0}}var u=!!t[G];return r.length!==J(t).length+(u?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o={};x("ES5",{J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,e(i,!0));return r}var o=K(n);delete o[G];for(var a=J(o),s=0;s<a.length;s++){var l=a[s];o[l]=e(l,t||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,t),o={i:r?5:4,A:n?n.A:w(),P:!1,I:!1,R:{},l:n,t:t,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,G,{value:o,writable:!0}),i},S:function(e,n,o){o?i(n)&&n[G].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[G];if(n){var i=n.t,o=n.k,s=n.R,c=n.i;if(4===c)a(o,(function(t){t!==G&&(void 0!==i[t]||l(i,t)?s[t]||e(o[t]):(s[t]=!0,P(n)))})),a(i,(function(e){void 0!==o[e]||l(o,e)||(s[e]=!1,P(n))}));else if(5===c){if(r(n)&&(P(n),s.length=!0),o.length<i.length)for(var u=o.length;u<i.length;u++)s[u]=!1;else for(var d=i.length;d<o.length;d++)s[d]=!0;for(var f=Math.min(o.length,i.length),p=0;p<f;p++)o.hasOwnProperty(p)||(s[p]=!0),void 0===s[p]&&e(o[p])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}n.d(t,{xC:function(){return Ze},oM:function(){return Be}});var L,B,z="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),U="undefined"!=typeof Map,H="undefined"!=typeof Set,W="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,q=z?Symbol.for("immer-nothing"):((L={})["immer-nothing"]=!0,L),V=z?Symbol.for("immer-draftable"):"__$immer_draftable",G=z?Symbol.for("immer-state"):"__$immer_state",$=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),J="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,K=Object.getOwnPropertyDescriptors||function(e){var t={};return J(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Y={},X={get:function(e,t){if(t===G)return e;var n=h(e);if(!l(n,t))return function(e,t,n){var r,i=I(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!o(r)?r:r===T(e.t,t)?(F(e),e.o[t]=O(e.A.h,r,e)):r},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var r=I(h(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=T(h(e),t),o=null==i?void 0:i[G];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(d(n,i)&&(void 0!==n||l(e.t,t)))return!0;F(e),P(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==T(e.t,t)||t in e.t?(e.R[t]=!1,F(e),P(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Q={};a(X,(function(e,t){Q[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Q.deleteProperty=function(e,t){return Q.set.call(this,e,t,void 0)},Q.set=function(e,t,n){return X.set.call(this,e[0],t,n,e[0])};var ee=function(){function e(e){var t=this;this.O=W,this.D=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return s.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var l;if("function"!=typeof n&&r(6),void 0!==i&&"function"!=typeof i&&r(7),o(e)){var c=C(t),u=O(t,e,void 0),d=!0;try{l=n(u),d=!1}finally{d?S(c):j(c)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then((function(e){return k(c,i),E(e,c)}),(function(e){throw S(c),e})):(k(c,i),E(l,c))}if(!e||"object"!=typeof e){if(void 0===(l=n(e))&&(l=e),l===q&&(l=void 0),t.D&&v(l,!0),i){var f=[],p=[];b("Patches").M(e,l,f,p),i(f,p)}return l}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))};var r,i,o=t.produce(e,n,(function(e,t){r=e,i=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,r,i]})):[o,r,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}
2var t=e.prototype;return t.createDraft=function(e){o(e)||r(8),i(e)&&(e=M(e));var t=C(this),n=O(this,e,void 0);return n[G].C=!0,j(t),n},t.finishDraft=function(e,t){var n=(e&&e[G]).A;return k(n,t),E(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!W&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=b("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),te=new ee,ne=te.produce,re=(te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te),ne),ie=n(1413);function oe(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ae="function"===typeof Symbol&&Symbol.observable||"@@observable",se=function(){return Math.random().toString(36).substring(7).split("").join(".")},le={INIT:"@@redux/INIT"+se(),REPLACE:"@@redux/REPLACE"+se(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+se()}};function ce(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ue(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(oe(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(oe(1));return n(ue)(e,t)}if("function"!==typeof e)throw new Error(oe(2));var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(oe(3));return o}function d(e){if("function"!==typeof e)throw new Error(oe(4));if(l)throw new Error(oe(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(oe(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!ce(e))throw new Error(oe(7));if("undefined"===typeof e.type)throw new Error(oe(8));if(l)throw new Error(oe(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:le.INIT}),(r={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(oe(10));i=e,f({type:le.REPLACE})}})[ae]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(oe(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[ae]=function(){return this},e},r}function de(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:le.INIT}))throw new Error(oe(12));if("undefined"===typeof n(void 0,{type:le.PROBE_UNKNOWN_ACTION()}))throw new Error(oe(13))}))}(n)}catch(s){o=s}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(oe(14))}i[l]=d,r=r||d!==u}return(r=r||a.length!==Object.keys(e).length)?i:e}}function fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function pe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(oe(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return r=fe.apply(void 0,o)(n.dispatch),(0,ie.Z)((0,ie.Z)({},n),{},{dispatch:r})}}}function he(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"===typeof i?i(n,r,e):t(i)}}}}var me=he();me.withExtraArgument=he;var ve=me,ge=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ye=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
2function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},be=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},xe=Object.defineProperty,we=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,_e=function(e,t,n){return t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ee=function(e,t){for(var n in t||(t={}))je.call(t,n)&&_e(e,n,t[n]);if(Se)for(var r=0,i=Se(t);r<i.length;r++){n=i[r];Ce.call(t,n)&&_e(e,n,t[n])}return e},Ne=function(e,t){return we(e,ke(t))},Ae=function(e,t,n){return new Promise((function(r,i){var o=function(e){try{s(n.next(e))}catch(t){i(t)}},a=function(e){try{s(n.throw(e))}catch(t){i(t)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(o,a)};s((n=n.apply(e,t)).next())}))},De="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?fe:fe.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Te(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}var Ie=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return ge(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,be([void 0],e[0].concat(this)))):new(t.bind.apply(t,be([void 0],e.concat(this))))},t}(Array),Pe=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return ge(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,be([void 0],e[0].concat(this)))):new(t.bind.apply(t,be([void 0],e.concat(this))))},t}(Array);function Fe(e){return o(e)?re(e,(function(){})):e}function Oe(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,new Ie);n&&(!function(e){return"boolean"===typeof e}(n)?r.push(ve.withExtraArgument(n.extraArgument)):r.push(ve));0;return r}(e)}}var Me=!0;function Ze(e){var t,n=Oe(),r=e||{},i=r.reducer,o=void 0===i?void 0:i,a=r.middleware,s=void 0===a?n():a,l=r.devTools,c=void 0===l||l,u=r.preloadedState,d=void 0===u?void 0:u,f=r.enhancers,p=void 0===f?void 0:f;if("function"===typeof o)t=o;else{if(!Te(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=de(o)}var h=s;if("function"===typeof h&&(h=h(n),!Me&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");
2if(!Me&&h.some((function(e){return"function"!==typeof e})))throw new Error("each middleware provided to configureStore must be a function");var m=pe.apply(void 0,h),v=fe;c&&(v=De(Ee({trace:!Me},"object"===typeof c&&c)));var g=new Pe(m),y=g;return Array.isArray(p)?y=be([m],p):"function"===typeof p&&(y=p(g)),ue(t,d,v.apply(void 0,y))}function Re(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ee(Ee({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function Le(e){var t,n={},r=[],i={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,i},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return t=e,i}};return e(i),[n,r,t]}function Be(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:Fe(e.initialState),a=e.reducers||{},s=Object.keys(a),l={},c={},u={};function d(){var t="function"===typeof e.extraReducers?Le(e.extraReducers):[e.extraReducers],n=t[0],a=void 0===n?{}:n,s=t[1],l=void 0===s?[]:s,u=t[2],d=void 0===u?void 0:u,f=Ee(Ee({},a),c);return function(e,t,n,r){void 0===n&&(n=[]);var a,s="function"===typeof t?Le(t):[t,n,r],l=s[0],c=s[1],u=s[2];if(function(e){return"function"===typeof e}(e))a=function(){return Fe(e())};else{var d=Fe(e);a=function(){return d}}function f(e,t){void 0===e&&(e=a());var n=be([l[t.type]],c.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[u]),n.reduce((function(e,n){if(n){var r;if(i(e))return void 0===(r=n(e,t))?e:r;if(o(e))return re(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return f.getInitialState=a,f}(r,(function(e){for(var t in f)e.addCase(t,f[t]);for(var n=0,r=l;n<r.length;n++){var i=r[n];e.addMatcher(i.matcher,i.reducer)}d&&e.addDefaultCase(d)}))}return s.forEach((function(e){var n,r,i=a[e],o=t+"/"+e;"reducer"in i?(n=i.reducer,r=i.prepare):n=i,l[e]=n,c[o]=n,u[e]=r?Re(o,r):Re(o)})),{name:t,reducer:function(e,t){return n||(n=d()),n(e,t)},actions:u,caseReducers:l,getInitialState:function(){return n||(n=d()),n.getInitialState()}}}var ze=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Ue=["name","message","stack","code"],He=function(e,t){this.payload=e,this.meta=t},We=function(e,t){this.payload=e,this.meta=t},qe=function(e){if("object"===typeof e&&null!==e){for(var t={},n=0,r=Ue;n<r.length;n++){var i=r[n];"string"===typeof e[i]&&(t[i]=e[i])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=Re(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:Ne(Ee({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),i=Re(e+"/pending",(function(e,t,n){return{payload:void 0,meta:Ne(Ee({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),o=Re(e+"/rejected",(function(e,t,r,i,o){return{payload:i,error:(n&&n.serializeError||qe)(e||"Rejected"),meta:Ne(Ee({},o||{}),{arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),a="undefined"!==typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(s,l,c){var u,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):ze(),f=new a;function p(e){u=e,f.abort()}var h=function(){return Ae(this,null,(function(){var a,h,m,v,g,y;return ye(this,(function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),v=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:l,extra:c}),null===(x=v)||"object"!==typeof x||"function"!==typeof x.then?[3,2]:[4,v];case 1:v=b.sent(),b.label=2;case 2:if(!1===v||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return!0,g=new Promise((function(e,t){return f.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:u||"Aborted"})}))})),s(i(d,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:d,arg:e},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(t(e,{dispatch:s,getState:l,extra:c,requestId:d,signal:f.
2signal,abort:p,rejectWithValue:function(e,t){return new He(e,t)},fulfillWithValue:function(e,t){return new We(e,t)}})).then((function(t){if(t instanceof He)throw t;return t instanceof We?r(t.payload,d,e,t.meta):r(t,d,e)}))])];case 3:return m=b.sent(),[3,5];case 4:return y=b.sent(),m=y instanceof He?o(null,d,e,y.payload,y.meta):o(y,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&o.match(m)&&m.meta.condition||s(m),[2,m]}var x}))}))}();return Object.assign(h,{abort:p,requestId:d,arg:e,unwrap:function(){return h.then(Ve)}})}}),{pending:i,rejected:o,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function Ve(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var Ge="listenerMiddleware";Re(Ge+"/add"),Re(Ge+"/removeAll"),Re(Ge+"/remove");"function"===typeof queueMicrotask&&queueMicrotask.bind("undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:globalThis);var $e,Je=function(e){return function(t){setTimeout(t,e)}};"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Je(10);R()},8278:function(e,t,n){"use strict";n.d(t,{Ep:function(){return w},J0:function(){return g},RQ:function(){return U},WK:function(){return G},X3:function(){return V},Zn:function(){return R},Zq:function(){return B},aU:function(){return r},cP:function(){return k},fp:function(){return j},lX:function(){return v},pC:function(){return z}});var r,i=n(3144),o=n(5671),a=n(136),s=n(9388),l=n(8737),c=n(9439),u=n(4506),d=n(7762),f=n(3433);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));var h,m="popstate";function v(e){return void 0===e&&(e={}),S((function(e,t){var n=e.location;return x("",{pathname:n.pathname,search:n.search,hash:n.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:w(t)}),null,e)}function g(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function y(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function b(e,t){return{usr:e.state,key:e.key,idx:t}}function x(e,t,n,r){return void 0===n&&(n=null),p({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?k(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function w(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,o=e.hash,a=void 0===o?"":o;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function k(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function S(e,t,n,i){void 0===i&&(i={});var o=i,a=o.window,s=void 0===a?document.defaultView:a,l=o.v5Compat,c=void 0!==l&&l,u=s.history,d=r.Pop,f=null,h=v();function v(){return(u.state||{idx:null}).idx}function y(){d=r.Pop;var e=v(),t=null==e?null:e-h;h=e,f&&f({action:d,location:S.location,delta:t})}function k(e){var t="null"!==s.location.origin?s.location.origin:s.location.href,n="string"===typeof e?e:w(e);return g(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==h&&(h=0,u.replaceState(p({},u.state,{idx:h}),""));var S={get action(){return d},get location(){return e(s,u)},listen:function(e){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(m,y),f=e,function(){s.removeEventListener(m,y),f=null}},createHref:function(e){return t(s,e)},createURL:k,encodeLocation:function(e){var t=k(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){d=r.Push;var i=x(S.location,e,t);n&&n(i,e);var o=b(i,h=v()+1),a=S.createHref(i);try{u.pushState(o,"",a)}catch(l){s.location.assign(a)}c&&f&&f({action:d,location:S.location,delta:1})},replace:function(e,t){d=r.Replace;var i=x(S.location,e,t);n&&n(i,e);var o=b(i,h=v()),a=S.createHref(i);u.replaceState(o,"",a),c&&f&&f({action:d,location:S.location,delta:0})},go:function(e){return u.go(e)}};return S}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));
2new Set(["lazy","caseSensitive","path","id","index","children"]);function j(e,t,n){void 0===n&&(n="/");var r=R(("string"===typeof t?k(t):t).pathname||"/",n);if(null==r)return null;var i=C(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var o=null,a=0;null==o&&a<i.length;++a)o=O(i[a],Z(r));return o}function C(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");var i=function(e,i,o){var a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(g(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));var s=U([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(g(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),C(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:F(s,e.index),routesMeta:l})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,o=(0,d.Z)(_(e.path));try{for(o.s();!(r=o.n()).done;){var a=r.value;i(e,t,a)}}catch(s){o.e(s)}finally{o.f()}}else i(e,t)})),t}function _(e){var t=e.split("/");if(0===t.length)return[];var n=(0,u.Z)(t),r=n[0],i=n.slice(1),o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===i.length)return o?[a,""]:[a];var s=_(i.join("/")),l=[];return l.push.apply(l,(0,f.Z)(s.map((function(e){return""===e?a:[a,e].join("/")})))),o&&l.push.apply(l,(0,f.Z)(s)),l.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var E=/^:\w+$/,N=3,A=2,D=1,T=10,I=-2,P=function(e){return"*"===e};function F(e,t){var n=e.split("/"),r=n.length;return n.some(P)&&(r+=I),t&&(r+=A),n.filter((function(e){return!P(e)})).reduce((function(e,t){return e+(E.test(t)?N:""===t?D:T)}),r)}function O(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a<n.length;++a){var s=n[a],l=a===n.length-1,c="/"===i?t:t.slice(i.length)||"/",u=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!u)return null;
2Object.assign(r,u.params);var d=s.route;o.push({params:r,pathname:U([i,u.pathname]),pathnameBase:H(U([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=U([i,u.pathnameBase]))}return o}function M(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);y("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');var r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(function(e,t){return r.push(t),"/([^\\/]+)"}));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");var o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),r=(0,c.Z)(n,2),i=r[0],o=r[1],a=t.match(i);if(!a)return null;var s=a[0],l=s.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:o.reduce((function(e,t,n){if("*"===t){var r=u[n]||"";l=s.slice(0,s.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return y(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(u[n]||"",t),e}),{}),pathname:s,pathnameBase:l,pattern:e}}function Z(e){try{return decodeURI(e)}catch(t){return y(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function R(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function L(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function B(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function z(e,t,n,r){var i;void 0===r&&(r=!1),"string"===typeof e?i=k(e):(g(!(i=p({},e)).pathname||!i.pathname.includes("?"),L("?","pathname","search",i)),g(!i.pathname||!i.pathname.includes("#"),L("#","pathname","hash",i)),g(!i.search||!i.search.includes("#"),L("#","search","hash",i)));var o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(r||null==s)o=n;else{var l=t.length-1;if(s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),l-=1;i.pathname=c.join("/")}o=l>=0?t[l]:"/"}var u=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?k(e):e,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,s=void 0===a?"":a,l=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:W(o),hash:q(s)}}(i,o),d=s&&"/"!==s&&s.endsWith("/"),f=(a||"."===s)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}var U=function(e){return e.join("/").replace(/\/\/+/g,"/")},H=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},W=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},q=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},V=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}((0,l.Z)(Error));function G(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var $=["post","put","patch","delete"],J=(new Set($),["get"].concat($));new Set(J),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;Symbol("deferred")},5764:function(e,t,n){!function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function s(e,t){if(null==e)return{};var n,r,i=a(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e,t){return c(e)||u(e,t)||d(e,t)||p()}function c(e){if(Array.isArray(e))return e}function u(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}function d(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,v,g,y,b={exports:{}};function x(){return v?m:(v=1,m="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function w(){if(y)return g;y=1;var e=x();function t(){}function n(){}return n.resetWarningCache=t,g=function(){function r(t,n,r,i,o,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}b.exports=w()();var k=h(b.exports),S=function(e,n,r){var i=!!r,o=t.useRef(r);t.useEffect((function(){o.current=r}),[r]),t.useEffect((function(){if(!i||!e)return function(){};var t=function(){o.current&&o.current.apply(o,arguments)};return e.on(n,t),function(){e.off(n,t)}}),[i,n,e,o])},j=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),n.current},C=function(e){return null!==e&&"object"===i(e)},_=function(e){return C(e)&&"function"===typeof e.then},E=function(e){return C(e)&&"function"===typeof e.elements&&"function"===typeof e.createToken&&"function"===typeof e.createPaymentMethod&&"function"===typeof e.confirmCardPayment},N="[object Object]",A=function e(t,n){if(!C(t)||!C(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var i=Object.prototype.toString.call(t)===N;if(i!==(Object.prototype.toString.call(n)===N))return!1;if(!i&&!r)return t===n;var o=Object.keys(t),a=Object.keys(n);if(o.length!==a.length)return!1;for(var s={},l=0;l<o.length;l+=1)s[o[l]]=!0;for(var c=0;c<a.length;c+=1)s[a[c]]=!0;var u=Object.keys(s);if(u.length!==o.length)return!1;var d=t,f=n,p=function(t){return e(d[t],f[t])};return u.every(p)},D=function(e,t,n){return C(e)?Object.keys(e).reduce((function(i,a){var s=!C(t)||!A(e[a],t[a]);return n.includes(a)?(s&&console.warn("Unsupported prop change: options.".concat(a," is not a mutable property.")),i):s?r(r({},i||{}),{},o({},a,e[a])):i}),null):null},T="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;if(null===e||E(e))return e;throw new Error(t)},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;if(_(e))return{tag:"async",stripePromise:Promise.resolve(e).then((function(e){return I(e,t)}))};var n=I(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},F=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"2.7.2"}),e.registerAppInfo({name:"react-stripe-js",version:"2.7.2",url:"https://stripe.com/docs/stripe-js/react"}))},O=t.createContext(null);
2O.displayName="ElementsContext";var M=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},Z=function(e){var n=e.stripe,r=e.options,i=e.children,o=t.useMemo((function(){return P(n)}),[n]),a=l(t.useState((function(){return{stripe:"sync"===o.tag?o.stripe:null,elements:"sync"===o.tag?o.stripe.elements(r):null}})),2),s=a[0],c=a[1];t.useEffect((function(){var e=!0,t=function(e){c((function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}}))};return"async"!==o.tag||s.stripe?"sync"!==o.tag||s.stripe||t(o.stripe):o.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[o,s,r]);var u=j(n);t.useEffect((function(){null!==u&&u!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[u,n]);var d=j(r);return t.useEffect((function(){if(s.elements){var e=D(r,d,["clientSecret","fonts"]);e&&s.elements.update(e)}}),[r,d,s.elements]),t.useEffect((function(){F(s.stripe)}),[s.stripe]),t.createElement(O.Provider,{value:s},i)};Z.propTypes={stripe:k.any,options:k.object};var R=function(e){var n=t.useContext(O);return M(n,e)},L=function(){return R("calls useElements()").elements},B=function(e){return(0,e.children)(R("mounts <ElementsConsumer>"))};B.propTypes={children:k.func.isRequired};var z=["on","session"],U=t.createContext(null);U.displayName="CustomCheckoutSdkContext";var H=function(e,t){if(!e)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an <CustomCheckoutProvider> provider."));return e},W=t.createContext(null);W.displayName="CustomCheckoutContext";var q=function(e,t){if(!e)return null;e.on,e.session;var n=s(e,z);return r(r({},n),t||e.session())},V="Invalid prop `stripe` supplied to `CustomCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",G=function(e){var n=e.stripe,r=e.options,i=e.children,o=t.useMemo((function(){return P(n,V)}),[n]),a=l(t.useState(null),2),s=a[0],c=a[1],u=l(t.useState((function(){return{stripe:"sync"===o.tag?o.stripe:null,customCheckoutSdk:null}})),2),d=u[0],f=u[1],p=function(e,t){f((function(n){return n.stripe&&n.customCheckoutSdk?n:{stripe:e,customCheckoutSdk:t}}))},h=t.useRef(!1);t.useEffect((function(){var e=!0;return"async"!==o.tag||d.stripe?"sync"===o.tag&&o.stripe&&!h.current&&(h.current=!0,o.stripe.initCustomCheckout(r).then((function(e){e&&(p(o.stripe,e),e.on("change",c))}))):o.stripePromise.then((function(t){t&&e&&!h.current&&(h.current=!0,t.initCustomCheckout(r).then((function(e){e&&(p(t,e),e.on("change",c))})))})),function(){e=!1}}),[o,d,r,c]);var m=j(n);t.useEffect((function(){null!==m&&m!==n&&console.warn("Unsupported prop change on CustomCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[m,n]);var v=j(r);t.useEffect((function(){var e,t;if(d.customCheckoutSdk){!r.clientSecret||C(v)||A(r.clientSecret,v.clientSecret)||console.warn("Unsupported prop change: options.client_secret is not a mutable property.");var n=null===v||void 0===v||null===(e=v.elementsOptions)||void 0===e?void 0:e.appearance,i=null===r||void 0===r||null===(t=r.elementsOptions)||void 0===t?void 0:t.appearance;i&&!A(i,n)&&d.customCheckoutSdk.changeAppearance(i)}}),[r,v,d.customCheckoutSdk]),t.useEffect((function(){F(d.stripe)}),[d.stripe]);var g=t.useMemo((function(){return q(d.customCheckoutSdk,s)}),[d.customCheckoutSdk,s]);return d.customCheckoutSdk?t.createElement(U.Provider,{value:d},t.createElement(W.Provider,{value:g},i)):null};G.propTypes={stripe:k.any,options:k.shape({clientSecret:k.string.isRequired,elementsOptions:k.object}).isRequired};var $=function(e){var n=t.useContext(U);return H(n,e)},J=function(e){var n=t.useContext(U),r=t.useContext(O);if(n&&r)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CustomCheckoutProvider> and <Elements> providers."));return n?H(n,e):M(r,e)},K=function(){$("calls useCustomCheckout()");var e=t.useContext(W);if(!e)throw new Error("Could not find CustomCheckout Context; You need to wrap the part of your app that calls useCustomCheckout() in an <CustomCheckoutProvider> provider.");return e},Y=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},X=function(e,n){var r="".concat(Y(e),"Element"),i=n?function(e){J("mounts <".concat(r,">"));var n=e.id,i=e.className;return t.createElement("div",{id:n,className:i})}:function(n){var i,o=n.id,a=n.className,s=n.options,c=void 0===s?{}:s,u=n.onBlur,d=n.onFocus,f=n.onReady,p=n.onChange,h=n.onEscape,m=n.onClick,v=n.onLoadError,g=n.onLoaderStart,y=n.onNetworksChange,b=n.onConfirm,x=n.onCancel,w=n.onShippingAddressChange,k=n.onShippingRateChange,C=J("mounts <".concat(r,">")),_="elements"in C?C.elements:null,E="customCheckoutSdk"in C?C.customCheckoutSdk:null,N=l(t.useState(null),2),A=N[0],T=N[1],I=t.useRef(null),P=t.useRef(null);S(A,"blur",u),S(A,"focus",d),S(A,"escape",h),S(A,"click",m),S(A,"loaderror",v),S(A,"loaderstart",g),S(A,"networksch
2ange",y),S(A,"confirm",b),S(A,"cancel",x),S(A,"shippingaddresschange",w),S(A,"shippingratechange",k),S(A,"change",p),f&&(i="expressCheckout"===e?f:function(){f(A)}),S(A,"ready",i),t.useLayoutEffect((function(){if(null===I.current&&null!==P.current&&(_||E)){var t=null;E?t=E.createElement(e,c):_&&(t=_.create(e,c)),I.current=t,T(t),t&&t.mount(P.current)}}),[_,E,c]);var F=j(c);return t.useEffect((function(){if(I.current){var e=D(c,F,["paymentRequest"]);e&&I.current.update(e)}}),[c,F]),t.useLayoutEffect((function(){return function(){if(I.current&&"function"===typeof I.current.destroy)try{I.current.destroy(),I.current=null}catch(e){}}}),[]),t.createElement("div",{id:o,className:a,ref:P})};return i.propTypes={id:k.string,className:k.string,onChange:k.func,onBlur:k.func,onFocus:k.func,onReady:k.func,onEscape:k.func,onClick:k.func,onLoadError:k.func,onLoaderStart:k.func,onNetworksChange:k.func,onConfirm:k.func,onCancel:k.func,onShippingAddressChange:k.func,onShippingRateChange:k.func,options:k.object},i.displayName=r,i.__elementType=e,i},Q="undefined"===typeof window,ee=t.createContext(null);ee.displayName="EmbeddedCheckoutProviderContext";var te=function(){var e=t.useContext(ee);if(!e)throw new Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},ne="Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",re=function(e){var n=e.stripe,r=e.options,i=e.children,o=t.useMemo((function(){return P(n,ne)}),[n]),a=t.useRef(null),s=t.useRef(null),c=l(t.useState({embeddedCheckout:null}),2),u=c[0],d=c[1];t.useEffect((function(){if(!s.current&&!a.current){var e=function(e){s.current||a.current||(s.current=e,a.current=s.current.initEmbeddedCheckout(r).then((function(e){d({embeddedCheckout:e})})))};"async"!==o.tag||s.current||!r.clientSecret&&!r.fetchClientSecret?"sync"!==o.tag||s.current||!r.clientSecret&&!r.fetchClientSecret||e(o.str
2ipe):o.stripePromise.then((function(t){t&&e(t)}))}}),[o,r,u,s]),t.useEffect((function(){return function(){u.embeddedCheckout?(a.current=null,u.embeddedCheckout.destroy()):a.current&&a.current.then((function(){a.current=null,u.embeddedCheckout&&u.embeddedCheckout.destroy()}))}}),[u.embeddedCheckout]),t.useEffect((function(){F(s)}),[s]);var f=j(n);t.useEffect((function(){null!==f&&f!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[f,n]);var p=j(r);return t.useEffect((function(){null!=p&&(null!=r?(void 0===r.clientSecret&&void 0===r.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=p.clientSecret&&r.clientSecret!==p.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=p.fetchClientSecret&&r.fetchClientSecret!==p.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=p.onComplete&&r.onComplete!==p.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it.")):console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them."))}),[p,r]),t.createElement(ee.Provider,{value:u},i)},ie=function(e){var n=e.id,r=e.className,i=te().embeddedCheckout,o=t.useRef(!1),a=t.useRef(null);return t.useLayoutEffect((function(){return!o.current&&i&&null!==a.current&&(i.mount(a.current),o.current=!0),function(){if(o.current&&i)try{i.unmount(),o.current=!1}catch(e){}}}),[i]),t.createElement("div",{ref:a,id:n,className:r})},oe=function(e){var n=e.id,r=e.className;return te(),t.createElement("div",{id:n,className:r})},ae=Q?oe:ie,se=function(){return J("calls useStripe()").stripe},le=X("auBankAccount",Q),ce=X("card",Q),ue=X("cardNumber",Q),de=X("cardExpiry",Q),fe=X("cardCvc",Q),pe=X("fpxBank",Q),he=X("iban",Q),me=X("idealBank",Q),ve=X("p24Bank",Q),ge=X("epsBank",Q),ye=X("payment",Q),be=X("expressCheckout",Q),xe=X("paymentRequestButton",Q),we=X("linkAuthentication",Q),ke=X("address",Q),Se=X("shippingAddress",Q),je=X("paymentMethodMessaging",Q),Ce=X("affirmMessage",Q),_e=X("afterpayClearpayMessage",Q);e.AddressElement=ke,e.AffirmMessageElement=Ce,e.AfterpayClearpayMessageElement=_e,e.AuBankAccountElement=le,e.CardCvcElement=fe,e.CardElement=ce,e.CardExpiryElement=de,e.CardNumberElement=ue,e.CustomCheckoutProvider=G,e.Elements=Z,e.ElementsConsumer=B,e.EmbeddedCheckout=ae,e.EmbeddedCheckoutProvider=re,e.EpsBankElement=ge,e.ExpressCheckoutElement=be,e.FpxBankElement=pe,e.IbanElement=he,e.IdealBankElement=me,e.LinkAuthenticationElement=we,e.P24BankElement=ve,e.PaymentElement=ye,e.PaymentMethodMessagingElement=je,e.PaymentRequestButtonElement=xe,e.ShippingAddressElement=Se,e.useCustomCheckout=K,e.useElements=L,e.useStripe=se}(t,n(2791))},3195:function(e,t,n){"use strict";n.d(t,{Z:function(){return Sn}});var r={};function i(){return"object"===typeof window&&void 0!==(null===window||void 0===window?void 0:window.document)}n.r(r),n.d(r,{exclude:function(){return O},extract:function(){return A},parse:function(){return D},parseUrl:function(){return I},pick:function(){return F},stringify:function(){return T},stringifyUrl:function(){return P}});var o=n(6450),a=n.n(o),s=n(4942),l=n(9439),c=n(7762),u=n(1413),d=n(3433),f="%[a-f0-9]{2}",p=new RegExp("("+f+")|([^%]+?)","gi"),h=new RegExp("("+f+")+","gi");function m(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],m(n),m(r))}function v(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(p)||[],n=1;n<t.length;n++)t=(e=m(t,n).join("")).match(p)||[];return e}}function g(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},n=h.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(s){var r=v(n[0]);r!==n[0]&&(t[n[0]]=r)}n=h.exec(e)}t["%C2"]="\ufffd";for(var i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];e=e.replace(new RegExp(a,"g"),t[a])}return e}(e)}}function y(e,t){if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];var n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}function b(e,t){var n={};if(Array.isArray(t)){var r,i=(0,c.Z)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=Object.getOwnPropertyDescriptor(e,o);null!==a&&void 0!==a&&a.enumerable&&Object.defineProperty(n,o,a)}}catch(f){i.e(f)}finally{i.f()}}else{var s,l=(0,c.Z)(Reflect.ownKeys(e));try{for(l.s();!(s=l.n()).done;){var u=s.value,d=Object.getOwnPropertyDescriptor(e,u);if(d.enumerable)t(u,e[u],e)&&Object.defineProperty(n,u,d)}}catch(f){l.e(f)}finally{l.f()}}return n}var x=function(e){return null===e||void 0===e},w=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))},k=Symbol("encodeFragmentIdentifier");function S(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function j(e,t){return t.encode?t.strict?w(e):encodeURIComponent(e):e}function C(e,t){return t.decode?g(e):e}function _(e){return Array.isArray(e)?e.sort():"object"===typeof e?_(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function E(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function N(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function A(e){var t=(e=E(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function D(e,t){S((t=(0,u.Z)({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[].concat((0,d.Z)(r[e]),[n]):r[e]=[n]:r[e]=n};case"colon-list-separator":return function(e,n,r){t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat((0,d.Z)(r[e]),[n]):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var i="string"===typeof n&&n.includes(e.arrayFormatSeparator),o="string"===typeof n&&!i&&C(n,e).includes(e.arrayFormatSeparator);n=o?C(n,e):n;var a=i||o?n.split(e.arrayFormatSeparator).map((function(t){return C(t,e)})):null===n?n:C(n,e);r[t]=a};case"bracket-separator":return function(t,n,r){var i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),i){var o=null===n?[]:n.split(e.arrayFormatSeparator).map((function(t){return C(t,e)}));void 0!==r[t]?r[t]=[].concat((0,d.Z)(r[t]),(0,d.Z)(o)):r[t]=o}else r[t]=n?C(n,e):n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat((0,d.Z)([n[e]].flat()),[t]):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;var i,o=(0,c.Z)(e.split("&"));try{for(o.s();!(i=o.n()).done;){var a=i.value;if(""!==a){var s=t.decode?a.replace(/\+/g," "):a,f=y(s,"="),p=(0,l.Z)(f,2),h=p[0],m=p[1];void 0===h&&(h=s),m=void 0===m?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?m:C(m,t),n(C(h,t),m,r)}}}catch(T){o.e(T)}finally{o.f()}for(var v=0,g=Object.entries(r);v<g.length;v++){var b=(0,l.Z)(g[v],2),x=b[0],w=b[1];if("object"===typeof w&&null!==w)for(var k=0,j=Object.entries(w);k<j.length;k++){var E=(0,l.Z)(j[k],2),A=E[0],D=E[1];w[A]=N(D,t)}else r[x]=N(w,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=_(n):e[t]=n,e}),Object.create(null))}function T(e,t){if(!e)return"";S((t=(0,u.Z)({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var n=function(n){return t.skipNull&&x(e[n])||t.skipEmptyString&&""===e[n]},r=function(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat((0,d.Z)(n),null===r?[[j(t,e),"[",i,"]"].join("")]:[[j(t,e),"[",j(i,e),"]=",j(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat((0,d.Z)(n),null===r?[[j(t,e),"[]"].join("")]:[[j(t,e),"[]=",j(r,e)].join("")])}};case"colon-list-separator":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat((0,d.Z)(n),null===r?[[j(t,e),":list="].join("")]:[[j(t,e),":list=",j(r,e)].join("")])}};case"comma":case"separator":case"bracket-separator":var t="bracket-separator"===e.arrayFormat?"[]=":"=";return function(n){return function(r,i){return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[j(n,e),t,j(i,e)].join("")]:[[r,j(i,e)].join(e.arrayFormatSeparator)])}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat((0,d.Z)(n),null===r?[j(t,e)]:[[j(t,e),"=",j(r,e)].join("")])}}}}(t),i={},o=0,a=Object.entries(e);o<a.length;o++){var s=(0,l.Z)(a[o],2),c=s[0],f=s[1];n(c)||(i[c]=f)}var p=Object.keys(i);return!1!==t.sort&&p.sort(t.sort),p.map((function(n){var i=e[n];return void 0===i?"":null===i?j(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?j(n,t)+"[]":i.reduce(r(n),[]).join("&"):j(n,t)+"="+j(i,t)})).filter((function(e){return e.length>0})).join("&")}function I(e,t){var n,r;t=(0,u.Z)({decode:!0},t);var i=y(e,"#"),o=(0,l.Z)(i,2),a=o[0],s=o[1];return void 0===a&&(a=e),(0,u.Z)({url:null!==(n=null===(r=a)||void 0===r||null===(r=r.split("?"))||void 0===r?void 0:r[0])&&void 0!==n?n:"",query:D(A(e),t)},t&&t.parseFragmentIdentifier&&s?{fragmentIdentifier:C(s,t)}:{})}function P(e,t){t=(0,u.Z)((0,s.Z)({encode:!0,strict:!0},k,!0),t);var n=E(e.url).split("?")[0]||"",r=A(e.url),i=T((0,u.Z)((0,u.Z)({},D(r,{sort:!1})),e.query),t);
2i&&(i="?".concat(i));var o=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){var a=new URL(n);a.hash=e.fragmentIdentifier,o=t[k]?a.hash:"#".concat(e.fragmentIdentifier)}return"".concat(n).concat(i).concat(o)}function F(e,t,n){var r=I(e,n=(0,u.Z)((0,s.Z)({parseFragmentIdentifier:!0},k,!1),n)),i=r.url,o=r.query,a=r.fragmentIdentifier;return P({url:i,query:b(o,t),fragmentIdentifier:a},n)}function O(e,t,n){return F(e,Array.isArray(t)?function(e){return!t.includes(e)}:function(e,n){return!t(e,n)},n)}var M=r,Z=n(9667),R=n.n(Z),L=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:B(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),B=function(){return"undefined"!==typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},z=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach((function(t){e(t)})),this.queue=[])},e}(),U=function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},U.apply(this,arguments)},H=function e(t,n){var r=typeof t;if(r!==typeof n)return!1;for(var i=0,o=["string","number","boolean","undefined"];i<o.length;i++){if(o[i]===r)return t===n}if(null==t&&null==n)return!0;if(null==t||null==n)return!1;if(t.length!==n.length)return!1;var a=Array.isArray(t),s=Array.isArray(n);if(a!==s)return!1;if(!a||!s){var l=Object.keys(t).sort(),c=Object.keys(n).sort();if(!e(l,c))return!1;var u=!0;return Object.keys(t).forEach((function(r){e(t[r],n[r])||(u=!1)})),u}for(var d=0;d<t.length;d++)if(!e(t[d],n[d]))return!1;return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var W=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=U({},this.identity.userProperties),n=U(U({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){for(var t=n.userProperties||{},r=0,i=Object.entries(e);r<i.length;r++){var o=i[r],a=o[0],s=o[1];switch(a){case"$set":for(var l=0,c=Object.entries(s);l<c.length;l++){var u=c[l],d=u[0],f=u[1];t[d]=f}break;case"$unset":for(var p=0,h=Object.keys(s);p<h.length;p++){delete t[d=h[p]]}break;case"$clearAll":t={}}}return n.userProperties=t,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return U({},this.identity)},e.prototype.setIdentity=function(e){var t=U({},this.identity);this.identity=U({},e),H(t,this.identity)||this.listeners.forEach((function(t){t(e)}))},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),q="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof n.g?n.g:self,V=function(){function e(){this.identityStore=new W,this.eventBridge=new z,this.applicationContextProvider=new L}return e.getInstance=function(t){return q.analyticsConnectorInstances||(q.analyticsConnectorInstances={}),q.analyticsConnectorInstances[t]||(q.analyticsConnectorInstances[t]=new e),q.analyticsConnectorInstances[t]},e}();function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,re(r.key),r)}}function X(e,t,n){return t&&Y(e.prototype,t),n&&Y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q(e,t,n){return(t=re(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e){return function(e){if(Array.isArray(e))return ne(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||te(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){if(e){if("string"===typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function re(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}var ie="$default_instance",oe=2,ae=4096,se=1e3,le="$identify",ce="$groupidentify",ue="api.amplitude.com",de="api.eu.amplitude.com",fe="regionconfig.amplitude.com",pe="regionconfig.eu.amplitude.com",he=0,me=1,ve=2,ge=3,ye=4,be=5,xe=6,we=7,ke="amp_cookie_test",Se="amp",je="",Ce="cookies",_e="none",Ee="localStorage",Ne="sessionStorage",Ae="revenue_amount",De="$productId",Te="$quantity",Ie="$price",Pe="$revenueType",Fe="amp_device_id",Oe="amp_referrer",Me="referrer",Ze="referring_domain",Re="utm_source",Le="utm_medium",Be="utm_campaign",ze="utm_term",Ue="utm_content",He="[Amplitude] Attribution Captured",We="http",qe="beacon",Ve=function(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},Ge=function(e){for(var t="",n=0,r=0,i=0,o=0;n<e.length;)(r=e.charCodeAt(n))<128?(t+=String.fromCharCode(r),n++):r>191&&r<224?(i=e.charCodeAt(n+1),t+=String.fromCharCode((31&r)<<6|63&i),n+=2):(i=e.charCodeAt(n+1),o=e.charCodeAt(n+2),t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&o),n+=3);return t},$e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof self?self:"undefined"!==typeof n.g?n.g:void 0,Je={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){try{if($e.btoa&&$e.atob)return $e.btoa(unescape(encodeURIComponent(e)))}catch(t){}return Je._encode(e)},_encode:function(e){var t,n,r,i,o,a,s,l="",c=0;for(e=Ve(e);c<e.length;)i=(t=e.charCodeAt(c++))>>2,o=(3&t)<<4|(n=e.charCodeAt(c++))>>4,a=(15&n)<<2|(r=e.charCodeAt(c++))>>6,s=63&r,isNaN(n)?a=s=64:isNaN(r)&&(s=64),l=l+Je._keyStr.charAt(i)+Je._keyStr.charAt(o)+Je._keyStr.charAt(a)+Je._keyStr.charAt(s);return l},decode:function(e){try{if($e.btoa&&$e.atob)return decodeURIComponent(escape($e.atob(e)))}catch(t){}return Je._decode(e)},_decode:function(e){var t,n,r,i,o,a,s="",l=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");l<e.length;)t=Je._keyStr.indexOf(e.charAt(l++))<<2|(i=Je._keyStr.indexOf(e.charAt(l++)))>>4,n=(15&i)<<4|(o=Je._keyStr.indexOf(e.charAt(l++)))>>2,r=(3&o)<<6|(a=Je._keyStr.indexOf(e.charAt(l++))),s+=String.fromCharCode(t),64!==o&&(s+=String.fromCharCode(n)),64!==a&&(s+=String.fromCharCode(r));return s=Ge(s)}},Ke=Object.prototype.toString;function Ye(e){switch(Ke.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===e?"null":void 0===e?"undefined":e!==e?"nan":e&&1===e.nodeType?"element":"undefined"!==typeof Buffer&&"function"===typeof Buffer.isBuffer&&Buffer.isBuffer(e)?"buffer":J(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e))}var Xe,Qe={DISABLE:0,ERROR:1,WARN:2,INFO:3},et=Qe.WARN,tt={error:function(e){et>=Qe.ERROR&&nt(e)},warn:function(e){et>=Qe.WARN&&nt(e)},info:function(e){et>=Qe.INFO&&nt(e)}},nt=function(e){try{console.log("[Amplitude] "+e)}catch(t){}},rt=function(e){return"string"===Ye(e)&&e.length>ae?e.substring(0,ae):e},it=function(e,t,n){return Ye(e)===n||(tt.error("Invalid "+t+" input type. Expected "+n+" but received "+Ye(e)),!1)},ot=function(e){var t=Ye(e);
vendor: 28,076 bytes, line 2
2if("object"!==t)return tt.error("Error: invalid properties format. Expecting Javascript object, received "+t+", ignoring"),{};if(Object.keys(e).length>se)return tt.error("Error: too many properties (more than 1000), ignoring"),{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=r,o=Ye(i);"string"!==o&&(i=String(i),tt.warn("WARNING: Non-string property key, received type "+o+', coercing to string "'+i+'"'));var a=st(i,e[r]);null!==a&&(n[i]=a)}return n},at=["nan","function","arguments","regexp","element"],st=function e(t,n){var r=Ye(n);if(-1!==at.indexOf(r))tt.warn('WARNING: Property key "'+t+'" with invalid value type '+r+", ignoring"),n=null;else if("undefined"===r)n=null;else if("error"===r)n=String(n),tt.warn('WARNING: Property key "'+t+'" with value type error, coercing to '+n);else if("array"===r){for(var i=[],o=0;o<n.length;o++){var a=n[o],s=Ye(a);"array"!==s?"object"===s?i.push(ot(a)):i.push(e(t,a)):tt.warn("WARNING: Cannot have "+s+" nested in an array property value, skipping")}n=i}else"object"===r&&(n=ot(n));return n},lt=function(e,t){var n=Ye(t);if("string"===n)return t;if("date"===n||"number"===n||"boolean"===n)return t=String(t),tt.warn("WARNING: Non-string groupName, received type "+n+', coercing to string "'+t+'"'),t;if("array"===n){for(var r=[],i=0;i<t.length;i++){var o=t[i],a=Ye(o);"array"!==a&&"object"!==a?"string"===a?r.push(o):"date"!==a&&"number"!==a&&"boolean"!==a||(o=String(o),tt.warn("WARNING: Non-string groupName, received type "+a+', coercing to string "'+o+'"'),r.push(o)):tt.warn("WARNING: Skipping nested "+a+" in array groupName")}return r}tt.warn("WARNING: Non-string groupName, received type "+n+". Please use strings or array of strings for groupName")},ct=function(e){Object.prototype.hasOwnProperty.call(Qe,e)&&(et=Qe[e])},ut=tt,dt=function(e){return!e||0===e.length},ft=function(){return"undefined"!==typeof WorkerGlobalScope},pt=function(e,t){e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null===n?void 0:decodeURIComponent(n[1].replace(/\+/g," "))},ht=function e(t){if("array"===Ye(t))for(var n=0;n<t.length;n++)t[n]=e(t[n]);else if("object"===Ye(t))for(var r in t)r in t&&(t[r]=e(t[r]));else t=rt(t);return t},mt=function(e){var t=Ye(e);if("object"!==t)return tt.error("Error: invalid groups format. Expecting Javascript object, received "+t+", ignoring"),{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=r,o=Ye(i);"string"!==o&&(i=String(i),tt.warn("WARNING: Non-string groupType, received type "+o+', coercing to string "'+i+'"'));var a=lt(i,e[r]);null!==a&&(n[i]=a)}return n},vt=it,gt=ot,yt=function(e){return!!it(e,"deviceId","string")&&(!(e.indexOf(".")>=0)||(tt.error("Device IDs may not contain '.' characters. Value will be ignored: \"".concat(e,'"')),!1))},bt=function(e){return!!it(e,"transport","string")&&(e!==We&&e!==qe?(tt.error("transport value must be one of '".concat(qe,"' or '").concat(We,"'")),!1):!(e!==We&&"undefined"!==typeof navigator&&!navigator.sendBeacon)||(tt.error("browser does not support sendBeacon, so transport must be HTTP"),!1))},xt=function(e){return!!(it(e,"sessionId","number")&&new Date(e).getTime()>0)||(tt.error("sessionId value must in milliseconds since epoch (Unix Timestamp)"),!1)},wt=function(){return $e.location},kt=function(e){var t=$e.location?$e.location.hostname:"";if(e){if("undefined"!==typeof document){var n=document.createElement("a");return n.href=e,n.hostname||t}if("function"===typeof URL)return new URL(e).hostname||t}return t},St=function(e){try{for(var t=document.cookie.split(";"),n=null,r=0;r<t.length;r++){for(var i=t[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e)){n=i.substring(e.length,i.length);break}}return n}catch(o){return null}},jt=function(e,t,n){var r=null!==t?n.expirationDays:-1;if(r){var i=new Date;i.setTime(i.getTime()+24*r*60*60*1e3),r=i}var o=e+"="+t;r&&(o+="; expires="+r.toUTCString()),o+="; path=/",n.domain&&(o+="; domain="+n.domain),n.secure&&(o+="; Secure"),n.sameSite&&(o+="; SameSite="+n.sameSite),document.cookie=o},Ct=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.split(".")[ye];return n&&(e=parseInt(n,32)),e||(ut.warn("unable to parse malformed cookie: ".concat(t)),0)},_t=jt,Et=St,Nt=function(e){try{var t,n=document.cookie.split(";").map((function(e){return e.trimStart()})),r=[],i=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=te(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(n);try{for(i.s();!(t=i.n()).done;){for(var o=t.value;" "===o.charAt(0);)o=o.substring(1);0===o.indexOf(e)&&r.push(o.substring(e.length))}}catch(a){i.e(a)}finally{i.f()}return r}catch(s){return[]}},At=function(e){return ee(e).sort((function(e,t){var n=Ct(e);return Ct(t)-n}))},Dt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ke;if("undefined"===typeof document)return!1;var n=!1;try{var r=String(Date.now());jt(t,r,e),ut.info("Testing if cookies available"),n=St(t+"=")===r}catch(i){ut.warn('Error thrown when checking for cookies. Reason: "'.concat(i,'"'))}finally{ut.info("Cleaning up cookies availability test"),jt(t,null,e)}return n},Tt=function(){for(var e="",t=0;t<22;++t)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Math.floor(64*Math.random()));return e},It=function(e){var t=kt(e).split("."),n=[],r="_tldtest_"+Tt();if(ft())return"";for(var i=t.length-2;i>=0;--i)n.push(t.slice(i).join("."));for(var o=0;o<n.length;++o){var a=n[o],s={domain:"."+a};if(_t(r,1,s),Et(r))return _t(r,null,s),a}return""},Pt={expirationDays:void 0,domain:void 0},Ft=function(e){var t="";return Pt.domain&&(t="."===Pt.domain.charAt(0)?Pt.domain.substring(1):Pt.domain),e+t},Ot=function(e){var t=Ft(e)+"=",n=Et(t);try{if(n)return JSON.parse(Je.decode(n))}catch(r){return null}return null},Mt=function(e,t){try{return _t(Ft(e),Je.encode(JSON.stringify(t)),Pt),!0}catch(n){return!1}},Zt=function(e){try{return _t(Ft(e),null,Pt),!0}catch(t){return!1}},Rt={reset:function(){Pt={expirationDays:void 0,domain:void 0}},options:function(e){if(0===arguments.length)return Pt;e=e||{},Pt.expirationDays=e.expirationDays,Pt.secure=e.secure,Pt.sameSite=e.sameSite;var t=dt(e.domain)?"."+It(wt().href):e.domain,n=Math.random();Pt.domain=t,Mt("amplitude_test",n);var r=Ot("amplitude_test");return r&&r===n||(t=null),Zt("amplitude_test"),Pt.domain=t,Pt},get:Ot,set:Mt,remove:Zt,setRaw:function(e,t){try{return _t(Ft(e),t,Pt),!0}catch(n){return!1}},getRaw:function(e){var t=Ft(e)+"=";return Et(t)}},Lt=function(){function e(){K(this,e),this.map=new Map,this.length=0}return X(e,[{key:"key",value:function(e){var t=Array.from(this.map.keys())[e];return this.map.get(t)}},{key:"getItem",value:function(e){return this.map.get(e)}},{key:"setItem",value:function(e,t){this.map.has(e)||(this.length+=1),this.map.set(e,t)}},{key:"removeItem",value:function(e){this.map.has(e)&&(this.length-=1,this.map.delete(e))}},{key:"clear",value:function(){this.map.clear(),this.length=0}}]),e}();if(function(){var e,t=new Date;try{return $e.localStorage.setItem(t,t),e=$e.localStorage.getItem(t)===String(t),$e.localStorage.removeItem(t),e}catch(n){}return!1}())Xe=$e.localStorage;else if("undefined"!==typeof $e&&$e.globalStorage)try{Xe=$e.globalStorage[$e.location.hostname]}catch(Cn){}else if("undefined"!==typeof document){var Bt=document.createElement("div"),zt="localStorage";Bt.style.display="none",document.getElementsByTagName("head")[0].appendChild(Bt),Bt.addBehavior&&(Bt.addBehavior("#default#userdata"),Xe={length:0,setItem:function(e,t){Bt.load(zt),Bt.getAttribute(e)||this.length++,Bt.setAttribute(e,t),Bt.save(zt)},getItem:function(e){return Bt.load(zt),Bt.getAttribute(e)},removeItem:function(e){Bt.load(zt),Bt.getAttribute(e)&&this.length--,Bt.removeAttribute(e),Bt.save(zt)},clear:function(){Bt.load(zt);for(var e,t=0;e=Bt.XMLDocument.documentElement.attributes[t++];)Bt.removeAttribute(e.name);Bt.save(zt),this.length=0},key:function(e){return Bt.load(zt),Bt.XMLDocument.documentElement.attributes[e]}},Bt.load(zt),Xe.length=Bt.XMLDocument.documentElement.attributes.length)}else ft()&&(Xe=new Lt);Xe||(Xe={length:0,setItem:function(e,t){},getItem:function(e){},removeItem:function(e){},clear:function(){},key:function(e){}});var Ut,Ht=Xe,Wt=function(){this.storage=null};Wt.prototype.getStorage=function(e){if(null!==this.storage)return this.storage;if(!e&&Dt())this.storage=Rt;else{var t="amp_cookiestore_";this.storage={_options:{expirationDays:void 0,domain:void 0,secure:!1},reset:function(){this._options={expirationDays:void 0,domain:void 0,secure:!1}},options:function(e){return 0===arguments.length?this._options:(e=e||{},this._options.expirationDays=e.expirationDays||this._options.expirationDays,this._options.domain=e.domain||this._options.domain||$e&&$e.location&&$e.location.hostname,this._options.secure=e.secure||!1)},get:function(e){try{return JSON.parse(Ht.getItem(t+e))}catch(Cn){}return null},set:function(e,n){try{return Ht.setItem(t+e,JSON.stringify(n)),!0}catch(Cn){}return!1},remove:function(e){try{Ht.removeItem(t+e)}catch(Cn){return!1}}}}return this.storage};var qt=(Q(Ut={},Ce,!0),Q(Ut,_e,!0),Q(Ut,Ee,!0),Q(Ut,Ne,!0),Ut),Vt=function(){function e(t){var n=t.storageKey,r=t.disableCookies,i=t.domain,o=t.secure,a=t.sameSite,s=t.expirationDays,l=t.storage;K(this,e),this.storageKey=n,this.domain=i,this.secure=o,this.sameSite=a,this.expirationDays=s,this.cookieDomain="";var c=wt()?wt().href:void 0,u=r?"":It(c);if(this.cookieDomain=i||(u?"."+u:null),qt[l])this.storage=l;else{var d=r||!Dt({domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:this.expirationDays});this.storage=d?Ee:Ce}}return X(e,[{key:"getCookieStorageKey",value:function(){if(!this.domain)return this.storageKey;var e="."===this.domain.charAt(0)?this.domain.substring(1):this.domain;return"".concat(this.storageKey).concat(e?"_".concat(e):"")}},{key:"save",value:function(e){var t=e.deviceId,n=e.userId,r=e.optOut,i=e.sessionId,o=e.lastEventTime,a=e.eventId,s=e.identifyId,l=e.sequenceNumber;if(this.storage!==_e){var c=[t,Je.encode(n||""),r?"1":"",i?i.toString(32):"0",o?o.toString(32):"0",a?a.toString(32):"0",s?s.toString(32):"0",l?l.toString(32):"0"].join(".");switch(this.storage){case Ne:$e.sessionStorage&&$e.sessionStorage.setItem(this.storageKey,c);break;case Ee:Ht.setItem(this.storageKey,c);break;case Ce:this.saveCookie(c)}}}},{key:"saveCookie",value:function(e){_t(this.getCookieStorageKey(),e,{domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:this.expirationDays})}},{key:"load",value:function(){var e,t=this;if(this.storage===Ce){var n=this.getCookieStorageKey()+"=",r=Nt(n);if(0===r.length||1===r.length)e=r[0];else{var i=At(r)[0];r.forEach((function(){return _t(t.getCookieStorageKey(),null,{})})),this.saveCookie(i),e=Et(n)}}if(e||(e=Ht.getItem(this.storageKey)),!e)try{e=$e.sessionStorage&&$e.sessionStorage.getItem(this.storageKey)}catch(Cn){ut.info('window.sessionStorage unavailable. Reason: "'.concat(Cn,'"'))}if(!e)return null;var o=e.split("."),a=null;if(o[me])try{a=Je.decode(o[me])}catch(Cn){a=null}return{deviceId:o[he],userId:a,optOut:"1"===o[ve],sessionId:parseInt(o[ge],32),lastEventTime:parseInt(o[ye],32),eventId:parseInt(o[be],32),identifyId:parseInt(o[xe],32),sequenceNumber:parseInt(o[we],32)}}},{key:"clear",value:function(){var e;if(this.storage===Ce&&(e=Et(this.getCookieStorageKey()+"="),_t(this.getCookieStorageKey(),null,{domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:0})),e||(e=Ht.getItem(this.storageKey),Ht.clear()),!e)try{e=$e.sessionStorage&&$e.sessionStorage.getItem(this.storageKey),$e.sessionStorage.clear()}catch(Cn){ut.info('window.sessionStorage unavailable. Reason: "'.concat(Cn,'"'))}return!!e}}]),e}(),Gt="$clearAll",$t=function(){this.userPropertiesOperations={},this.properties=[]};$t.prototype.add=function(e,t){return"number"===Ye(t)||"string"===Ye(t)?this._addOperation("$add",e,t):ut.error("Unsupported type for value: "+Ye(t)+", expecting number or string"),this},$t.prototype.append=function(e,t){return this._addOperation("$append",e,t),this},$t.prototype.clearAll=function(){return Object.keys(this.userPropertiesOperations).length>0?(Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,Gt)||ut.error("Need to send $clearAll on its own Identify object without any other operations, skipping $clearAll"),this):(this.userPropertiesOperations[Gt]="-",this)},$t.prototype.prepend=function(e,t){return this._addOperation("$prepend",e,t),this},$t.prototype.set=function(e,t){return this._addOperation("$set",e,t),this},$t.prototype.setOnce=function(e,t){return this._addOperation("$setOnce",e,t),this},$t.prototype.unset=function(e){return this._addOperation("$unset",e,"-"),this},$t.prototype.preInsert=function(e,t){return this._addOperation("$preInsert",e,t),this},$t.prototype.postInsert=function(e,t){return this._addOperation("$postInsert",e,t),this},$t.prototype.remove=function(e,t){return this._addOperation("$remove",e,t),this},$t.prototype._addOperation=function(e,t,n){Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,Gt)?ut.error("This identify already contains a $clearAll operation, skipping operation "+e):-1===this.properties.indexOf(t)?(Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,e)||(this.userPropertiesOperations[e]={}),this.userPropertiesOperations[e][t]=n,this.properties.push(t)):ut.error('User property "'+t+'" already used in this identify, skipping operation '+e)};var Jt=function(e,t,n){this.url=e,this.data=t||{},this.headers=n};Jt.prototype.send=function(e){if(!!$e.XDomainRequest){var t=new $e.XDomainRequest;t.open("POST",this.url,!0),t.onload=function(){e(200,t.responseText)},t.onerror=function(){"Request Entity Too Large"===t.responseText?e(413,t.responseText):e(500,t.responseText)},t.ontimeout=function(){},t.onprogress=function(){},t.send(M.stringify(this.data))}else if("undefined"!==typeof XMLHttpRequest){var n=new XMLHttpRequest;n.open("POST",this.url,!0),n.onreadystatechange=function(){4===n.readyState&&e(n.status,n.responseText)},function(e,t){for(var n in t)("Cross-Origin-Resource-Policy"!==n||t[n])&&e.setRequestHeader(n,t[n])}(n,this.headers),n.send(M.stringify(this.data))}else{var r=void 0;fetch(this.url,{method:"POST",headers:this.headers,body:M.stringify(this.data)}).then((function(e){return r=e.status,e.text()})).then((function(t){e(r,t)}))}};var Kt=function(){this._price=null,this._productId=null,this._quantity=1,this._revenueType=null,this._properties=null};Kt.prototype.setProductId=function(e){return"string"!==Ye(e)?ut.error("Unsupported type for productId: "+Ye(e)+", expecting string"):dt(e)?ut.error("Invalid empty productId"):this._productId=e,this},Kt.prototype.setQuantity=function(e){return"number"!==Ye(e)?ut.error("Unsupported type for quantity: "+Ye(e)+", expecting number"):this._quantity=parseInt(e),this},Kt.prototype.setPrice=function(e){return"number"!==Ye(e)?ut.error("Unsupported type for price: "+Ye(e)+", expecting number"):this._price=e,this},Kt.prototype.setRevenueType=function(e){return"string"!==Ye(e)?ut.error("Unsupported type for revenueType: "+Ye(e)+", expecting string"):this._revenueType=e,this},Kt.prototype.setEventProperties=function(e){return"object"!==Ye(e)?ut.error("Unsupported type for eventProperties: "+Ye(e)+", expecting object"):this._properties=gt(e),this},Kt.prototype._isValidRevenue=function(){return"number"===Ye(this._price)||(ut.error("Invalid revenue, need to set price field"),!1)},Kt.prototype._toJSONObject=function(){var e="object"===Ye(this._properties)?this._properties:{};return null!==this._productId&&(e[De]=this._productId),null!==this._quantity&&(e[Te]=this._quantity),null!==this._price&&(e[Ie]=this._price),null!==this._revenueType&&(e[Pe]=this._revenueType),e};var Yt=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},Xt="US",Qt="EU",en=function(e){var t=ue;switch(e){case Qt:t=de;break;case Xt:t=ue}return t},tn="8.21.9",nn={apiEndpoint:ue,batchEvents:!1,cookieExpiration:365,cookieName:"amplitude_id",sameSiteCookie:"Lax",cookieForceUpgrade:!1,deferInitialization:!1,disableCookies:!1,deviceIdFromUrlParam:!1,domain:"",eventUploadPeriodMillis:3e4,eventUploadThreshold:30,forceHttps:!0,includeFbclid:!1,includeGclid:!1,includeReferrer:!1,includeUtm:!1,ingestionMetadata:{sourceName:"",sourceVersion:""},language:function(){return"undefined"!==typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||""}(),library:{name:"amplitude-js",version:tn},logLevel:"WARN",logAttributionCapturedEvent:!1,optOut:!1,onError:function(){},onExitPage:function(){},onNewSessionStart:function(){},plan:{branch:"",source:"",version:"",versionId:""},platform:"Web",savedMaxCount:1e3,saveEvents:!0,saveParamsReferrerOncePerSession:!0,secureCookie:!1,sessionTimeout:18e5,storage:je,trackingOptions:{city:!0,country:!0,carrier:!0,device_manufacturer:!0,device_model:!0,dma:!0,ip_address:!0,language:!0,os_name:!0,os_version:!0,platform:!0,region:!0,version_name:!0},transport:We,unsetParamsReferrerOnNewSession:!1,unsentKey:"amplitude_unsent",unsentIdentifyKey:"amplitude_unsent_identify",uploadBatchSize:100,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","Cross-Origin-Resource-Policy":"cross-origin"},serverZone:Xt,useDynamicConfig:!1,serverZoneBasedApi:!1,sessionId:null,partnerId:""},rn=new(function(){function e(){return K(this,e),e.instance||(this.ingestionEndpoint=ue,e.instance=this),e.instance}return X(e,[{key:"refresh",value:function(e,t,n){var r="https";t||"https:"===$e.location.protocol||(r="http");var i=r+"://"+function(e){var t=fe;switch(e){case Qt:t=pe;break;case Xt:t=fe}return t}(e),o=this;if(!!$e.XDomainRequest){var a=new $e.XDomainRequest;a.open("GET",i,!0),a.onload=function(){var e=JSON.parse(a.responseText);o.ingestionEndpoint=e.ingestionEndpoint,n&&n()},a.onerror=function(){},a.ontimeout=function(){},a.onprogress=function(){},a.send()}else{var s=new XMLHttpRequest;s.open("GET",i,!0),s.onreadystatechange=function(){if(4===s.readyState&&200===s.status){var e=JSON.parse(s.responseText);o.ingestionEndpoint=e.ingestionEndpoint,n&&n()}},s.send()}}}]),e}()),on=function(e){i()||ft()||ut.warn("amplitude-js will not work in a non-browser environment. If you are planning to add Amplitude to a node environment, please use @amplitude/node"),this._instanceName=dt(e)?ie:e.toLowerCase(),this._unsentEvents=[],this._unsentIdentifys=[],this.options=$($({},nn),{},{headers:$({},nn.headers),ingestionMetadata:$({},nn.ingestionMetadata),library:$({},nn.library),plan:$({},nn.plan),trackingOptions:$({},nn.trackingOptions)}),this._q=[],this._sending=!1,this._updateScheduled=!1,this._onInitCallbacks=[],this._onNewSessionStartCallbacks=[],this._eventId=0,this._identifyId=0,this._lastEventTime=null,this._newSession=!1,this._sequenceNumber=0,this._sessionId=null,this._isInitialized=!1,this._connector=null,this._userAgent="undefined"!==typeof navigator&&navigator&&navigator.userAgent||null,this._ua=new(R())(this._userAgent).getResult()};on.prototype.Identify=$t,on.prototype.Revenue=Kt,on.prototype.init=function(e,t,n,r){var o=this;if("string"!==Ye(e)||dt(e))ut.error("Invalid apiKey. Please re-initialize with a valid apiKey");else try{this._connector=V.getInstance(this._instanceName),sn(this.options,n),(i()||ft())&&void 0!==$e.Prototype&&Array.prototype.toJSON&&(!function(){var e;if(i()){var t=window,n=Array;if(void 0!==t.Prototype&&void 0!==(null===(e=n.prototype)||void 0===e?void 0:e.toJSON))return delete n.prototype.toJSON,!0}}(),ut.warn("Prototype.js injected Array.prototype.toJSON. Deleting Array.prototype.toJSON to prevent double-stringify")),this.options.cookieName!==nn.cookieName&&ut.warn("The cookieName option is deprecated. We will be ignoring it for newer cookies"),this.options.serverZoneBasedApi&&(this.options.apiEndpoint=en(this.options.serverZone)),this._refreshDynamicConfig(),this.options.apiKey=e,this._storageSuffix="_"+e+(this._instanceName===ie?"":"_"+this._instanceName),this._storageSuffixV5=e.slice(0,6),this._oldCookiename=this.options.cookieName+this._storageSuffix,this._unsentKey=this.options.unsentKey+this._storageSuffix,this._unsentIdentifyKey=this.options.unsentIdentifyKey+this._storageSuffix,this._cookieName=Se+"_"+this._storageSuffixV5,this.cookieStorage=(new Wt).getStorage(this.options.disableCookies),this.cookieStorage.options({expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie}),this._metadataStorage=new Vt({storageKey:this._cookieName,disableCookies:this.options.disableCookies,expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie,storage:this.options.storage});var a=!!this.cookieStorage.get(this._oldCookiename),s=!!this._metadataStorage.load();this._useOldCookie=!s&&a&&!this.options.cookieForceUpgrade;var l=s||a;if(this.options.deferInitialization&&!l)return void this._deferInitialization(e,t,n,r);this.options.domain=this.cookieStorage.options().domain,"string"===Ye(this.options.logLevel)&&ct(this.options.logLevel);var c=gn(this);this._apiPropertiesTrackingOptions=Object.keys(c).length>0?{tracking_options:c}:{},this.options.cookieForceUpgrade&&a&&(s||cn(this),this.cookieStorage.remove(this._oldCookiename)),ln(this),this._pendingReadStorage=!0;this.options.saveEvents&&(this._unsentEvents=this._loadSavedUnsentEvents(this.options.unsentKey).map((function(e){return{event:e}})).concat(this._unsentEvents),this._unsentIdentifys=this._loadSavedUnsentEvents(this.options.unsentIdentifyKey).map((function(e){return{event:e}})).concat(this._unsentIdentifys)),n&&n.onNewSessionStart&&this.onNewSessionStart(this.options.onNewSessionStart),function(e){n&&n.deviceId&&!yt(n.deviceId)&&(ut.error('Invalid device ID rejected. Randomly generated UUID will be used instead of "'.concat(n.deviceId,'"')),delete n.deviceId),o.options.deviceId=o._getInitialDeviceId(n&&n.deviceId,e),o.options.userId="string"===Ye(t)&&!dt(t)&&t||"number"===Ye(t)&&t.toString()||o.options.userId||null;var r=(new Date).getTime(),i=!o._sessionId||!o._lastEventTime||r-o._lastEventTime>o.options.sessionTimeout||o.options.sessionId;i&&(o.options.unsetParamsReferrerOnNewSession&&o._unsetUTMParams(),o._newSession=!0,o._sessionId=o.options.sessionId||r,o.options.sessionId=void 0,o.options.saveParamsReferrerOncePerSession&&o._trackParamsAndReferrer()),o.options.saveParamsReferrerOncePerSession||o._trackParamsAndReferrer(),o.options.saveEvents&&(an(o._unsentEvents),an(o._unsentIdentifys)),o._lastEventTime=r,dn(o),o._pendingReadStorage=!1,o._sendEventsIfReady();for(var a=0;a<o._onInitCallbacks.length;a++)o._onInitCallbacks[a](o);o._onInitCallbacks=[],o._isInitialized=!0,i&&o._runNewSessionStartCallbacks()}(),this.runQueuedFunctions(),"function"===Ye(r)&&r(this);var u=this.options.onExitPage;if("function"===Ye(u)&&$e.addEventListener&&!this.pageHandlersAdded){this.pageHandlersAdded=!0;$e.addEventListener("pagehide",(function(){!function(){var e=o.options.transport;o.setTransport(qe),u(),o.setTransport(e)}()}),!1)}this._connector.eventBridge.setEventReceiver((function(e){o._logEvent(e.eventType,e.eventProperties,e.userProperties)}));var d=this._connector.identityStore.editIdentity();this.options.deviceId&&d.setDeviceId(this.options.deviceId),this.options.userId&&d.setUserId(this.options.userId),d.commit()}catch(f){ut.error(f),n&&"function"===Ye(n.onError)&&n.onError(f)}},on.prototype._runNewSessionStartCallbacks=function(){for(var e=0;e<this._onNewSessionStartCallbacks.length;e++)this._onNewSessionStartCallbacks[e](this)},on.prototype.deleteLowerLevelDomainCookies=function(){var e=kt(),t=this.options.domain&&"."===this.options.domain[0]?this.options.domain.slice(1):this.options.domain;if(t&&ft()&&e!==t&&new RegExp(t+"$").test(e)){for(var n=e.split("."),r=t.split("."),i=n.length;i>r.length;--i){var o=n.slice(n.length-i).join(".");_t(this._cookieName,null,{domain:"."+o})}_t(this._cookieName,null,{})}},on.prototype._getInitialDeviceId=function(e,t){if(e)return e;if(this.options.deviceIdFromUrlParam){var n=this._getDeviceIdFromUrlParam(this._getUrlParams());if(n)return n}return this.options.deviceId?this.options.deviceId:t||Tt()};var an=function(e){for(var t=0;t<e.length;t++){var n=e[t].event.user_properties,r=e[t].event.event_properties,i=e[t].event.groups;e[t].event.user_properties=gt(n),e[t].event.event_properties=gt(r),e[t].event.groups=mt(i)}};on.prototype._trackParamsAndReferrer=function(){var e,t,n,r;if(this.options.includeUtm&&(e=this._initUtmData()),this.options.includeReferrer&&(t=this._saveReferrer(this._getReferrer())),this.options.includeGclid&&(n=this._saveGclid(this._getUrlParams())),this.options.includeFbclid&&(r=this._saveFbclid(this._getUrlParams())),this.options.logAttributionCapturedEvent){var i=$($($($({},e),t),n),r);Object.keys(i).length>0&&this.logEvent(He,i)}};var sn=function e(t,n){if("object"===Ye(n)){var r=new Set(["headers"]),i=new Set(["eventUploadPeriodMillis"]),o=function(r){if(Object.prototype.hasOwnProperty.call(t,r)){var o=n[r],a=Ye(t[r]);("transport"!==r||bt(o))&&("sessionId"!==r||null===o?vt(o,r+" option",a)&&("boolean"===a?t[r]=!!o:"string"===a&&!dt(o)||"number"===a&&(o>0||0===o&&i.has(r))||"function"===a?t[r]=o:"object"===a&&e(t[r],o)):t[r]=xt(o)?o:null)}};for(var a in n)r.has(a)?t[a]=$($({},t[a]),n[a]):Object.prototype.hasOwnProperty.call(n,a)&&o(a)}};on.prototype.runQueuedFunctions=function(){var e=this._q;this._q=[];for(var t=0;t<e.length;t++){var n=this[e[t][0]];"function"===Ye(n)&&n.apply(this,e[t].slice(1))}},on.prototype._apiKeySet=function(e){return!dt(this.options.apiKey)||(ut.error("Invalid apiKey. Please set a valid apiKey with init() before calling "+e),!1)},on.prototype._loadSavedUnsentEvents=function(e){var t=this._getFromStorage(Ht,e),n=this._parseSavedUnsentEventsString(t,e);return this._setInStorage(Ht,e,JSON.stringify(n)),n},on.prototype._parseSavedUnsentEventsString=function(e,t){if(dt(e))return[];if("string"===Ye(e))try{var n=JSON.parse(e);if("array"===Ye(n))return n}catch(Cn){}return ut.error("Unable to load "+t+" events. Restart with a new empty queue."),[]},on.prototype.isNewSession=function(){return this._newSession},on.prototype.onInit=function(e){this._isInitialized?e(this):this._onInitCallbacks.push(e)},on.prototype.onNewSessionStart=function(e){this._onNewSessionStartCallbacks.push(e)},on.prototype.getSessionId=function(){return this._sessionId},on.prototype.nextEventId=function(){return this._eventId++,this._eventId},on.prototype.nextIdentifyId=function(){return this._identifyId++,this._identifyId},on.prototype.nextSequenceNumber=function(){return this._sequenceNumber++,this._sequenceNumber},on.prototype._unsentCount=function(){return this._unsentEvents.length+this._unsentIdentifys.length},on.prototype._sendEventsIfReady=function(){return 0!==this._unsentCount()&&(this.options.batchEvents?this._unsentCount()>=this.options.eventUploadThreshold||this.options.transport===qe?(this.sendEvents(),!0):(this._updateScheduled||(this._updateScheduled=!0,setTimeout(function(){this._updateScheduled=!1,this.sendEvents()}.bind(this),this.options.eventUploadPeriodMillis)),!1):(this.sendEvents(),!0))},on.prototype.clearStorage=function(){return this._metadataStorage.clear()},on.prototype._getFromStorage=function(e,t){return e.getItem(t+this._storageSuffix
2)},on.prototype._setInStorage=function(e,t,n){e.setItem(t+this._storageSuffix,n)};var ln=function(e){if(e._useOldCookie){var t=e.cookieStorage.get(e._oldCookiename);"object"!==Ye(t)||un(e,t)}else{var n=e._metadataStorage.load();"object"===Ye(n)&&un(e,n)}},cn=function(e){var t=e.cookieStorage.get(e._oldCookiename);"object"===Ye(t)&&(un(e,t),dn(e))},un=function(e,t){t.deviceId&&(e.options.deviceId=t.deviceId),t.userId&&(e.options.userId=t.userId),null!==t.optOut&&void 0!==t.optOut&&!1!==t.optOut&&(e.options.optOut=t.optOut),t.sessionId&&(e._sessionId=parseInt(t.sessionId,10)),t.lastEventTime&&(e._lastEventTime=parseInt(t.lastEventTime,10)),t.eventId&&(e._eventId=parseInt(t.eventId,10)),t.identifyId&&(e._identifyId=parseInt(t.identifyId,10)),t.sequenceNumber&&(e._sequenceNumber=parseInt(t.sequenceNumber,10))},dn=function(e){var t={deviceId:e.options.deviceId,userId:e.options.userId,optOut:e.options.optOut,sessionId:e._sessionId,lastEventTime:e._lastEventTime,eventId:e._eventId,identifyId:e._identifyId,sequenceNumber:e._sequenceNumber};e._useOldCookie?e.cookieStorage.set(e.options.cookieName+e._storageSuffix,t):e._metadataStorage.save(t)};on.prototype._initUtmData=function(e,t){e=e||this._getUrlParams();var n=function(e,t){var n=e?"?"+e.split(".").slice(-1)[0].replace(/\|/g,"&"):"",r=function(e,t,n,r){return pt(e,t)||pt(n,r)},i=r(Re,t,"utmcsr",n),o=r(Le,t,"utmcmd",n),a=r(Be,t,"utmccn",n),s=r(ze,t,"utmctr",n),l=r(Ue,t,"utmcct",n),c={},u=function(e,t){dt(t)||(c[e]=t)};return u(Re,i),u(Le,o),u(Be,a),u(ze,s),u(Ue,l),c}(t=t||this.cookieStorage.get("__utmz"),e);return fn(this,n),n},on.prototype._unsetUTMParams=function(){var e=new $t;e.unset(Me),e.unset(Ze),e.unset(Re),e.unset(Le),e.unset(Be),e.unset(ze),e.unset(Ue),this.identify(e)};var fn=function(e,t){if("object"===Ye(t)&&0!==Object.keys(t).length){var n=new $t;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n.setOnce("initial_"+r,t[r]),n.set(r,t[r]));e.identify(n)}};on.prototype._getReferrer=function(){var e=this._getReferrerFromUrlParam(this._getUrlParams());return e||("undefined"!==typeof document?document.referrer:"")},on.prototype._getUrlParams=function(){return $e.location.search},on.prototype._saveGclid=function(e){var t=pt("gclid",e);if(!dt(t)){var n={gclid:t};return fn(this,n),n}},on.prototype._saveFbclid=function(e){var t=pt("fbclid",e);if(!dt(t)){var n={fbclid:t};return fn(this,n),n}},on.prototype._getDeviceIdFromUrlParam=function(e){return pt(Fe,e)},on.prototype._getReferrerFromUrlParam=function(e){return pt(Oe,e)},on.prototype._getReferringDomain=function(e){if(dt(e))return null;var t=e.split("/");return t.length>=3?t[2]:null}
vendor: 21,242 bytes, line 2
2,on.prototype._saveReferrer=function(e){if(!dt(e)){var t={referrer:e,referring_domain:this._getReferringDomain(e)};return fn(this,t),t}},on.prototype.saveEvents=function(){try{var e=JSON.stringify(this._unsentEvents.map((function(e){return e.event})));this._setInStorage(Ht,this.options.unsentKey,e)}catch(Cn){}try{var t=JSON.stringify(this._unsentIdentifys.map((function(e){return e.event})));this._setInStorage(Ht,this.options.unsentIdentifyKey,t)}catch(Cn){}},on.prototype.setDomain=function(e){if(this._shouldDeferCall())return this._q.push(["setDomain"].concat(Array.prototype.slice.call(arguments,0)));if(vt(e,"domain","string"))try{this.cookieStorage.options({expirationDays:this.options.cookieExpiration,secure:this.options.secureCookie,domain:e,sameSite:this.options.sameSiteCookie}),this.options.domain=this.cookieStorage.options().domain,ln(this),dn(this)}catch(Cn){ut.error(Cn)}},on.prototype.setUserId=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(vt(t,"startNewSession","boolean")){if(this._shouldDeferCall())return this._q.push(["setUserId"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.userId=void 0!==e&&null!==e&&""+e||null,t&&(this.options.unsetParamsReferrerOnNewSession&&this._unsetUTMParams(),this._newSession=!0,this._sessionId=(new Date).getTime(),this._runNewSessionStartCallbacks(),this.options.saveParamsReferrerOncePerSession&&this._trackParamsAndReferrer()),dn(this),this._connector&&this._connector.identityStore.editIdentity().setUserId(this.options.userId).commit()}catch(Cn){ut.error(Cn)}}},on.prototype.setGroup=function(e,t){if(this._shouldDeferCall())return this._q.push(["setGroup"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("setGroup()")&&vt(e,"groupType","string")&&!dt(e)){var n={};n[e]=t;var r=(new $t).set(e,t);this._logEvent(le,null,null,r.userPropertiesOperations,n,null,null,null)}},on.prototype.setOptOut=function(e){if(this._shouldDeferCall())return this._q.push(["setOptOut"].concat(Array.prototype.slice.call(arguments,0)));if(vt(e,"enable","boolean"))try{this.options.optOut=e,dn(this)}catch(Cn){ut.error(Cn)}},on.prototype.setSessionId=function(e){if(vt(e,"sessionId","number"))try{this._sessionId=e,dn(this)}catch(Cn){ut.error(Cn)}},on.prototype.resetSessionId=function(){this.setSessionId((new Date).getTime())},on.prototype.regenerateDeviceId=function(){if(this._shouldDeferCall())return this._q.push(["regenerateDeviceId"].concat(Array.prototype.slice.call(arguments,0)));this.setDeviceId(Tt())},on.prototype.setDeviceId=function(e){if(this._shouldDeferCall())return this._q.push(["setDeviceId"].concat(Array.prototype.slice.call(arguments,0)));if(yt(e))try{dt(e)||(this.options.deviceId=""+e,dn(this),this._connector&&this._connector.identityStore.editIdentity().setDeviceId(this.options.deviceId).commit())}catch(Cn){ut.error(Cn)}},on.prototype.setTransport=function(e){if(this._shouldDeferCall())return this._q.push(["setTransport"].concat(Array.prototype.slice.call(arguments,0)));bt(e)&&(this.options.transport=e)},on.prototype.setUserProperties=function(e){if(this._shouldDeferCall())return this._q.push(["setUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("setUserProperties()")&&vt(e,"userProperties","object")){var t=ht(gt(e));if(0!==Object.keys(t).length){var n=new $t;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.set(r,t[r]);this.identify(n)}}},on.prototype.clearUserProperties=function(){if(this._shouldDeferCall())return this._q.push(["clearUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("clearUserProperties()")){var e=new $t;e.clearAll(),this.identify(e)}};var pn=function(e,t){for(var n=0;n<t._q.length;n++){var r=e[t._q[n][0]];"function"===Ye(r)&&r.apply(e,t._q[n].slice(1))}return e};on.prototype.identify=function(e,t,n,r){if(this._shouldDeferCall())return this._q.push(["identify"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("identify()"))if("object"===Ye(e)&&Object.prototype.hasOwnProperty.call(e,"_q")&&(e=pn(new $t,e)),e instanceof $t){if(Object.keys(e.userPropertiesOperations).length>0)return this._logEvent(le,null,null,e.userPropertiesOperations,null,null,null,t,n,r);bn(t,n,0,"No request sent",{reason:"No user property operations"})}else ut.error("Invalid identify input type. Expected Identify object but saw "+Ye(e)),bn(t,n,0,"No request sent",{reason:"Invalid identify input type"});else bn(t,n,0,"No request sent",{reason:"API key is not set"})},on.prototype.groupIdentify=function(e,t,n,r,i,o){if(this._shouldDeferCall())return this._q.push(["groupIdentify"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("groupIdentify()"))if(vt(e,"group_type","string")&&!dt(e))if(null!==t&&void 0!==t)if("object"===Ye(n)&&Object.prototype.hasOwnProperty.call(n,"_q")&&(n=pn(new $t,n)),n instanceof $t){if(Object.keys(n.userPropertiesOperations).length>0)return this._logEvent(ce,null,null,null,Q({},e,t),n.userPropertiesOperations,null,r,i,o);bn(r,i,0,"No request sent",{reason:"No group property operations"})}else ut.error("Invalid identify input type. Expected Identify object but saw "+Ye(n)),bn(r,i,0,"No request sent",{reason:"Invalid identify input type"});else bn(r,i,0,"No request sent",{reason:"Invalid group name"});else bn(r,i,0,"No request sent",{reason:"Invalid group type"});else bn(r,i,0,"No request sent",{reason:"API key is not set"})},on.prototype.setVersionName=function(e){if(this._shouldDeferCall())return this._q.push(["setVersionName"].concat(Array.prototype.slice.call(arguments,0)));vt(e,"versionName","string")&&(this.options.versionName=e)},on.prototype._logEvent=function(e,t,n,r,i,o,a,s,l,c){if(ln(this),e)if(this.options.optOut)bn(s,l,0,"No request sent",{reason:"optOut is set to true"});else try{var u;u=e===le||e===ce?this.nextIdentifyId():this.nextEventId();var d=this.nextSequenceNumber(),f="number"===Ye(a)?a:(new Date).getTime();c?this._sessionId=-1:(!this._sessionId||!this._lastEventTime||f-this._lastEventTime>this.options.sessionTimeout)&&(this._sessionId=f,this._runNewSessionStartCallbacks()),this._lastEventTime=f,dn(this);var p=this._ua.browser.name,h=this._ua.browser.major,m=this._ua.device.model||this._ua.os.name,v=this._ua.device.vendor;r=r||{};var g=$({},this._apiPropertiesTrackingOptions);n=$($({},n||{}),g),t=t||{},i=i||{},o=o||{};var y={device_id:this.options.deviceId,user_id:this.options.userId,timestamp:f,event_id:u,session_id:this._sessionId||-1,event_type:e,version_name:this.options.versionName||null,platform:vn(this,"platform")?this.options.platform:null,os_name:vn(this,"os_name")&&p||null,os_version:vn(this,"os_version")&&h||null,device_model:vn(this,"device_model")&&m||null,device_manufacturer:vn(this,"device_manufacturer")&&v||null,language:vn(this,"language")?this.options.language:null,api_properties:n,event_properties:ht(gt(t)),user_properties:ht(gt(r)),uuid:Yt(),library:this.options.library,sequence_number:d,groups:ht(mt(i)),group_properties:ht(gt(o)),user_agent:this._userAgent,partner_id:this.options.partnerId||null};return hn(this)&&(y.plan={branch:this.options.plan.branch||void 0,source:this.options.plan.source||void 0,version:this.options.plan.version||void 0,versionId:this.options.plan.versionId||void 0}),mn(this)&&(y.ingestion_metadata={source_name:this.options.ingestionMetadata.sourceName||void 0,source_version:this.options.ingestionMetadata.sourceVersion||void 0}),e===le||e===ce?(this._unsentIdentifys.push({event:y,callback:s,errorCallback:l}),this._limitEventsQueued(this._unsentIdentifys)):(this._unsentEvents.push({event:y,callback:s,errorCallback:l}),this._limitEventsQueued(this._unsentEvents)),this.options.saveEvents&&this.saveEvents(),this._sendEventsIfReady(),e===le&&this._connector&&this._connector.identityStore.editIdentity().updateUserProperties(ht(gt(r))).commit(),u}catch(Cn){ut.error(Cn)}else bn(s,l,0,"No request sent",{reason:"Missing eventType"})};var hn=function(e){return e.options.plan&&(e.options.plan.source||e.options.plan.branch||e.options.plan.version||e.options.plan.versionId)},mn=function(e){return e.options.ingestionMetadata&&(e.options.ingestionMetadata.sourceName||e.options.ingestionMetadata.sourceVersion)},vn=function(e,t){return!!e.options.trackingOptions[t]},gn=function(e){for(var t=["city","country","dma","ip_address","region"],n={},r=0;r<t.length;r++){var i=t[r];vn(e,i)||(n[i]=!1)}return n};on.prototype._limitEventsQueued=function(e){e.length>this.options.savedMaxCount&&e.splice(0,e.length-this.options.savedMaxCount).forEach((function(e){bn(e.callback,e.errorCallback,0,"No request sent",{reason:"Event dropped because options.savedMaxCount exceeded. User may be offline or have a content blocker"})}))},on.prototype.logEvent=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this._shouldDeferCall()?this._q.push(["logEvent"].concat(Array.prototype.slice.call(arguments,0))):this.logEventWithTimestamp(e,t,null,n,r,i)},on.prototype.logEventWithTimestamp=function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return this._shouldDeferCall()?this._q.push(["logEventWithTimestamp"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEvent()")?vt(e,"eventType","string")?dt(e)?(bn(r,i,0,"No request sent",{reason:"Missing eventType"}),-1):(vt(o,"outOfSession","boolean")||bn(r,i,0,"No request sent",{reason:"Invalid outOfSession value"}),this._logEvent(e,t,null,null,null,null,n,r,i,o)):(bn(r,i,0,"No request sent",{reason:"Invalid type for eventType"}),-1):(bn(r,i,0,"No request sent",{reason:"API key not set"}),-1)},on.prototype.logEventWithGroups=function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return this._shouldDeferCall()?this._q.push(["logEventWithGroups"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEventWithGroups()")?vt(e,"eventType","string")?(vt(o,"outOfSession","boolean")||bn(event.callback,event.errorCallback,0,"No request sent",{reason:"Invalid outOfSession value"}),this._logEvent(e,t,null,null,n,null,null,r,i,o)):(bn(event.callback,event.errorCallback,0,"No request sent",{reason:"Invalid type for eventType"}),-1):(bn(event.callback,event.errorCallback,0,"No request sent",{reason:"API key not set"}),-1)};var yn=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},bn=function(e,t,n,r,i){"function"===Ye(e)&&e(n,r,i),"function"===Ye(t)&&t(n,r,i)};on.prototype.logRevenueV2=function(e){if(this._shouldDeferCall())return this._q.push(["logRevenueV2"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("logRevenueV2()"))if("object"===Ye(e)&&Object.prototype.hasOwnProperty.call(e,"_q")&&(e=pn(new Kt,e)),e instanceof Kt){if(e&&e._isValidRevenue())return this.logEvent(Ae,e._toJSONObject())}else ut.error("Invalid revenue input type. Expected Revenue object but saw "+Ye(e))},on.prototype.logRevenue=function(e,t,n){return this._shouldDeferCall()?this._q.push(["logRevenue"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logRevenue()")&&yn(e)&&(void 0===t||yn(t))?this._logEvent(Ae,{},{productId:n,special:"revenue_amount",quantity:t||1,price:e},null,null,null,null,null):-1},on.prototype._logErrorsOnEvents=function(e,t,n,r){for(var i=["_unsentEvents","_unsentIdentifys"],o=0;o<i.length;o++)for(var a=i[o],s="_unsentEvents"===a?e:t,l=0;l<this[a].length;l++){var c=this[a][l];c.event.event_id<=s&&c.errorCallback&&c.errorCallback(n,r)}},on.prototype.removeEvents=function(e,t,n,r){xn(this,"_unsentEvents",e,n,r),xn(this,"_unsentIdentifys",t,n,r)};var xn=function(e,t,n,r,i){if(!(n<0)){for(var o=[],a=0;a<e[t].length;a++){var s=e[t][a];s.event.event_id>n?o.push(s):s.callback&&s.callback(r,i)}e[t]=o}};on.prototype.sendEvents=function(){if(this._apiKeySet("sendEvents()")){if(this.options.optOut)this.removeEvents(1/0,1/0,0,"No request sent",{reason:"Opt out is set to true"});else if(0!==this._unsentCount()){if(this.options.transport!==qe){if(this._sending)return;this._sending=!0}var e=(this.options.forceHttps||"https:"===$e.location.protocol?"https":"http")+"://"+this.options.apiEndpoint,t=Math.min(this._unsentCount(),this.options.uploadBatchSize),n=this._mergeEventsAndIdentifys(t),r=n.maxEventId,i=n.maxIdentifyId,o=JSON.stringify(n.eventsToSend.map((function(e){return e.event}))),s=(new Date).getTime(),l={client:this.options.apiKey,e:o,v:oe,upload_time:s,checksum:a()(oe+this.options.apiKey+o+s)};if(this.options.transport!==qe||"undefined"===typeof navigator){var c=this;try{new Jt(e,l,this.options.headers).send((function(e,n){c._sending=!1;try{200===e?(c.removeEvents(r,i,e,n),c.options.saveEvents&&c.saveEvents(),c._sendEventsIfReady()):(c._logErrorsOnEvents(r,i,e,n),413===e&&(1===c.options.uploadBatchSize&&c.removeEvents(r,i,e,n),c.options.uploadBatchSize=Math.ceil(t/2),c.sendEvents()))}catch(Cn){}}))}catch(Cn){var u="Request failed to send";ut.error(u),c._logErrorsOnEvents(r,i,0,u),c.removeEvents(r,i,0,u,{reason:Cn.message})}}else{navigator.sendBeacon(e,new URLSearchParams(l))?(this.removeEvents(r,i,200,"success"),this.options.saveEvents&&this.saveEvents()):this._logErrorsOnEvents(r,i,0,"")}}}else this.removeEvents(1/0,1/0,0,"No request sent",{reason:"API key not set"})},on.prototype._mergeEventsAndIdentifys=function(e){for(var t=[],n=0,r=-1,i=0,o=-1;t.length<e;){var a=void 0,s=i>=this._unsentIdentifys.length,l=n>=this._unsentEvents.length;if(l&&s){ut.error("Merging Events and Identifys, less events and identifys than expected");break}s?r=(a=this._unsentEvents[n++]).event.event_id:l?o=(a=this._unsentIdentifys[i++]).event.event_id:!("sequence_number"in this._unsentEvents[n].event)||this._unsentEvents[n].event.sequence_number<this._unsentIdentifys[i].event.sequence_number?r=(a=this._unsentEvents[n++]).event.event_id:o=(a=this._unsentIdentifys[i++]).event.event_id,t.push(a)}return{eventsToSend:t,maxEventId:r,maxIdentifyId:o}},on.prototype.setGlobalUserProperties=function(e){this.setUserProperties(e)},on.prototype.__VERSION__=function(){return this.options.library.version},on.prototype.setLibrary=function(e,t){null!==e&&"undefined"!==typeof e&&(this.options.library.name=e),null!==t&&"undefined"!==typeof t&&(this.options.library.version=t)},on.prototype._shouldDeferCall=function(){return this._pendingReadStorage||this._initializationDeferred},on.prototype._deferInitialization=function(){this._initializationDeferred=!0,this._q.push(["init"].concat(Array.prototype.slice.call(arguments,0)))},on.prototype.enableTracking=function(){this._initializationDeferred=!1,dn(this),this.runQueuedFunctions()},on.prototype._refreshDynamicConfig=function(){this.options.useDynamicConfig&&rn.refresh(this.options.serverZone,this.options.forceHttps,function(){this.options.apiEndpoint=rn.ingestionEndpoint}.bind(this))},on.prototype.getDeviceId=function(){return this.options.deviceId},on.prototype.getUserId=function(){return this.options.userId},on.prototype.setMinTimeBetweenSessionsMillis=function(e){if(vt(e,"timeInMillis","number")){if(this._shouldDeferCall())return this._q.push(["setMinTimeBetweenSessionsMillis"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.sessionTimeout=e}catch(Cn){ut.error(Cn)}}},on.prototype.setEventUploadThreshold=function(e){if(vt(e,"eventUploadThreshold","number")){if(this._shouldDeferCall())return this._q.push(["setEventUploadThreshold"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.eventUploadThreshold=e}catch(Cn){ut.error(Cn)}}},on.prototype.setUseDynamicConfig=function(e){if(vt(e,"useDynamicConfig","boolean")){if(this._shouldDeferCall())return this._q.push(["setUseDynamicConfig"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.useDynamicConfig=e,this._refreshDynamicConfig()}catch(Cn){ut.error(Cn)}}},on.prototype.setServerZone=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((e===Qt||e===Xt)&&vt(t,"serverZoneBasedApi","boolean")){if(this._shouldDeferCall())return this._q.push(["setServerZone"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.serverZone=e,this.options.serverZoneBasedApi=t,t&&(this.options.apiEndpoint=en(this.options.serverZone))}catch(Cn){ut.error(Cn)}}},on.prototype.setServerUrl=function(e){if(vt(e,"serverUrl","string")){if(this._shouldDeferCall())return this._q.push(["setServerUrl"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.apiEndpoint=e}catch(Cn){ut.error(Cn)}}};var wn=function(){this.options=$({},nn),this._q=[],this._instances={}};wn.prototype.Identify=$t,wn.prototype.Revenue=Kt,wn.prototype.getInstance=function(e){e=dt(e)?ie:e.toLowerCase();var t=this._instances[e];return void 0===t&&(t=new on(e),this._instances[e]=t),t},wn.prototype.init=function(e,t,n,r){this.getInstance().init(e,t,n,function(e){this.options=e.options,"function"===Ye(r)&&r(e)}.bind(this))},wn.prototype.isNewSession=function(){return this.getInstance().isNewSession()},wn.prototype.getSessionId=function(){return this.getInstance().getSessionId()},wn.prototype.nextEventId=function(){return this.getInstance().nextEventId()},wn.prototype.nextIdentifyId=function(){return this.getInstance().nextIdentifyId()},wn.prototype.nextSequenceNumber=function(){return this.getInstance().nextSequenceNumber()},wn.prototype.saveEvents=function(){this.getInstance().saveEvents()},wn.prototype.setDomain=function(e){this.getInstance().setDomain(e)},wn.prototype.setUserId=function(e){this.getInstance().setUserId(e)},wn.prototype.setGroup=function(e,t){this.getInstance().setGroup(e,t)},wn.prototype.setOptOut=function(e){this.getInstance().setOptOut(e)},wn.prototype.regenerateDeviceId=function(){this.getInstance().regenerateDeviceId()},wn.prototype.setDeviceId=function(e){this.getInstance().setDeviceId(e)},wn.prototype.setUserProperties=function(e){this.getInstance().setUserProperties(e)},wn.prototype.clearUserProperties=function(){this.getInstance().clearUserProperties()},wn.prototype.identify=function(e,t){this.getInstance().identify(e,t)},wn.prototype.setVersionName=function(e){this.getInstance().setVersionName(e)},wn.prototype.logEvent=function(e,t,n){return this.getInstance().logEvent(e,t,n)},wn.prototype.logEventWithGroups=function(e,t,n,r){return this.getInstance().logEventWithGroups(e,t,n,r)},wn.prototype.logRevenueV2=function(e){return this.getInstance().logRevenueV2(e)},wn.prototype.logRevenue=function(e,t,n){return this.getInstance().logRevenue(e,t,n)},wn.prototype.removeEvents=function(e,t){this.getInstance().removeEvents(e,t)},wn.prototype.sendEvents=function(e){this.getInstance().sendEvents(e)},wn.prototype.setGlobalUserProperties=function(e){this.getInstance().setUserProperties(e)},wn.prototype.__VERSION__=tn;var kn="undefined"!==typeof $e&&$e.amplitude||{},Sn=new wn;for(var jn in Sn._q=kn._q||[],kn._iq)Object.prototype.hasOwnProperty.call(kn._iq,jn)&&(Sn.getInstance(jn)._q=kn._iq[jn]._q||[])},6450:function(e,t,n){var r;!function(i){"use strict";function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,i,a){return o((s=o(o(t,e),o(r,a)))<<(l=i)|s>>>32-l,n);var s,l}function s(e,t,n,r,i,o,s){return a(t&n|~t&r,e,t,i,o,s)}function l(e,t,n,r,i,o,s){return a(t&r|n&~r,e,t,i,o,s)}function c(e,t,n,r,i,o,s){return a(t^n^r,e,t,i,o,s)}function u(e,t,n,r,i,o,s){return a(n^(t|~r),e,t,i,o,s)}function d(e,t){var n,r,i,a,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,p=-271733879,h=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)r=f,i=p,a=h,d=m,f=s(f,p,h,m,e[n],7,-680876936),m=s(m,f,p,h,e[n+1],12,-389564586),h=s(h,m,f,p,e[n+2],17,606105819),p=s(p,h,m,f,e[n+3],22,-1044525330),f=s(f,p,h,m,e[n+4],7,-176418897),m=s(m,f,p,h,e[n+5],12,1200080426),h=s(h,m,f,p,e[n+6],17,-1473231341),p=s(p,h,m,f,e[n+7],22,-45705983),f=s(f,p,h,m,e[n+8],7,1770035416),m=s(m,f,p,h,e[n+9],12,-1958414417),h=s(h,m,f,p,e[n+10],17,-42063),p=s(p,h,m,f,e[n+11],22,-1990404162),f=s(f,p,h,m,e[n+12],7,1804603682),m=s(m,f,p,h,e[n+13],12,-40341101),h=s(h,m,f,p,e[n+14],17,-1502002290),f=l(f,p=s(p,h,m,f,e[n+15],22,1236535329),h,m,e[n+1],5,-165796510),m=l(m,f,p,h,e[n+6],9,-1069501632),h=l(h,m,f,p,e[n+11],14,643717713),p=l(p,h,m,f,e[n],20,-373897302),f=l(f,p,h,m,e[n+5],5,-701558691),m=l(m,f,p,h,e[n+10],9,38016083),h=l(h,m,f,p,e[n+15],14,-660478335),p=l(p,h,m,f,e[n+4],20,-405537848),f=l(f,p,h,m,e[n+9],5,568446438),m=l(m,f,p,h,e[n+14],9,-1019803690),h=l(h,m,f,p,e[n+3],14,-187363961),p=l(p,h,m,f,e[n+8],20,1163531501),f=l(f,p,h,m,e[n+13],5,-1444681467),m=l(m,f,p,h,e[n+2],9,-51403784),h=l(h,m,f,p,e[n+7],14,1735328473),f=c(f,p=l(p,h,m,f,e[n+12],20,-1926607734),h,m,e[n+5],4,-378558),m=c(m,f,p,h,e[n+8],11,-2022574463),h=c(h,m,f,p,e[n+11],16,1839030562),p=c(p,h,m,f,e[n+14],23,-35309556),f=c(f,p,h,m,e[n+1],4,-1530992060),m=c(m,f,p,h,e[n+4],11,1272893353),h=c(h,m,f,p,e[n+7],16,-155497632),p=c(p,h,m,f,e[n+10],23,-1094730640),f=c(f,p,h,m,e[n+13],4,681279174),m=c(m,f,p,h,e[n],11,-358537222),h=c(h,m,f,p,e[n+3],16,-722521979),p=c(p,h,m,f,e[n+6],23,76029189),f=c(f,p,h,m,e[n+9],4,-640364487),m=c(m,f,p,h,e[n+12],11,-421815835),h=c(h,m,f,p,e[n+15],16,530742520),f=u(f,p=c(p,h,m,f,e[n+2],23,-995338651),h,m,e[n],6,-198630844),m=u(m,f,p,h,e[n+7],10,1126891415),h=u(h,m,f,p,e[n+14],15,-1416354905),p=u(p,h,m,f,e[n+5],21,-57434055),f=u(f,p,h,m,e[n+12],
26,1700485571),m=u(m,f,p,h,e[n+3],10,-1894986606),h=u(h,m,f,p,e[n+10],15,-1051523),p=u(p,h,m,f,e[n+1],21,-2054922799),f=u(f,p,h,m,e[n+8],6,1873313359),m=u(m,f,p,h,e[n+15],10,-30611744),h=u(h,m,f,p,e[n+6],15,-1560198380),p=u(p,h,m,f,e[n+13],21,1309151649),f=u(f,p,h,m,e[n+4],6,-145523070),m=u(m,f,p,h,e[n+11],10,-1120210379),h=u(h,m,f,p,e[n+2],15,718787259),p=u(p,h,m,f,e[n+9],21,-343485551),f=o(f,r),p=o(p,i),h=o(h,a),m=o(m,d);return[f,p,h,m]}function f(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function h(e){var t,n,r="0123456789abcdef",i="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),i+=r.charAt(t>>>4&15)+r.charAt(15&t);return i}function m(e){return unescape(encodeURIComponent(e))}function v(e){return function(e){return f(d(p(e),8*e.length))}(m(e))}function g(e,t){return function(e,t){var n,r,i=p(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=d(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=d(o.concat(p(t)),512+8*t.length),f(d(a.concat(r),640))}(m(e),m(t))}function y(e,t,n){return t?n?g(t,e):h(g(t,e)):n?v(e):h(v(e))}void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}()},1694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},8177:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3713),n(3074),n(8228),n(3650),function(){var e=o,t=e.lib.BlockCipher,n=e.algo,r=[],i=[],a=[],s=[],l=[],c=[],u=[],d=[],f=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,o=0;for(t=0;t<256;t++){var h=o^o<<1^o<<2^o<<3^o<<4;h=h>>>8^255&h^99,r[n]=h,i[h]=n;var m=e[n],v=e[m],g=e[v],y=257*e[h]^16843008*h;a[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y,y=16843009*g^65537*v^257*m^16843008*n,u[h]=y<<24|y>>>8,d[h]=y<<16|y>>>16,f[h]=y<<8|y>>>24,p[h]=y,n?(n=m^e[e[e[g^m]]],o^=e[e[o]]):n=o=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a<i;a++)a<n?o[a]=t[a]:(c=o[a-1],a%n?n>6&&a%n==4&&(c=r[c>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c]):(c=r[(c=c<<8|c>>>24)>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c],c^=h[a/n|0]<<24),o[a]=o[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<i;l++){if(a=i-l,l%4)var c=o[a];else c=o[a-4];s[l]=l<4||a<=4?c:u[r[c>>>24]]^d[r[c>>>16&255]]^f[r[c>>>8&255]]^p[r[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],f=e[t+3]^n[3],p=4,h=1;h<l;h++){var m=r[c>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^n[p++],v=r[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&c]^n[p++],g=r[d>>>24]^i[f>>>16&255]^o[c>>>8&255]^a[255&u]^n[p++],y=r[f>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++];c=m,u=v,d=g,f=y}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^n[p++],v=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&c])^n[p++],g=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],y=(s[f>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++],e[t]=m,e[t+1]=v,e[t+2]=g,e[t+3]=y},keySize:8});e.AES=t._createHelper(m)}(),o.AES)}()},3650:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(8228),void(o.lib.Cipher||function(e){var t=o,n=t.lib,r=n.Base,i=n.WordArray,a=n.BufferedBlockAlgorithm,s=t.enc,l=(s.Utf8,s.Base64),c=t.algo.EvpKDF,u=n.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:g}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt
2(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),d=(n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),f=n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=f.extend();function n(t,n,r){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var a=0;a<r;a++)t[n+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}}),t}(),h=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(o);var l=i.create(a,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},m=(n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:h}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},g=n.SerializableCipher=r.extend({cfg:r.extend({format:v}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=i.random(8));var o=c.create({keySize:t+n}).compute(e,r),a=i.create(o.words.slice(t),4*n);return o.sigBytes=4*t,m.create({key:o,iv:a,salt:r})}},b=n.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var o=g.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,g.decrypt.call(this,e,t,i.key,r)}})}()))}()},8926:function(e,t,n){e.exports=function(){var e=e||function(e,t){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(2480)}catch(v){}var i=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},l=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.a
vendor: 4,390 bytes, line 2
2pply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(i());return new c.init(t,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},f=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*l,o);if(l){for(var d=0;d<l;d+=a)this._doProcessBlock(i,d);n=i.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(s.Hasher=h.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math);return e}()},3713:function(e,t,n){!function(t,r){var i;e.exports=(i=n(8926),function(){var e=i,t=e.lib.WordArray;function n(e,n,r){for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),i.enc.Base64)}()},4728:function(e,t,n){!function(t,r){var i;e.exports=(i=n(8926),function(){var e=i,t=e.lib.WordArray;function n(e,n,r){for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64url={stringify:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<r;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<r;
2l++)o.push(i.charAt(s>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(r=l)}return n(e,r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),i.enc.Base64url)}()},1551:function(e,t,n){!function(t,r){var i;e.exports=(i=n(8926),function(){var e=i,t=e.lib.WordArray,n=e.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var n=e.length,r=[],i=0;i<n;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o+=2){var a=r(t[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var n=e.length,i=[],o=0;o<n;o++)i[o>>>1]|=r(e.charCodeAt(o)<<16-o%2*16);return t.create(i,2*n)}}}(),i.enc.Utf16)}()},8228:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(5590),n(5086),function(){var e=o,t=e.lib,n=t.Base,r=t.WordArray,i=e.algo,a=i.MD5,s=i.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,i=this.cfg,o=i.hasher.create(),a=r.create(),s=a.words,l=i.keySize,c=i.iterations;s.length<l;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var u=1;u<c;u++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}});e.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),o.EvpKDF)}()},1863:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3650),function(e){var t=o,n=t.lib.CipherParams,r=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return n.create({ciphertext:t})}}}(),o.format.Hex)}()},5086:function(e,t,n){!function(t,r){var i;e.exports=(i=n(8926),void function(){var e=i,t=e.lib.Base,n=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}())}()},9704:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3646),n(5533),n(1551),n(3713),n(4728),n(3074),n(5590),n(9517),n(3183),n(4345),n(6319),n(6853),n(77),n(5086),n(3822),n(8228),n(3650),n(5152),n(2992),n(7223),n(5858),n(130),n(2409),n(4823),n(6644),n(1181),n(8413),n(1863),n(8177),n(2550),n(1325),n(2639),n(2130),o)}()},5533:function(e,t,n){!function(t,r){var i;e.exports=(i=n(8926),function(){if("function"==typeof ArrayBuffer){var e=i.lib.WordArray,t=e.init,n=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)};n.prototype=e}}(),i.lib.WordArray)}()},3074:function(e,t,n){!function(t,r){var i;e.exports=(i=n(8926),function(e){var t=i,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}
vendor: 25,948 bytes, line 2
2var o=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],h=e[t+3],m=e[t+4],v=e[t+5],g=e[t+6],y=e[t+7],b=e[t+8],x=e[t+9],w=e[t+10],k=e[t+11],S=e[t+12],j=e[t+13],C=e[t+14],_=e[t+15],E=o[0],N=o[1],A=o[2],D=o[3];E=c(E,N,A,D,a,7,s[0]),D=c(D,E,N,A,l,12,s[1]),A=c(A,D,E,N,p,17,s[2]),N=c(N,A,D,E,h,22,s[3]),E=c(E,N,A,D,m,7,s[4]),D=c(D,E,N,A,v,12,s[5]),A=c(A,D,E,N,g,17,s[6]),N=c(N,A,D,E,y,22,s[7]),E=c(E,N,A,D,b,7,s[8]),D=c(D,E,N,A,x,12,s[9]),A=c(A,D,E,N,w,17,s[10]),N=c(N,A,D,E,k,22,s[11]),E=c(E,N,A,D,S,7,s[12]),D=c(D,E,N,A,j,12,s[13]),A=c(A,D,E,N,C,17,s[14]),E=u(E,N=c(N,A,D,E,_,22,s[15]),A,D,l,5,s[16]),D=u(D,E,N,A,g,9,s[17]),A=u(A,D,E,N,k,14,s[18]),N=u(N,A,D,E,a,20,s[19]),E=u(E,N,A,D,v,5,s[20]),D=u(D,E,N,A,w,9,s[21]),A=u(A,D,E,N,_,14,s[22]),N=u(N,A,D,E,m,20,s[23]),E=u(E,N,A,D,x,5,s[24]),D=u(D,E,N,A,C,9,s[25]),A=u(A,D,E,N,h,14,s[26]),N=u(N,A,D,E,b,20,s[27]),E=u(E,N,A,D,j,5,s[28]),D=u(D,E,N,A,p,9,s[29]),A=u(A,D,E,N,y,14,s[30]),E=d(E,N=u(N,A,D,E,S,20,s[31]),A,D,v,4,s[32]),D=d(D,E,N,A,b,11,s[33]),A=d(A,D,E,N,k,16,s[34]),N=d(N,A,D,E,C,23,s[35]),E=d(E,N,A,D,l,4,s[36]),D=d(D,E,N,A,m,11,s[37]),A=d(A,D,E,N,y,16,s[38]),N=d(N,A,D,E,w,23,s[39]),E=d(E,N,A,D,j,4,s[40]),D=d(D,E,N,A,a,11,s[41]),A=d(A,D,E,N,h,16,s[42]),N=d(N,A,D,E,g,23,s[43]),E=d(E,N,A,D,x,4,s[44]),D=d(D,E,N,A,S,11,s[45]),A=d(A,D,E,N,_,16,s[46]),E=f(E,N=d(N,A,D,E,p,23,s[47]),A,D,a,6,s[48]),D=f(D,E,N,A,y,10,s[49]),A=f(A,D,E,N,C,15,s[50]),N=f(N,A,D,E,v,21,s[51]),E=f(E,N,A,D,S,6,s[52]),D=f(D,E,N,A,h,10,s[53]),A=f(A,D,E,N,w,15,s[54]),N=f(N,A,D,E,l,21,s[55]),E=f(E,N,A,D,b,6,s[56]),D=f(D,E,N,A,_,10,s[57]),A=f(A,D,E,N,g,15,s[58]),N=f(N,A,D,E,j,21,s[59]),E=f(E,N,A,D,m,6,s[60]),D=f(D,E,N,A,k,10,s[61]),A=f(A,D,E,N,p,15,s[62]),N=f(N,A,D,E,x,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+N|0,o[2]=o[2]+A|0,o[3]=o[3]+D|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),i.MD5)}()},5152:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3650),o.mode.CFB=function(){var e=o.lib.BlockCipherMode.extend();function t(e,t,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;a<n;a++)e[t+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize;t.call(this,e,n,i,r),this._prevBlock=e.slice(n,n+i)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize,o=e.slice(n,n+i);t.call(this,e,n,i,r),this._prevBlock=o}}),e}(),o.mode.CFB)}()},7223:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3650),o.mode.CTRGladman=function(){var e=o.lib.BlockCipherMode.extend();function t(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var r=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var l=0;l<i;l++)e[t+l]^=s[l]}});return e.Decryptor=r,e}(),o.mode.CTRGladman)}()},2992:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3650),o.mode.CTR=function(){var e=o.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[r-1]=o[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}});return e.Decryptor=t,e}(),o.mode.CTR)}()},130:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3650),o.mode.ECB=function(){var e=o.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e}(),o.mode.ECB)}()},5858:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3650),o.mode.OFB=function(){var e=o.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}});return e.Decryptor=t,e}(),o.mode.OFB)}()},2409:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3650),o.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,i=r-n%r,o=n+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},o.pad.Ansix923)}()},4823:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3650),o.pad.Iso10126={pad:function(e,t){var n=4*t,r=n-e.sigBytes%n;e.concat(o.lib.WordArray.random(r-1)).concat(o.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},o.pad.Iso10126)}()},6644:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3650),o.pad.Iso97971={pad:function(e,t){e.concat(o.lib.WordArray.create([2147483648],1)),o.pad.ZeroPadding.pad(e,t)},unpad:function(e){o.pad.ZeroPadding.unpad(e),e.sigBytes--}},o.pad.Iso97971)}()},8413:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3650),o.pad.NoPadding={pad:function(){},unpad:function(){}},o.pad.NoPadding)}()},1181:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3650),o.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},o.pad.ZeroPadding)}()},3822:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(5590),n(5086),function(){var e=o,t=e.lib,n=t.Base,r=t.WordArray,i=e.algo,a=i.SHA1,s=i.HMAC,l=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=s.create(n.hasher,e),o=r.create(),a=r.create([1]),l=o.words,c=a.words,u=n.keySize,d=n.iterations;l.length<u;){var f=i.update(t).finalize(a);i.reset();for(var p=f.words,h=p.length,m=f,v=1;v<d;v++){m=i.finalize(m),i.reset();for(var g=m.words,y=0;y<h;y++)p[y]^=g[y]}o.concat(f),c[0]++}return o.sigBytes=4*u,o}});e.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)}}(),o.PBKDF2)}()},2130:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3713),n(3074),n(8228),n(3650),function(){var e=o,t=e.lib.StreamCipher,n=e.algo,r=[],i=[],a=[],s=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,f=u<<16|65535&c;for(r[0]^=c,r[1]^=d,r[2]^=u,r[3]^=f,r[4]^=c,r[5]^=d,r[6]^=u,r[7]^=f,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),o.RabbitLegacy)}()},2639:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3713),n(3074),n(8228),n(3650),function(){var e=o,t=e.lib.StreamCipher,n=e.algo,r=[],i=[],a=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,f=u<<16|65535&c;for(i[0]^=c,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=c,i[5]^=d,i[6]^=u,i[7]^=f,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),o.Rabbit)}()},1325:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3713),n(3074),n(8228),n(3650),function(){var e=o,t=e.lib.StreamCipher,n=e.algo,r=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,s=t[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var l=r[i];r[i]=r[o],r[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}e.RC4=t._createHelper(r);var a=n.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(a)}(),o.RC4)}()},77:function(e,t,n){!function(t,r){var i;e.exports=(i=n(8926),function(e){var t=i,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),f=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,p,x,w,k,S,j,C,_,E,N=this._hash.words,A=d.words,D=f.words,T=s.words,I=l.words,P=c.words,F=u.words;for(k=o=N[0],S=a=N[1],j=p=N[2],C=x=N[3],_=w=N[4],n=0;n<80;n+=1)E=o+e[t+T[n]]|0,E+=n<16?h(a,p,x)+A[0]:n<32?m(a,p,x)+A[1]:n<48?v(a,p,x)+A[2]:n<64?g(a,p,x)+A[3]:y(a,p,x)+A[4],E=(E=b(E|=0,P[n]))+w|0,o=w,w=x,x=b(p,10),p=a,a=E,E=k+e[t+I[n]]|0,E+=n<16?y(S,j,C)+D[0]:n<32?g(S,j,C)+D[1]:n<48?v(S,j,C)+D[2]:n<64?m(S,j,C)+D[3]:h(S,j,C)+D[4],E=(E=b(E|=0,F[n]))+_|0,k=_,_=C,C=b(j,10),j=S,S=E;E=N[1]+p+C|0,N[1]=N[2]+x+_|0,N[2]=N[3]+w+k|0,N[3]=N[4]+o+S|0,N[4]=N[0]+a+j|0,N[0]=E},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function v(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function b(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(p),t.HmacRIPEMD160=o._createHmacHelper(p)}(Math),i.RIPEMD160)}()},5590:function(e,t,n){!function(t,r){var i;e.exports=(i=n(8926),function(){var e=i,t=e.lib,n=t.WordArray,r=t.Hasher,o=e.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(r<<5|r>>>27)+l+a[c];d+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,l=s,s=o,o=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)}(),i.SHA1)}()},3183:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(9517),function(){var e=o,t=e.lib.WordArray,n=e.algo,r=n.SHA256,i=n.SHA224=r.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=r._createHelper(i),e.HmacSHA224=r._createHmacHelper(i)}(),o.SHA224)}()},9517:function(e,t,n){!function(t,r){var i;e.exports=(i=n(8926),function(e){var t=i,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),l[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],f=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var h=c[p-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,v=c[p-2],g=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;c[p]=m+c[p-7]+g+c[p-16]}var y=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[p]+c[p];f=d,d=u,u=s,s=a+x|0,a=o,o=i,i=r,r=x+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),i.SHA256)}()},6853:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3646),function(e){var t=o,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.x64.Word,s=t.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,d=0,f=0;f<7;f++){if(1&i){var p=(1<<f)-1;p<32?d^=1<<p:s^=1<<p-32}128&i?i=i<<1^113:i<<=1}u[o]=a.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var f=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(N=n[i]).high^=a,N.low^=o}for(var s=0;s<24;s++){for(var f=0;f<5;f++){for(var p=0,h=0,m=0;m<5;m++)p^=(N=n[f+5*m]).high,h^=N.low;var v=d[f];v.high=p,v.low=h}for(f=0;f<5;f++){var g=d[(f+4)%5],y=d[(f+1)%5],b=y.high,x=y.low;for(p=g.high^(b<<1|x>>>31),h=g.low^(x<<1|b>>>31),m=0;m<5;m++)(N=n[f+5*m]).high^=p,N.low^=h}for(var w=1;w<25;w++){var k=(N=n[w]).high,S=N.low,j=l[w];j<32?(p=k<<j|S>>>32-j,h=S<<j|k>>>32-j):(p=S<<j-32|k>>>64-j,h=k<<j-32|S>>>64-j);var C=d[c[w]];C.high=p,C.low=h}var _=d[0],E=n[0];for(_.high=E.high,_.low=E.low,f=0;f<5;f++)for(m=0;m<5;m++){var N=n[w=f+5*m],A=d[w],D=d[(f+1)%5+5*m],T=d[(f+2)%5+5*m];N.high=A.high^~D.high&T.high,N.low=A.low^~D.low&T.low}N=n[0];var I=u[s];N.high^=I.high,N.low^=I.low}},_doFinalize:function(){var t=this._data,n=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],f=d.high,p=d.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(f)}return new r.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=i._createHelper(f),t.HmacSHA3=i._createHmacHelper(f)}(Math),o.SHA3)}()},6319:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3646),n(4345),function(){var e=o,t=e.x64,n=t.Word,r=t.WordArray,i=e.algo,a=i.SHA512,s=i.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),o.SHA384)}()},4345:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3646),function(){var e=o,t=e.lib.Hasher,n=e.x64,r=n.Word,i=n.WordArray,a=e.algo;function s(){return r.create.apply(r,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],f=n[7],p=r.high,h=r.low,m=i.high,v=i.low,g=o.high,y=o.low,b=a.high,x=a.low,w=s.high,k=s.low,S=u.high,j=u.low,C=d.high,_=d.low,E=f.high,N=f.low,A=p,D=h,T=m,I=v,P=g,F=y,O=b,M=x,Z=w,R=k,L=S,B=j,z=C,U=_,H=E,W=N,q=0;q<80;q++){var V,G,$=c[q];if(q<16)G=$.high=0|e[t+2*q],V=$.low=0|e[t+2*q+1];else{var J=c[q-15],K=J.high,Y=J.low,X=(K>>>1|Y<<31)^(K>>>8|Y<<24)^K>>>7,Q=(Y>>>1|K<<31)^(Y>>>8|K<<24)^(Y>>>7|K<<25),ee=c[q-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=c[q-7],ae=oe.high,se=oe.low,le=c[q-16],ce=le.high,ue=le.low;G=(G=(G=X+ae+((V=Q+se)>>>0<Q>>>0?1:0))+re+((V+=ie)>>>0<ie>>>0?1:0))+ce+((V+=ue)>>>0<ue>>>0?1:0),$.high=G,$.low=V}var de,fe=Z&L^~Z&z,pe=R&B^~R&U,he=A&T^A&P^T&P,me=D&I^D&F^I&F,ve=(A>>>28|D<<4)^(A<<30|D>>>2)^(A<<25|D>>>7),ge=(D>>>28|A<<4)^(D<<30|A>>>2)^(D<<25|A>>>7),ye=(Z>>>14|R<<18)^(Z>>>18|R<<14)^(Z<<23|R>>>9),be=(R>>>14|Z<<18)^(R>>>18|Z<<14)^(R<<23|Z>>>9),xe=l[q],we=xe.high,ke=xe.low,Se=H+ye+((de=W+be)>>>0<W>>>0?1:0),je=ge+me;H=z,W=U,z=L,U=B,L=Z,B=R,Z=O+(Se=(Se=(Se=Se+fe+((de+=pe)>>>0<pe>>>0?1:0))+we+((de+=ke)>>>0<ke>>>0?1:0))+G+((de+=V)>>>0<V>>>0?1:0))+((R=M+de|0)>>>0<M>>>0?1:0)|0,O=P,M=F,P=T,F=I,T=A,I=D,A=Se+(ve+he+(je>>>0<ge>>>0?1:0))+((D=de+je|0)>>>0<de>>>0?1:0)|0}h=r.low=h+D,r.high=p+A+(h>>>0<D>>>0?1:0),v=i.low=v+I,i.high=m+T+(v>>>0<I>>>0?1:0),y=o.low=y+F,o.high=g+P+(y>>>0<F>>>0?1:0),x=a.low=x+M,a.high=b+O+(x>>>0<M>>>0?1:0),k=s.low=k+R,s.high=w+Z+(k>>>0<R>>>0?1:0),j=u.low=j+B,u.high=S+L+(j>>>0<B>>>0?1:0),_=d.low=_+U,d.high=C+z+(_>>>0<U>>>0?1:0),N=f.low=N+W,f.high=E+H+(N>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),o.SHA512)}()},2550:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(8926),n(3713),n(3074),n(8228),n(3650),function(){var e=o,t=e.lib,n=t.WordArray,r=t.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c
vendor: 7,629 bytes, line 2
2=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
2u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],u=l[o];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^i[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,f.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=r._createHelper(d);var h=i.TripleDES=r.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(r)),this._des3=d.createEncryptor(n.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(h)}(),o.TripleDES)}()},3646:function(e,t,n){!function(t,r){var i;e.exports=(i=n(8926),function(e){var t=i,n=t.lib,r=n.Base,o=n.WordArray,a=t.x64={};a.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}})}(),i)}()},1132:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"===typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,i)})):"undefined"!==typeof i&&s(d,{name:n,newValue:i}));return d}},9394:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},4035:function(e){"use strict";
2e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},5705:function(e,t,n){"use strict";n.d(t,{Bc:function(){return Dr},gN:function(){return Sr},l0:function(){return jr},J9:function(){return yr},TA:function(){return gr}});var r=n(2791),i=n(7507),o=n.n(i),a=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===s}(e)}(e)};var s="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function c(e,t,n){return e.concat(t).map((function(e){return l(e,n)}))}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||c,n.isMergeableObject=n.isMergeableObject||a;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=l(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=u(e[i],t[i],n):r[i]=l(t[i],n)})),r}(e,t,n):l(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var d=u,f="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,h=f||p||Function("return this")(),m=h.Symbol,v=Object.prototype,g=v.hasOwnProperty,y=v.toString,b=m?m.toStringTag:void 0;var x=function(e){var t=g.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch(o){}var i=y.call(e);return r&&(t?e[b]=n:delete e[b]),i},w=Object.prototype.toString;var k=function(e){return w.call(e)},S=m?m.toStringTag:void 0;var j=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?x(e):k(e)};var C=function(e,t){return function(n){return e(t(n))}},_=C(Object.getPrototypeOf,Object);var E=function(e){return null!=e&&"object"==typeof e},N=Function.prototype,A=Object.prototype,D=N.toString,T=A.hasOwnProperty,I=D.call(Object);var P=function(e){if(!E(e)||"[object Object]"!=j(e))return!1;var t=_(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&D.call(n)==I};var F=function(){this.__data__=[],this.size=0};var O=function(e,t){return e===t||e!==e&&t!==t};var M=function(e,t){for(var n=e.length;n--;)if(O(e[n][0],t))return n;return-1},Z=Array.prototype.splice;var R=function(e){var t=this.__data__,n=M(t,e);return!(n<0)&&(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,!0)};var L=function(e){var t=this.__data__,n=M(t,e);return n<0?void 0:t[n][1]};var B=function(e){return M(this.__data__,e)>-1};var z=function(e,t){var n=this.__data__,r=M(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function U(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}U.prototype.clear=F,U.prototype.delete=R,U.prototype.get=L,U.prototype.has=B,U.prototype.set=z;var H=U;var W=function(){this.__data__=new H,this.size=0};var q=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var V=function(e){return this.__data__.get(e)};var G=function(e){return this.__data__.has(e)};var $=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var J=function(e){if(!$(e))return!1;var t=j(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},K=h["__core-js_shared__"],Y=function(){var e=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var X=function(e){return!!Y&&Y in e},Q=Function.prototype.toString;var ee=function(e){if(null!=e){try{return Q.call(e)}catch(t){}try{return e+""}catch(t){}}return""},te=/^\[object .+?Constructor\]$/,ne=Function.prototype,re=Object.prototype,ie=ne.toString,oe=re.hasOwnProperty,ae=RegExp("^"+ie.call(oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var se=function(e){return!(!$(e)||X(e))&&(J(e)?ae:te).test(ee(e))};var le=function(e,t){return null==e?void 0:e[t]};var ce=function(e,t){var n=le(e,t);return se(n)?n:void 0},ue=ce(h,"Map"),de=ce(Object,"create");var fe=function(){this.__data__=de?de(null):{},this.size=0};var pe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},he=Object.prototype.hasOwnProperty;var me=function(e){var t=this.__data__;if(de){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return he.call(t,e)?t[e]:void 0},ve=Object.prototype.hasOwnProperty;var ge=function(e){var t=this.__data__;return de?void 0!==t[e]:ve.call(t,e)};var ye=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=de&&void 0===t?"__lodash_hash_undefined__":t,this};function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}be.prototype.clear=fe,be.prototype.delete=pe,be.prototype.get=me,be.prototype.has=ge,be.prototype.set=ye;var xe=be;var we=function(){this.size=0,this.__data__={hash:new xe,map:new(ue||H),string:new xe}};var ke=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Se=function(e,t){var n=e.__data__;return ke(t)?n["string"==typeof t?"string":"hash"]:n.map};var je=function(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t};var Ce=function(e){return Se(this,e).get(e)};var _e=function(e){return Se(this,e).has(e)};var Ee=function(e,t){var n=Se(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ne.prototype.clear=we,Ne.prototype.delete=je,Ne.prototype.get=Ce,Ne.prototype.has=_e,Ne.prototype.set=Ee;var Ae=Ne;var De=function(e,t){var n=this.__data__;if(n instanceof H){var r=n.__data__;if(!ue||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ae(r)}return n.set(e,t),this.size=n.size,this};function Te(e){var t=this.__data__=new H(e);this.size=t.size}Te.prototype.clear=W,Te.prototype.delete=q,Te.prototype.get=V,Te.prototype.has=G,Te.prototype.set=De;var Ie=Te;var Pe=function(e,t){for(var n=-1,r=null==e?0:e.length;
2++n<r&&!1!==t(e[n],n,e););return e},Fe=function(){try{var e=ce(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();var Oe=function(e,t,n){"__proto__"==t&&Fe?Fe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Me=Object.prototype.hasOwnProperty;var Ze=function(e,t,n){var r=e[t];Me.call(e,t)&&O(r,n)&&(void 0!==n||t in e)||Oe(e,t,n)};var Re=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Oe(n,s,l):Ze(n,s,l)}return n};var Le=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var Be=function(e){return E(e)&&"[object Arguments]"==j(e)},ze=Object.prototype,Ue=ze.hasOwnProperty,He=ze.propertyIsEnumerable,We=Be(function(){return arguments}())?Be:function(e){return E(e)&&Ue.call(e,"callee")&&!He.call(e,"callee")},qe=We,Ve=Array.isArray;var Ge=function(){return!1},$e="object"==typeof exports&&exports&&!exports.nodeType&&exports,Je=$e&&"object"==typeof module&&module&&!module.nodeType&&module,Ke=Je&&Je.exports===$e?h.Buffer:void 0,Ye=(Ke?Ke.isBuffer:void 0)||Ge,Xe=/^(?:0|[1-9]\d*)$/;var Qe=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Xe.test(e))&&e>-1&&e%1==0&&e<t};var et=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},tt={};tt["[object Float32Array]"]=tt["[object Float64Array]"]=tt["[object Int8Array]"]=tt["[object Int16Array]"]=tt["[object Int32Array]"]=tt["[object Uint8Array]"]=tt["[object Uint8ClampedArray]"]=tt["[object Uint16Array]"]=tt["[object Uint32Array]"]=!0,tt["[object Arguments]"]=tt["[object Array]"]=tt["[object ArrayBuffer]"]=tt["[object Boolean]"]=tt["[object DataView]"]=tt["[object Date]"]=tt["[object Error]"]=tt["[object Function]"]=tt["[object Map]"]=tt["[object Number]"]=tt["[object Object]"]=tt["[object RegExp]"]=tt["[object Set]"]=tt["[object String]"]=tt["[object WeakMap]"]=!1;var nt=function(e){return E(e)&&et(e.length)&&!!tt[j(e)]};var rt=function(e){return function(t){return e(t)}},it="object"==typeof exports&&exports&&!exports.nodeType&&exports,ot=it&&"object"==typeof module&&module&&!module.nodeType&&module,at=ot&&ot.exports===it&&f.process,st=function(){try{var e=ot&&ot.require&&ot.require("util").types;return e||at&&at.binding&&at.binding("util")}catch(t){}}(),lt=st&&st.isTypedArray,ct=lt?rt(lt):nt,ut=Object.prototype.hasOwnProperty;var dt=function(e,t){var n=Ve(e),r=!n&&qe(e),i=!n&&!r&&Ye(e),o=!n&&!r&&!i&&ct(e),a=n||r||i||o,s=a?Le(e.length,String):[],l=s.length;for(var c in e)!t&&!ut.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Qe(c,l))||s.push(c);return s},ft=Object.prototype;var pt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ft)},ht=C(Object.keys,Object),mt=Object.prototype.hasOwnProperty;var vt=function(e){if(!pt(e))return ht(e);var t=[];for(var n in Object(e))mt.call(e,n)&&"constructor"!=n&&t.push(n);return t};var gt=function(e){return null!=e&&et(e.length)&&!J(e)};var yt=function(e){return gt(e)?dt(e):vt(e)};var bt=function(e,t){return e&&Re(t,yt(t),e)};var xt=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},wt=Object.prototype.hasOwnProperty;var kt=function(e){if(!$(e))return xt(e);var t=pt(e),n=[];for(var r in e)("constructor"!=r||!t&&wt.call(e,r))&&n.push(r);return n};var St=function(e){return gt(e)?dt(e,!0):kt(e)};var jt=function(e,t){return e&&Re(t,St(t),e)},Ct="object"==typeof exports&&exports&&!exports.nodeType&&exports,_t=Ct&&"object"==typeof module&&module&&!module.nodeType&&module,Et=_t&&_t.exports===Ct?h.Buffer:void 0,Nt=Et?Et.allocUnsafe:void 0;var At=function(e,t){if(t)return e.slice();var n=e.length,r=Nt?Nt(n):new e.constructor(n);return e.copy(r),r};var Dt=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Tt=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};var It=function(){return[]},Pt=Object.prototype.propertyIsEnumerable,Ft=Object.getOwnPropertySymbols,Ot=Ft?function(e){return null==e?[]:(e=Object(e),Tt(Ft(e),(function(t){return Pt.call(e,t)})))}:It;var Mt=function(e,t){return Re(e,Ot(e),t)};var Zt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Rt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Zt(t,Ot(e)),e=_(e);return t}:It;var Lt=function(e,t){return Re(e,Rt(e),t)};var Bt=function(e,t,n){var r=t(e);return Ve(e)?r:Zt(r,n(e))};var zt=function(e){return Bt(e,yt,Ot)};var Ut=function(e){return Bt(e,St,Rt)},Ht=ce(h,"DataView"),Wt=ce(h,"Promise"),qt=ce(h,"Set"),Vt=ce(h,"WeakMap"),Gt
2="[object Map]",$t="[object Promise]",Jt="[object Set]",Kt="[object WeakMap]",Yt="[object DataView]",Xt=ee(Ht),Qt=ee(ue),en=ee(Wt),tn=ee(qt),nn=ee(Vt),rn=j;(Ht&&rn(new Ht(new ArrayBuffer(1)))!=Yt||ue&&rn(new ue)!=Gt||Wt&&rn(Wt.resolve())!=$t||qt&&rn(new qt)!=Jt||Vt&&rn(new Vt)!=Kt)&&(rn=function(e){var t=j(e),n="[object Object]"==t?e.constructor:void 0,r=n?ee(n):"";if(r)switch(r){case Xt:return Yt;case Qt:return Gt;case en:return $t;case tn:return Jt;case nn:return Kt}return t});var on=rn,an=Object.prototype.hasOwnProperty;var sn=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&an.call(e,"index")&&(n.index=e.index,n.input=e.input),n},ln=h.Uint8Array;var cn=function(e){var t=new e.constructor(e.byteLength);return new ln(t).set(new ln(e)),t};var un=function(e,t){var n=t?cn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},dn=/\w*$/;var fn=function(e){var t=new e.constructor(e.source,dn.exec(e));return t.lastIndex=e.lastIndex,t},pn=m?m.prototype:void 0,hn=pn?pn.valueOf:void 0;var mn=function(e){return hn?Object(hn.call(e)):{}};var vn=function(e,t){var n=t?cn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var gn=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return cn(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return un(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return vn(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return fn(e);case"[object Symbol]":return mn(e)}},yn=Object.create,bn=function(){function e(){}return function(t){if(!$(t))return{};if(yn)return yn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var xn=function(e){return"function"!=typeof e.constructor||pt(e)?{}:bn(_(e))};var wn=function(e){return E(e)&&"[object Map]"==on(e)},kn=st&&st.isMap,Sn=kn?rt(kn):wn;var jn=function(e){return E(e)&&"[object Set]"==on(e)},Cn=st&&st.isSet,_n=Cn?rt(Cn):jn,En="[object Arguments]",Nn="[object Function]",An="[object Object]",Dn={};Dn[En]=Dn["[object Array]"]=Dn["[object ArrayBuffer]"]=Dn["[object DataView]"]=Dn["[object Boolean]"]=Dn["[object Date]"]=Dn["[object Float32Array]"]=Dn["[object Float64Array]"]=Dn["[object Int8Array]"]=Dn["[object Int16Array]"]=Dn["[object Int32Array]"]=Dn["[object Map]"]=Dn["[object Number]"]=Dn[An]=Dn["[object RegExp]"]=Dn["[object Set]"]=Dn["[object String]"]=Dn["[object Symbol]"]=Dn["[object Uint8Array]"]=Dn["[object Uint8ClampedArray]"]=Dn["[object Uint16Array]"]=Dn["[object Uint32Array]"]=!0,Dn["[object Error]"]=Dn[Nn]=Dn["[object WeakMap]"]=!1;var Tn=function e(t,n,r,i,o,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!$(t))return t;var d=Ve(t);if(d){if(s=sn(t),!l)return Dt(t,s)}else{var f=on(t),p=f==Nn||"[object GeneratorFunction]"==f;if(Ye(t))return At(t,l);if(f==An||f==En||p&&!o){if(s=c||p?{}:xn(t),!l)return c?Lt(t,jt(s,t)):Mt(t,bt(s,t))}else{if(!Dn[f])return o?t:{};s=gn(t,f,l)}}a||(a=new Ie);var h=a.get(t);if(h)return h;a.set(t,s),_n(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):Sn(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var m=d?void 0:(u?c?Ut:zt:c?St:yt)(t);return Pe(m||t,(function(i,o){m&&(i=t[o=i]),Ze(s,o,e(i,n,r,o,t,a))})),s};var In=function(e){return Tn(e,4)};var Pn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var Fn=function(e){return"symbol"==typeof e||E(e)&&"[object Symbol]"==j(e)};function On(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(On.Cache||Ae),n}On.Cache=Ae;var Mn=On;var Zn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rn=/\\(\\)?/g,Ln=function(e){var t=Mn(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Zn,(function(e,n,r,i){t.push(r?i.replace(Rn,"$1"):n||e)})),t}));var Bn=function(e){if("string"==typeof e||Fn(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},zn=m?m.prototype:void 0,Un=zn?zn.toString:void 0;var Hn=function e(t){if("string"==typeof t)return t;if(Ve(t))return Pn(t,e)+"";if(Fn(t))return Un?Un.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};var Wn=function(e){return null==e?"":Hn(e)};var qn=function(e){return Ve(e)?Pn(e,Bn):Fn(e)?[e]:Dt(Ln(Wn(e)))};var Vn=function(e,t){},Gn=n(2110),$n=n.n(Gn);var Jn=function(e){return Tn(e,5)};function Kn(){return Kn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kn.apply(this,arguments)}function Yn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Xn(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function Qn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var er=function(e){return Array.isArray(e)&&0===e.length},tr=function(e){return"function"===typeof e},nr=function(e){return null!==e&&"object"===typeof e},rr=function(e){return String(Math.floor(Number(e)))===e},ir=function(e){return"[object String]"===Object.prototype.toString.call(e)},or=function(e){return 0===r.Children.count(e)},ar=function(e){return nr(e)&&tr(e.then)};function sr(e,t,n,r){void 0===r&&(r=0);for(var i=qn(t);e&&r<i.length;)e=e[i[r++]];return void 0===e?n:e}function lr(e,t,n){for(var r=In(e),i=r,o=0,a=qn(t);o<a.length-1;o++){var s=a[o],l=sr(e,a.slice(0,o+1));if(l&&(nr(l)||Array.isArray(l)))i=i[s]=In(l);else{var c=a[o+1];i=i[s]=rr(c)&&Number(c)>=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}function cr(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,o=Object.keys(e);i<o.length;i++){var a=o[i],s=e[a];nr(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},cr(s,t,n,r[a])):r[a]=t}return r}var ur=(0,r.createContext)(void 0);ur.displayName="FormikContext";var dr=ur.Provider,fr=ur.Consumer;function pr(){var e=(0,r.useContext)(ur);return e||Vn(!1),e}function hr(e,t){switch(t.type){case"SET_VALUES":return Kn({},e,{values:t.payload});case"SET_TOUCHED":return Kn({},e,{touched:t.payload});case"SET_ERRORS":return o()(e.errors,t.payload)?e:Kn({},e,{errors:t.payload});case"SET_STATUS":return Kn({},e,{status:t.payload});case"SET_ISSUBMITTING":return Kn({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Kn({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Kn({},e,{values:lr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Kn({},e,{touched:lr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Kn({},e,{errors:lr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Kn({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Kn({},e,{touched:cr(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Kn({},e,{isSubmitting:!1});default:return e}}var mr={},vr={};function gr(e){var t=e.validateOnChange,n=void 0===t||t,i=e.validateOnBlur,a=void 0===i||i,s=e.validateOnMount,l=void 0!==s&&s,c=e.isInitialValid,u=e.enableReinitialize,f=void 0!==u&&u,p=e.onSubmit,h=Xn(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),m=Kn({validateOnChange:n,validateOnBlur:a,validateOnMount:l,onSubmit:p},h),v=(0,r.useRef)(m.initialValues),g=(0,r.useRef)(m.initialErrors||mr),y=(0,r.useRef)(m.initialTouched||vr),b=(0,r.useRef)(m.initialStatus),x=(0,r.useRef)(!1),w=(0,r.useRef)({});(0,r.useEffect)((function(){return x.current=!0,function(){x.current=!1}}),[]);var k=(0,r.useReducer)(hr,{values:m.initialValues,errors:m.initialErrors||mr,touched:m.initialTouched||vr,status:m.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=k[0],j=k[1],C=(0,r.useCallback)((function(e,t){return new Promise((function(n,r){var i=m.validate(e,t);null==i?n(mr):ar(i)?i.then((function(e){n(e||mr)}),(function(e){r(e)})):n(i)}))}),[m.validate]),_=(0,r.useCallback)((function(e,t){var n=m.validationSchema,r=tr(n)?n(t):n,i=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);void 0===r&&(r={});var i=br(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}(e,r);return new Promise((function(e,t){i.then((function(){e(mr)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return lr(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;sr(t,a.path)||(t=lr(t,a.path,a.message))}}return t}(n)):t(n)}))}))}),[m.validationSchema]),E=(0,r.useCallback)((function(e,t){return new Promise((function(n){return n(w.current[e].validate(t))}))}),[]),N=(0,r.useCallback)((function(e){var t=Object.keys(w.current).filter((function(e){return tr(w.current[e].validate)})),n=t.length>0?t.map((function(t){return E(t,sr(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=lr(e,t[r],n)),e}),{})}))}),[E]),A=(0,r.useCallback)((function(e){return Promise.all([N(e),m.validationSchema?_(e):{},m.validate?C(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return d.all([t,n,r],{arrayMerge:xr})}))}),[m.validate,m.validationSchema,N,C,_]),D=kr((function(e){return void 0===e&&(e=S.values),j({type:"SET_ISVALIDATING",payload:!0}),A(e).then((function(e){return x.current&&(j({type:"SET_ISVALIDATING",payload:!1}),j({type:"SET_ERRORS",payload:e})),e}))}));(0,r.useEffect)((function(){l&&!0===x.current&&o()(v.current,m.initialValues)&&D(v.current)}),[l,D]);var T=(0,r.useCallback)((function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:g.current?g.current:m.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:m.initialTouched||{},i=e&&e.status?e.status:b.current?b.current:m.initialStatus;v.current=t,g.current=n,y.current=r,b.current=i;var o=function(){j({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"===typeof e.submitCount?e.submitCount:0}})};if(m.onReset){var a=m.onReset(S.values,K);ar(a)?a.then(o):o()}else o()}),[m.initialErrors,m.initialStatus,m.initialTouched]);(0,r.useEffect)((function(){!0!==x.current||o()(v.current,m.initialValues)||(f&&(v.current=m.initialValues,T()),l&&D(v.current))}),[f,m.initialValues,T,l,D]),(0,r.useEffect)((function(){f&&!0===x.current&&!o()(g.current,m.initialErrors)&&(g.current=m.initialErrors||mr,j({type:"SET_ERRORS",payload:m.initialErrors||mr}))}),[f,m.initialErrors]),(0,r.useEffect)((function(){f&&!0===x.current&&!o()(y.current,m.initialTouched)&&(y.current=m.initialTouched||vr,j({type:"SET_TOUCHED",payload:m.initialTouched||vr}))}),[f,m.initialTouched]),(0,r.useEffect)((function(){f&&!0===x.current&&!o()(b.current,m.initialStatus)&&(b.current=m.initialStatus,j({type:"SET_STATUS",payload:m.initialStatus}))}),[f,m.initialStatus,m.initialTouched]);var I=kr((function(e){if(w.current[e]&&tr(w.current[e].validate)){var t=sr(S.values,e),n=w.current[e].validate(t);return ar(n)?(j({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){j({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),j({type:"SET_ISVALIDATING",payload:!1})}))):(j({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(j({type:"SET_ISVALIDATING",payload:!0}),_(S.values,e).then((function(e){return e})).then((function(t){j({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),j({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),P=(0,r.useCallback)((function(e,t){var n=t.validate;w.current[e]={validate:n}}),[]),F=(0,r.useCallback)((function(e){delete w.current[e]}),[]),O=kr((function(e,t){return j({type:"SET_TOUCHED",payload:e}),(void 0===t?a:t)?D(S.values):Promise.resolve()})),M=(0,r.useCallback)((function(e){j({type:"SET_ERRORS",payload:e})}),[]),Z=kr((function(e,t){var r=tr(e)?e(S.values):e;return j({type:"SET_VALUES",payload:r}
2),(void 0===t?n:t)?D(r):Promise.resolve()})),R=(0,r.useCallback)((function(e,t){j({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),L=kr((function(e,t,r){return j({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?D(lr(S.values,e,t)):Promise.resolve()})),B=(0,r.useCallback)((function(e,t){var n,r=t,i=e;if(!ir(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,c=o.value,u=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||(s||l),i=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"===typeof e)return Boolean(t);var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!i)return r.concat(n);if(!i)return r;return r.slice(0,o).concat(r.slice(o+1))}(sr(S.values,r),u,c):d&&f?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(d):c}r&&L(r,i)}),[L,S.values]),z=kr((function(e){if(ir(e))return function(t){return B(t,e)};B(e)})),U=kr((function(e,t,n){return void 0===t&&(t=!0),j({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?a:n)?D(S.values):Promise.resolve()})),H=(0,r.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id,o=(n.outerHTML,t||(r||i));U(o,!0)}),[U]),W=kr((function(e){if(ir(e))return function(t){return H(t,e)};H(e)})),q=(0,r.useCallback)((function(e){tr(e)?j({type:"SET_FORMIK_STATE",payload:e}):j({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),V=(0,r.useCallback)((function(e){j({type:"SET_STATUS",payload:e})}),[]),G=(0,r.useCallback)((function(e){j({type:"SET_ISSUBMITTING",payload:e})}),[]),$=kr((function(){return j({type:"SUBMIT_ATTEMPT"}),D().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=Y()))return}catch(r){throw r}return Promise.resolve(n).then((function(e){return x.current&&j({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(x.current)throw j({type:"SUBMIT_FAILURE"}),e}))}if(x.current&&(j({type:"SUBMIT_FAILURE"}),t))throw e}))})),J=kr((function(e){e&&e.preventDefault&&tr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tr(e.stopPropagation)&&e.stopPropagation(),$().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),K={resetForm:T,validateForm:D,validateField:I,setErrors:M,setFieldError:R,setFieldTouched:U,setFieldValue:L,setStatus:V,setSubmitting:G,setTouched:O,setValues:Z,setFormikState:q,submitForm:$},Y=kr((function(){return p(S.values,K)})),X=kr((function(e){e&&e.preventDefault&&tr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tr(e.stopPropagation)&&e.stopPropagation(),T()})),Q=(0,r.useCallback)((function(e){return{value:sr(S.values,e),error:sr(S.errors,e),touched:!!sr(S.touched,e),initialValue:sr(v.current,e),initialTouched:!!sr(y.current,e),initialError:sr(g.current,e)}}),[S.errors,S.touched,S.values]),ee=(0,r.useCallback)((function(e){return{setValue:function(t,n){return L(e,t,n)},setTouched:function(t,n){return U(e,t,n)},setError:function(t){return R(e,t)}}}),[L,U,R]),te=(0,r.useCallback)((function(e){var t=nr(e),n=t?e.name:e,r=sr(S.values,n),i={name:n,value:r,onChange:z,onBlur:W};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!(!Array.isArray(r)||!~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i}),[W,z,S.values]),ne=(0,r.useMemo)((function(){return!o()(v.current,S.values)}),[v.current,S.values]),re=(0,r.useMemo)((function(){return"undefined"!==typeof c?ne?S.errors&&0===Object.keys(S.errors).length:!1!==c&&tr(c)?c(m):c:S.errors&&0===Object.keys(S.errors).length}),[c,ne,S.errors,m]);return Kn({},S,{initialValues:v.current,initialErrors:g.current,initialTouched:y.current,initialStatus:b.current,handleBlur:W,handleChange:z,handleReset:X,handleSubmit:J,resetForm:T,setErrors:M,setFormikState:q,setFieldTouched:U,setFieldValue:L,setFieldError:R,setStatus:V,setSubmitting:G,setTouched:O,setValues:Z,submitForm:$,validateForm:D,validateField:I,isValid:re,dirty:ne,unregisterField:F,registerField:P,getFieldProps:te,getFieldMeta:Q,getFieldHelpers:ee,validateOnBlur:a,validateOnChange:n,validateOnMount:l})}function yr(e){var t=gr(e),n=e.component,i=e.children,o=e.render,a=e.innerRef;return(0,r.useImperativeHandle)(a,(function(){return t})),(0,r.createElement)(dr,{value:t},n?(0,r.createElement)(n,t):o?o(t):i?tr(i)?i(t):or(i)?null:r.Children.only(i):null)}function br(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map((function(e){return!0===Array.isArray(e)||P(e)?br(e):""!==e?e:void 0})):P(e[r])?t[r]=br(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function xr(e,t,n){var r=e.slice();return t.forEach((function(t,i){if("undefined"===typeof r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?d(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=d(e[i],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var wr="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;function kr(e){var t=(0,r.useRef)(e);return wr((function(){t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)}),[])}function Sr(e){var t=e.validate,n=e.name,i=e.render,o=e.children,a=e.as,s=e.component,l=Xn(e,["validate","name","render","children","as","component"]),c=Xn(pr(),["validate","validationSchema"]);var u=c.registerField,d=c.unregisterField;(0,r.useEffect)((function(){return u(n,{validate:t}),function(){d(n)}}),[u,d,n,t]);var f=c.getFieldProps(Kn({name:n},l)),p=c.getFieldMeta(n),h={field:f,form:c};if(i)return i(Kn({},h,{meta:p}));if(tr(o))return o(Kn({},h,{meta:p}));if(s){if("string"===typeof s){var m=l.innerRef,v=Xn(l,["innerRef"]);return(0,r.createElement)(s,Kn({ref:m},f,v),o)}return(0,r.createElement)(s,Kn({field:f,form:c},l),o)}var g=a||"input";if("string"===typeof g){var y=l.innerRef,b=Xn(l,["innerRef"]);return(0,r.createElement)(g,Kn({ref:y},f,b),o)}return(0,r.createElement)(g,Kn({},f,l),o)}var jr=(0,r.forwardRef)((function(e,t){var n=e.action,i=Xn(e,["action"]),o=null!=n?n:"#",a=pr(),s=a.handleReset,l=a.handleSubmit;return(0,r.createElement)("form",Object.assign({onSubmit:l,ref:t,onReset:s,action:o},i))}));function Cr(e){var t=function(t){return(0,r.createElement)(fr,null,(function(n){return n||Vn(!1),(0,r.createElement)(e,Object.assign({},t,{formik:n}))}))},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",$n()(t,e)}jr.displayName="Form";var _r=function(e,t,n){var r=Er(e);return r.splice(t,0,n),r},Er=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Kn({},e,{length:t+1}))}return[]},Nr=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)((function(n){var i="function"===typeof r?r:e,a="function"===typeof t?t:e,s=lr(n.values,o,e(sr(n.values,o))),l=r?i(sr(n.errors,o)):void 0,c=t?a(sr(n.touched,o)):void 0;return er(l)&&(l=void 0),er(c)&&(c=void 0),Kn({},n,{values:s,errors:r?lr(n.errors,o,l):n.errors,touched:t?lr(n.touched,o,c):n.touched})}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(Er(t),[Jn(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Er(e),i=r[t];return r[t]=r[n],r[n]=i,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Er(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return _r(n,e,t)}),(function(t){return _r(t,e,null)}),(function(t){return _r(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Er(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Qn(n)),n.pop=n.pop.bind(Qn(n)),n}Yn(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!o()(sr(e.formik.values,e.name),sr(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?Er(n):[];return t||(t=r[e]),tr(r.splice)&&r.splice(e,1),r}),!0,!0),t},n.pop=function(){var e;return this.updateArrayField((function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,i=t.render,o=t.children,a=t.name,s=Kn({},e,{form:Xn(t.formik,["validate","validationSchema"]),name:a});return n?(0,r.createElement)(n,s):i?i(s):o?"function"===typeof o?o(s):or(o)?null:r.Children.only(o):null},t}(r.Component);Nr.defaultProps={validateOnChange:!0};var Ar=function(e){function t(){return e.apply(this,arguments)||this}Yn(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return sr(this.props.formik.errors,this.props.name)!==sr(e.formik.errors,this.props.name)||sr(this.props.formik.touched,this.props.name)!==sr(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},n.render=function(){var e=this.props,t=e.component,n=e.formik,i=e.render,o=e.children,a=e.name,s=Xn(e,["component","formik","render","children","name"]),l=sr(n.touched,a),c=sr(n.errors,a);return l&&c?i?tr(i)?i(c):null:o?tr(o)?o(c):null:t?(0,r.createElement)(t,s,c):c:null},t}(r.Component),Dr=Cr(Ar)},2110:function(e,t,n){"use strict";var r=n(8309),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v<a.length;++v){var g=a[v];if(!o[g]&&(!r||!r[g])&&(!m||!m[g])&&(!s||!s[g])){var y=f(n,g);try{c(t,g,y)}catch(b){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case m:case l:return e;default:return t}}case i:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=w},8309:function(e,t,n){"use strict";e.exports=n(746)},1065:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;
2\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=l.source}m.prototype.content=e;var v=[];function g(t){var n=new Error(l.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=f,n.source=e,!l.silent)throw n;v.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function x(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function k(){var e=h(),n=y(i);if(n){if(w(),!y(o))return g("property missing ':'");var r=y(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(s),l}}return b(),function(){var e,t=[];for(x(t);e=k();)!1!==e&&(t.push(e),x(t));return t}()}},5586:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},5095:function(e,t,n){var r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,f=u||d||Function("return this")(),p=Object.prototype.toString,h=Math.max,m=Math.min,v=function(){return f.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==i}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function x(){var e=v();if(b(e))return w(e);s=setTimeout(x,function(e){var n=t-(e-l);return d?m(n,o-(e-c)):n}(e))}function w(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function k(){var e=v(),n=b(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(x,t),u?p(e):a}(l);if(d)return s=setTimeout(x,t),p(l)}return void 0===s&&(s=setTimeout(x,t)),a}return t=y(t)||0,g(n)&&(u=!!n.leading,o=(d="maxWait"in n)?h(y(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},k.flush=function(){return void 0===s?a:w(v())},k}},2087:function(e){var t=!0,n=!1,r=!1;function i(e,t,n){var r=e.attrIndex(t),i=[t,n];r<0?e.attrPush(i):e.attrs[r]=i}function o(e,t){for(var n=e[t].level-1,r=t-1;r>=0;r--)if(e[r].level===n)return r;return-1}function a(e,t){return"inline"===e[t].type&&function(e){return"paragraph_open"===e.type}(e[t-1])&&function(e){return"list_item_open"===e.type}(e[t-2])&&function(e){return 0===e.content.indexOf("[ ] ")||0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] ")}(e[t])}function s(e,i){if(e.children.unshift(function(e,n){var r=new n("html_inline","",0),i=t?' disabled="" ':"";0===e.content.indexOf("[ ] ")?r.content='<input class="task-list-item-checkbox"'+i+'type="checkbox">':0!==e.content.indexOf("[x] ")&&0!==e.content.indexOf("[X] ")||(r.content='<input class="task-list-item-checkbox" checked=""'+i+'type="checkbox">');return r}(e,i)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),n)if(r){e.children.pop();var o="task-item-"+Math.ceil(1e7*Math.random()-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+o+'">',e.children.push(function(e,t,n){var r=new n("html_inline","",0);return r.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",r.attrs=[{for:t}],r}(e.content,o,i))}else e.children.unshift(function(e){var t=new e("html_inline","",0);return t.content="<label>",t}(i)),e.children.push(function(e){var t=new e("html_inline","",0);return t.content="</label>",t}(i))}
2e.exports=function(e,l){l&&(t=!l.enabled,n=!!l.label,r=!!l.labelAfter),e.core.ruler.after("inline","github-task-lists",(function(e){for(var n=e.tokens,r=2;r<n.length;r++)a(n,r)&&(s(n[r],e.Token),i(n[r-2],"class","task-list-item"+(t?"":" enabled")),i(n[o(n,r-2)],"class","contains-task-list"))}))}},8136:function(e,t,n){e.exports=n(166)},4872:function(e){"use strict";var t=!("undefined"===typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},5811:function(e){var t,n,r,i,o,a,s,l,c,u,d,f,p,h,m,v=!1;function g(){if(!v){v=!0;var e=navigator.userAgent,g=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),h=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),d=!!/Win64/.exec(e),g){(t=g[1]?parseFloat(g[1]):g[5]?parseFloat(g[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(e);a=b?parseFloat(b[1])+4:t,n=g[2]?parseFloat(g[2]):NaN,r=g[3]?parseFloat(g[3]):NaN,(i=g[4]?parseFloat(g[4]):NaN)?(g=/(?:Chrome\/(\d+\.\d+))/.exec(e),o=g&&g[1]?parseFloat(g[1]):NaN):o=NaN}else t=n=r=o=i=NaN;if(y){if(y[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!x||parseFloat(x[1].replace("_","."))}else s=!1;l=!!y[2],c=!!y[3]}else s=l=c=!1}}var y={ie:function(){return g()||t},ieCompatibilityMode:function(){return g()||a>t},ie64:function(){return y.ie()&&d},firefox:function(){return g()||n},opera:function(){return g()||r},webkit:function(){return g()||i},safari:function(){return y.webkit()},chrome:function(){return g()||o},windows:function(){return g()||l},osx:function(){return g()||s},linux:function(){return g()||c},iphone:function(){return g()||f},mobile:function(){return g()||f||p||u||m},nativeApp:function(){return g()||h},android:function(){return g()||u},ipad:function(){return g()||p}};e.exports=y},5780:function(e,t,n){"use strict";var r,i=n(4872);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},166:function(e,t,n){"use strict";var r=n(5811),i=n(5780);function o(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,i=10*n,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}o.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=o},888:function(e,t,n){"use strict";var r=n(9047);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
2;return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2758:function(e){"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),c=new t(512);function u(e){return s.get(e)||s.set(e,d(e).map((function(e){return e.replace(a,"$2")})))}function d(e){return e.match(n)||[""]}function f(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function p(e){return!f(e)&&(function(e){return e.match(i)&&!e.match(r)}(e)||function(e){return o.test(e)}(e))}e.exports={Cache:t,split:d,normalizePath:u,setter:function(e){var t=u(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,i=t.length,o=e;r<i-1;){var a=t[r];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;o=o[t[r++]]}o[t[r]]=n}))},getter:function(e,t){var n=u(e);return c.get(e)||c.set(e,(function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(f(t)||r.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){!function(e,t,n){var r,i,o,a,s=e.length;for(i=0;i<s;i++)(r=e[i])&&(p(r)&&(r='"'+r+'"'),o=!(a=f(r))&&/^\d+$/.test(r),t.call(n,r,a,o,i,e))}(Array.isArray(e)?e:d(e),t,n)}}},4463:function(e,t,n){"use strict";var r=n(2791),i=n(5296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)}
vendor: 33,586 bytes, line 2
2)),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),E=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var F=Symbol.iterator;function O(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=F&&e[F]||e["@@iterator"])?e:null}var M,Z=Object.assign;function R(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var L=!1;function B(e,t){if(!e||L)return"";L=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{L=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?R(e):""}function z(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case C:return"Profiler";case j:return"StrictMode";case A:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return U(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function $(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&$(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return Z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,je=null;function Ce(e){if(e=bi(e)){if("function"!==typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),ke(e.stateNode,e.type,t))}}function _e(e){Se?je?je.push(e):je=[e]:Se=e}function Ee(){if(Se){var e=Se,t=je;if(je=Se=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ne(e,t){return e(t)}function Ae(){}var De=!1;function Te(e,t,n){if(De)return e(t,n);De=!0;try{return Ne(e,t,n)}finally{De=!1,(null!==Se||null!==je)&&(Ae(),Ee())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Pe=!1;if(u)try{var Fe={};Object.defineProperty(Fe,"passive",{get:function(){Pe=!0}}),window.addEventListener("test",Fe,Fe),window.removeEventListener("test",Fe,Fe)}catch(ue){Pe=!1}function Oe(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,Ze=null,Re=!1,Le=null,Be={onError:function(e){Me=!0,Ze=e}};function ze(e,t,n,r,i,o,a,s,l){Me=!1,Ze=null,Oe.apply(Be,arguments)}function Ue(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Ue(e)!==e)throw Error(o(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return We(i),e;if(a===r)return We(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ge=i.unstable_scheduleCallback,$e=i.unstable_cancelCallback,Je=i.unstable_shouldYield,Ke=i.unstable_requestPaint,Ye=i.unstable_now,Xe=i.unstable_getCurrentPriorityLevel,Qe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,kt,St,jt,Ct,_t=!1,Et=[],Nt=null,At=null,Dt=null,Tt=new Map,It=new Map,Pt=[],Ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ot(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Zt(e){var t=yi(e.target);if(null!==t){var n=Ue(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ct(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Rt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Lt(e,t,n){Rt(e)&&n.delete(t)}function Bt(){_t=!1,null!==Nt&&Rt(Nt)&&(Nt=null),null!==At&&Rt(At)&&(At=null),null!==Dt&&Rt(Dt)&&(Dt=null),Tt.forEach(Lt),It.forEach(Lt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bt)))}function Ut(e){function t(t){return zt(t,e)}if(0<Et.length){zt(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&zt(Nt,e),null!==At&&zt(At,e),null!==Dt&&zt(Dt,e),Tt.forEach(t),It.forEach(t),n=0;n<Pt.length;n++)(r=Pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Pt.length&&null===(n=Pt[0]).blockedOn;)Zt(n),null===n.blockedOn&&Pt.shift()}var Ht=x.ReactCurrentBatchConfig,Wt=!0;function qt(e,t,n,r){var i=bt,o=Ht.transition;Ht.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=i,Ht.transition=o}}function Vt(e,t,n,r){var i=bt,o=Ht.transition;Ht.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=i,Ht.transition=o}}function Gt(e,t,n,r){if(Wt){var i=Jt(e,t,n,r);if(null===i)Wr(e,t,r,$t,n),Ot(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,i),!0;case"dragenter":return At=Mt(At,e,t,n,r,i),!0;case"mouseover":return Dt=Mt(Dt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Tt.set(o,Mt(Tt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,It.set(o,Mt(It.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Ot(e,r),4&t&&-1<Ft.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Jt(e,t,n,r))&&Wr(e,t,r,$t,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var $t=null;function Jt(e,t,n,r){if($t=null,null!==(e=yi(e=we(r))))if(null===(t=Ue(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return $t=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Qe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Qt=null;function en(){if(Qt)return Qt;var e,t,n=Xt,r=n.length,i="value"in Yt?Yt.value:Yt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Qt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return Z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=Z({},cn,{view:0,detail:0}),fn=on(dn),pn=Z({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(Z({},pn,{dataTransfer:0})),vn=on(Z({},dn,{relatedTarget:0})),gn=on(Z({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=Z({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(Z({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return jn}var _n=Z({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),En=on(_n),Nn=on(Z({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(Z({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Dn=on(Z({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=Z({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(Tn),Pn=[9,13,27,32],Fn=u&&"CompositionEvent"in window,On=null;u&&"documentMode"in document&&(On=document.documentMode);var Mn=u&&"TextEvent"in window&&!On,Zn=u&&(!Fn||On&&8<On&&11>=On),Rn=String.fromCharCode(32),Ln=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function qn(e,t,n,r){_e(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Gn=null;function $n(e){Rr(e,0)}function Jn(e){if(G(xi(e)))return e}function Kn(e,t){if("change"===e)return t}var Yn=!1;if(u){var Xn;if(u){var Qn="oninput"in document;if(!Qn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Qn="function"===typeof er.oninput}Xn=Qn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Gn=Vn=null)}function nr(e){if("value"===e.propertyName&&Jn(Gn)){var t=[];qn(t,Gn,e,we(e)),Te($n,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Gn)}function or(e,t){if("click"===e)return Jn(t)}function ar(e,t){if("input"===e||"change"===e)return Jn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=$();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=$((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==$(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Vr(gr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},jr={};function Cr(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in jr)return Sr[e]=n[t];return e}u&&(jr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var _r=Cr("animationend"),Er=Cr("animationiteration"),Nr=Cr("animationstart"),Ar=Cr("transitionend"),Dr=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Dr.set(e,t),l(t,[e])}for(var Pr=0;Pr<Tr.length;Pr++){var Fr=Tr[Pr];Ir(Fr.toLowerCase(),"on"+(Fr[0].toUpperCase()+Fr.slice(1)))}Ir(_r,"onAnimationEnd"),Ir(Er,"onAnimationIteration"),Ir(Nr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Ar,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Zr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,c){if(ze.apply(this,arguments),Me){if(!Me)throw Error(o(198));var u=Ze;Me=!1,Ze=null,Re||(Re=!0,Le=u)}}(r,t,void 0,e),e.currentTarget=null}function Rr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Zr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Zr(i,s,c),o=l}}}if(Re)throw e=Le,Re=!1,Le=null,e}function Lr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[zr]){e[zr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Br("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Kt(t)){case 1:var i=qt;break;case 4:i=Vt;break;default:i=Gt}n=i.bind(null,t,n,e),i=void 0,!Pe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Te((function(){var r=o,i=we(n),a=[];e:{var s=Dr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=En;break;case"focusin":c="focus",l=vn;break;case"focusout":c="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case _r:case Er:case Nr:l=gn;break;case Ar:l=Dn;break;case"scroll":l=fn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Ie(h,f))&&u.push(qr(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!yi(c)&&!c[hi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yi(c):null)&&(c!==(d=Ue(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Nn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:xi(l),p=null==c?s:xi(c),(s=new u(m,h+"leave",l,n,i)).target=d,s.relatedTarget=p,m=null,yi(i)===r&&((u=new u(f,h+"enter",c,n,i)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Gr(p))h++;for(p=0,m=f;m;m=Gr(m))p++;for(;0<h-p;)u=Gr(u),h--;for(;0<p-h;)f=Gr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Gr(u),f=Gr(f)}u=null}else u=null;null!==l&&$r(a,s,l,u,!1),null!==c&&null!==d&&$r(a,d,c,u,!0)}if("select"===(l=(s=r?xi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Kn;else if(Wn(s))if(Yn)v=ar;else{v=ir;var g=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=or);switch(v&&(v=v(e,r))?qn(a,v,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?xi(r):window,e){case"focusin":(Wn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,i)}var y;if(Fn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Zn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(y=en()):(Xt="value"in(Yt=i)?Yt.value:Yt.textContent,Un=!0)),0<(g=Vr(r,b)).length&&(b=new xn(b,e,null,n,i),a.push({event:b,listeners:g}
vendor: 85,388 bytes, line 2
2),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Ln=!0,Rn);case"textInput":return(e=t.data)===Rn&&Ln?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Fn&&Bn(e,t)?(e=en(),Qt=Xt=Yt=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Rr(a,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ie(e,n))&&r.unshift(qr(e,o,i)),null!=(o=Ie(e,t))&&r.push(qr(e,o,i))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function $r(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Ie(n,o))&&a.unshift(qr(n,l,s)):i||null!=(l=Ie(n,o))&&a.push(qr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Jr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Yr(e){return("string"===typeof e?e:""+e).replace(Jr,"\n").replace(Kr,"")}function Xr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(o(425))}function Qr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ut(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,pi="__reactProps$"+di,hi="__reactContainer$"+di,mi="__reactEvents$"+di,vi="__reactListeners$"+di,gi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[fi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[pi]||null}var ki=[],Si=-1;function ji(e){return{current:e}}function Ci(e){0>Si||(e.current=ki[Si],ki[Si]=null,Si--)}function _i(e,t){Si++,ki[Si]=e.current,e.current=t}var Ei={},Ni=ji(Ei),Ai=ji(!1),Di=Ei;function Ti(e,t){var n=e.type.contextTypes;if(!n)return Ei;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ii(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Pi(){Ci(Ai),Ci(Ni)}function Fi(e,t,n){if(Ni.current!==Ei)throw Error(o(168));_i(Ni,t),_i(Ai,n)}function Oi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return Z({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ei,Di=Ni.current,_i(Ni,e),_i(Ai,Ai.current),!0}function Zi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Oi(e,t,Di),r.__reactInternalMemoizedMergedChildContext=e,Ci(Ai),Ci(Ni),_i(Ni,e)):Ci(Ai),_i(Ai,n)}var Ri=null,Li=!1,Bi=!1;function zi(e){null===Ri?Ri=[e]:Ri.push(e)}function Ui(){if(!Bi&&null!==Ri){Bi=!0;var e=0,t=bt;try{var n=Ri;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ri=null,Li=!1}catch(i){throw null!==Ri&&(Ri=Ri.slice(e+1)),Ge(Qe,Ui),i}finally{bt=t,Bi=!1}}return null}var Hi=[],Wi=0,qi=null,Vi=0,Gi=[],$i=0,Ji=null,Ki=1,Yi="";function Xi(e,t){Hi[Wi++]=Vi,Hi[Wi++]=qi,qi=e,Vi=t}function Qi(e,t,n){Gi[$i++]=Ki,Gi[$i++]=Yi,Gi[$i++]=Ji,Ji=e;var r=Ki;e=Yi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Ki=1<<32-at(t)+i|n<<i|r,Yi=o+e}else Ki=1<<o|n<<i|r,Yi=e}function eo(e){null!==e.return&&(Xi(e,1),Qi(e,1,0))}function to(e){for(;e===qi;)qi=Hi[--Wi],Hi[Wi]=null,Vi=Hi[--Wi],Hi[Wi]=null;for(;e===Ji;)Ji=Gi[--$i],Gi[$i]=null,Yi=Gi[--$i],Gi[$i]=null,Ki=Gi[--$i],Gi[$i]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ji?{id:Ki,overflow:Yi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ci(e.nextSibling)}function ho(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var vo=x.ReactCurrentBatchConfig;function go(e,t){if(e&&e.defaultProps){for(var n in t=Z({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=ji(null),bo=null,xo=null,wo=null;function ko(){wo=xo=bo=null}function So(e){var t=yo.current;Ci(yo),e._currentValue=t}function jo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Co(e,t){bo=e,wo=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xs=!0),e.firstContext=null)}function _o(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===xo){if(null===bo)throw Error(o(308));xo=e,bo.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Eo=null;function No(e){null===Eo?Eo=[e]:Eo.push(e)}function Ao(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,No(t)):(n.next=i.next,i.next=n),t.interleaved=n,Do(e,r)}function Do(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var To=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Po(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Oo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Al)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Do(e,n)}return null===(i=r.interleaved)?(t.next=t,No(r)):(t.next=i.next,i.next=t),r.interleaved=t,Do(e,n)}function Mo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Zo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ro(e,t,n,r){var i=e.updateQueue;To=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=Z({},d,f);break e;case 2:To=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Zl|=a,e.lanes=a,e.memoizedState=d}}function Lo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Bo=(new r.Component).refs;function zo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:Z({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Uo={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Fo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Oo(e,o,i))&&(rc(t,e,i,r),Mo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Fo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Oo(e,o,i))&&(rc(t,e,i,r),Mo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),i=Fo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Oo(e,i,r))&&(rc(t,e,r,n),Mo(t,e,r))}};function Ho(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function Wo(e,t,n){var r=!1,i=Ei,o=t.contextType;return"object"===typeof o&&null!==o?o=_o(o):(i=Ii(t)?Di:Ni.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ti(e,i):Ei),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Uo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function qo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Uo.enqueueReplaceState(t,t.state,null)}function Vo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Bo,Io(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=_o(o):(o=Ii(t)?Di:Ni.current,i.context=Ti(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(zo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Uo.enqueueReplaceState(i,i.state,null),Ro(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function Go(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===Bo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function $o(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jo(e){return(0,e._init)(e._payload)}function Ko(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Fc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Rc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===I&&Jo(o)===t.type)?((r=i(t,n.props)).ref=Go(e,t,n),r.return=e,r):((r=Oc(n.type,n.key,n.props,null,e.mode,r)).ref=Go(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Lc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Rc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Oc(t.type,t.key,t.props,null,e.mode,n)).ref=Go(e,null,t),n.return=e,n;case k:return(t=Lc(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(te(t)||O(t))return(t=Mc(t,e.mode,n,null)).return=e,t;$o(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?c(e,t,n,r):null;case k:return n.key===i?u(e,t,n,r):null;case I:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||O(n))return null!==i?null:d(e,t,n,r,null);$o(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||O(r))return d(t,e=e.get(n)||null,r,i,null);$o(t,r)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(i,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g,d=v}if(m===s.length)return n(i,d),io&&Xi(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Xi(i,m),c}for(d=r(i,d);m<s.length;m++)null!==(v=h(d,i,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),o=a(v,o,m),null===u?c=v:u.sibling=v,u=v);return e&&d.forEach((function(e){return t(i,e)})),io&&Xi(i,m),c}function v(i,s,l,c){var u=O(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,v),null===d?u=b:d.sibling=b,d=b,m=g}if(y.done)return n(i,m),io&&Xi(i,v),u;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=f(i,y.value,c))&&(s=a(y,s,v),null===d?u=y:d.sibling=y,d=y);return io&&Xi(i,v),u}for(m=r(i,m);!y.done;v++,y=l.next())null!==(y=h(m,i,v,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=a(y,s,v),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Xi(i,v),u}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===S){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===I&&Jo(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=Go(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===S?((o=Mc(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Oc(a.type,a.key,a.props,null,r.mode,l)).ref=Go(r,o,a),l.return=r,r=l)}return s(r);case k:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Lc(a,r.mode,l)).return=r,r=o}return s(r);case I:return e(r,o,(u=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(O(a))return v(r,o,a,l);$o(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Rc(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Yo=Ko(!0),Xo=Ko(!1),Qo={},ea=ji(Qo),ta=ji(Qo),na=ji(Qo);function ra(e){if(e===Qo)throw Error(o(174));return e}function ia(e,t){switch(_i(na,t),_i(ta,e),_i(ea,Qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ci(ea),_i(ea,t)}function oa(){Ci(ea),Ci(ta),Ci(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(_i(ta,e),_i(ea,n))}function sa(e){ta.current===e&&(Ci(ea),Ci(ta))}var la=ji(0);function ca(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function da(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var fa=x.ReactCurrentDispatcher,pa=x.ReactCurrentBatchConfig,ha=0,ma=null,va=null,ga=null,ya=!1,ba=!1,xa=0,wa=0;function ka(){throw Error(o(321))}function Sa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ja(e,t,n,r,i,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:ls,e=n(r,i),ba){a=0;do{if(ba=!1,xa=0,25<=a)throw Error(o(301));a+=1,ga=va=null,t.updateQueue=null,fa.current=cs,e=n(r,i)}while(ba)}if(fa.current=as,t=null!==va&&null!==va.next,ha=0,ga=va=ma=null,ya=!1,t)throw Error(o(300));return e}function Ca(){var e=0!==xa;return xa=0,e}function _a(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ga?ma.memoizedState=ga=e:ga=ga.next=e,ga}function Ea(){if(null===va){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=va.next;var t=null===ga?ma.memoizedState:ga.next;if(null!==t)ga=t,va=e;else{if(null===e)throw Error(o(310));e={memoizedState:(va=e).memoizedState,baseState:va.baseState,baseQueue:va.baseQueue,queue:va.queue,next:null},null===ga?ma.memoizedState=ga=e:ga=ga.next=e}return ga}function Na(e,t){return"function"===typeof t?t(e):t}function Aa(e){var t=Ea(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=va,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((ha&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,ma.lanes|=d,Zl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(xs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,ma.lanes|=a,Zl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Da(e){var t=Ea(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(xs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ta(){}function Ia(e,t){var n=ma,r=Ea(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,xs=!0),r=r.queue,Wa(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ga&&1&ga.memoizedState.tag){if(n.flags|=2048,La(9,Fa.bind(null,n,r,i,t),void 0,null),null===Dl)throw Error(o(349));0!==(30&ha)||Pa(n,t,i)}return i}function Pa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Fa(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&Za(e)}function Oa(e,t,n){return n((function(){Ma(t)&&Za(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Za(e){var t=Do(e,1);null!==t&&rc(t,e,1,-1)}function Ra(e){var t=_a();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function La(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ba(){return Ea().memoizedState}function za(e,t,n,r){var i=_a();ma.flags|=e,i.memoizedState=La(1|t,n,void 0,void 0===r?null:r)}function Ua(e,t,n,r){var i=Ea();r=void 0===r?null:r;var o=void 0;if(null!==va){var a=va.memoizedState;if(o=a.destroy,null!==r&&Sa(r,a.deps))return void(i.memoizedState=La(t,n,o,r))}ma.flags|=e,i.memoizedState=La(1|t,n,o,r)}function Ha(e,t){return za(8390656,8,e,t)}function Wa(e,t){return Ua(2048,8,e,t)}function qa(e,t){return Ua(4,2,e,t)}function Va(e,t){return Ua(4,4,e,t)}function Ga(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function $a(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ua(4,4,Ga.bind(null,t,e),n)}function Ja(){}function Ka(e,t){var n=Ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ya(e,t){var n=Ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xa(e,t,n){return 0===(21&ha)?(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),ma.lanes|=n,Zl|=n,e.baseState=!0),t)}function Qa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=n,pa.transition=r}}function es(){return Ea().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))is(t,n);else if(null!==(n=Ao(e,t,n,r))){rc(n,e,r,tc()),os(n,t,r)}}function ns(e,t,n){var r=nc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,No(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Ao(e,t,i,r))&&(rc(n,e,r,i=tc()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function is(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:_o,useCallback:ka,useContext:ka,useEffect:ka,useImperativeHandle:ka,useInsertionEffect:ka,useLayoutEffect:ka,useMemo:ka,useReducer:ka,useRef:ka,useState:ka,useDebugValue:ka,useDeferredValue:ka,useTransition:ka,useMutableSource:ka,useSyncExternalStore:ka,useId:ka,unstable_isNewReconciler:!1},ss={readContext:_o,useCallback:function(e,t){return _a().memoizedState=[e,void 0===t?null:t],e},useContext:_o,useEffect:Ha,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,za(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return za(4194308,4,e,t)},useInsertionEffect:function(e,t){return za(4,2,e,t)},useMemo:function(e,t){var n=_a();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_a();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_a().memoizedState=e},useState:Ra,useDebugValue:Ja,useDeferredValue:function(e){return _a().memoizedState=e},useTransition:function(){var e=Ra(!1),t=e[0];return e=Qa.bind(null,e[1]),_a().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,i=_a();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Dl)throw Error(o(349));0!==(30&ha)||Pa(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ha(Oa.bind(null,r,a,e),[e]),r.flags|=2048,La(9,Fa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=_a(),t=Dl.identifierPrefix;if(io){var n=Yi;t=":"+t+"R"+(n=(Ki&~(1<<32-at(Ki)-1)).toString(32)+n),0<(n=xa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:_o,useCallback:Ka,useContext:_o,useEffect:Wa,useImperativeHandle:$a,useInsertionEffect:qa,useLayoutEffect:Va,useMemo:Ya,useReducer:Aa,useRef:Ba,useState:function(){return Aa(Na)},useDebugValue:Ja,useDeferredValue:function(e){return Xa(Ea(),va.memoizedState,e)},useTransition:function(){return[Aa(Na)[0],Ea().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Ia,useId:es,unstable_isNewReconciler:!1},cs={readContext:_o,useCallback:Ka,useContext:_o,useEffect:Wa,useImperativeHandle:$a,useInsertionEffect:qa,useLayoutEffect:Va,useMemo:Ya,useReducer:Da,useRef:Ba,useState:function(){return Da(Na)},useDebugValue:Ja,useDeferredValue:function(e){var t=Ea();return null===va?t.memoizedState=e:Xa(t,va.memoizedState,e)},useTransition:function(){return[Da(Na)[0],Ea().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Ia,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Fo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Vl=r),fs(0,t)},n}function ms(e,t,n){(n=Fo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!==typeof r&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_c.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fo(-1,1)).tag=2,Oo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=x.ReactCurrentOwner,xs=!1;function ws(e,t,n,r){t.child=null===e?Xo(t,null,n,r):Yo(t,e.child,n,r)}function ks(e,t,n,r,i){n=n.render;var o=t.ref;return Co(t,i),r=ja(e,t,n,r,o,i),n=Ca(),null===e||xs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Pc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Oc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,js(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return qs(e,t,i)}return t.flags|=1,(e=Fc(o,r)).ref=t.ref,e.return=t,t.child=e}function js(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(xs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,qs(e,t,i);0!==(131072&e.flags)&&(xs=!0)}}return Es(e,t,n,r,i)}function Cs(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_i(Fl,Pl),Pl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_i(Fl,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,_i(Fl,Pl),Pl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,_i(Fl,Pl),Pl|=r;return ws(e,t,i,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,i){var o=Ii(n)?Di:Ni.current;return o=Ti(t,o),Co(t,i),n=ja(e,t,n,r,o,i),r=Ca(),null===e||xs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Ns(e,t,n,r,i){if(Ii(n)){var o=!0;Mi(t)}else o=!1;if(Co(t,i),null===t.stateNode)Ws(e,t),Wo(t,n,r),Vo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=_o(c):c=Ti(t,c=Ii(n)?Di:Ni.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&qo(t,a,r,c),To=!1;var f=t.memoizedState;a.state=f,Ro(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ai.current||To?("function"===typeof u&&(zo(t,n,u,r),l=t.memoizedState),(s=To||Ho(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Po(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:go(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=_o(l):l=Ti(t,l=Ii(n)?Di:Ni.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&qo(t,a,r,l),To=!1,f=t.memoizedState,a.state=f,Ro(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||Ai.current||To?("function"===typeof p&&(zo(t,n,p,r),h=t.memoizedState),(c=To||Ho(t,n,c,r,f,h,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,o,i)}function As(e,t,n,r,i,o){_s(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Zi(t,n,!1),qs(e,t,o);r=t.stateNode,bs.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Yo(t,e.child,null,o),t.child=Yo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Zi(t,n,!0),t.child}function Ds(e){var t=e.stateNode;t.pendingContext?Fi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Fi(0,t.context,!1),ia(e,t.containerInfo)}function Ts(e,t,n,r,i){return ho(),mo(i),t.flags|=256,ws(e,t,n,r),t.child}var Is,Ps,Fs,Os,Ms={dehydrated:null,treeContext:null,retryLane:0};function Zs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rs(e,t,n){var r,i=t.pendingProps,a=la.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),_i(la,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Zc(l,i,0,null),e=Mc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Zs(n),t.memoizedState=Ms,e):Ls(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Zc({mode:"visible",children:r.children},i,0,null),(a=Mc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&Yo(t,e.child,null,s),t.child.memoizedState=Zs(s),t.memoizedState=Ms,a);if(0===(1&t.mode))return Bs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=ds(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),xs||l){if(null!==(r=Dl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Do(e,i),rc(r,e,i,-1))}return vc(),Bs(e,t,s,r=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Nc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Gi[$i++]=Ki,Gi[$i++]=Yi,Gi[$i++]=Ji,Ki=e.id,Yi=e.overflow,Ji=t),t=Ls(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Fc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Fc(r,s):(s=Mc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Zs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,i}return e=(s=e.child).sibling,i=Fc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ls(e,t){return(t=Zc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&mo(r),Yo(t,e.child,null,n),(e=Ls(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),jo(e.return,t,n)}function Us(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=la.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,n,t);else if(19===e.tag)zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_i(la,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ca(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Us(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ca(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Us(t,!0,n,null,o);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ws(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Zl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Fc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $s(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Ii(t.type)&&Pi(),Gs(t),null;case 3:return r=t.stateNode,oa(),Ci(Ai),Ci(Ni),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(sc(oo),oo=null))),Ps(e,t),Gs(t),null;case 5:sa(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Fs(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Gs(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[pi]=a,e=0!==(1&t.mode),n){case"dialog":Lr("cancel",r),Lr("close",r);break;case"iframe":case"object":case"embed":Lr("load",r);break;case"video":case"audio":for(i=0;i<Or.length;i++)Lr(Or[i],r);break;case"source":Lr("error",r);break;case"img":case"image":case"link":Lr("error",r),Lr("load",r);break;case"details":Lr("toggle",r);break;case"input":K(r,a),Lr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Lr("invalid",r);break;case"textarea":ie(r,a),Lr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Lr("scroll",r)}switch(n){case"input":V(r),Q(r,a,!0);break;case"textarea":V(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Qr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[pi]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Lr("cancel",e),Lr("close",e),i=r;break;case"iframe":case"object":case"embed":Lr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Or.length;i++)Lr(Or[i],e);i=r;break;case"source":Lr("error",e),i=r;break;case"img":case"image":case"link":Lr("error",e),Lr("load",e),i=r;break;case"details":Lr("toggle",e),i=r;break;case"input":K(e,r),i=J(e,r),Lr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Z({},r,{value:void 0}),Lr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Lr("invalid",e)}for(a in ye(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ve(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Lr("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":V(e),Q(e,r,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Qr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Os(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Xr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Gs(t),null;case 13:if(Ci(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else ho(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),a=!1}else null!==oo&&(sc(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&la.current)?0===Ol&&(Ol=3):vc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return oa(),Ps(e,t),null===e&&Ur(t.stateNode.containerInfo),Gs(t),null;case 10:return So(t.type._context),Gs(t),null;case 19:if(Ci(la),null===(a=t.memoizedState))return Gs(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Ol||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ca(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _i(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>Hl&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ca(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Gs(t),null}else 2*Ye()-a.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=la.current,_i(la,r?1&n|2:1&n),t):(Gs(t),null);case 22:case 23:return fc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Pl)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Js(e,t){switch(to(t),t.tag){case 1:return Ii(t.type)&&Pi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Ci(Ai),Ci(Ni),da(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Ci(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ci(la),null;case 4:return oa(),null;case 10:return So(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},Fs=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=J(e,i),r=J(e,r),a=[];break;case"select":i=Z({},i,{value:void 0}),r=Z({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Qr)}for(u in ye(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Lr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Os=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Ys=!1,Xs="function"===typeof WeakSet?WeakSet:Set,Qs=null;function el(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Cc(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Cc(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(t,n,o)}i=i.next}while(i!==r)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[mi],delete t[vi],delete t[gi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Qr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,fl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Ys||el(n,t);case 6:var r=dl,i=fl;dl=null,pl(e,t,n),fl=i,null!==(dl=r)&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ut(e)):li(dl,n.stateNode));break;case 4:r=dl,i=fl,dl=n.stateNode.containerInfo,fl=!0,pl(e,t,n),dl=r,fl=i;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&tl(n,t,a),i=i.next}while(i!==r)}pl(e,t,n);break;case 1:if(!Ys&&(el(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Cc(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,pl(e,t,n),Ys=r):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Ac.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,fl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===dl)throw Error(o(160));hl(a,s,i),dl=null,fl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Cc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vl(t,e),yl(e),4&r){try{rl(3,e,e.return),il(3,e)}catch(v){Cc(e,e.return,v)}try{rl(5,e,e.return)}catch(v){Cc(e,e.return,v)}}break;case 1:vl(t,e),yl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(vl(t,e),yl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(v){Cc(e,e.return,v)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(i,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ve(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,u)}switch(l){case"input":X(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(v){Cc(e,e.return,v)}}break;case 6:if(vl(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(v){Cc(e,e.return,v)}}break;case 3:if(vl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(v){Cc(e,e.return,v)}break;case 4:default:vl(t,e),yl(e);break;case 13:vl(t,e),yl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Ul=Ye())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(u=Ys)||d,vl(t,e),Ys=u):vl(t,e),yl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Qs=e,d=e.child;null!==d;){for(f=Qs=d;null!==Qs;){switch(h=(p=Qs).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:el(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Cc(r,n,v)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){kl(f);continue}}null!==h?(h.return=p,Qs=h):kl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(v){Cc(e,e.return,v)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){Cc(e,e.return,v)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vl(t,e),yl(e),4&r&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),ul(e,ll(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;cl(e,ll(e),a);break;default:throw Error(o(161))}}catch(s){Cc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Qs=e,xl(e,t,n)}function xl(e,t,n){for(var r=0!==(1&e.mode);null!==Qs;){var i=Qs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ks;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Ks;var c=Ys;if(Ks=a,(Ys=l)&&!c)for(Qs=i;null!==Qs;)l=(a=Qs).child,22===a.tag&&null!==a.memoizedState?Sl(i):null!==l?(l.return=a,Qs=l):Sl(i);for(;null!==o;)Qs=o,xl(o,t,n),o=o.sibling;Qs=i,Ks=s,Ys=c}wl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Qs=o):wl(e)}}function wl(e){for(;null!==Qs;){var t=Qs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||il(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:go(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Lo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Lo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ut(f)}}}break;default:throw Error(o(163))}Ys||512&t.flags&&ol(t)}catch(p){Cc(t,t.return,p)}}if(t===e){Qs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qs=n;break}Qs=t.return}}function kl(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function Sl(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(l){Cc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Cc(t,i,l)}}var o=t.return;try{ol(t)}catch(l){Cc(t,o,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Cc(t,a,l)}}}catch(l){Cc(t,t.return,l)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var jl,Cl=Math.ceil,_l=x.ReactCurrentDispatcher,El=x.ReactCurrentOwner,Nl=x.ReactCurrentBatchConfig,Al=0,Dl=null,Tl=null,Il=0,Pl=0,Fl=ji(0),Ol=0,Ml=null,Zl=0,Rl=0,Ll=0,Bl=null,zl=null,Ul=0,Hl=1/0,Wl=null,ql=!1,Vl=null,Gl=null,$l=!1,Jl=null,Kl=0,Yl=0,Xl=null,Ql=-1,ec=0;function tc(){return 0!==(6&Al)?Ye():-1!==Ql?Ql:Ql=Ye()}function nc(e){return 0===(1&e.mode)?1:0!==(2&Al)&&0!==Il?Il&-Il:null!==vo.transition?(0===ec&&(ec=mt()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function rc(e,t,n,r){if(50<Yl)throw Yl=0,Xl=null,Error(o(185));gt(e,n,r),0!==(2&Al)&&e===Dl||(e===Dl&&(0===(2&Al)&&(Rl|=n),4===Ol&&lc(e,Il)),ic(e,r),1===n&&0===Al&&0===(1&t.mode)&&(Hl=Ye()+500,Li&&Ui()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Dl?Il:0);if(0===r)null!==n&&$e(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&$e(n),1===t)0===e.tag?function(e){Li=!0,zi(e)}(cc.bind(null,e)):zi(cc.bind(null,e)),ai((function(){0===(6&Al)&&Ui()})),n=null;else{switch(xt(r)){case 1:n=Qe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Dc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Ql=-1,ec=0,0!==(6&Al))throw Error(o(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=ft(e,e===Dl?Il:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var i=Al;Al|=2;var a=mc();for(Dl===e&&Il===t||(Wl=null,Hl=Ye()+500,pc(e,t));;)try{bc();break}catch(l){hc(e,l)}ko(),_l.current=a,Al=i,null!==Tl?t=0:(Dl=null,Il=0,t=Ol)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=ac(e,i))),1===t)throw n=Ml,pc(e,0),lc(e,r),ic(e,Ye()),n;if(6===t)lc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,r))&&(0!==(a=ht(e))&&(r=a,t=ac(e,a))),1===t))throw n=Ml,pc(e,0),lc(e,r),ic(e,Ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:kc(e,zl,Wl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=Ul+500-Ye())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(kc.bind(null,e,zl,Wl),t);break}kc(e,zl,Wl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ri(kc.bind(null,e,zl,Wl),r);break}kc(e,zl,Wl);break;default:throw Error(o(329))}}}return ic(e,Ye()),e.callbackNode===n?oc.bind(null,e):null}function ac(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=zl,zl=n,null!==t&&sc(t)),e}function sc(e){null===zl?zl=e:zl.push.apply(zl,e)}function lc(e,t){for(t&=~Ll,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!==(6&Al))throw Error(o(327));Sc();var t=ft(e,0);if(0===(1&t))return ic(e,Ye()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Ml,pc(e,0),lc(e,t),ic(e,Ye()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,zl,Wl),ic(e,Ye()),null}function uc(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Hl=Ye()+500,Li&&Ui())}}function dc(e){null!==Jl&&0===Jl.tag&&0===(6&Al)&&Sc();var t=Al;Al|=1;var n=Nl.transition,r=bt;try{if(Nl.transition=null,bt=1,e)return e()}finally{bt=r,Nl.transition=n,0===(6&(Al=t))&&Ui()}}function fc(){Pl=Fl.current,Ci(Fl)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Pi();break;case 3:oa(),Ci(Ai),Ci(Ni),da();break;case 5:sa(r);break;case 4:oa();break;case 13:case 19:Ci(la);break;case 10:So(r.type._context);break;case 22:case 23:fc()}n=n.return}if(Dl=e,Tl=e=Fc(e.current,null),Il=Pl=t,Ol=0,Ml=null,Ll=Rl=Zl=0,zl=Bl=null,null!==Eo){for(t=0;t<Eo.length;t++)if(null!==(r=(n=Eo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Eo=null}return e}function hc(e,t){for(;;){var n=Tl;try{if(ko(),fa.current=as,ya){for(var r=ma.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ya=!1}if(ha=0,ga=va=ma=null,ba=!1,xa=0,El.current=null,null===n||null===n.return){Ol=1,Ml=t,Tl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,ys(h,s,l,0,t),1&h.mode&&vs(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(c),t.updateQueue=v}else m.add(c);break e}if(0===(1&t)){vs(a,u,t),vc();break e}c=Error(o(426))}else if(io&&1&l.mode){var g=gs(s);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),ys(g,s,l,0,t),mo(us(c,l));break e}}a=c=us(c,l),4!==Ol&&(Ol=2),null===Bl?Bl=[a]:Bl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Zo(a,hs(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Gl||!Gl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Zo(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(x){t=x,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function mc(){var e=_l.current;return _l.current=as,null===e?as:e}function vc(){0!==Ol&&3!==Ol&&2!==Ol||(Ol=4),null===Dl||0===(268435455&Zl)&&0===(268435455&Rl)||lc(Dl,Il)}function gc(e,t){var n=Al;Al|=2;var r=mc();for(Dl===e&&Il===t||(Wl=null,pc(e,t));;)try{yc();break}catch(i){hc(e,i)}if(ko(),Al=n,_l.current=r,null!==Tl)throw Error(o(261));return Dl=null,Il=0,Ol}function yc(){for(;null!==Tl;)xc(Tl)}function bc(){for(;null!==Tl&&!Je();)xc(Tl)}function xc(e){var t=jl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?wc(e):Tl=t,El.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=$s(n,t,Pl)))return void(Tl=n)}else{if(null!==(n=Js(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Ol=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Ol&&(Ol=5)}function kc(e,t,n){var r=bt,i=Nl.transition;try{Nl.transition=null,bt=1,function(e,t,n,r){do{Sc()}while(null!==Jl);if(0!==(6&Al))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Dl&&(Tl=Dl=null,Il=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||$l||($l=!0,Dc(tt,(function(){return Sc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Nl.transition,Nl.transition=null;var s=bt;bt=1;var l=Al;Al|=4,El.current=null,function(e,t){if(ei=Wt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===r&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Wt=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:go(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(o(163))}}catch(w){Cc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}m=nl,nl=!1}(e,n),gl(n,e),hr(ti),Wt=!!ei,ti=ei=null,e.current=n,bl(n,e,i),Ke(),Al=l,bt=s,Nl.transition=a}else e.current=n;if($l&&($l=!1,Jl=e,Kl=i),a=e.pendingLanes,0===a&&(Gl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ic(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(ql)throw ql=!1,e=Vl,Vl=null,e;0!==(1&Kl)&&0!==e.tag&&Sc(),a=e.pendingLanes,0!==(1&a)?e===Xl?Yl++:(Yl=0,Xl=e):Yl=0,Ui()}(e,t,n,r)}finally{Nl.transition=i,bt=r}return null}function Sc(){if(null!==Jl){var e=xt(Kl),t=Nl.transition,n=bt;try{if(Nl.transition=null,bt=16>e?16:e,null===Jl)var r=!1;else{if(e=Jl,Jl=null,Kl=0,0!==(6&Al))throw Error(o(331));var i=Al;for(Al|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(0!==(16&Qs.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Qs=u;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Qs=f;else for(;null!==Qs;){var p=(d=Qs).sibling,h=d.return;if(al(d),d===u){Qs=null;break}if(null!==p){p.return=h,Qs=p;break}Qs=h}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Qs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(0!==(2048&(a=Qs).flags))switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Qs=y;break e}Qs=a.return}}var b=e.current;for(Qs=b;null!==Qs;){var x=(s=Qs).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,Qs=x;else e:for(s=b;null!==Qs;){if(0!==(2048&(l=Qs).flags))try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(k){Cc(l,l.return,k)}if(l===s){Qs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Qs=w;break e}Qs=l.return}}if(Al=i,Ui(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(k){}r=!0}return r}finally{bt=n,Nl.transition=t}}return!1}function jc(e,t,n){e=Oo(e,t=hs(0,t=us(n,t),1),1),t=tc(),null!==e&&(gt(e,1,t),ic(e,t))}function Cc(e,t,n){if(3===e.tag)jc(e,e,n);else for(;null!==t;){if(3===t.tag){jc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Gl||!Gl.has(r))){t=Oo(t,e=ms(t,e=us(n,e),1),1),e=tc(),null!==t&&(gt(t,1,e),ic(t,e));break}}t=t.return}}function _c(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Dl===e&&(Il&n)===n&&(4===Ol||3===Ol&&(130023424&Il)===Il&&500>Ye()-Ul?pc(e,0):Ll|=n),ic(e,t)}function Ec(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Do(e,t))&&(gt(e,t,n),ic(e,n))}function Nc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ec(e,n)}function Ac(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Ec(e,n)}function Dc(e,t){return Ge(e,t)}function Tc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Tc(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Oc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Pc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Mc(n.children,i,a,t);case j:s=8,i|=8;break;case C:return(e=Ic(12,n,t,2|i)).elementType=C,e.lanes=a,e;case A:return(e=Ic(13,n,t,i)).elementType=A,e.lanes=a,e;case D:return(e=Ic(19,n,t,i)).elementType=D,e.lanes=a,e;case P:return Zc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case E:s=9;break e;case N:s=11;break e;case T:s=14;break e;case I:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Mc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Zc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Rc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function Lc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zc(e,t,n,r,i,o,a,s,l){return e=new Bc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ic(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Io(o),e}function Uc(e){if(!e)return Ei;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ii(n))return Oi(e,n,t)}return t}function Hc(e,t,n,r,i,o,a,s,l){return(e=zc(n,r,!0,e,0,o,0,s,l)).context=Uc(null),n=e.current,(o=Fo(r=tc(),i=nc(n))).callback=void 0!==t&&null!==t?t:null,Oo(n,o,i),e.current.lanes=i,gt(e,i,r),ic(e,r),e}function Wc(e,t,n,r){var i=t.current,o=tc(),a=nc(i);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Oo(i,t,a))&&(rc(e,i,a,o),Mo(e,i,a)),a}function qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}jl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)xs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return xs=!1,function(e,t,n){switch(t.tag){case 3:Ds(t),ho();break;case 5:aa(t);break;case 1:Ii(t.type)&&Mi(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;_i(yo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_i(la,1&la.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Rs(e,t,n):(_i(la,1&la.current),null!==(e=qs(e,t,n))?e.sibling:null);_i(la,1&la.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),_i(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return qs(e,t,n)}(e,t,n);xs=0!==(131072&e.flags)}else xs=!1,io&&0!==(1048576&t.flags)&&Qi(t,Vi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ws(e,t),e=t.pendingProps;var i=Ti(t,Ni.current);Co(t,n),i=ja(null,t,r,e,i,n);var a=Ca();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Io(t),i.updater=Uo,t.stateNode=i,i._reactInternals=t,Vo(t,r,e,n),t=As(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Pc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===T)return 14}return 2}(r),e=go(r,e),i){case 0:t=Es(null,t,r,e,n);break e;case 1:t=Ns(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,go(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Es(e,t,r,i=t.elementType===r?i:go(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ns(e,t,r,i=t.elementType===r?i:go(r,i),n);case 3:e:{if(Ds(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Po(e,t),Ro(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ts(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Ts(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===i){t=qs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),_s(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Rs(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Yo(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:go(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,_i(yo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ai.current){t=qs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Fo(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),jo(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),jo(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Co(t,n),r=r(i=_o(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=go(r=t.type,t.pendingProps),Ss(e,t,r,i=go(r.type,i),n);case 15:return js(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:go(r,i),Ws(e,t),t.tag=1,Ii(r)?(e=!0,Mi(t)):e=!1,Co(t,n),Wo(t,r,i),Vo(t,r,i,n),As(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return Cs(e,t,n)}throw Error(o(156,t.tag))};var $c="function"===typeof reportError?reportError:function(e){console.error(e)};function Jc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function eu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=qc(a);s.call(e)}}Wc(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=qc(a);o.call(e)}}var a=Hc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=a,e[hi]=a.current,Ur(8===e.nodeType?e.parentNode:e),dc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=qc(l);s.call(e)}}var l=zc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=l,e[hi]=l.current,Ur(8===e.nodeType?e.parentNode:e),dc((function(){Wc(t,l,n,r)})),l}(n,t,e,i,r);return qc(a)}Kc.prototype.render=Jc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Wc(e,t,null,null)},Kc.prototype.unmount=Jc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Wc(null,e,null,null)})),t[hi]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=jt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pt.length&&0!==t&&t<Pt[n].priority;n++);Pt.splice(n,0,e),0===n&&Zt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ic(t,Ye()),0===(6&Al)&&(Hl=Ye()+500,Ui()))}break;case 13:dc((function(){var t=Do(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Gc(e,1)}},kt=function(e){if(13===e.tag){var t=Do(e,134217728);if(null!==t)rc(t,e,134217728,tc());Gc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=Do(e,t);if(null!==n)rc(n,e,t,tc());Gc(e,t)}},jt=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ke=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));G(r),X(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=uc,Ae=dc;var tu={usingClientEntryPoint:!1,Events:[bi,xi,wi,_e,Ee,uc]},nu={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{it=iu.inject(ru),ot=iu}catch(ue){}}
2t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(e))throw Error(o(299));var n=!1,r="",i=$c;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zc(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,Ur(8===e.nodeType?e.parentNode:e),new Jc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=$c;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hc(t,null,e,1,null!=n?n:null,i,0,a,s),e[hi]=t.current,Ur(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Kc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(o(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var r=n(4164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},7005:function(e,t,n){"use strict";n.d(t,{ZP:function(){return y}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};Object.create;Object.create;var o=n(2791),a=n(8136),s=n.n(a);function l(e,t,n,r,i){void 0===i&&(i=0);var o=m(t.width,t.height,i),a=o.width,s=o.height;return{x:c(e.x,a,n.width,r),y:c(e.y,s,n.height,r)}}function c(e,t,n,r){var i=t*r/2-n/2;return v(e,-i,i)}function u(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function d(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function f(e,t){return Math.min(e,Math.max(0,t))}function p(e,t){return t}function h(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function m(e,t,n){var r=n*Math.PI/180;return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function v(e,t,n){return Math.min(Math.max(e,t),n)}function g(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"===typeof e&&e.length>0})).join(" ").trim()}var y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=o.createRef(),n.videoRef=o.createRef(),n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWi
2dth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!==typeof document?document:null,n.currentWindow="undefined"!==typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.initResizeObserver=function(){if("undefined"!==typeof window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:n.computeSizes()})),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=function(e,t,n,r,i,o){var a=m(t.width,t.height,n),s=v(r.width/a.width*(100/e.width),i,o);return{crop:{x:s*a.width/2-r.width/2-a.width*s*(e.x/100),y:s*a.height/2-r.height/2-a.height*s*(e.y/100)},zoom:s}}(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),r=t.crop,i=t.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(i)}else if(n.props.initialCroppedAreaPixels){var o=function(e,t,n,r,i,o){void 0===n&&(n=0);var a=m(t.naturalWidth,t.naturalHeight,n),s=v(function(e,t,n){var r=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}(e,t,r),i,o),l=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((a.width-e.width)/2-e.x)*l,y:((a.height-e.height)/2-e.y)*l},zoom:s}}(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);r=o.crop,i=o.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(i)}},n.computeSizes=function(){var e,t,r,o,a,s,l=n.imageRef.current||n.videoRef.current;if(l&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect();var c=n.containerRect.width/n.containerRect.height,u=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,d=(null===(r=n.imageRef.current)||void 0===r?void 0:r.naturalHeight)||(null===(o=n.videoRef.current)||void 0===o?void 0:o.videoHeight)||0,f=u/d,p=void 0;if(l.offsetWidth<u||l.offsetHeight<d)switch(n.getObjectFit()){default:case"contain":p=c>f?{width:n.containerRect.height*f,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/f};break;case"horizontal-cover":p={width:n.containerRect.width,height:n.containerRect.width/f};break;case"vertical-cover":p={width:n.containerRect.height*f,height:n.containerRect.height}}else p={width:l.offsetWidth,height:l.offsetHeight};n.mediaSize=i(i({},p),{naturalWidth:u,naturalHeight:d}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var h=n.props.cropSize?n.props.cropSize:function(e,t,n,r,i,o){void 0===o&&(o=0);var a=m(e,t,o),s=a.width,l=a.height,c=Math.min(s,n),u=Math.min(l,r);return c>u*i?{width:u*i,height:u}:{width:c,height:c/i}}(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(a=n.state.cropSize)||void 0===a?void 0:a.height)===h.height&&(null===(s=n.state.cropSize)||void 0===s?void 0:s.width)===h.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(h),n.setState({cropSize:h},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(h),h}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(e){if(e.preventDefault(),!n.isTouching){var r=t.getMousePoint(e),i=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(i,r,{shouldUpdatePosition:!0}),n.props.onRotationChange){var o=n.gestureRotationStart+e.rotation;n.props.onRotationChange(o)}}},n.onGestureEnd=function(e){n.cleanEvents()}
2,n.onDragStart=function(e){var t,r,o=e.x,a=e.y;n.dragStartPosition={x:o,y:a},n.dragStartCrop=i({},n.props.crop),null===(r=(t=n.props).onInteractionStart)||void 0===r||r.call(t)},n.onDrag=function(e){var t=e.x,r=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==r){var e=t-n.dragStartPosition.x,i=r-n.dragStartPosition.y,o={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+i},a=n.props.restrictPosition?l(o,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):o;n.props.onCropChange(a)}})))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var r=t.getMousePoint(e),i=s()(e).pixelY,o=n.props.zoom-i*n.props.zoomSpeed/200;n.setNewZoom(o,r,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},n.getPointOnContainer=function(e){var t=e.x,r=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(r-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,r=e.y,i=n.props,o=i.crop,a=i.zoom;return{x:(t+o.x)/a,y:(r+o.y)/a}},n.setNewZoom=function(e,t,r){var i=(void 0===r?{}:r).shouldUpdatePosition,o=void 0===i||i;if(n.state.cropSize&&n.props.onZoomChange){var a=v(e,n.props.minZoom,n.props.maxZoom);if(o){var s=n.getPointOnContainer(t),c=n.getPointOnMedia(s),u={x:c.x*a-s.x,y:c.y*a-s.y},d=n.props.restrictPosition?l(u,n.mediaSize,n.state.cropSize,a,n.props.rotation):u;n.props.onCropChange(d)}n.props.onZoomChange(a)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,r,o,a,s){void 0===a&&(a=0),void 0===s&&(s=!0);var l=s?f:p,c=m(t.width,t.height,a),u=m(t.naturalWidth,t.naturalHeight,a),d={x:l(100,((c.width-n.width/o)/2-e.x/o)/c.width*100),y:l(100,((c.height-n.height/o)/2-e.y/o)/c.height*100),width:l(100,n.width/c.width*100/o),height:l(100,n.height/c.height*100/o)},h=Math.round(l(u.width,d.width*u.width/100)),v=Math.round(l(u.height,d.height*u.height/100)),g=u.width>=u.height*r?{width:Math.round(v*r),height:v}:{width:h,height:Math.round(h/r)};return{croppedAreaPercentages:d,croppedAreaPixels:i(i({},g),{x:Math.round(l(u.width-g.width,d.x*u.width/100)),y:Math.round(l(u.height-g.height,d.y*u.height/100))})}}(n.props.restrictPosition?l(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,r),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?l(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),"undefined"===typeof window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  overflow: hidden;\n  user-select: none;\n  touch-action: none;\n  cursor: move;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n  max-width: 100%;\n  max-height: 100%;\n  margin: auto;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n  width: 100%;\n  height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n  width: auto;\n  height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  box-sizing: border-box;\n  box-shadow: 0 0 0 9999em;\n  color: rgba(0, 0, 0, 0.5);\n  overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n  border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 0;\n  bottom: 0;\n  left: 33.33%;\n  right: 33.33%;\n  border-top: 0;\n  border-bottom: 0;\n}
2\n\n.reactEasyCrop_CropAreaGrid::after {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 33.33%;\n  bottom: 33.33%;\n  left: 0;\n  right: 0;\n  border-left: 0;\n  border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&("undefined"===typeof window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,r,i,o,a,s,l,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(r=e.cropSize)||void 0===r?void 0:r.width)!==(null===(i=this.props.cropSize)||void 0===i?void 0:i.width)?this.computeSizes():(null===(o=e.crop)||void 0===o?void 0:o.x)===(null===(a=this.props.crop)||void 0===a?void 0:a.x)&&(null===(s=e.crop)||void 0===s?void 0:s.y)===(null===(l=this.props.crop)||void 0===l?void 0:l.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.getObjectFit=function(){var e,t,n,r;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var i=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(n=this.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(r=this.videoRef.current)||void 0===r?void 0:r.videoHeight)||0)<i?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=u(n,r),this.lastPinchRotation=d(n,r),this.onDragStart(h(n,r))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var r=t.getTouchPoint(e.touches[0]),i=t.getTouchPoint(e.touches[1]),o=h(r,i);this.onDrag(o),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=u(r,i),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,o,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var a=d(r,i),s=n.props.rotation+(a-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(s),n.lastPinchRotation=a}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,r=t.video,a=t.mediaProps,s=t.transform,l=t.crop,c=l.x,u=l.y,d=t.rotation,f=t.zoom,p=t.cropShape,h=t.showGrid,m=t.style,v=m.containerStyle,y=m.cropAreaStyle,b=m.mediaStyle,x=t.classes,w=x.containerClassName,k=x.cropAreaClassName,S=x.mediaClassName,j=this.getObjectFit();return o.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:v,className:g("reactEasyCrop_Container",w)},n?o.createElement("img",i({alt:"",className:g("reactEasyCrop_Image","contain"===j&&"reactEasyCrop_Contain","horizontal-cover"===j&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===j&&"reactEasyCrop_Cover_Vertical",S)},a,{src:n,ref:this.imageRef,style:i(i({},b),{transform:s||"translate(".concat(c,"px, ").concat(u,"px) rotate(").concat(d,"deg) scale(").concat(f,")")}),onLoad:this.onMediaLoad})):r&&o.createElement("video",i({autoPlay:!0,loop:!0,muted:!0,className:g("reactEasyCrop_Video","contain"===j&&"reactEasyCrop_Contain","horizontal-cover"===j&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===j&&"reactEasyCrop_Cover_Vertical",S)},a,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:i(i({},b),{transform:s||"translate(".concat(c,"px, ").concat(u,"px) rotate(").concat(d,"deg) scale(").concat(f,")")}),controls:!1}),(Array.isArray(r)?r:[{src:r}]).map((function(e){return o.createElement("source",i({key:e.src},e))}))),this.state.cropSize&&o.createElement("div",{style:i(i({},y),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:g("reactEasyCrop_CropArea","round"===p&&"reactEasyCrop_CropAreaRound",h&&"reactEasyCrop_CropAreaGrid",k)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(o.Component)},7507:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!==typeof Element;function o(e,a){if(e===a)return!0;
2if(e&&a&&"object"==typeof e&&"object"==typeof a){var s,l,c,u=t(e),d=t(a);if(u&&d){if((l=e.length)!=a.length)return!1;for(s=l;0!==s--;)if(!o(e[s],a[s]))return!1;return!0}if(u!=d)return!1;var f=e instanceof Date,p=a instanceof Date;if(f!=p)return!1;if(f&&p)return e.getTime()==a.getTime();var h=e instanceof RegExp,m=a instanceof RegExp;if(h!=m)return!1;if(h&&m)return e.toString()==a.toString();var v=n(e);if((l=v.length)!==n(a).length)return!1;for(s=l;0!==s--;)if(!r.call(a,v[s]))return!1;if(i&&e instanceof Element&&a instanceof Element)return e===a;for(s=l;0!==s--;)if(("_owner"!==(c=v[s])||!e.$$typeof)&&!o(e[c],a[c]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},6129:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ue}});var r={};n.r(r),n.d(r,{addTrackers:function(){return V},default:function(){return oe},event:function(){return ee},exception:function(){return te},ga:function(){return $},initialize:function(){return G},modalview:function(){return X},outboundLink:function(){return re},pageview:function(){return Y},plugin:function(){return ne},send:function(){return K},set:function(){return J},testModeAPI:function(){return ie},timing:function(){return Q}});var i=n(2791),o=n(2007),a=n.n(o);function s(e){console.warn("[react-ga]",e)}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var c=["to","target"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}(this,n)}}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b="_blank",x=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(a,e);var t,n,r,o=m(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(v(e=o.call.apply(o,[this].concat(n))),"handleClick",(function(t){var n=e.props,r=n.target,i=n.eventLabel,o=n.to,s=n.onClick,l=n.trackerNames,c={label:i},u=r!==b,d=!(t.ctrlKey||t.shiftKey||t.metaKey||1===t.button);u&&d?(t.preventDefault(),a.trackLink(c,(function(){window.location.href=o}),l)):a.trackLink(c,(function(){}),l),s&&s(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.to,n=e.target,r=d(d({},f(e,c)),{},{target:n,href:t,onClick:this.handleClick});return n===b&&(r.rel="".concat(r.rel?r.rel:""," noopener noreferrer").trim()),delete r.eventLabel,delete r.trackerNames,i.createElement("a",r)}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.Component);y(x,"trackLink",(function(){s("ga tracking not enabled")})),x.propTypes={eventLabel:a().string.isRequired,target:a().string,to:a().string,onClick:a().func,trackerNames:a().arrayOf(a().string)},x.defaultProps={target:null,to:null,onClick:null,trackerNames:null};var w="REDACTED (Potential Email Address)";function k(e){return e&&e.toString().replace(/^\s+|\s+$/g,"")}var S=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e||"";return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(n=k(e).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,n){return t>0&&t+e.length!==n.length&&e.search(S)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&n.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)}))),t&&(n=function(e){return"string"===typeof(t=e)&&-1!==t.indexOf("@")?(s("This arg looks like an email address, redacting."),w):e;var t}(n)),n}var C=!1;function _(e){console.info("[react-ga]",e)}var E=[],N={calls:E,ga:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];E.push([].concat(t))},resetCalls:function(){E.length=0}},A=["category","action","label","value","nonInteraction","transport"];function D(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function F(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var M="undefined"===typeof window||"undefined"===typeof document,Z=!1,R=!0,L=!1,B=!0,z=!0,U=function(){var e;return L?N.ga.apply(N,arguments):!M&&(window.ga?(e=window).ga.apply(e,arguments):s("ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually"))};function H(e){return j(e,R,z)}function W(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0];
2if("function"===typeof U){if("string"!==typeof i)return void s("ga command must be a string");!B&&Array.isArray(e)||U.apply(void 0,n),Array.isArray(e)&&e.forEach((function(e){U.apply(void 0,F(["".concat(e,".").concat(i)].concat(n.slice(1))))}))}}function q(e,t){e?t&&(t.debug&&!0===t.debug&&(Z=!0),!1===t.titleCase&&(R=!1),!1===t.redactEmail&&(z=!1),t.useExistingGa)||(t&&t.gaOptions?U("create",e,t.gaOptions):U("create",e,"auto")):s("gaTrackingID is required in initialize()")}function V(e,t){return Array.isArray(e)?e.forEach((function(e){"object"===P(e)?q(e.trackingId,e):s("All configs must be an object")})):q(e,t),!0}function G(e,t){if(t&&!0===t.testMode)L=!0;else{if(M)return;t&&!0===t.standardImplementation||function(e){if(!C){C=!0;var t="https://www.google-analytics.com/analytics.js";e&&e.gaAddress?t=e.gaAddress:e&&e.debug&&(t="https://www.google-analytics.com/analytics_debug.js");var n,r,i,o,a,s,l,c=e&&e.onerror;n=window,r=document,i="script",o=t,a="ga",n.GoogleAnalyticsObject=a,n[a]=n[a]||function(){(n[a].q=n[a].q||[]).push(arguments)},n[a].l=1*new Date,s=r.createElement(i),l=r.getElementsByTagName(i)[0],s.async=1,s.src=o,s.onerror=c,l.parentNode.insertBefore(s,l)}}(t)}B=!t||"boolean"!==typeof t.alwaysSendToDefaultTracker||t.alwaysSendToDefaultTracker,V(e,t)}function $(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length>0&&(U.apply(void 0,t),Z&&(_("called ga('arguments');"),_("with arguments: ".concat(JSON.stringify(t))))),window.ga}function J(e,t){e?"object"===P(e)?(0===Object.keys(e).length&&s("empty `fieldsObject` given to .set()"),W(t,"set",e),Z&&(_("called ga('set', fieldsObject);"),_("with fieldsObject: ".concat(JSON.stringify(e))))):s("Expected `fieldsObject` arg to be an Object"):s("`fieldsObject` is required in .set()")}function K(e,t){W(t,"send",e),Z&&(_("called ga('send', fieldObject);"),_("with fieldObject: ".concat(JSON.stringify(e))),_("with trackers: ".concat(JSON.stringify(t))))}function Y(e,t,n){if(e){var r=k(e);if(""!==r){var i={};if(n&&(i.title=n),W(t,"send",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hitType:"pageview",page:r},i)),Z){_("called ga('send', 'pageview', path);");var o="";n&&(o=" and title: ".concat(n)),_("with path: ".concat(r).concat(o))}}else s("path cannot be an empty string in .pageview()")}else s("path is required in .pageview()")}function X(e,t){if(e){var n,r="/"===(n=k(e)).substring(0,1)?n.substring(1):n;if(""!==r){var i="/modal/".concat(r);W(t,"send","pageview",i),Z&&(_("called ga('send', 'pageview', path);"),_("with path: ".concat(i)))}else s("modalName cannot be an empty string or a single / in .modalview()")}else s("modalName is required in .modalview(modalName)")}function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.variable,r=e.value,i=e.label,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&n&&"number"===typeof r){var a={hitType:"timing",timingCategory:H(t),timingVar:H(n),timingValue:r};i&&(a.timingLabel=H(i)),K(a,o)}else s("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number")}function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,n=e.action,r=e.label,i=e.value,o=e.nonInteraction,a=e.transport,l=D(e,A),c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&n){var u={hitType:"event",eventCategory:H(t),eventAction:H(n)};r&&(u.eventLabel=H(r)),"undefined"!==typeof i&&("number"!==typeof i?s("Expected `args.value` arg to be a Number."):u.eventValue=i),"undefined"!==typeof o&&("boolean"!==typeof o?s("`args.nonInteraction` must be a boolean."):u.nonInteraction=o),"undefined"!==typeof a&&("string"!==typeof a?s("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(a)&&s("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),u.transport=a)),Object.keys(l).filter((function(e){return"dimension"===e.substr(0,9)}
2)).forEach((function(e){u[e]=l[e]})),Object.keys(l).filter((function(e){return"metric"===e.substr(0,6)})).forEach((function(e){u[e]=l[e]})),K(u,c)}else s("args.category AND args.action are required in event()")}function te(e,t){var n=e.description,r=e.fatal,i={hitType:"exception"};n&&(i.exDescription=H(n)),"undefined"!==typeof r&&("boolean"!==typeof r?s("`args.fatal` must be a boolean."):i.exFatal=r),K(i,t)}var ne={require:function(e,t,n){if(e){var r=k(e);if(""!==r){var i=n?"".concat(n,".require"):"require";if(t){if("object"!==P(t))return void s("Expected `options` arg to be an Object");0===Object.keys(t).length&&s("Empty `options` given to .require()"),$(i,r,t),Z&&_("called ga('require', '".concat(r,"', ").concat(JSON.stringify(t)))}else $(i,r),Z&&_("called ga('require', '".concat(r,"');"))}else s("`name` cannot be an empty string in .require()")}else s("`name` is required in .require()")},execute:function(e,t){for(var n,r,i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];if(1===o.length?n=o[0]:(r=o[0],n=o[1]),"string"!==typeof e)s("Expected `pluginName` arg to be a String.");else if("string"!==typeof t)s("Expected `action` arg to be a String.");else{var l="".concat(e,":").concat(t);n=n||null,r&&n?($(l,r,n),Z&&(_("called ga('".concat(l,"');")),_('actionType: "'.concat(r,'" with payload: ').concat(JSON.stringify(n))))):n?($(l,n),Z&&(_("called ga('".concat(l,"');")),_("with payload: ".concat(JSON.stringify(n))))):($(l),Z&&_("called ga('".concat(l,"');")))}}};function re(e,t,n){if("function"===typeof t)if(e&&e.label){var r={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:H(e.label)},i=!1,o=setTimeout((function(){i=!0,t()}),250);r.hitCallback=function(){clearTimeout(o),i||t()},K(r,n)}else s("args.label is required in outboundLink()");else s("hitCallback function is required")}var ie=N,oe={initialize:G,ga:$,set:J,send:K,pageview:Y,modalview:X,timing:Q,event:ee,exception:te,plugin:ne,outboundLink:re,testModeAPI:N};function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}x.origTrackLink=x.trackLink,x.trackLink=re;var ce=x,ue=se(se({},r),{},{OutboundLink:ce})},1749:function(e,t,n){"use strict";n.d(t,{_:function(){return s},d:function(){return l}});var r=n(9125),i=n(2791),o=n(3929),a=function(){throw new Error("Make sure that you have wrapped your drop zones with GridContext")},s=i.createContext({register:a,remove:a,getActiveDropId:a,startTraverse:a,measureAll:a,traverse:null,endTraverse:a,onChange:a});function l(e){var t=e.children,n=e.onChange,a=r.CR(i.useState(null),2),l=a[0],c=a[1],u=i.useRef(new Map);function d(e,t,n){var r=u.current.get(e);return r?{x:r.left+t,y:r.top+n}:{x:t,y:n}}return i.createElement(s.Provider,{value:{register:function(e,t){u.current.set(e,t)},remove:function(e){u.current.delete(e)},getActiveDropId:function(e,t,n){var i,o,a=d(e,t,n),s=a.x,l=a.y;try{for(var c=r.XA(u.current.entries()),f=c.next();!f.done;f=c.next()){var p=r.CR(f.value,2),h=p[0],m=p[1];if(!m.disableDrop&&s>m.left&&s<m.right&&l>m.top&&l<m.bottom)return h}}catch(v){i={error:v}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return null},startTraverse:function(e,t,n,i,a){var s=d(e,n,i),f=function(e,t,n){var r=u.current.get(e);return{x:t-r.left,y:n-r.top}}(t,s.x,s.y),p=f.x,h=f.y,m=u.current.get(t),v=m.grid,g=m.count,y=(0,o.mg)(p+v.columnWidth/2,h+v.rowHeight/2,v,g),b=r.CR((0,o.WP)(y,v).xy,2),x=b[0],w=b[1],k=function(e,t){var n=u.current.get(e),r=u.current.get(t);return{x:r.left-n.left,y:r.top-n.top}}(e,t),S=k.x,j=k.y;l&&l&&l.targetIndex!==y&&l.targetId!==t||c({rx:x+S,ry:w+j,tx:p,ty:h,sourceId:e,targetId:t,sourceIndex:a,targetIndex:y})},traverse:l,measureAll:function(){u.current.forEach((function(e){e.remeasure()}))},endTraverse:function(){c(null)},onChange:function(e,t,i,o){c(r.pi({},l,{execute:!0})),n(e,t,i,o)}}},t)}},6689:function(e,t,n){"use strict";n.d(t,{$:function(){return T}});var r=n(9125),i=n(2791),o=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),a="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,s="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),l="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!==typeof MutationObserver,d=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){l(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}
vendor: 4,675 bytes, line 2
2));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||s},h=x(0,0,0,0);function m(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+m(e["border-"+n+"-width"])}),0)}function g(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=p(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=m(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=m(r.width),l=m(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=v(r,"left","right")+o),Math.round(l+a)!==n&&(l-=v(r,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return x(i.left,i.top,s,l)}var y="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"===typeof e.getBBox};function b(e){return a?y(e)?function(e){var t=e.getBBox();return x(0,0,t.width,t.height)}(e):g(e):h}function x(e,t,n,r){return{x:e,y:t,width:n,height:r}}var w=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=x(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=b(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),k=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return f(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);f(this,{target:e,contentRect:n})},S=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new o,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new w(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new k(e.target,e.broadcastRect())}
2));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),j="undefined"!==typeof WeakMap?new WeakMap:new o,C=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),r=new S(t,n,this);j.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){C.prototype[e]=function(){var t;return(t=j.get(this))[e].apply(t,arguments)}}));var _="undefined"!==typeof s.ResizeObserver?s.ResizeObserver:C;var E=n(1749),N=n(3056),A=n(3929),D=n(7562);function T(e){var t=e.id,n=e.boxesPerRow,o=e.children,a=e.style,s=e.disableDrag,l=void 0!==s&&s,c=e.disableDrop,u=void 0!==c&&c,d=e.rowHeight,f=r._T(e,["id","boxesPerRow","children","style","disableDrag","disableDrop","rowHeight"]),p=i.useContext(E._),h=p.traverse,m=p.startTraverse,v=p.endTraverse,g=p.register,y=p.measureAll,b=p.onChange,x=p.remove,w=p.getActiveDropId,k=i.useRef(null),S=function(e){var t=r.CR(i.useState({left:0,top:0,width:0,height:0,right:0,bottom:0}),2),n=t[0],o=t[1],a=r.CR(i.useState((function(){return new _((function(e){var t=r.CR(e,1)[0];o(t.target.getBoundingClientRect())}))})),1),s=a[0];return i.useLayoutEffect((function(){return e.current&&s.observe(e.current),function(){return s.disconnect()}}),[e,s]),{bounds:n,remeasure:function(){o(e.current.getBoundingClientRect())}}}(k),j=S.bounds,C=S.remeasure,T=r.CR(i.useState(null),2),I=T[0],P=T[1],F=r.CR(i.useState(null),2),O=F[0],M=F[1],Z=h&&!h.execute&&h.targetId===t?h.targetIndex:null,R={columnWidth:j.width/n,boxesPerRow:n,rowHeight:d},L=i.Children.count(o);i.useEffect((function(){g(t,{top:j.top,bottom:j.bottom,left:j.left,right:j.right,width:j.width,height:j.height,count:L,grid:R,disableDrop:u,remeasure:C})}),[L,u,j,t,R]),i.useEffect((function(){return function(){return x(t)}}),[t]);var B=i.Children.map(o,(function(e,t){return t}));return i.createElement("div",r.pi({ref:k,style:r.pi({position:"relative"},a)},f),0===R.columnWidth?null:i.Children.map(o,(function(e,n){var r=h&&h.targetId===t&&h.targetIndex===n,o=O?(0,N.L)(B,O.startIndex,O.targetIndex):B,a=(0,A.WP)(o.indexOf(n),R,Z);return i.createElement(D.Z.Provider,{value:{top:a.xy[1],disableDrag:l,endTraverse:v,mountWithTraverseTarget:r?[h.tx,h.ty]:void 0,left:a.xy[0],i:n,onMove:function(e,r,i){if(k.current){I!==n&&P(n);var o=w(t,r+R.columnWidth/2,i+R.rowHeight/2);o&&o!==t?m(t,o,r,i,n):v();var a=o!==t?L:(0,A.X3)(n,R,L,e.delta[0],e.delta[1]);a!==n?(O&&O.targetIndex!==a||!O)&&M({targetIndex:a,startIndex:n}):O&&M(null)}},onEnd:function(e,r,i){var o=w(t,r+R.columnWidth/2,i+R.rowHeight/2)!==t?L:(0,A.X3)(n,R,L,e.delta[0],e.delta[1]);h?b(h.sourceId,h.sourceIndex,h.targetIndex,h.targetId):b(t,n,o),M(null),P(null)},onStart:function(){y()},grid:R,dragging:n===I}},e)})))}},6856:function(e,t,n){"use strict";n.d(t,{P:function(){return qe}});var r=n(9125),i=n(2791);var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};var a=!("undefined"===typeof window||!window.document||!window.document.createElement),s=!1,l=0;function c(){l=Date.now(),s&&(s=!1)}function u(){return s}a&&(document.addEventListener("touchstart",c,!0),document.addEventListener("touchmove",c,!0),document.addEventListener("mousemove",(function(){s||Date.now()-l<1e3||(s=!0)}),!0));var d={time:Date.now(),xy:[0,0],delta:[0,0],initial:[0,0],previous:[0,0],direction:[0,0],initialDirection:[0,0],local:[0,0],lastLocal:[0,0],velocity:0,distance:0},f={enableMouse:!0},p=null;function h(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=i.useRef(d),r=o({},f,t),a=r.uid,s=r.enableMouse,l=i.useRef(a||Math.random()),c=i.useRef(!1),h=i.useRef(e);function m(e){p&&p.onTerminationRequest(e)&&(p.onTerminate(e),p=null),v(e)}function v(e){p||(p={id:l.current,onTerminate:_,onTerminationRequest:C},function(e){h.current.onGrant&&h.current.onGrant(n.current,e)}(e))}function g(){window.removeEventListener("mousemove",E,!1),window.removeEventListener("mousemove",N,!0),window.removeEventListener("mouseup",A)}function y(e){j(e),c.current=!0;
2var t=function(e){return!!h.current.onStartShouldSetCapture&&h.current.onStartShouldSetCapture(n.current,e)}(e);t&&v(e)}function b(e){j(e),c.current=!0,window.addEventListener("mousemove",E,!1),window.addEventListener("mousemove",N,!0),window.addEventListener("mouseup",A);var t=function(e){return!!h.current.onStartShouldSet&&h.current.onStartShouldSet(n.current,e)}(e);t&&v(e)}function x(){return p&&p.id===l.current}function w(e){c.current=!1,g(),x()&&(p=null,function(e){var t=n.current;n.current=o({},n.current,{lastLocal:t.local}),h.current.onRelease&&h.current.onRelease(n.current,e);p=null}(e))}function k(e){!function(e){var t=e.touches&&e.touches[0]?e.touches[0]:e,r=t.pageX,i=t.pageY,a=n.current,s=Date.now(),l=r-a.xy[0],c=i-a.xy[1],u=r-a.initial[0],d=i-a.initial[1],f=Math.sqrt(u*u+d*d),p=Math.sqrt(l*l+c*c),h=1/(p||1),m=p/(s-a.time),v=0!==a.initialDirection[0]||0!==a.initialDirection[1]?a.initialDirection:[u*h,d*h];n.current=o({},n.current,{time:s,xy:[r,i],initialDirection:v,delta:[u,d],local:[a.lastLocal[0]+r-a.initial[0],a.lastLocal[1]+i-a.initial[1]],velocity:s-a.time===0?a.velocity:m,distance:f,direction:[l*h,c*h],previous:a.xy})}(e),x()||function(e){return!!h.current.onMoveShouldSetCapture&&h.current.onMoveShouldSetCapture(n.current,e)}(e)&&m(e)}function S(e){x()?function(e){c.current&&h.current.onMove&&h.current.onMove(n.current,e)}(e):function(e){return!!h.current.onMoveShouldSet&&h.current.onMoveShouldSet(n.current,e)}(e)&&m(e)}function j(e){var t=e.touches&&e.touches[0]?e.touches[0]:e,r=t.pageX,i=t.pageY,a=n.current;n.current=o({},d,{lastLocal:a.lastLocal||d.lastLocal,xy:[r,i],initial:[r,i],previous:[r,i],time:Date.now()})}function C(e){return!h.current.onTerminationRequest||h.current.onTerminationRequest(n.current,e)}function _(e){var t=n.current;n.current=o({},n.current,{lastLocal:t.local}),h.current.onTerminate&&h.current.onTerminate(n.current,e)}function E(e){u()&&S(e)}function N(e){u()&&k(e)}function A(e){u()&&w(e)}return i.useEffect((function(){h.current=e}),[e]),i.useEffect((function(){return g}),[]),{bind:o({},{onTouchStart:b,onTouchEnd:w,onTouchMove:S,onTouchStartCapture:y,onTouchMoveCapture:k},s?{onMouseDown:function(e){u()&&b(e)},onMouseDownCapture:function(e){u()&&y(e)}}:{}),terminateCurrentResponder:function(){p&&(p.onTerminate(),p=null)},getCurrentResponder:function(){return p}}}var m=n(4942),v=n(7326),g=n(7762),y=n(3433),b=n(136),x=n(9388),w=n(5671),k=n(3144);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}var j,C,_,E,N,A,D,T=n(3366),I=function(){return Date.now()},P={},F=function(e){return e.current},O="undefined"!==typeof window?window.requestAnimationFrame:function(){},M="undefined"!==typeof window?window.cancelAnimationFrame:function(){},Z=function(e){var t=Object.assign({colorNames:P,defaultElement:_,applyAnimatedValues:j,createStringInterpolator:C,createAnimatedInterpolation:D,createAnimatedTransform:A,createAnimatedStyle:N,createAnimatedRef:F,requestAnimationFrame:O,cancelAnimationFrame:M,manualFrameloop:E},e);return P=t.colorNames,_=t.defaultElement,j=t.applyAnimatedValues,C=t.createStringInterpolator,D=t.createAnimatedInterpolation,A=t.createAnimatedTransform,N=t.createAnimatedStyle,F=t.createAnimatedRef,O=t.requestAnimationFrame,M=t.cancelAnimationFrame,E=t.manualFrameloop,t},R=function(){function e(){(0,w.Z)(this,e),this.payload=void 0,this.children=[]}return(0,k.Z)(e,[{key:"getAnimatedValue",value:function(){return this.getValue()}},{key:"getPayload",value:function(){return this.payload||this}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"getChildren",value:function(){return this.children}},{key:"addChild",value:function(e){0===this.children.length&&this.attach(),this.children.push(e)}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}]),e}(),L=function(e){(0,b.Z)(n,e);var t=(0,x.Z)(n);function n(){var e;return(0,w.Z)(this,n),(e=t.apply(this,arguments)).payload=void 0,e}return(0,k.Z)(n,[{key:"attach",value:function(){var e=this;
2this.payload.forEach((function(t){return t instanceof R&&t.addChild(e)}))}},{key:"detach",value:function(){var e=this;this.payload.forEach((function(t){return t instanceof R&&t.removeChild(e)}))}}]),n}(R),B=function(e){(0,b.Z)(n,e);var t=(0,x.Z)(n);function n(e){var r;return(0,w.Z)(this,n),(r=t.call(this)).payload=e,r}return(0,k.Z)(n,[{key:"getValue",value:function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof R)&&(t[n]=r instanceof R?r[e?"getAnimatedValue":"getValue"]():r)}return t}},{key:"getAnimatedValue",value:function(){return this.getValue(!0)}},{key:"attach",value:function(){var e=this;Object.values(this.payload).forEach((function(t){return t instanceof R&&t.addChild(e)}))}},{key:"detach",value:function(){var e=this;Object.values(this.payload).forEach((function(t){return t instanceof R&&t.removeChild(e)}))}}]),n}(R),z=function(e){(0,b.Z)(n,e);var t=(0,x.Z)(n);function n(e){return(0,w.Z)(this,n),void 0===e&&(e={}),t.call(this,e.transform&&A?S({},e,{transform:A(e.transform)}):e)}return(0,k.Z)(n)}(B),U={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"===typeof e},str:function(e){return"string"===typeof e},num:function(e){return"number"===typeof e},und:function(e){return void 0===e},boo:function(e){return"boolean"===typeof e}};function H(){var e=(0,i.useState)(!1)[1];return(0,i.useCallback)((function(){return e((function(e){return!e}))}),[])}function W(e,t){return null==e?t:e}function q(e){return U.und(e)?[]:Array.isArray(e)?e:[e]}function V(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return U.fun(e)?e.apply(void 0,n):e}function G(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.cancel,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,(0,T.Z)(e,["to","from","config","onStart","onRest","onFrame","children","cancel","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);return e=Object.entries(e).reduce((function(e,n){var r=n[0],i=n[1];return r in t||(e[r]=i),e}),{}),S({to:t},e)}function $(e){var t=(0,i.useRef)(void 0),n=t.current;return t.current=e,n}var J=function(e){(0,b.Z)(n,e);var t=(0,x.Z)(n);function n(e){var r;return(0,w.Z)(this,n),(r=t.call(this)).payload=e,r}return(0,k.Z)(n,[{key:"getValue",value:function(){return this.payload.map((function(e){return e.getValue()}))}},{key:"setValue",value:function(e,t){var n=this;void 0===t&&(t=!0),U.arr(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))}},{key:"interpolate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return D.apply(void 0,[this].concat(t))}}]),n}(L),K=function e(t,n,r){if(U.fun(t))return t;if(U.arr(t))return e({range:t,output:n,extrapolate:r});if(U.str(t.output[0]))return C(t);var i=t,o=i.output,a=i.range||[0,1],s=i.extrapolateLeft||i.extrapolate||"extend",l=i.extrapolateRight||i.extrapolate||"extend",c=i.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,i,o,a,s,l){var c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,a[t],a[t+1],o[t],o[t+1],c,s,l,i.map)}};var Y=function(e){(0,b.Z)(n,e);var t=(0,x.Z)(n);function n(e,r){var i;return(0,w.Z)(this,n),(i=t.call(this)).calc=void 0,i.calc=K.apply(void 0,(0,y.Z)(r)),i.payload=Array.isArray(e)?e:e instanceof J?e.getPayload():[e],i}return(0,k.Z)(n,[{key:"getValue",value:function(){var e=this.payload.map((function(e){return e.getValue()}));return this.calc.apply(this,(0,y.Z)(e))}},{key:"interpolate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return D.apply(void 0,[this].concat(t))}}]),n}(L);var X=!1,Q=new Set,ee=function e(){if(!X)return!1;var t,n=I(),r=(0,g.Z)(Q);try{for(r.s();!(t=r.n()).done;){for(var i=t.value,o=!1,a=0,s=0;s<i.configs.length;s++){for(var l=i.configs[s],c=void 0,u=void 0,d=0;d<l.animatedValues.length;d++){var f=l.animatedValues[d];if(!f.done){a++;var p=l.toValues[d],h=p instanceof R;if(h&&(p=p.getValue()),l.immediate)f.setValue(p),f.done=!0;else{var m=l.fromValues[d];if("string"!==typeof m&&"string"!==typeof p){var v=f.lastPosition,y=Array.isArray(l.initialVelocity)?l.initialVelocity[d]:l.initialVelocity;if(void 0!==l.duration)v=m+l.easing((n-f.startTime)/l.duration)*(p-m),c=n>=f.startTime+l.duration;else if(l.decay){var b=!0===l.decay?.998:l.decay;v=m+y/(1-b)*(1-Math.exp(-(1-b)*(n-f.startTime))),(c=Math.abs(f.lastPosition-v)<.1)&&(p=v)}else{u=void 0!==f.lastTime?f.lastTime:n,y=void 0!==f.lastVelocity?f.lastVelocity:l.initialVelocity,n>u+64&&(u=n);for(var x=Math.floor(n-u),w=0;w<x;++w){v+=1*(y+=1*((-l.tension*(v-p)+-l.friction*y)/l.mass)/1e3)/1e3}var k=!(!l.clamp||0===l.tension)&&(m<p?v>p:v<p),S=Math.abs(y)<=l.precision,j=0===l.tension||Math.abs(p-v)<=l.precision;c=k||S&&j,f.lastVelocity=y,f.lastTime=n}h&&!l.toValues[d].done&&(c=!1),c?(f.value!==p&&(v=p),f.done=!0):o=!0,f.setValue(v),f.lastPosition=v}else f.setValue(p),f.done=!0}}}i.props.onFrame&&(i.values[l.key]=l.animated.getValue())}i.onFrame(o,a)}}catch(C){r.e(C)}finally{r.f()}return Q.size?E?E():O(e):X=!1,X};
2function te(e,t){"update"in e?t.add(e):e.getChildren().forEach((function(e){return te(e,t)}))}var ne=function(e){(0,b.Z)(n,e);var t=(0,x.Z)(n);function n(e){var r,i;return(0,w.Z)(this,n),r=t.call(this),i=(0,v.Z)(r),r.animatedStyles=new Set,r.value=void 0,r.startPosition=void 0,r.lastPosition=void 0,r.lastVelocity=void 0,r.startTime=void 0,r.lastTime=void 0,r.done=!1,r.setValue=function(e,t){void 0===t&&(t=!0),i.value=e,t&&i.flush()},r.value=e,U.num(e)&&(r.startPosition=e,r.lastPosition=e),r}return(0,k.Z)(n,[{key:"getValue",value:function(){return this.value}},{key:"interpolate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return D.apply(void 0,[this].concat(t))}},{key:"reset",value:function(e){U.num(this.value)&&(this.startPosition=this.value,this.lastPosition=this.value,this.lastVelocity=e?this.lastVelocity:void 0,this.lastTime=e?this.lastTime:void 0,this.startTime=I()),this.done=!1,this.animatedStyles.clear()}},{key:"clearStyles",value:function(){this.animatedStyles.clear()}},{key:"flush",value:function(){0===this.animatedStyles.size&&te(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))}}]),n}(R),re=function(e){return e},ie=Object.freeze({}),oe=1,ae=function(){function e(t){(0,w.Z)(this,e),this.id=oe++,this.idle=!0,this.runCount=0,this.destroyed=!1,this.props={},this.queue=[],this.timestamps={},this.values={},this.merged={},this.animated={},this.animations={},this.configs=[],this.onEndQueue=[],this.cancelledAt=0,t&&this.update(t).start()}return(0,k.Z)(e,[{key:"update",value:function(e){if(!e||this.destroyed)return this;var t=G(e);if(this._ensureAnimated(t.from,!0),this._ensureAnimated(t.to),t.timestamp=I(),U.fun(t.delay)&&U.obj(t.to)){var n=t.from||ie;for(var r in t.to)this.queue.push(S({},t,{to:(0,m.Z)({},r,t.to[r]),from:r in n?(0,m.Z)({},r,n[r]):void 0,delay:Math.max(0,Math.round(t.delay(r)))}))}else t.delay=U.num(t.delay)?Math.max(0,Math.round(t.delay)):0,t.to||(t.to=void 0),t.from||(t.from=void 0),this.queue.push(t);return this}},{key:"start",value:function(e){return this.queue.length?this._flush(e):this._start(e),this}},{key:"stop",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=!1;if(U.boo(n[0])){var o=n;i=o[0],n=o.slice(1)}if(n.length){var a,s=(0,g.Z)(n);try{var l=function(){var t=a.value,n=e.configs.findIndex((function(e){return t===e.key}));e._stopAnimation(t),e.configs[n]=e.animations[t]};for(s.s();!(a=s.n()).done;)l()}catch(c){s.e(c)}finally{s.f()}}else this.runCount&&(this.cancelledAt=I(),this.configs.forEach((function(t){return e._stopAnimation(t.key)})),this.configs=Object.values(this.animations),this._stop(i));return this}},{key:"reset",value:function(){return this.stop(),this.destroyed=!1,this.props={},this.queue=[],this.timestamps={},this.values={},this.merged={},this.animated={},this.animations={},this.configs=[],this}},{key:"destroy",value:function(){this.destroyed||(this.stop(),this.destroyed=!0)}},{key:"onFrame",value:function(e,t){if(t){var n=this.props.onFrame;n&&n(S({},this.values))}e||this._stop(!0)}},{key:"setProp",value:function(e,t){return this.props[e]=t,this.timestamps[e]=I(),this}},{key:"_ensureAnimated",value:function(e,t){if(void 0===t&&(t=!1),U.obj(e))for(var n in e){var r=e[n],i=this.animated[n];i&&t&&this.animations[n].isNew&&(i.setValue?i.setValue(r):i=null),i||((i=se(r))?(this.animated[n]&&le(this.animated[n],i),this.animated[n]=i,this._stopAnimation(n,!0)):console.warn("Given value not animatable:",r))}}},{key:"_onEnd",value:function(e){this.runCount?this.onEndQueue.push(e):e(!0)}},{key:"_start",value:function(e){var t;e&&this._onEnd(e),this.idle&&this.runCount&&(this.idle=!1,t=this,Q.add(t),X||(X=!0,E?E():O(ee)))}},{key:"_stop",value:function(e){var t;this.idle=!0,t=this,Q.delete(t);var n=this.onEndQueue;n.length&&(this.onEndQueue=[],n.forEach((function(t){return t(e)})))}},{key:"_flush",value:function(e){var t=this,n=this.queue.reduce(ce,[]);this.queue.length=0;var r=Object.keys(n).length;this.runCount+=r;var i=function(n){if(t.runCount--,! --r&&(e&&e(n),!t.runCount&&n)){var i=t.props.onRest;i&&i(t.merged)}};
2n.forEach((function(e,n){n?setTimeout((function(){e.timestamp<t.cancelledAt||t._run(e,i)}),n):t._run(e,i)}))}},{key:"_run",value:function(e,t){U.arr(e.to)||U.fun(e.to)?this._runAsync(e,t):this._diff(e)?this._animate(e)._start(t):this._onEnd(t)}},{key:"_runAsync",value:function(e,t){var n=this,r=e.to,i=(0,T.Z)(e,["to"]);if(this._diff(i)&&this._animate(i),!0===i.cancel)return this.props.asyncTo=void 0,t(!1);var o=i.timestamp;if(!this._diff({asyncTo:r,timestamp:o}))return t(!1);var a,s=function(){return o<n.cancelledAt||U.fun(r)&&r!==n.props.asyncTo},l=function(e){if(s())throw n;return(a=new Promise((function(t){n.update(e).start(t)}))).then((function(){if(s())throw n}))},c=Promise.resolve();U.arr(r)?r.forEach((function(e){return c=c.then((function(){return l(e)}))})):U.fun(r)&&(c=c.then((function(){return r(l,n.stop.bind(n)).then((function(){return a}))}))),c.catch((function(e){return e!==n&&console.error(e)})).then((function(){return t(!s())}))}},{key:"_diff",value:function(e){var t=this,n=e.timestamp,r=(e.delay,e.config,e.immediate,e.reverse),i=(0,T.Z)(e,["timestamp","delay","config","immediate","reverse"]),o=!1,a=function e(r,i,a){if(!U.und(i)){var s=r[r.length-1];if(U.obj(i))for(var l in U.obj(a[s])||(a[s]={}),i)e(r.concat(l),i[l],a[s]);else if(function(e){var r=t.timestamps[e];return!!(U.und(r)||n>=r)&&(t.timestamps[e]=n,!0)}(r.join("."))){pe(i,a[s])||(o=!0,a[s]=i)}}};if(r){var s=i.to;i.to=i.from,i.from=U.obj(s)?s:void 0}for(var l in i)a([l],i[l],this.props);return"reset"in i&&(this.props.reset=!1),"cancel"in i&&(this.props.cancel=void 0),o}},{key:"_isModified",value:function(e,t){return this.timestamps[t]===e.timestamp}},{key:"_animate",value:function(t){var n=this,r=this.props,i=r.from,o=void 0===i?ie:i,a=r.to,s=void 0===a?ie:a,l=r.attach,c=r.onStart,u=function(e){return!1};if(t.cancel&&this._isModified(t,"cancel")){if(!0===t.cancel)return this.stop(),this.cancelledAt=t.timestamp,this;var d=q(t.cancel);U.arr(d)&&d.length&&(u=function(e){return d.indexOf(e)>=0},this.stop.apply(this,(0,y.Z)(d)))}this.merged=S({},o,s);var f=!1,p=[],h=l&&l(this),m=function(){if(u(v))return 0;var r=n.animations[v];if(!r)return console.warn('Failed to animate key: "'.concat(v,'"\n')+'Did you forget to define "from.'.concat(v,'" for an async animation?')),0;var i=r.animated,a=r.animatedValues,s=n.merged[v],l=fe(s),c=i.getValue();if(!t.reset&&pe(l,c))return r.idle||(f=!0,n._stopAnimation(v)),0;if(t.reset||!pe(l,r.isNew?c:r.goalValue)){var d=(U.und(t.immediate)?n.props:t).immediate;d=!!V(d,v);var m=a.some((function(e){return!e.done})),g=U.und(o[v])?l:fe(o[v]),y=de(s);if(y){var b=[t.reset?g:i.getValue(),l],x=a[0];x?(x.setValue(0,!1),x.reset(m)):x=new ne(0);try{le(i,i=x.interpolate({output:b}))}catch(k){return console.warn('Failed to interpolate string from "%s" to "%s"',b[0],b[1]),console.error(k),0}d&&x.setValue(1,!1)}else{if(U.arr(s))if(i instanceof J)t.reset&&i.setValue(g,!1),a.forEach((function(e){return e.reset(m)}));else le(i,i=se(g));else if(i instanceof ne)t.reset&&i.setValue(g,!1),i.reset(m);else le(i,i=new ne(g));d&&i.setValue(l,!1)}var w=V(t.config,v)||V(n.props.config,v)||ie;d||p.push(v),f=!0,a=q(i.getPayload()),n.animations[v]={key:v,idle:!1,goalValue:l,toValues:q(h instanceof e?h.animations[v].animated.getPayload():y?1:l),fromValues:a.map((function(e){return e.getValue()})),animated:i,animatedValues:a,immediate:d,duration:w.duration,easing:W(w.easing,re),decay:w.decay,mass:W(w.mass,1),tension:W(w.tension,170),friction:W(w.friction,26),initialVelocity:W(w.velocity,0),clamp:W(w.clamp,!1),precision:W(w.precision,.005),config:w}}};for(var v in this.merged)m();if(f){c&&p.length&&p.forEach((function(e){return c(n.animations[e])}));var g=Object.keys(this.animations);this.configs.length=g.length,g.forEach((function(e,t){var r=n.animations[e];n.configs[t]=r,n.values[e]=r.animated.getValue(),n.animated[e]=r.animated}))}return this}},{key:"_stopAnimation",value:function(e,t){var n=this.animated[e];if(!n)return console.warn("Cannot stop an animation for a key that isn't animated: \"".concat(e,'"'));this.timestamps["to."+e]=I();var r=this.animations[e]||ie;if(!r.idle||n!==r.animated){U.und(t)&&(t=!!r.isNew);var i=q(n.getPayload());
2i.forEach((function(e){return e.done=!0}));var o=n.getValue();this.props.to&&(this.props.to[e]=o),this.animations[e]={key:e,idle:!0,isNew:t,goalValue:o,animated:n,animatedValues:i}}}}]),e}();function se(e){return U.arr(e)?new J(e.map((function(e){var t=se(e),n=t.getPayload();return t instanceof Y?n[0]:n}))):de(e)?new ne(0).interpolate({output:[e,e]}):new ne(e)}function le(e,t){e.getChildren().slice().forEach((function(n){e.removeChild(n),t.addChild(n);var r=n.getPayload();if(U.arr(r)){var i=r.indexOf(e);if(i>=0){var o=(0,y.Z)(r);o[i]=t,n.payload=o}}else if(U.obj(r)){var a=Object.entries(r).find((function(t){return t[1]===e}));a&&(n.payload=S({},r,(0,m.Z)({},a[0],t)))}}))}function ce(e,t){var n=e[t.delay];return n?(t.to=ue(n.to,t.to),t.from=ue(n.from,t.from),Object.assign(n,t)):e[t.delay]=t,e}function ue(e,t){return U.obj(e)&&U.obj(t)?S({},e,t):t||e}function de(e){return!!U.str(e)&&(e.startsWith("#")||/\d/.test(e)||!!P[e])}function fe(e){return U.arr(e)?e.map(fe):de(e)?C({range:[0,1],output:[e,e]})(1):e}function pe(e,t){if(U.arr(e)){if(!U.arr(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var he=function(e,t,n){var r=e!==$(e),o=U.fun(t),a=(0,i.useRef)({springs:[],ref:null}).current,s=o?[]:t,l=(0,i.useMemo)((function(){return function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n}(e,(function(e){var n=new ae,r=s[e]||(s[e]=V(t,e,n));return n.update(r)}))}),[e]),c=(0,i.useMemo)((function(){return{start:function(){return Promise.all(a.springs.map((function(e){return new Promise((function(t){return e.start(t)}))})))},update:function(e){var t=U.fun(e),n=U.arr(e);a.springs.forEach((function(r,i){r.update(t?V(e,i,r):n?e[i]:e),a.ref||r.start()}))},stop:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.springs.forEach((function(e){return e.stop.apply(e,t)}))}}}),[]),u=c.start,d=c.update,f=c.stop,p=s[0]?s[0].ref:o?a.ref:null;(0,i.useImperativeHandle)(p,(function(){return{start:u,stop:f,get controllers(){return a.springs}}})),(0,i.useEffect)((function(){o&&!r||s.forEach((function(e,t){l[t].setProp("config",e.config),l[t].setProp("immediate",e.immediate)})),r?(a.springs.forEach((function(e){return e.destroy()})),a.springs=l,a.ref=p,p||l.forEach((function(e){return e.start()}))):o||d(s)}),n),(0,i.useEffect)((function(){return function(){return a.springs.forEach((function(e){return e.destroy()}))}}),[]);var h=l.map((function(e){return S({},e.animated)}));return o?[h,d,f]:h},me=function(e,t){var n=U.fun(e),r=he(1,n?e:[e],t),i=r[0],o=r[1],a=r[2];return n?[i[0],o,a]:i};Z({createAnimatedStyle:function(e){return new z(e)},createAnimatedInterpolation:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Y(e,n)}});var ve=function(e){(0,b.Z)(n,e);var t=(0,x.Z)(n);function n(e,r){var i;return(0,w.Z)(this,n),(i=t.call(this,e.style&&N?S({},e,{style:N(e.style)}):e)).update=void 0,i.update=r,i.attach(),i}return(0,k.Z)(n)}(B);var ge=function(e,t){void 0===t&&(t={});var n=e;return n.extend=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.forEach((function(e){return r(e)})),n},n;function r(i,o){if(U.arr(i))return i.forEach((function(e){return r(e)}));if(U.obj(i))for(var a in i)r(i[a],a);else{var s=U.str(o)?o:U.str(i)?i:i&&U.str(i.displayName)?i.displayName:U.fun(i)?i.name:"";t.lowercase&&(s=s[0].toLowerCase()+s.slice(1)),n[s]=e(i)}}}((function(e){return(0,i.forwardRef)((function(t,n){var r=H(),o=(0,i.useRef)(!0),a=(0,i.useRef)(null),s=(0,i.useRef)(null),l=(0,i.useCallback)((function(e){var t=a.current;a.current=new ve(e,(function(){s.current&&(!1===j(s.current,a.current.getAnimatedValue())&&r())})),t&&t.detach()}),[]);(0,i.useEffect)((function(){return function(){o.current=!1,a.current&&a.current.detach()}}),[]),(0,i.useImperativeHandle)(n,(function(){return F(s,o,r)})),l(t);var c=a.current.getValue(),u=(c.scrollTop,c.scrollLeft,(0,T.Z)(c,["scrollTop","scrollLeft"]));return i.createElement(e,S({},u,{ref:function(e){return s.current=function(e,t){return t&&(U.fun(t)?t(e):U.obj(t)&&(t.current=e)),e}(e,n)}}))}))})).extend(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ye=(ge.extend,{animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0}),be=["Webkit","Ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return be.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var we={};var ke="[-+]?\\d*\\.?\\d+",Se=ke+"%";function je(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var Ce=new RegExp("rgb"+je(ke,ke,ke)),_e=new RegExp("rgba"+je(ke,ke,ke,ke)),Ee=new RegExp("hsl"+je(ke,Se,Se)),Ne=new RegExp("hsla"
2+je(ke,Se,Se,ke)),Ae=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,De=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Te=/^#([0-9a-fA-F]{6})$/,Ie=/^#([0-9a-fA-F]{8})$/,Pe={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};function Fe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Oe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Fe(i,r,e+1/3),a=Fe(i,r,e),s=Fe(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Me(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function Ze(e){return(parseFloat(e)%360+360)%360/360}function Re(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Le(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function Be(e){var t=function(e){var t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Te.exec(e))?parseInt(t[1]+"ff",16)>>>0:Pe.hasOwnProperty(e)?Pe[e]:(t=Ce.exec(e))?(Me(t[1])<<24|Me(t[2])<<16|Me(t[3])<<8|255)>>>0:(t=_e.exec(e))?(Me(t[1])<<24|Me(t[2])<<16|Me(t[3])<<8|Re(t[4]))>>>0:(t=Ae.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ie.exec(e))?parseInt(t[1],16)>>>0:(t=De.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ee.exec(e))?(255|Oe(Ze(t[1]),Le(t[2]),Le(t[3])))>>>0:(t=Ne.exec(e))?(Oe(Ze(t[1]),Le(t[2]),Le(t[3]))|Re(t[4]))>>>0:null}(e);if(null===t)return e;var n=(16711680&(t=t||0))>>>16,r=(65280&t)>>>8,i=(255&t)/255;return"rgba(".concat((4278190080&t)>>>24,", ").concat(n,", ").concat(r,", ").concat(i,")")}var ze=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ue=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,He=new RegExp("(".concat(Object.keys(Pe).join("|"),")"),"g");Z({defaultElement:"div",colorNames:Pe,applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;var n=t,r=n.style,i=n.children,o=n.scrollTop,a=n.scrollLeft,s=(0,T.Z)(n,["style","children","scrollTop","scrollLeft"]);for(var l in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(l)){var c=0===l.indexOf("--"),u=xe(l,r[l],c);"float"===l&&(l="cssFloat"),c?e.style.setProperty(l,u):e.style[l]=u}var d="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var f in s){var p=d||e.hasAttribute(f)?f:we[f]||(we[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));e.setAttribute(p,s[f])}},createStringInterpolator:function(e){var t=e.output.map((function(e){return e.replace(Ue,Be)})).map((function(e){return e.replace(He,Be)})),n=t[0].match(ze).map((function(){return[]}));t.forEach((function(e){e.match(ze).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(ze).map((function(t,r){return K(S({},e,{output:n[r]}))}
2));return function(e){var n=0;return t[0].replace(ze,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,i){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(i,")")}))}}});var We=n(7562);function qe(e){var t=e.children,n=e.style,o=e.className,a=r._T(e,["children","style","className"]),s=i.useContext(We.Z);if(!s)throw Error("Unable to find GridItem context. Please ensure that GridItem is used as a child of GridDropZone");var l=s.top,c=s.disableDrag,u=s.endTraverse,d=s.onStart,f=s.mountWithTraverseTarget,p=s.left,m=s.i,v=s.onMove,g=s.onEnd,y=s.grid,b=s.dragging,x=y.columnWidth,w=y.rowHeight,k=i.useRef(!1),S=i.useRef([p,l]),j=r.CR(me((function(){if(f){var e=f;return u(),{xy:e,immediate:!0,zIndex:"1",scale:1.1,opacity:.8}}return{xy:[p,l],immediate:!0,zIndex:"0",scale:1,opacity:1}})),2),C=j[0],_=j[1];function E(e){var t=S.current[0]+e.delta[0],n=S.current[1]+e.delta[1];k.current=!1,g(e,t,n)}var N=h({onMoveShouldSet:function(e){return!c&&(d(),S.current=[p,l],k.current=!0,!0)},onMove:function(e,t){var n=S.current[0]+e.delta[0],r=S.current[1]+e.delta[1];_({xy:[n,r],zIndex:"1",immediate:!0,opacity:.8,scale:1.1}),v(e,n,r)},onTerminationRequest:function(){return!k.current},onTerminate:E,onRelease:E},{enableMouse:!0}).bind;i.useEffect((function(){k.current||_({xy:[p,l],zIndex:"0",opacity:1,scale:1,immediate:!1})}),[k.current,p,l]);var A=r.pi({className:"GridItem"+(b?" dragging":"")+(c?" disabled":"")+o?" "+o:0},N,{style:r.pi({cursor:c?"grab":void 0,zIndex:C.zIndex,position:"absolute",width:x+"px",opacity:C.opacity,height:w+"px",boxSizing:"border-box",transform:D([C.xy,C.scale],(function(e,t){return"translate3d("+e[0]+"px, "+e[1]+"px, 0) scale("+t+")"}))},n)},a);return"function"===typeof t?t(ge.div,A,{dragging:b,disabled:!!c,i:m,grid:y}):i.createElement(ge.div,r.pi({},A),t)}},7562:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=n(2791).createContext(null)},3929:function(e,t,n){"use strict";n.d(t,{WP:function(){return i},X3:function(){return a},mg:function(){return o}});var r=n(9125);function i(e,t,n){var r=t.boxesPerRow,i=t.rowHeight,o="number"==typeof n&&e>=n?e+1:e;return{xy:[o%r*t.columnWidth,Math.floor(o/r)*i]}}function o(e,t,n,r){var i=n.rowHeight,o=n.boxesPerRow,a=n.columnWidth,s=Math.floor(t/i)*o+Math.floor(e/a);return s>=r?r:s}function a(e,t,n,a,s){var l=r.CR(function(e,t,n,o,a){var s=r.CR(i(e,t).xy,2),l=s[0],c=s[1];return{xy:[l+n+(a?t.columnWidth/2:0),c+o+(a?t.rowHeight/2:0)]}}(e,t,a,s,!0).xy,2);return o(l[0],l[1],t,n)}},3056:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(9125);function i(e,t,n){var i=e[t],o=e.length,a=t-n;if(a>0)return r.fl(e.slice(0,n),[i],e.slice(n,t),e.slice(t+1,o));if(a<0){var s=n+1;return r.fl(e.slice(0,t),e.slice(t+1,s),[i],e.slice(s,o))}return e}},9125:function(e,t,n){"use strict";n.d(t,{CR:function(){return a},XA:function(){return o},_T:function(){return i},fl:function(){return s},pi:function(){return r}});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function o(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}},3008:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2791),a=(s(o),s(n(3889)));
2function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=!("undefined"===typeof window||!window.document||!window.document.createElement),d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=e.appID,o=l(e,["appID"]);return i&&u?(window.Intercom||function(e,t,n,r,i){function o(){o.c(arguments)}o.q=[],o.c=function(e){o.q.push(e)},e.Intercom=o,(r=t.createElement("script")).async=1,r.src="https://widget.intercom.io/widget/"+n,t.head.appendChild(r)}(window,document,i),window.intercomSettings=r({},o,{app_id:i}),window.Intercom&&window.Intercom("boot",o),n):c(n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.appID,n=l(e,["appID"]);u&&(window.intercomSettings=r({},n,{app_id:t}),window.Intercom&&(this.loggedIn(this.props)&&!this.loggedIn(e)?(window.Intercom("shutdown"),window.Intercom("boot",n)):window.Intercom("update",n)))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){if(!u||!window.Intercom)return!1;window.Intercom("shutdown"),delete window.Intercom,delete window.intercomSettings}},{key:"loggedIn",value:function(e){return e.email||e.user_id}},{key:"render",value:function(){return!1}}]),t}(o.Component);d.propTypes={appID:a.default.string.isRequired},d.displayName="Intercom",t.ZP=d},4811:function(e,t,n){"use strict";var r=n(9394),i=n(4035);e.exports=function(){function e(){i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},3889:function(e,t,n){e.exports=n(4811)()},7574:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=m,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.SuspenseList=p,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return g(e)===c},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return g(e)===d},t.isFragment=function(e){return g(e)===o},t.isLazy=function(e){return g(e)===m},t.isMemo=function(e){return g(e)===h},t.isPortal=function(e){return g(e)===i},t.isProfiler=function(e){return g(e)===s},t.isStrictMode=function(e){return g(e)===a},t.isSuspense=function(e){return g(e)===f},t.isSuspenseList=function(e){return g(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===s||e===a||e===f||e===p||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=g},8599:function(e,t,n){"use strict";e.exports=n(7574)},8879:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(n(2791)),a=c(n(2007)),s=c(n(5095)),l=n(6930);function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.init=function(){if(!window.google)throw new Error("[react-places-autocomplete]: Google Maps JavaScript API library must be loaded. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library");if(!window.google.maps.places)throw new Error("[react-places-autocomplete]: Google Maps Places library must be loaded. Please add `libraries=places` to the src URL. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library");n.autocompleteService=new window.google.maps.places.AutocompleteService,n.autocompleteOK=window.google.maps.places.PlacesServiceStatus.OK,n.setState((function(e){return e.ready?null:{ready:!0}}))},n.autocompleteCallback=function(e,t){if(n.setState({loading:!1}),t===n.autocompleteOK){var r=n.props.highlightFirstSuggestion;n.setState({suggestions:e.map((function(e,t){return{id:e.id,description:e.description,placeId:e.place_id,active:!(!r||0!==t),index:t,formattedSuggestion:(n=e.structured_formatting,{mainText:n.main_text,secondaryText:n.secondary_text}),matchedSubstrings:e.matched_substrings,terms:e.terms,types:e.types};var n}))})}else n.props.onError(t,n.clearSuggestions)},n.fetchPredictions=function(){var e=n.props.value;e.length&&(n.setState({loading:!0}),n.autocompleteService.getPlacePredictions(r({},n.props.searchOptions,{input:e}),n.autocompleteCallback))},n.clearSuggestions=function(){n.setState({suggestions:[]})},n.clearActive=function(){n.setState({suggestions:n.state.suggestions.map((function(e){return r({},e,{active:!1})}))})},n.handleSelect=function(e,t,r){n.clearSuggestions(),n.props.onSelect?n.props.onSelect(e,t,r):n.props.onChange(e)},n.getActiveSuggestion=function(){return n.state.suggestions.find((function(e){return e.active}))},n.selectActiveAtIndex=function(e){var t=n.state.suggestions.find((function(t){return t.index===e})).description;n.setActiveAtIndex(e),n.props.onChange(t)},n.selectUserInputValue=function(){n.clearActive(),n.props.onChange(n.state.userInputValue)},n.handleEnterKey=function(){var e=n.getActiveSuggestion();
2void 0===e?n.handleSelect(n.props.value,null,null):n.handleSelect(e.description,e.placeId,e)},n.handleDownKey=function(){if(0!==n.state.suggestions.length){var e=n.getActiveSuggestion();void 0===e?n.selectActiveAtIndex(0):e.index===n.state.suggestions.length-1?n.selectUserInputValue():n.selectActiveAtIndex(e.index+1)}},n.handleUpKey=function(){if(0!==n.state.suggestions.length){var e=n.getActiveSuggestion();void 0===e?n.selectActiveAtIndex(n.state.suggestions.length-1):0===e.index?n.selectUserInputValue():n.selectActiveAtIndex(e.index-1)}},n.handleInputKeyDown=function(e){switch(e.key){case"Enter":e.preventDefault(),n.handleEnterKey();break;case"ArrowDown":e.preventDefault(),n.handleDownKey();break;case"ArrowUp":e.preventDefault(),n.handleUpKey();break;case"Escape":n.clearSuggestions()}},n.setActiveAtIndex=function(e){n.setState({suggestions:n.state.suggestions.map((function(t,n){return r({},t,n===e?{active:!0}:{active:!1})}))})},n.handleInputChange=function(e){var t=e.target.value;n.props.onChange(t),n.setState({userInputValue:t}),t?n.props.shouldFetchSuggestions&&n.debouncedFetchPredictions():n.clearSuggestions()},n.handleInputOnBlur=function(){n.mousedownOnSuggestion||n.clearSuggestions()},n.getActiveSuggestionId=function(){var e=n.getActiveSuggestion();return e?"PlacesAutocomplete__suggestion-"+e.placeId:void 0},n.getIsExpanded=function(){return n.state.suggestions.length>0},n.getInputProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.hasOwnProperty("value"))throw new Error("[react-places-autocomplete]: getInputProps does not accept `value`. Use `value` prop instead");if(e.hasOwnProperty("onChange"))throw new Error("[react-places-autocomplete]: getInputProps does not accept `onChange`. Use `onChange` prop instead");var t={type:"text",autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-expanded":n.getIsExpanded(),"aria-activedescendant":n.getActiveSuggestionId(),disabled:!n.state.ready};return r({},t,e,{onKeyDown:(0,l.compose)(n.handleInputKeyDown,e.onKeyDown),onBlur:(0,l.compose)(n.handleInputOnBlur,e.onBlur),value:n.props.value,onChange:function(e){n.handleInputChange(e)}})},n.getSuggestionItemProps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.handleSuggestionMouseEnter.bind(n,e.index),o=n.handleSuggestionClick.bind(n,e);return r({},t,{key:e.id,id:n.getActiveSuggestionId(),role:"option",onMouseEnter:(0,l.compose)(i,t.onMouseEnter),onMouseLeave:(0,l.compose)(n.handleSuggestionMouseLeave,t.onMouseLeave),onMouseDown:(0,l.compose)(n.handleSuggestionMouseDown,t.onMouseDown),onMouseUp:(0,l.compose)(n.handleSuggestionMouseUp,t.onMouseUp),onTouchStart:(0,l.compose)(n.handleSuggestionTouchStart,t.onTouchStart),onTouchEnd:(0,l.compose)(n.handleSuggestionMouseUp,t.onTouchEnd),onClick:(0,l.compose)(o,t.onClick)})},n.handleSuggestionMouseEnter=function(e){n.setActiveAtIndex(e)},n.handleSuggestionMouseLeave=function(){n.mousedownOnSuggestion=!1,n.clearActive()},n.handleSuggestionMouseDown=function(e){e.preventDefault(),n.mousedownOnSuggestion=!0}
2,n.handleSuggestionTouchStart=function(){n.mousedownOnSuggestion=!0},n.handleSuggestionMouseUp=function(){n.mousedownOnSuggestion=!1},n.handleSuggestionClick=function(e,t){t&&t.preventDefault&&t.preventDefault();var r=e.description,i=e.placeId;n.handleSelect(r,i,e),setTimeout((function(){n.mousedownOnSuggestion=!1}))},n.state={loading:!1,suggestions:[],userInputValue:e.value,ready:!e.googleCallbackName},n.debouncedFetchPredictions=(0,s.default)(n.fetchPredictions,e.debounce),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this.props.googleCallbackName;e?window.google&&window.google.maps&&window.google.maps.places?this.init():window[e]=this.init:this.init()}},{key:"componentWillUnmount",value:function(){var e=this.props.googleCallbackName;e&&window[e]&&delete window[e]}},{key:"render",value:function(){return this.props.children({getInputProps:this.getInputProps,getSuggestionItemProps:this.getSuggestionItemProps,loading:this.state.loading,suggestions:this.state.suggestions})}}]),t}(o.default.Component);u.propTypes={onChange:a.default.func.isRequired,value:a.default.string.isRequired,children:a.default.func.isRequired,onError:a.default.func,onSelect:a.default.func,searchOptions:a.default.shape({bounds:a.default.object,componentRestrictions:a.default.object,location:a.default.object,offset:a.default.oneOfType([a.default.number,a.default.string]),radius:a.default.oneOfType([a.default.number,a.default.string]),types:a.default.array}),debounce:a.default.number,highlightFirstSuggestion:a.default.bool,shouldFetchSuggestions:a.default.bool,googleCallbackName:a.default.string},u.defaultProps={onError:function(e,t){return console.error("[react-places-autocomplete]: error happened when fetching data from Google Maps API.\nPlease check the docs here (https://developers.google.com/maps/documentation/javascript/places#place_details_responses)\nStatus: ",e)},searchOptions:{},debounce:200,highlightFirstSuggestion:!1,shouldFetchSuggestions:!0},t.default=u},6930:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.compose=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e&&e.apply(void 0,n)}))}},t.pick=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(t,n){return e&&e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}},382:function(e,t,n){"use strict";t.NU=void 0;var r,i=n(8879),o=(r=i)&&r.__esModule?r:{default:r},a=n(4496);t.NU=a.geocodeByAddress,a.geocodeByPlaceId,a.getLatLng,t.ZP=o.default},4496:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.geocodeByAddress=function(e){var t=new window.google.maps.Geocoder,n=window.google.maps.GeocoderStatus.OK;return new Promise((function(r,i){t.geocode({address:e},(function(e,t){t!==n&&i(t),r(e)}))}))},t.getLatLng=function(e){return new Promise((function(t,n){try{t({lat:e.geometry.location.lat(),lng:e.geometry.location.lng()})}catch(r){n(r)}}))},t.geocodeByPlaceId=function(e){var t=new window.google.maps.Geocoder,n=window.google.maps.GeocoderStatus.OK;return new Promise((function(r,i){t.geocode({placeId:e},(function(e,t){t!==n&&i(t),r(e)}))}))}},9434:function(e,t,n){"use strict";n.d(t,{zt:function(){return w},I0:function(){return E},v9:function(){return g}});var r=n(7248),i=n(327),o=n(4164);var a=function(e){e()},s=function(){return a},l=n(4942),c=n(2791),u=null;var d=new Proxy({},new Proxy({},{get:function(e,t){var n=(u||(u=(0,c.createContext)(null)),u);return function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return Reflect[t].apply(Reflect,[n].concat(i))}}}));function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return function(){return(0,c.useContext)(e)}}var p=f(),h=function(){throw new Error("uSES not initialized!")},m=function(e,t){return e===t};function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=e===d?p:f(e);return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="function"===typeof n?{equalityFn:n}:n,i=r.equalityFn,o=void 0===i?m:i,a=r.stabilityCheck,s=void 0===a?void 0:a;r.noopCheck;var u=t(),d=u.store,f=u.subscription,p=u.getServerState,v=u.stabilityCheck,g=(u.noopCheck,(0,c.useRef)(!0),(0,c.useCallback)((0,l.Z)({},e.name,(function(t){return e(t)}))[e.name],[e,v,s])),y=h(f.addNestedSub,d.getState,p||d.getState,g,o);return(0,c.useDebugValue)(y),y}}var g=v();n(2110),n(6900);var y={notify:function(){},get:function(){return[]}};function b(e,t){var n,r=y;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=s(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=y)},getListeners:function(){return r}};return a}var x=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?c.useLayoutEffect:c.useEffect;var w=function(e){var t=e.store,n=e.context,r=e.children,i=e.serverState,o=e.stabilityCheck,a=void 0===o?"once":o,s=e.noopCheck,l=void 0===s?"once":s,u=(0,c.useMemo)((function(){var e=b(t);return{store:t,subscription:e,getServerState:i?function(){return i}:void 0,stabilityCheck:a,noopCheck:l}}),[t,i,a,l]),f=(0,c.useMemo)((function(){return t.getState()}),[t]);x((function(){var e=u.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),f!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=void 0}}),[u,f]);var p=n||d;return c.createElement(p.Provider,{value:u},r)};function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=e===d?p:f(e);return function(){return t().store}}var S=k();function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=e===d?S:k(e);return function(){return t().dispatch}}var C,_,E=j();C=i.useSyncExternalStoreWithSelector,h=C,function(e){e}(r.useSyncExternalStore),_=o.unstable_batchedUpdates,a=_},8459:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},6900:function(e,t,n){"use strict";n(8459)},3772:function(e,t,n){"use strict";n.d(t,{G:function(){return d},Z:function(){return f}});var r=n(2791);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}
2function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var a=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n);var s=a.prototype;return s.getColumns=function(){var e=this.props,t=e.children,n=e.columnsCount,i=Array.from({length:n},(function(){return[]}));return r.Children.forEach(t,(function(e,t){e&&r.isValidElement(e)&&i[t%n].push(e)})),i},s.renderColumns=function(){var e=this.props.gutter;return this.getColumns().map((function(t,n){return r.createElement("div",{key:n,style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:e}},t.map((function(e){return e})))}))},s.render=function(){var e=this.props,t=e.gutter,n=e.className,o=e.style;return r.createElement("div",{style:i({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:t},o),className:n},this.renderColumns())},a}(r.Component);a.propTypes={},a.defaultProps={columnsCount:3,gutter:"0",className:null,style:{}};var s=a,l="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,c=function(){var e=function(){var e=(0,r.useState)(!1),t=e[0],n=e[1];return l((function(){n(!0)}),[]),t}(),t=(0,r.useState)(0),n=t[0],i=t[1],o=(0,r.useCallback)((function(){e&&i(window.innerWidth)}),[e]);return l((function(){if(e)return window.addEventListener("resize",o),o(),function(){return window.removeEventListener("resize",o)}}),[e,o]),n},u=function(e){var t=e.columnsCountBreakPoints,n=void 0===t?{350:1,750:2,900:3}:t,i=e.children,o=e.className,a=void 0===o?null:o,s=e.style,l=void 0===s?null:s,u=c(),d=(0,r.useMemo)((function(){var e=Object.keys(n).sort((function(e,t){return e-t})),t=e.length>0?n[e[0]]:1;return e.forEach((function(e){e<u&&(t=n[e])})),t}),[u,n]);return r.createElement("div",{className:a,style:l},r.Children.map(i,(function(e,t){return r.cloneElement(e,{key:t,columnsCount:d})})))};u.propTypes={};var d=u,f=s},1087:function(e,t,n){"use strict";n.d(t,{OL:function(){return g},VK:function(){return p},lr:function(){return x},rU:function(){return v}});var r=n(9439),i=n(7762),o=n(2791),a=n(7689),s=n(8278);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function u(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((function(t,n){var r=e[n];return t.concat(Array.isArray(r)?r.map((function(e){return[n,e]})):[[n,r]])}),[]))}var d=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],f=["aria-current","caseSensitive","className","end","style","to","children"];function p(e){var t=e.basename,n=e.children,i=e.window,l=o.useRef();null==l.current&&(l.current=(0,s.lX)({window:i,v5Compat:!0}));var c=l.current,u=o.useState({action:c.action,location:c.location}),d=(0,r.Z)(u,2),f=d[0],p=d[1];return o.useLayoutEffect((function(){return c.listen(p)}),[c]),o.createElement(a.F0,{basename:t,children:n,location:f.location,navigationType:f.action,navigator:c})}var h="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,m=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,v=o.forwardRef((function(e,t){var n,r=e.onClick,i=e.relative,u=e.reloadDocument,f=e.replace,p=e.state,v=e.target,g=e.to,y=e.preventScrollReset,b=c(e,d),x=o.useContext(a.Us).basename,w=!1;if("string"===typeof g&&m.test(g)&&(n=g,h))try{var k=new URL(window.location.href),S=g.startsWith("//")?new URL(k.protocol+g):new URL(g),j=(0,s.Zn)(S.pathname,x);S.origin===k.origin&&null!=j?g=j+S.search+S.hash:w=!0}catch(E){}var C=(0,a.oQ)(g,{relative:i}),_=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,l=n.state,c=n.preventScrollReset,u=n.relative,d=(0,a.s0)(),f=(0,a.TH)(),p=(0,a.W
2U)(e,{relative:u});return o.useCallback((function(t){if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();var n=void 0!==i?i:(0,s.Ep)(f)===(0,s.Ep)(p);d(e,{replace:n,state:l,preventScrollReset:c,relative:u})}}),[f,d,p,i,l,r,e,c,u])}(g,{replace:f,state:p,target:v,preventScrollReset:y,relative:i});return o.createElement("a",l({},b,{href:n||C,onClick:w||u?r:function(e){r&&r(e),e.defaultPrevented||_(e)},ref:t,target:v}))}));var g=o.forwardRef((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.caseSensitive,s=void 0!==i&&i,u=e.className,d=void 0===u?"":u,p=e.end,h=void 0!==p&&p,m=e.style,g=e.to,y=e.children,b=c(e,f),x=(0,a.WU)(g,{relative:b.relative}),w=(0,a.TH)(),k=o.useContext(a.FR),S=o.useContext(a.Us).navigator,j=S.encodeLocation?S.encodeLocation(x).pathname:x.pathname,C=w.pathname,_=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;s||(C=C.toLowerCase(),_=_?_.toLowerCase():null,j=j.toLowerCase());var E,N=C===j||!h&&C.startsWith(j)&&"/"===C.charAt(j.length),A=null!=_&&(_===j||!h&&_.startsWith(j)&&"/"===_.charAt(j.length)),D=N?r:void 0;E="function"===typeof d?d({isActive:N,isPending:A}):[d,N?"active":null,A?"pending":null].filter(Boolean).join(" ");var T="function"===typeof m?m({isActive:N,isPending:A}):m;return o.createElement(v,l({},b,{"aria-current":D,className:E,ref:t,style:T,to:g}),"function"===typeof y?y({isActive:N,isPending:A}):y)}));var y,b;function x(e){var t=o.useRef(u(e)),n=o.useRef(!1),r=(0,a.TH)(),s=o.useMemo((function(){return function(e,t){var n=u(e);if(t){var r,o=(0,i.Z)(t.keys());try{var a=function(){var e=r.value;n.has(e)||t.getAll(e).forEach((function(t){n.append(e,t)}))};for(o.s();!(r=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}}return n}(r.search,n.current?null:t.current)}),[r.search]),l=(0,a.s0)(),c=o.useCallback((function(e,t){var r=u("function"===typeof e?e(s):e);n.current=!0,l("?"+r,t)}),[l,s]);return[s,c]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(y||(y={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(b||(b={}))},7689:function(e,t,n){"use strict";n.d(t,{AW:function(){return L},F0:function(){return B},FR:function(){return f},Fg:function(){return R},TH:function(){return x},UO:function(){return j},Us:function(){return h},WU:function(){return C},Z5:function(){return z},oQ:function(){return y},s0:function(){return S},ur:function(){return w}});var r=n(3433),i=n(5671),o=n(3144),a=n(136),s=n(9388),l=n(2791),c=n(8278);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}var d=l.createContext(null);var f=l.createContext(null);var p=l.createContext(null);var h=l.createContext(null);var m=l.createContext(null);var v=l.createContext({outlet:null,matches:[]});var g=l.createContext(null);function y(e,t){var n=(void 0===t?{}:t).relative;b()||(0,c.J0)(!1);var r=l.useContext(h),i=r.basename,o=r.navigator,a=C(e,{relative:n}),s=a.hash,u=a.pathname,d=a.search,f=u;return"/"!==i&&(f="/"===u?i:(0,c.RQ)([i,u])),o.createHref({pathname:f,search:d,hash:s})}function b(){return null!=l.useContext(m)}function x(){return b()||(0,c.J0)(!1),l.useContext(m).location}function w(){return l.useContext(m).navigationType}function k(e){l.useContext(h).static||l.useLayoutEffect(e)}function S(){return null!=l.useContext(d)?function(){var e=F(N.UseNavigateStable).router,t=M(A.UseNavigateStable),n=l.useRef(!1);return k((function(){n.current=!0})),l.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,u({fromRouteId:t},i)))}),[e,t])}():function(){b()||(0,c.J0)(!1);var e=l.useContext(h),t=e.basename,n=e.navigator,r=l.useContext(v).matches,i=x().pathname,o=JSON.stringify((0,c.Zq)(r).map((function(e){return e.pathnameBase}))),a=l.useRef(!1);return k((function(){a.current=!0})),l.useCallback((function(e,r){if(void 0===r&&(r={}),a.current)if("number"!==typeof e){var s=(0,c.pC)(e,JSON.parse(o),i,"path"===r.relative);"/"!==t&&(s.pathname="/"===s.pathname?t:(0,c.RQ)([t,s.pathname])),(r.replace?n.replace:n.push)(s,r.state,r)}else n.go(e)}),[t,n,o,i])}()}function j(){var e=l.useContext(v).matches,t=e[e.length-1];return t?t.params:{}}function C(e,t){var n=(void 0===t?{}:t).relative,r=l.useContext(v).matches,i=x().pathname,o=JSON.stringify((0,c.Zq)(r).map((function(e){return e.pathnameBase})));return l.useMemo((function(){return(0,c.pC)(e,JSON.parse(o),i,"path"===n)}),[e,o,i,n])}function _(e,t,n){b()||(0,c.J0)(!1);var r,i=l.useContext(h).navigator,o=l.useContext(v).matches,a=o[o.length-1],s=a?a.params:{},d=(a&&a.pathname,a?a.pathnameBase:"/"),f=(a&&a.route,x());if(t){var p,g="string"===typeof t?(0,c.cP)(t):t;"/"===d||(null==(p=g.pathname)?void 0:p.startsWith(d))||(0,c.J0)(!1),r=g}else r=f;var y=r.pathname||"/",w="/"===d?y:y.slice(d.length)||"/",k=(0,c.fp)(e,{pathname:w});var S=P(k&&k.map((function(e){return Object.assign({},e,{params:Object.assign({}
2,s,e.params),pathname:(0,c.RQ)([d,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:(0,c.RQ)([d,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),o,n);return t&&S?l.createElement(m.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},r),navigationType:c.aU.Pop}},S):S}function E(){var e=function(){var e,t=l.useContext(g),n=O(A.UseRouteError),r=M(A.UseRouteError);if(t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=(0,c.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:i},n):null,null)}var N,A,D=l.createElement(E,null),T=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this,e)).state={location:e.location,revalidation:e.revalidation,error:e.error},r}return(0,o.Z)(n,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return this.state.error?l.createElement(v.Provider,{value:this.props.routeContext},l.createElement(g.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}}]),n}(l.Component);function I(e){var t=e.routeContext,n=e.match,r=e.children,i=l.useContext(d);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(v.Provider,{value:t},r)}function P(e,t,n){var r;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}var o=e,a=null==(r=n)?void 0:r.errors;if(null!=a){var s=o.findIndex((function(e){return e.route.id&&(null==a?void 0:a[e.route.id])}));s>=0||(0,c.J0)(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((function(e,r,i){var s=r.route.id?null==a?void 0:a[r.route.id]:null,c=null;n&&(c=r.route.errorElement||D);var u=t.concat(o.slice(0,i+1)),d=function(){var t;return t=s?c:r.route.element?r.route.element:e,l.createElement(I,{match:r,routeContext:{outlet:e,matches:u},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?l.createElement(T,{location:n.location,revalidation:n.revalidation,component:c,error:s,children:d(),routeContext:{outlet:null,matches:u}}):d()}),null)}function F(e){var t=l.useContext(d);return t||(0,c.J0)(!1),t}function O(e){var t=l.useContext(f);return t||(0,c.J0)(!1),t}function M(e){var t=function(e){var t=l.useContext(v);return t||(0,c.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,c.J0)(!1),n.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(N||(N={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(A||(A={}));var Z;function R(e){var t=e.to,n=e.replace,r=e.state,i=e.relative;b()||(0,c.J0)(!1);var o=l.useContext(f),a=S();return l.useEffect((function(){o&&"idle"!==o.navigation.state||a(t,{replace:n,state:r,relative:i})})),null}function L(e){(0,c.J0)(!1)}function B(e){var t=e.basename,n=void 0===t?"/":t,r=e.children,i=void 0===r?null:r,o=e.location,a=e.navigationType,s=void 0===a?c.aU.Pop:a,u=e.navigator,d=e.static,f=void 0!==d&&d;b()&&(0,c.J0)(!1);var p=n.replace(/^\/*/,"/"),v=l.useMemo((function(){return{basename:p,navigator:u,static:f}}),[p,u,f]);"string"===typeof o&&(o=(0,c.cP)(o));var g=o,y=g.pathname,x=void 0===y?"/":y,w=g.search,k=void 0===w?"":w,S=g.hash,j=void 0===S?""
2:S,C=g.state,_=void 0===C?null:C,E=g.key,N=void 0===E?"default":E,A=l.useMemo((function(){var e=(0,c.Zn)(x,p);return null==e?null:{location:{pathname:e,search:k,hash:j,state:_,key:N},navigationType:s}}),[p,x,k,j,_,N,s]);return null==A?null:l.createElement(h.Provider,{value:v},l.createElement(m.Provider,{children:i,value:A}))}function z(e){var t=e.children,n=e.location;return _(H(t),n)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(Z||(Z={}));var U=new Promise((function(){}));l.Component;function H(e,t){void 0===t&&(t=[]);var n=[];return l.Children.forEach(e,(function(e,i){if(l.isValidElement(e)){var o=[].concat((0,r.Z)(t),[i]);if(e.type!==l.Fragment){e.type!==L&&(0,c.J0)(!1),e.props.index&&e.props.children&&(0,c.J0)(!1);var a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=H(e.props.children,o)),n.push(a)}else n.push.apply(n,H(e.props.children,o))}})),n}},6374:function(e,t,n){"use strict";var r=n(2791),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var x=b.prototype=new y;x.constructor=b,m(x,g.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,i)&&!j.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:S.current}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+N(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(E,"$&/")+"/"),A(a,t,i,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+N(s=e[c],c);l+=A(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=A(s=s.value,t,i,u=o+N(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},P={transition:null},F={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:P,ReactCurrentOwner:S};
vendor: 4,509 bytes, line 2
2t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!j.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,v=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(v=!1,x(e),!m)if(null!==r(c))m=!0,P(k);else{var t=r(u);null!==t&&F(w,t.startTime-e)}}function k(e,n){m=!1,v&&(v=!1,y(_),_=-1),h=!0;var o=p;try{for(x(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!A());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&i(c),x(n)}else i(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&F(w,d.startTime-n),l=!1}return l}finally{f=null,p=o,h=!1}
2}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,j=!1,C=null,_=-1,E=5,N=-1;function A(){return!(t.unstable_now()-N<E)}function D(){if(null!==C){var e=t.unstable_now();N=e;var n=!0;try{n=C(!0,e)}finally{n?S():(j=!1,C=null)}}else j=!1}if("function"===typeof b)S=function(){b(D)};else if("undefined"!==typeof MessageChannel){var T=new MessageChannel,I=T.port2;T.port1.onmessage=D,S=function(){I.postMessage(null)}}else S=function(){g(D,0)};function P(e){C=e,j||(j=!0,S())}function F(e,n){_=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,P(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(v?(y(_),_=-1):v=!0,F(w,o-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,P(k))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},6426:function(e,t,n){var r=n(1065);function i(e,t){var n,i=null;if(!e||"string"!==typeof e)return i;for(var o,a,s=r(e),l="function"===typeof t,c=0,u=s.length;c<u;c++)o=(n=s[c]).property,a=n.value,l?t(o,a,n):a&&(i||(i={}),i[o]=a);return i}e.exports=i,e.exports.default=i},1830:function(e,t,n){var r=n(6690).default,i=n(9728).default,o=n(1588).default,a=n(3808).default,s=n(1655).default,l=n(6389).default,c=n(3515).default,u=n(7424).default,d=n(861).default;e.exports=function(){"use strict";function e(e,t){return f(e,n(e,t,"get"))}function t(e,t,r){return p(e,n(e,t,"set"),r),r}function n(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function f(e,t){return t.get?t.get.call(e):t.value}function p(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,n){h(e,t),t.set(e,n)}var v=100,g={},y=function(){g.previousActiveElement instanceof HTMLElement?(g.previousActiveElement.focus(),g.previousActiveElement=null):document.body&&document.body.focus()},b=function(e){return new Promise((function(t){if(!e)return t();var n=window.scrollX,r=window.scrollY;g.restoreFocusTimeout=setTimeout((function(){y(),t()}),v),window.scrollTo(n,r)}))},x="swal2-",w=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","to
2p-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce((function(e,t){return e[t]=x+t,e}),{}),k=["success","warning","info","question","error"].reduce((function(e,t){return e[t]=x+t,e}),{}),S="SweetAlert2:",j=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},C=function(e){console.warn("".concat(S," ").concat("object"===typeof e?e.join(" "):e))},_=function(e){console.error("".concat(S," ").concat(e))},E=[],N=function(e){E.includes(e)||(E.push(e),C(e))},A=function(e,t){N('"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'))},D=function(e){return"function"===typeof e?e():e},T=function(e){return e&&"function"===typeof e.toPromise},I=function(e){return T(e)?e.toPromise():Promise.resolve(e)},P=function(e){return e&&Promise.resolve(e)===e},F=function(){return document.body.querySelector(".".concat(w.container))},O=function(e){var t=F();return t?t.querySelector(e):null},M=function(e){return O(".".concat(e))},Z=function(){return M(w.popup)},R=function(){return M(w.icon)},L=function(){return M(w["icon-content"])},B=function(){return M(w.title)},z=function(){return M(w["html-container"])},U=function(){return M(w.image)},H=function(){return M(w["progress-steps"])},W=function(){return M(w["validation-message"])},q=function(){return O(".".concat(w.actions," .").concat(w.confirm))},V=function(){return O(".".concat(w.actions," .").concat(w.cancel))},G=function(){return O(".".concat(w.actions," .").concat(w.deny))},$=function(){return M(w["input-label"])},J=function(){return O(".".concat(w.loader))},K=function(){return M(w.actions)},Y=function(){return M(w.footer)},X=function(){return M(w["timer-progress-bar"])},Q=function(){return M(w.close)},ee='\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n',te=function(){var e=Z();if(!e)return[];var t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((function(e,t){var n=parseInt(e.getAttribute("tabindex")||"0"),r=parseInt(t.getAttribute("tabindex")||"0");return n>r?1:n<r?-1:0})),r=e.querySelectorAll(ee),i=Array.from(r).filter((function(e){return"-1"!==e.getAttribute("tabindex")}));return d(new Set(n.concat(i))).filter((function(e){return xe(e)}))},ne=function(){return ae(document.body,w.shown)&&!ae(document.body,w["toast-shown"])&&!ae(document.body,w["no-backdrop"])},re=function(){var e=Z();return!!e&&ae(e,w.toast)},ie=function(){var e=Z();return!!e&&e.hasAttribute("data-loading")},oe=function(e,t){if(e.textContent="",t){var n=(new DOMParser).parseFromString(t,"text/html"),r=n.querySelector("head");r&&Array.from(r.childNodes).forEach((function(t){e.appendChild(t)}));var i=n.querySelector("body");i&&Array.from(i.childNodes).forEach((function(t){t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)}))}},ae=function(e,t){if(!t)return!1;for(var n=t.split(/\s+/),r=0;r<n.length;r++)if(!e.classList.contains(n[r]))return!1;return!0},se=function(e,t){Array.from(e.classList).forEach((function(n){Object.values(w).includes(n)||Object.values(k).includes(n)||Object.values(t.showClass||{}).includes(n)||e.classList.remove(n)}))},le=function(e,t,n){if(se(e,t),t.customClass&&t.customClass[n]){if("string"!==typeof t.customClass[n]&&!t.customClass[n].forEach)return void C("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));fe(e,t.customClass[n])}},ce=function(e,t){if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(w.popup," > .").concat(w[t]));case"checkbox":return e.querySelector(".".concat(w.popup," > .").concat(w.checkbox," input"));case"radio":return e.querySelector(".".concat(w.popup," > .").concat(w.radio," input:checked"))||e.querySelector(".".concat(w.popup," > .").concat(w.radio," input:first-child"));case"range":return e.querySelector(".".concat(w.popup," > .").concat(w.range," input"));default:return e.querySelector(".".concat(w.popup," > .").concat(w.input))}},ue=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},de=function(e,t,n){e&&t&&("string"===typeof t&&(t=t.split(/\s+/).filter(
2Boolean)),t.forEach((function(t){Array.isArray(e)?e.forEach((function(e){n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},fe=function(e,t){de(e,t,!0)},pe=function(e,t){de(e,t,!1)},he=function(e,t){for(var n=Array.from(e.children),r=0;r<n.length;r++){var i=n[r];if(i instanceof HTMLElement&&ae(i,t))return i}},me=function(e,t,n){n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?e.style[t]="number"===typeof n?"".concat(n,"px"):n:e.style.removeProperty(t)},ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},ge=function(e){e&&(e.style.display="none")},ye=function(e,t,n,r){var i=e.querySelector(t);i&&(i.style[n]=r)},be=function(e,t){t?ve(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):ge(e)},xe=function(e){return!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},we=function(){return!xe(q())&&!xe(G())&&!xe(V())},ke=function(e){return!!(e.scrollHeight>e.clientHeight)},Se=function(e){var t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},je=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=X();n&&xe(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},Ce=function(){var e=X();if(e){var t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width="".concat(n,"%")}},_e=function(){return"undefined"===typeof window||"undefined"===typeof document},Ee='\n <div aria-labelledby="'.concat(w.title,'" aria-describedby="').concat(w["html-container"],'" class="').concat(w.popup,'" tabindex="-1">\n   <button type="button" class="').concat(w.close,'"></button>\n   <ul class="').concat(w["progress-steps"],'"></ul>\n   <div class="').concat(w.icon,'"></div>\n   <img class="').concat(w.image,'" />\n   <h2 class="').concat(w.title,'" id="').concat(w.title,'"></h2>\n   <div class="').concat(w["html-container"],'" id="').concat(w["html-container"],'"></div>\n   <input class="').concat(w.input,'" id="').concat(w.input,'" />\n   <input type="file" class="').concat(w.file,'" />\n   <div class="').concat(w.range,'">\n     <input type="range" />\n     <output></output>\n   </div>\n   <select class="').concat(w.select,'" id="').concat(w.select,'"></select>\n   <div class="').concat(w.radio,'"></div>\n   <label class="').concat(w.checkbox,'">\n     <input type="checkbox" id="').concat(w.checkbox,'" />\n     <span class="').concat(w.label,'"></span>\n   </label>\n   <textarea class="').concat(w.textarea,'" id="').concat(w.textarea,'"></textarea>\n   <div class="').concat(w["validation-message"],'" id="').concat(w["validation-message"],'"></div>\n   <div class="').concat(w.actions,'">\n     <div class="').concat(w.loader,'"></div>\n     <button type="button" class="').concat(w.confirm,'"></button>\n     <button type="button" class="').concat(w.deny,'"></button>\n     <button type="button" class="').concat(w.cancel,'"></button>\n   </div>\n   <div class="').concat(w.footer,'"></div>\n   <div class="').concat(w["timer-progress-bar-container"],'">\n     <div class="').concat(w["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),Ne=function(){var e=F();return!!e&&(e.remove(),pe([document.documentElement,document.body],[w["no-backdrop"],w["toast-shown"],w["has-column"]]),!0)},Ae=function(){g.currentInstance.resetValidationMessage()},De=function(){var e=Z(),t=he(e,w.input),n=he(e,w.file),r=e.querySelector(".".concat(w.range," input")),i=e.querySelector(".".concat(w.range," output")),o=he(e,w.select),a=e.querySelector(".".concat(w.checkbox," input")),s=he(e,w.textarea);t.oninput=Ae,n.onchange=Ae,o.onchange=Ae,a.onchange=Ae,s.oninput=Ae,r.oninput=function(){Ae(),i.value=r.value},r.onchange=function(){Ae(),i.value=r.value}},Te=function(e){return"string"===typeof e?document.querySelector(e):e},Ie=function(e){var t=Z();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Pe=function(e){"rtl"===window.getComputedStyle(e).direction&&fe(F(),w.rtl)},Fe=function(e){var t=Ne();if(_e())_("SweetAlert2 requires document to initialize");else{var n=document.createElement("div");n.className=w.container,t&&fe(n,w["no-transition"]),oe(n,Ee);var r=Te(e.target);r.appendChild(n),Ie(e),Pe(r),De()}},Oe=function(e,t){e instanceof HTMLElement?t.appendChild(e):"object"===typeof e?Me(e,t):e&&oe(t,e)},Me=function(e,t){e.jquery?Ze(t,e):oe(t,e.toString())},Ze=function(e,t){if(e.textContent="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Re=function(){if(_e())return!1;var e=document.createElement("div");return"undefined"!==typeof e.style.webkitAnimation?"webkitAnimationEnd":"undefined"!==typeof e.style.animation&&"animationend"}(),Le=function(e,t){var n=K(),r=J();n&&r&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ve(n):ge(n),le(n,t,"actions"),Be(n,r,t),oe(r,t.loaderHtml||""),le(r,t,"loader"))};function Be(e,t,n){var r=q(),i=G(),o=V();r&&i&&o&&(Ue(r,"confirm",n),Ue(i,"deny",n),Ue(o,"cancel",n),ze(r,i,o,n),n.reverseButtons&&(n.toast?(e.insertBefore(o,r),e.insertBefore(i,r)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(r,t))))}function ze(e,t,n,r){r.buttonsStyling?(fe([e,t,n],w.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,fe(e,w["default-outline"])),r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,fe(t,w["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,fe(n,w["default-outline"]))):pe([e,t,n],w.styled)}function Ue(e,t,n){var r=j(t);be(e,n["show".concat(r,"Button")],"inline-block"),oe(e,n["".concat(t,"ButtonText")]||""),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]||""),e.className=w[t],le(e,n,"".concat(t,"Button"))}
2var He=function(e,t){var n=Q();n&&(oe(n,t.closeButtonHtml||""),le(n,t,"closeButton"),be(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},We=function(e,t){var n=F();n&&(qe(n,t.backdrop),Ve(n,t.position),Ge(n,t.grow),le(n,t,"container"))};function qe(e,t){"string"===typeof t?e.style.background=t:t||fe([document.documentElement,document.body],w["no-backdrop"])}function Ve(e,t){t&&(t in w?fe(e,w[t]):(C('The "position" parameter is not valid, defaulting to "center"'),fe(e,w.center)))}function Ge(e,t){t&&fe(e,w["grow-".concat(t)])}var $e={innerParams:new WeakMap,domCache:new WeakMap},Je=["input","file","range","select","radio","checkbox","textarea"],Ke=function(e,t){var n=Z();if(n){var r=$e.innerParams.get(e),i=!r||t.input!==r.input;Je.forEach((function(e){var r=he(n,w[e]);r&&(Qe(e,t.inputAttributes),r.className=w[e],i&&ge(r))})),t.input&&(i&&Ye(t),et(t))}},Ye=function(e){if(e.input)if(ot[e.input]){var t=rt(e.input),n=ot[e.input](t,e);ve(t),e.inputAutoFocus&&setTimeout((function(){ue(n)}))}else _('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'))},Xe=function(e){for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},Qe=function(e,t){var n=ce(Z(),e);if(n)for(var r in Xe(n),t)n.setAttribute(r,t[r])},et=function(e){var t=rt(e.input);"object"===typeof e.customClass&&fe(t,e.customClass.input)},tt=function(e,t){e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},nt=function(e,t,n){if(n.inputLabel){var r=document.createElement("label"),i=w["input-label"];r.setAttribute("for",e.id),r.className=i,"object"===typeof n.customClass&&fe(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},rt=function(e){return he(Z(),w[e]||w.input)},it=function(e,t){["string","number"].includes(typeof t)?e.value="".concat(t):P(t)||C('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},ot={};ot.text=ot.email=ot.password=ot.number=ot.tel=ot.url=function(e,t){return it(e,t.inputValue),nt(e,e,t),tt(e,t),e.type=t.input,e},ot.file=function(e,t){return nt(e,e,t),tt(e,t),e},ot.range=function(e,t){var n=e.querySelector("input"),r=e.querySelector("output");return it(n,t.inputValue),n.type=t.input,it(r,t.inputValue),nt(n,e,t),e},ot.select=function(e,t){if(e.textContent="",t.inputPlaceholder){var n=document.createElement("option");oe(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return nt(e,e,t),e},ot.radio=function(e){return e.textContent="",e},ot.checkbox=function(e,t){var n=ce(Z(),"checkbox");n.value="1",n.checked=Boolean(t.inputValue);var r=e.querySelector("span");return oe(r,t.inputPlaceholder),n},ot.textarea=function(e,t){it(e,t.inputValue),tt(e,t),nt(e,e,t);var n=function(e){return parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight)};return setTimeout((function(){if("MutationObserver"in window){var r=parseInt(window.getComputedStyle(Z()).width);new MutationObserver((function(){if(document.body.contains(e)){var i=e.offsetWidth+n(e);i>r?Z().style.width="".concat(i,"px"):me(Z(),"width",t.width)}})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};var at=function(e,t){var n=z();n&&(le(n,t,"htmlContainer"),t.html?(Oe(t.html,n),ve(n,"block")):t.text?(n.textContent=t.text,ve(n,"block")):ge(n),Ke(e,t))},st=function(e,t){var n=Y();n&&(be(n,t.footer,"block"),t.footer&&Oe(t.footer,n),le(n,t,"footer"))},lt=function(e,t){var n=$e.innerParams.get(e),r=R();if(r){if(n&&t.icon===n.icon)return pt(r,t),void ct(r,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(k).indexOf(t.icon))return _('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void ge(r);ve(r),pt(r,t),ct(r,t),fe(r,t.showClass&&t.showClass.icon)}else ge(r)}},ct=function(e,t){for(var n=0,r=Object.entries(k);n<r.length;n++){var i=u(r[n],2),o=i[0],a=i[1];t.icon!==o&&pe(e,a)}fe(e,t.icon&&k[t.icon]),ht(e,t),ut(),le(e,t,"icon")},ut=function(){var e=Z();if(e)for(var t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),r=0;r<n.length;r++)n[r].style.backgroundColor=t},dt='\n  <div class="swal2-success-circular-line-left"></div>\n  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n  <div class="swal2-success-circular-line-right"></div>\n',ft='\n  <span class="swal2-x-mark">\n    <span class="swal2-x-mark-line-left"></span>\n    <span class="swal2-x-mark-line-right"></span>\n  </span>\n',pt=function(e,t){if(t.icon||t.iconHtml){var n=e.innerHTML,r="";t.iconHtml?r=mt(t.iconHtml):"success"===t.icon?(r=dt,n=n.replace(/ style=".*?"/g,"")):"error"===t.icon?r=ft:t.icon&&(r=mt({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==r.trim()&&oe(e,r)}},ht=function(e,t){if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(var n=0,r=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n<r.length;n++){var i=r[n];ye(e,i,"backgroundColor",t.iconColor)}ye(e,".swal2-success-ring","borderColor",t.iconColor)}},mt=function(e){return'<div class="'.concat(w["icon-content"],'">').concat(e,"</div>")},vt=function(e,t){var n=U();n&&(t.imageUrl?(ve(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),me(n,"width",t.imageWidth),me(n,"height",t.imageHeight),n.className=w.image,le(n,t,"image")):ge(n))},gt=function(e,t){var n=F(),r=Z();if(n&&r){if(t.toast){me(n,"width",t.width),r.style.width="100%";var i=J();i&&r.insertBefore(i,R())}else me(r,"width",t.width);me(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),ge(W()),yt(r,t)}},yt=function(e,t){var n=t.showClass||{};e.className="".concat(w.popup," ").concat(xe(e)?n.popup:""),t.toast?(fe([document.documentElement,document.body],w["toast-shown"]),fe(e,w.toast)):fe(e,w.modal),le(e,t,"popup"),"string"===typeof t.customClass&&fe(e,t.customClass),t.icon&&fe(e,w["icon-".concat(t.icon)])},bt=function(e,t){var n=H();if(n){var r=t.progressSteps,i=t.currentProgressStep;r&&0!==r.length&&void 0!==i?(ve(n),n.textContent="",i>=r.length&&C("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((function(e,o){var a=xt(e);
2if(n.appendChild(a),o===i&&fe(a,w["active-progress-step"]),o!==r.length-1){var s=wt(t);n.appendChild(s)}}))):ge(n)}},xt=function(e){var t=document.createElement("li");return fe(t,w["progress-step"]),oe(t,e),t},wt=function(e){var t=document.createElement("li");return fe(t,w["progress-step-line"]),e.progressStepsDistance&&me(t,"width",e.progressStepsDistance),t},kt=function(e,t){var n=B();n&&(be(n,t.title||t.titleText,"block"),t.title&&Oe(t.title,n),t.titleText&&(n.innerText=t.titleText),le(n,t,"title"))},St=function(e,t){gt(e,t),We(e,t),bt(e,t),lt(e,t),vt(e,t),kt(e,t),He(e,t),at(e,t),Le(e,t),st(e,t);var n=Z();"function"===typeof t.didRender&&n&&t.didRender(n)},jt=function(){return xe(Z())},Ct=function(){var e;return null===(e=q())||void 0===e?void 0:e.click()},_t=function(){var e;return null===(e=G())||void 0===e?void 0:e.click()},Et=function(){var e;return null===(e=V())||void 0===e?void 0:e.click()},Nt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),At=function(e){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Dt=function(e,t,n){At(e),t.toast||(e.keydownHandler=function(e){return Ft(t,e,n)},e.keydownTarget=t.keydownListenerCapture?window:Z(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Tt=function(e,t){var n,r=te();if(r.length)return(e+=t)===r.length?e=0:-1===e&&(e=r.length-1),void r[e].focus();null===(n=Z())||void 0===n||n.focus()},It=["ArrowRight","ArrowDown"],Pt=["ArrowLeft","ArrowUp"],Ft=function(e,t,n){e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ot(t,e):"Tab"===t.key?Mt(t):[].concat(It,Pt).includes(t.key)?Zt(t.key):"Escape"===t.key&&Rt(t,e,n)))},Ot=function(e,t){if(D(t.allowEnterKey)){var n=ce(Z(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Ct(),e.preventDefault()}}},Mt=function(e){for(var t=e.target,n=te(),r=-1,i=0;i<n.length;i++)if(t===n[i]){r=i;break}e.shiftKey?Tt(r,-1):Tt(r,1),e.stopPropagation(),e.preventDefault()},Zt=function(e){var t=K(),n=q(),r=G(),i=V();if(t&&n&&r&&i){var o=[n,r,i];if(!(document.activeElement instanceof HTMLElement)||o.includes(document.activeElement)){var a=It.includes(e)?"nextElementSibling":"previousElementSibling",s=document.activeElement;if(s){for(var l=0;l<t.children.length;l++){if(!(s=s[a]))return;if(s instanceof HTMLButtonElement&&xe(s))break}s instanceof HTMLButtonElement&&s.focus()}}}},Rt=function(e,t,n){D(t.allowEscapeKey)&&(e.preventDefault(),n(Nt.esc))},Lt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Bt=function(){Array.from(document.body.children).forEach((function(e){e===F()||e.contains(F())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")||""),e.setAttribute("aria-hidden","true"))}))},zt=function(){Array.from(document.body.children).forEach((function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},Ut="undefined"!==typeof window&&!!window.GestureEvent,Ht=function(){if(Ut&&!ae(document.body,w.iosfix)){var e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),fe(document.body,w.iosfix),Wt()}},Wt=function(){var e,t=F();t&&(t.ontouchstart=function(t){e=qt(t)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())})},qt=function(e){var t=e.target,n=F(),r=z();return!(!n||!r)&&!Vt(e)&&!Gt(e)&&(t===n||!ke(n)&&t instanceof HTMLElement&&"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&(!ke(r)||!r.contains(t)))},Vt=function(e){return e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType},Gt=function(e){return e.touches&&e.touches.length>1},$t=function(){if(ae(document.body,w.iosfix)){var e=parseInt(document.body.style.top,10);
2pe(document.body,w.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},Jt=function(){var e=document.createElement("div");e.className=w["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},Kt=null,Yt=function(e){null===Kt&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(Kt=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Kt+Jt(),"px"))},Xt=function(){null!==Kt&&(document.body.style.paddingRight="".concat(Kt,"px"),Kt=null)};function Qt(e,t,n,r){re()?cn(e,r):(b(n).then((function(){return cn(e,r)})),At(g)),Ut?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),ne()&&(Xt(),$t(),zt()),en()}function en(){pe([document.documentElement,document.body],[w.shown,w["height-auto"],w["no-backdrop"],w["toast-shown"]])}function tn(e){e=an(e);var t=Lt.swalPromiseResolve.get(this),n=nn(this);this.isAwaitingPromise?e.isDismissed||(on(this),t(e)):n&&t(e)}var nn=function(e){var t=Z();if(!t)return!1;var n=$e.innerParams.get(e);if(!n||ae(t,n.hideClass.popup))return!1;pe(t,n.showClass.popup),fe(t,n.hideClass.popup);var r=F();return pe(r,n.showClass.backdrop),fe(r,n.hideClass.backdrop),sn(e,t,n),!0};function rn(e){var t=Lt.swalPromiseReject.get(this);on(this),t&&t(e)}var on=function(e){e.isAwaitingPromise&&(delete e.isAwaitingPromise,$e.innerParams.get(e)||e._destroy())},an=function(e){return"undefined"===typeof e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e)},sn=function(e,t,n){var r=F(),i=Re&&Se(t);"function"===typeof n.willClose&&n.willClose(t),i?ln(e,t,r,n.returnFocus,n.didClose):Qt(e,r,n.returnFocus,n.didClose)},ln=function(e,t,n,r,i){Re&&(g.swalCloseEventFinishedCallback=Qt.bind(null,e,n,r,i),t.addEventListener(Re,(function(e){e.target===t&&(g.swalCloseEventFinishedCallback(),delete g.swalCloseEventFinishedCallback)})))},cn=function(e,t){setTimeout((function(){"function"===typeof t&&t.bind(e.params)(),e._destroy&&e._destroy()}))},un=function(e){var t=Z();if(t||new ui,t=Z()){var n=J();re()?ge(R()):dn(t,e),ve(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()}},dn=function(e,t){var n=K(),r=J();n&&r&&(!t&&xe(q())&&(t=q()),ve(n),t&&(ge(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),fe([e,n],w.loading))},fn=function(e,t){"select"===t.input||"radio"===t.input?gn(e,t):["text","email","number","tel","textarea"].some((function(e){return e===t.input}))&&(T(t.inputValue)||P(t.inputValue))&&(un(q()),yn(e,t))},pn=function(e,t){var n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return hn(n);case"radio":return mn(n);case"file":return vn(n);default:return t.inputAutoTrim?n.value.trim():n.value}},hn=function(e){return e.checked?1:0},mn=function(e){return e.checked?e.value:null},vn=function(e){return e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null},gn=function(e,t){var n=Z();if(n){var r=function(e){"select"===t.input?bn(n,wn(e),t):"radio"===t.input&&xn(n,wn(e),t)};T(t.inputOptions)||P(t.inputOptions)?(un(q()),I(t.inputOptions).then((function(t){e.hideLoading(),r(t)}))):"object"===typeof t.inputOptions?r(t.inputOptions):_("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))}},yn=function(e,t){var n=e.getInput();n&&(ge(n),I(t.inputValue).then((function(r){n.value="number"===t.input?"".concat(parseFloat(r)||0):"".concat(r),ve(n),n.focus(),e.hideLoading()})).catch((function(t){_("Error in inputValue promise: ".concat(t)),n.value="",ve(n),n.focus(),e.hideLoading()})))};function bn(e,t,n){var r=he(e,w.select);if(r){var i=function(e,t,r){var i=document.createElement("option");i.value=r,oe(i,t),i.selected=kn(r,n.inputValue),e.appendChild(i)};t.forEach((function(e){var t=e[0],n=e[1];if(Array.isArray(n)){var o=document.createElement("optgroup");o.label=t,o.disabled=!1,r.appendChild(o),n.forEach((function(e){return i(o,e[1],e[0])}))}else i(r,n,t)}
2)),r.focus()}}function xn(e,t,n){var r=he(e,w.radio);if(r){t.forEach((function(e){var t=e[0],i=e[1],o=document.createElement("input"),a=document.createElement("label");o.type="radio",o.name=w.radio,o.value=t,kn(t,n.inputValue)&&(o.checked=!0);var s=document.createElement("span");oe(s,i),s.className=w.label,a.appendChild(o),a.appendChild(s),r.appendChild(a)}));var i=r.querySelectorAll("input");i.length&&i[0].focus()}}var wn=function e(t){var n=[];return t instanceof Map?t.forEach((function(t,r){var i=t;"object"===typeof i&&(i=e(i)),n.push([r,i])})):Object.keys(t).forEach((function(r){var i=t[r];"object"===typeof i&&(i=e(i)),n.push([r,i])})),n},kn=function(e,t){return!!t&&t.toString()===e.toString()},Sn=function(e){var t=$e.innerParams.get(e);e.disableButtons(),t.input?_n(e,"confirm"):Tn(e,!0)},jn=function(e){var t=$e.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?_n(e,"deny"):Nn(e,!1)},Cn=function(e,t){e.disableButtons(),t(Nt.cancel)},_n=function(e,t){var n=$e.innerParams.get(e);if(n.input){var r=e.getInput(),i=pn(e,n);n.inputValidator?En(e,i,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage)):"deny"===t?Nn(e,i):Tn(e,i)}else _('The "input" parameter is needed to be set when using returnInputValueOn'.concat(j(t)))},En=function(e,t,n){var r=$e.innerParams.get(e);e.disableInput(),Promise.resolve().then((function(){return I(r.inputValidator(t,r.validationMessage))})).then((function(r){e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?Nn(e,t):Tn(e,t)}))},Nn=function(e,t){var n=$e.innerParams.get(e||void 0);n.showLoaderOnDeny&&un(G()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((function(){return I(n.preDeny(t,n.validationMessage))})).then((function(n){!1===n?(e.hideLoading(),on(e)):e.close({isDenied:!0,value:"undefined"===typeof n?t:n})})).catch((function(t){return Dn(e||void 0,t)}))):e.close({isDenied:!0,value:t})},An=function(e,t){e.close({isConfirmed:!0,value:t})},Dn=function(e,t){e.rejectPromise(t)},Tn=function(e,t){var n=$e.innerParams.get(e||void 0);n.showLoaderOnConfirm&&un(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((function(){return I(n.preConfirm(t,n.validationMessage))})).then((function(n){xe(W())||!1===n?(e.hideLoading(),on(e)):An(e,"undefined"===typeof n?t:n)})).catch((function(t){return Dn(e||void 0,t)}))):An(e,t)};function In(){var e=$e.innerParams.get(this);if(e){var t=$e.domCache.get(this);ge(t.loader),re()?e.icon&&ve(R()):Pn(t),pe([t.popup,t.actions],w.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}}var Pn=function(e){var t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ve(t[0],"inline-block"):we()&&ge(e.actions)};function Fn(){var e=$e.innerParams.get(this),t=$e.domCache.get(this);return t?ce(t.popup,e.input):null}function On(e,t,n){var r=$e.domCache.get(e);t.forEach((function(e){r[e].disabled=n}))}function Mn(e,t){var n=Z();if(n&&e)if("radio"===e.type)for(var r=n.querySelectorAll('[name="'.concat(w.radio,'"]')),i=0;i<r.length;i++)r[i].disabled=t;else e.disabled=t}function Zn(){On(this,["confirmButton","denyButton","cancelButton"],!1)}function Rn(){On(this,["confirmButton","denyButton","cancelButton"],!0)}function Ln(){Mn(this.getInput(),!1)}function Bn(){Mn(this.getInput(),!0)}function zn(e){var t=$e.domCache.get(this),n=$e.innerParams.get(this);oe(t.validationMessage,e),t.validationMessage.className=w["validation-message"],n.customClass&&n.customClass.validationMessage&&fe(t.validationMessage,n.customClass.validationMessage),ve(t.validationMessage);var r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",w["validation-message"]),ue(r),fe(r,w.inputerror))}function Un(){var e=$e.domCache.get(this);e.validationMessage&&ge(e.validationMessage);var t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),pe(t,w.inputerror))}var Hn={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose
2:void 0,didDestroy:void 0,scrollbarPadding:!0},Wn=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],qn={},Vn=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Gn=function(e){return Object.prototype.hasOwnProperty.call(Hn,e)},$n=function(e){return-1!==Wn.indexOf(e)},Jn=function(e){return qn[e]},Kn=function(e){Gn(e)||C('Unknown parameter "'.concat(e,'"'))},Yn=function(e){Vn.includes(e)&&C('The parameter "'.concat(e,'" is incompatible with toasts'))},Xn=function(e){var t=Jn(e);t&&A(e,t)},Qn=function(e){for(var t in!1===e.backdrop&&e.allowOutsideClick&&C('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e)Kn(t),e.toast&&Yn(t),Xn(t)};function er(e){var t=Z(),n=$e.innerParams.get(this);if(t&&!ae(t,n.hideClass.popup)){var r=tr(e),i=Object.assign({},n,r);St(this,i),$e.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}else C("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.")}var tr=function(e){var t={};return Object.keys(e).forEach((function(n){$n(n)?t[n]=e[n]:C("Invalid parameter to update: ".concat(n))})),t};function nr(){var e=$e.domCache.get(this),t=$e.innerParams.get(this);t?(e.popup&&g.swalCloseEventFinishedCallback&&(g.swalCloseEventFinishedCallback(),delete g.swalCloseEventFinishedCallback),"function"===typeof t.didDestroy&&t.didDestroy(),rr(this)):ir(this)}var rr=function(e){ir(e),delete e.params,delete g.keydownHandler,delete g.keydownTarget,delete g.currentInstance},ir=function(e){e.isAwaitingPromise?(or($e,e),e.isAwaitingPromise=!0):(or(Lt,e),or($e,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},or=function(e,t){for(var n in e)e[n].delete(t)},ar=Object.freeze({__proto__:null,_destroy:nr,close:tn,closeModal:tn,closePopup:tn,closeToast:tn,disableButtons:Rn,disableInput:Bn,disableLoading:In,enableButtons:Zn,enableInput:Ln,getInput:Fn,handleAwaitingPromise:on,hideLoading:In,rejectPromise:rn,resetValidationMessage:Un,showValidationMessage:zn,update:er}),sr=function(e,t,n){e.toast?lr(e,t,n):(dr(t),fr(t),pr(e,t,n))},lr=function(e,t,n){t.popup.onclick=function(){e&&(cr(e)||e.timer||e.input)||n(Nt.close)}},cr=function(e){return e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton},ur=!1,dr=function(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(ur=!0)}}},fr=function(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(ur=!0)}}},pr=function(e,t,n){t.container.onclick=function(r){ur?ur=!1:r.target===t.container&&D(e.allowOutsideClick)&&n(Nt.backdrop)}},hr=function(e){return"object"===typeof e&&e.jquery},mr=function(e){return e instanceof Element||hr(e)},vr=function(e){var t={};return"object"!==typeof e[0]||mr(e[0])?["title","html","icon"].forEach((function(n,r){var i=e[r];"string"===typeof i||mr(i)?t[n]=i:void 0!==i&&_("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(typeof i))})):Object.assign(t,e[0]),t};function gr(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(e,n)}function yr(e){var t=function(t){s(c,t);var n=l(c);function c(){return r(this,c),n.apply(this,arguments)}return i(c,[{key:"_main",value:function(t,n){return o(a(c.prototype),"_main",this).call(this,t,Object.assign({},e,n))}}]),c}(this);return t}var br=function(){return g.timeout&&g.timeout.getTimerLeft()},xr=function(){if(g.timeout)return Ce(),g.timeout.stop()},wr=function(){if(g.timeout){var e=g.timeout.start();return je(e),e}},kr=function(){var e=g.timeout;return e&&(e.running?xr():wr())},Sr=function(e){if(g.timeout){var t=g.timeout.increase(e);return je(t,!0),t}},jr=function(){return!(!g.timeout||!g.timeout.isRunning())},Cr=!1,_r={};function Er(){_r[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Cr||(document.body.addEventListener("click",Ar),Cr=!0)}var Nr,Ar=function(e){for(var t=e.target;t&&t!==document;t=t.parentNode)for(var n in _r){var r=t.getAttribute(n);if(r)return void _r[n].fire({template:r})}},Dr=Object.freeze({__proto__:null,argsToParams:vr,bindClickHandler:Er,clickCancel:Et,clickConfirm:Ct,clickDeny:_t,enableLoading:un,fire:gr,getActions:K,getCancelButton:V,getCloseButton:Q,getConfirmButton:q,getContainer:F,getDenyButton:G,getFocusableElements:te,getFooter:Y,getHtmlContainer:z,getIcon:R,getIconContent:L,getImage:U,getInputLabel:$,getLoader:J,getPopup:Z,getProgressSteps:H,getTimerLeft:br,getTimerProgressBar:X,getTitle:B,getValidationMessage:W,increaseTimer:Sr,isDeprecatedParameter:Jn,isLoading:ie,isTimerRunning:jr,isUpdatableParameter:$n,isValidParameter:Gn,isVisible:jt,mixin:yr,resumeTimer:wr,showLoading:un,stopTimer:xr,toggleTimer:kr}),Tr=function(){function e(t,n){r(this,e),this.callback=t,this.remaining=n,this.running=!1,this.start()}return i(e,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.started&&this.running&&(this.running=!1,
2clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}},{key:"increase",value:function(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),e}(),Ir=["swal-title","swal-html","swal-footer"],Pr=function(e){var t="string"===typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};var n=t.content;return zr(n),Object.assign(Fr(n),Or(n),Mr(n),Zr(n),Rr(n),Lr(n),Br(n,Ir))},Fr=function(e){var t={};return Array.from(e.querySelectorAll("swal-param")).forEach((function(e){Ur(e,["name","value"]);var n=e.getAttribute("name"),r=e.getAttribute("value");"boolean"===typeof Hn[n]?t[n]="false"!==r:"object"===typeof Hn[n]?t[n]=JSON.parse(r):t[n]=r})),t},Or=function(e){var t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((function(e){var n=e.getAttribute("name"),r=e.getAttribute("value");t[n]=new Function("return ".concat(r))()})),t},Mr=function(e){var t={};return Array.from(e.querySelectorAll("swal-button")).forEach((function(e){Ur(e,["type","color","aria-label"]);var n=e.getAttribute("type");t["".concat(n,"ButtonText")]=e.innerHTML,t["show".concat(j(n),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),t},Zr=function(e){var t={},n=e.querySelector("swal-image");return n&&(Ur(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},Rr=function(e){var t={},n=e.querySelector("swal-icon");return n&&(Ur(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Lr=function(e){var t={},n=e.querySelector("swal-input");n&&(Ur(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));var r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach((function(e){Ur(e,["value"]);var n=e.getAttribute("value"),r=e.innerHTML;t.inputOptions[n]=r}))),t},Br=function(e,t){var n={};for(var r in t){var i=t[r],o=e.querySelector(i);o&&(Ur(o,[]),n[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return n},zr=function(e){var t=Ir.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((function(e){var n=e.tagName.toLowerCase();t.includes(n)||C("Unrecognized element <".concat(n,">"))}))},Ur=function(e,t){Array.from(e.attributes).forEach((function(n){-1===t.indexOf(n.name)&&C(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))},Hr=10,Wr=function(e){var t=F(),n=Z();"function"===typeof e.willOpen&&e.willOpen(n);var r=window.getComputedStyle(document.body).overflowY;$r(t,n,e),setTimeout((function(){Vr(t,n)}),Hr),ne()&&(Gr(t,e.scrollbarPadding,r),Bt()),re()||g.previousActiveElement||(g.previousActiveElement=document.activeElement),"function"===typeof e.didOpen&&setTimeout((function(){return e.didOpen(n)})),pe(t,w["no-transition"])},qr=function e(t){var n=Z();if(t.target===n&&Re){var r=F();n.removeEventListener(Re,e),r.style.overflowY="auto"}},Vr=function(e,t){Re&&Se(t)?(e.style.overflowY="hidden",t.addEventListener(Re,qr)):e.style.overflowY="auto"},Gr=function(e,t,n){Ht(),t&&"hidden"!==n&&Yt(n),setTimeout((function(){e.scrollTop=0}))}
2,$r=function(e,t,n){fe(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),ve(t,"grid"),setTimeout((function(){fe(t,n.showClass.popup),t.style.removeProperty("opacity")}),Hr),fe([document.documentElement,document.body],w.shown),n.heightAuto&&n.backdrop&&!n.toast&&fe([document.documentElement,document.body],w["height-auto"])},Jr={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")}};function Kr(e){e.inputValidator||("email"===e.input&&(e.inputValidator=Jr.email),"url"===e.input&&(e.inputValidator=Jr.url))}function Yr(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(C('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Xr(e){Kr(e),e.showLoaderOnConfirm&&!e.preConfirm&&C("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),Yr(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Fe(e)}var Qr=new WeakMap,ei=function(){function n(){if(r(this,n),m(this,Qr,{writable:!0,value:void 0}),"undefined"!==typeof window){Nr=this;for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];var a=Object.freeze(this.constructor.argsToParams(i));this.params=a,this.isAwaitingPromise=!1,t(this,Qr,this._main(Nr.params))}}return i(n,[{key:"_main",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qn(Object.assign({},t,e)),g.currentInstance&&(g.currentInstance._destroy(),ne()&&zt()),g.currentInstance=Nr;var n=ni(e,t);Xr(n),Object.freeze(n),g.timeout&&(g.timeout.stop(),delete g.timeout),clearTimeout(g.restoreFocusTimeout);var r=ri(Nr);return St(Nr,n),$e.innerParams.set(Nr,n),ti(Nr,r,n)}},{key:"then",value:function(t){return e(this,Qr).then(t)}},{key:"finally",value:function(t){return e(this,Qr).finally(t)}}]),n}(),ti=function(e,t,n){return new Promise((function(r,i){var o=function(t){e.close({isDismissed:!0,dismiss:t})};Lt.swalPromiseResolve.set(e,r),Lt.swalPromiseReject.set(e,i),t.confirmButton.onclick=function(){Sn(e)},t.denyButton.onclick=function(){jn(e)},t.cancelButton.onclick=function(){Cn(e,o)},t.closeButton.onclick=function(){o(Nt.close)},sr(n,t,o),Dt(g,n,o),fn(e,n),Wr(n),ii(g,n,o),oi(t,n),setTimeout((function(){t.container.scrollTop=0}))}))},ni=function(e,t){var n=Pr(e),r=Object.assign({},Hn,t,n,e);return r.showClass=Object.assign({},Hn.showClass,r.showClass),r.hideClass=Object.assign({},Hn.hideClass,r.hideClass),r},ri=function(e){var t={popup:Z(),container:F(),actions:K(),confirmButton:q(),denyButton:G(),cancelButton:V(),loader:J(),closeButton:Q(),validationMessage:W(),progressSteps:H()};return $e.domCache.set(e,t),t},ii=function(e,t,n){var r=X();ge(r),t.timer&&(e.timeout=new Tr((function(){n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ve(r),le(r,t,"timerProgressBar"),setTimeout((function(){e.timeout&&e.timeout.running&&je(t.timer)}))))},oi=function(e,t){t.toast||(D(t.allowEnterKey)?ai(e,t)||Tt(-1,1):si())},ai=function(e,t){return t.focusDeny&&xe(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&xe(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!xe(e.confirmButton))&&(e.confirmButton.focus(),!0)},si=function(){document.activeElement instanceof HTMLElement&&"function"===typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!==typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){var li=new Date,ci=localStorage.getItem("swal-initiation");ci?(li.getTime()-Date.parse(ci))/864e5>3&&setTimeout((function(){document.body.style.pointerEvents="none";var e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((function(){e.play().catch((function(){}))}),2500)}),500):localStorage.setItem("swal-initiation","".concat(li))}ei.prototype.disableButtons=Rn,ei.prototype.enableButtons=Zn,ei.prototype.getInput=Fn,ei.prototype.disableInput=Bn,ei.prototype.enableInput=Ln,ei.prototype.hideLoading=In,ei.prototype.disableLoading=In,ei.prototype.showValidationMessage=zn,ei.prototype.resetValidationMessage=Un,ei.prototype.close=tn,ei.prototype.closePopup=tn,ei.prototype.closeModal=tn,ei.prototype.closeToast=tn,ei.prototype.rejectPromise=rn,ei.prototype.update=er,ei.prototype._destroy=nr,Object.assign(ei,Dr),Object.keys(ar).forEach((function(e){ei[e]=function(){var t;return Nr&&Nr[e]?(t=Nr)[e].apply(t,arguments):null}})),ei.DismissReason=Nt,ei.version="11.7.28";var ui=ei;return ui.default=ui,ui}(),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;
2left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;
2transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!
vendor: 9,719 bytes, line 2
2";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}
2')},1564:function(e){var t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=function(e){return e.match(t)||[]},r=function(e){return e[0].toUpperCase()+e.slice(1)},i=function(e,t){return n(e).join(t).toLowerCase()},o=function(e){return n(e).reduce((function(e,t){return"".concat(e).concat(e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase())}),"")};e.exports={words:n,upperFirst:r,camelCase:o,pascalCase:function(e){return r(o(e))},snakeCase:function(e){return i(e,"_")},kebabCase:function(e){return i(e,"-")},sentenceCase:function(e){return r(i(e," "))},titleCase:function(e){return n(e).map(r).join(" ")}}},6514:function(e){function t(e,t){var n=e.length,r=new Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)i[o]||l(e[o],o,new Set);return r;function l(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(f){c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var u=a.get(e)||new Set;if(t=(u=Array.from(u)).length){o.add(e);do{var d=u[--t];l(d,s.get(d),o)}while(t);o.delete(e)}r[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},e.exports.array=t},8001:function(e,t,n){"use strict";var r=n(2791);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,n,t]),a((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},7103:function(e,t,n){"use strict";var r=n(2791),i=n(7248);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}
2var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,i]);var p=a(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},7248:function(e,t,n){"use strict";e.exports=n(8001)},327:function(e,t,n){"use strict";e.exports=n(7103)},4885:function(e,t,n){"use strict";!function(){var t,r,i,o=0,a=[];for(r=0;r<256;r++)a[r]=(r+256).toString(16).substr(1);function s(){var e,n=(e=16,(!t||o+e>l.BUFFER_SIZE)&&(o=0,t=l.randomBytes(l.BUFFER_SIZE)),t.slice(o,o+=e));return n[6]=15&n[6]|64,n[8]=63&n[8]|128,n}function l(){var e=s();return a[e[0]]+a[e[1]]+a[e[2]]+a[e[3]]+"-"+a[e[4]]+a[e[5]]+"-"+a[e[6]]+a[e[7]]+"-"+a[e[8]]+a[e[9]]+"-"+a[e[10]]+a[e[11]]+a[e[12]]+a[e[13]]+a[e[14]]+a[e[15]]}l.BUFFER_SIZE=4096,l.bin=s,l.clearBuffer=function(){t=null,o=0},l.test=function(e){return"string"===typeof e&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},"undefined"!==typeof crypto?i=crypto:"undefined"!==typeof window&&"undefined"!==typeof window.msCrypto&&(i=window.msCrypto),i=i||n(9061),e.exports=l,l.randomBytes=function(){if(i){if(i.randomBytes)return i.randomBytes;if(i.getRandomValues)return"function"!==typeof Uint8Array.prototype.slice?function(e){var t=new Uint8Array(e);return i.getRandomValues(t),Array.from(t)}:function(e){var t=new Uint8Array(e);return i.getRandomValues(t),t}}return function(e){var t,n=[];for(t=0;t<e;t++)n.push(Math.floor(256*Math.random()));return n}}()}()},8007:function(e,t,n){"use strict";n.d(t,{Ry:function(){return _e},Z_:function(){return pe},iH:function(){return z},nK:function(){return oe}});var r=n(1752),i=n(1120),o=n(4942),a=n(9439),s=n(7762),l=n(3433),c=n(5671),u=n(3144),d=n(7326),f=n(136),p=n(9388),h=n(8737),m=n(2758),v=n(1564),g=n(6514),y=n.n(g),b=Object.prototype.toString,x=Error.prototype.toString,w=RegExp.prototype.toString,k="undefined"!==typeof Symbol?Symbol.prototype.toString:function(){return""},S=/^Symbol\((.*)\)(.*)$/;function j(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||!0===e||!1===e)return""+e;var n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?'"'.concat(e,'"'):e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return k.call(e).replace(S,"Symbol($1)");var r=b.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+x.call(e)+"]":"RegExp"===r?w.call(e):null}function C(e,t){var n=j(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){var r=j(this[e],t);return null!==r?r:n}),2)}function _(e){return null==e?[]:[].concat(e)}var E=/\$\{\s*(\w+)\s*\}/g,N=function(e){(0,f.Z)(n,e);var t=(0,p.Z)(n);function n(e,r,i,o){var a;return(0,c.Z)(this,n),(a=t.call(this)).value=void 0,a.path=void 0,a.type=void 0,a.errors=void 0,a.params=void 0,a.inner=void 0,a.name="ValidationError",a.value=r,a.path=i,a.type=o,a.errors=[],a.inner=[],_(e).forEach((function(e){var t;n.isError(e)?((t=a.errors).push.apply(t,(0,l.Z)(e.errors)),a.inner=a.inner.concat(e.inner.length?e.inner:e)):a.errors.push(e)})),a.message=a.errors.length>1?"".concat(a.errors.length," errors occurred"):a.errors[0],Error.captureStackTrace&&Error.captureStackTrace((0,d.Z)(a),n),a}return(0,u.Z)(n,null,[{key:"formatError",value:function(e,t){var n=t.label||t.path||"this";return n!==t.path&&(t=Object.assign({},t,{path:n})),"string"===typeof e?e.replace(E,(function(e,n){return C(t[n])})):"function"===typeof e?e(t):e}},{key:"isError",value:function(e){return e&&"ValidationError"===e.name}}]),n}((0,h.Z)(Error)),A={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:function(e){var t=e.path,n=e.type,r=e.value,i=e.originalValue,o=null!=i&&i!==r?" (cast from the value `".concat(C(i,!0),"`)."):".";return"mixed"!==n?"".concat(t," must be a `").concat(n,"` type, ")+"but the final value was: `".concat(C(r,!0),"`")+o:"".concat(t," must match the configured type. ")+"The validated value was: `".concat(C(r,!0),"`")+o}},D={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},T={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},I={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},P={isValue:"${path} field must be ${value}"},F={noUnknown:"${path} field has unspecified keys: ${unknown}"},O={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},M=function(e){var t=e.path,n=e.value,r=e.spec.types.length;if(Array.isArray(n)){if(n.length<r)return"".concat(t," tuple value has too few items, expected a length of ").concat(r," but got ").concat(n.length," for value: `").concat(C(n,!0),"`");if(n.length>r)return"".concat(t," tuple value has too many items, expected a length of ").concat(r," but got ").concat(n.length," for value: `").concat(C(n,!0),"`")}return N.formatError(A.notType,e)},Z=(Object.assign(Object.create(null),{mixed:A,string:D,number:T,date:I,object:F,array:O,boolean:P}),function(e){return e&&e.__isYupSchema__}),R=function(){function e(t,n){(0,c.Z)(this,e),this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}return(0,u.Z)(e,[{key:"resolve",value:function(e,t){var n=this.refs.map((function(e){return e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)})),r=this.fn(n,e,t);
2if(void 0===r||r===e)return e;if(!Z(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}],[{key:"fromOptions",value:function(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");var r=n.is,i=n.then,o=n.otherwise,a="function"===typeof r?r:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((function(e){return e===r}))};return new e(t,(function(e,t){var n,r=a.apply(void 0,(0,l.Z)(e))?i:o;return null!=(n=null==r?void 0:r(t))?n:t}))}}]),e}(),L="$",B=".";function z(e,t){return new U(e,t)}var U=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,c.Z)(this,e),this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!==typeof t)throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),""===t)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===L,this.isValue=this.key[0]===B,this.isSibling=!this.isContext&&!this.isValue;var r=this.isContext?L:this.isValue?B:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,m.getter)(this.path,!0),this.map=n.map}return(0,u.Z)(e,[{key:"getValue",value:function(e,t,n){var r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}},{key:"cast",value:function(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}},{key:"resolve",value:function(){return this}},{key:"describe",value:function(){return{type:"ref",key:this.key}}},{key:"toString",value:function(){return"Ref(".concat(this.key,")")}}],[{key:"isRef",value:function(e){return e&&e.__isYupRef}}]),e}();U.prototype.__isYupRef=!0;var H=function(e){return null==e};function W(e){function t(t,n,r){var i=t.value,o=t.path,a=void 0===o?"":o,s=t.options,l=t.originalValue,c=t.schema,u=e.name,d=e.test,f=e.params,p=e.message,h=e.skipAbsent,m=s.parent,v=s.context,g=s.abortEarly;function y(e){return U.isRef(e)?e.getValue(i,m,v):e}function b(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({value:i,originalValue:l,label:c.spec.label,path:e.path||a,spec:c.spec},f,e.params),n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];t[o]=y(t[o])}var s=new N(N.formatError(e.message||p,t),i,t.path,e.type||u);return s.params=t,s}var x=(void 0===g?c.spec.abortEarly:g)?n:r,w={path:a,parent:m,type:u,from:s.from,createError:b,resolve:y,options:s,originalValue:l,schema:c},k=function(e){N.isError(e)?x(e):e?r(null):x(b())},S=function(e){N.isError(e)?x(e):n(e)},j=h&&H(i);if(s.sync){var C;try{var _;if("function"===typeof(null==(_=C=!!j||d.call(w,i,w))?void 0:_.then))throw new Error('Validation test of type: "'.concat(w.type,'" returned a Promise during a synchronous validate. ')+"This test will finish after the validate call has returned")}catch(E){return void S(E)}k(C)}else try{Promise.resolve(!!j||d.call(w,i,w)).then(k,S)}catch(E){S(E)}}return t.OPTIONS=e,t}function q(e,t,n){var r,i,o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return t?((0,m.forEach)(t,(function(s,l,c){var u=l?s.slice(1,s.length-1):s,d="tuple"===(e=e.resolve({context:a,parent:r,value:n})).type,f=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error('Yup.reach cannot implicitly index into a tuple type. the path part "'.concat(o,'" must contain an index to the tuple element, e.g. "').concat(o,'[0]"'));if(n&&f>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: ".concat(s,", in the path: ").concat(t,". ")+"because there is no value at that index. ");r=n,n=n&&n[f],e=d?e.spec.types[f]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error("The schema does not contain the path: ".concat(t,". ")+"(failed at: ".concat(o,' which is a type: "').concat(e.type,'")'));r=n,n=n&&n[u],e=e.fields[u]}i=u,o=l?"["+s+"]":"."+s})),{schema:e,parent:r,parentPath:i}):{parent:r,parentPath:t,schema:e}}var V=function(e){(0,f.Z)(n,e);var t=(0,p.Z)(n);function n(){return(0,c.Z)(this,n),t.apply(this,arguments)}return(0,u.Z)(n,[{key:"describe",value:function(){var e,t=[],n=(0,s.Z)(this.values());try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(U.isRef(r)?r.describe():r)}}catch(i){n.e(i)}finally{n.f()}return t}},{key:"resolveAll",value:function(e){var t,n=[],r=(0,s.Z)(this.values());try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(e(i))}}catch(o){r.e(o)}finally{r.f()}return n}},{key:"clone",value:function(){return new n(this.values())}},{key:"merge",value:function(e,t){var n=this.clone();return e.forEach((function(e){return n.add(e)})),t.forEach((function(e){return n.delete(e)})),n}}]),n}((0,h.Z)(Set));function G(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;if(Z(e)||!e||"object"!==typeof e)return e;if(n.has(e))return n.get(e);if(e instanceof Date)t=new Date(e.getTime()),n.set(e,t);else if(e instanceof RegExp)t=new RegExp(e),n.set(e,t);else if(Array.isArray(e)){t=new Array(e.length),n.set(e,t);for(var r=0;r<e.length;r++)t[r]=G(e[r],n)}else if(e instanceof Map){t=new Map,n.set(e,t);var i,o=(0,s.Z)(e.entries());try{for(o.s();!(i=o.n()).done;){var l=(0,a.Z)(i.value,2),c=l[0],u=l[1];t.set(c,G(u,n))}}catch(b){o.e(b)}finally{o.f()}}else if(e instanceof Set){t=new Set,n.set(e,t);var d,f=(0,s.Z)(e);try{for(f.s();!(d=f.n()).done;){var p=d.value;t.add(G(p,n))}}catch(b){f.e(b)}finally{f.f()}}else{if(!(e instanceof Object))throw Error("Unable to clone ".concat(e));t={},n.set(e,t);for(var h=0,m=Object.entries(e);h<m.length;h++){var v=(0,a.Z)(m[h],2),g=v[0],y=v[1];t[g]=G(y,n)}}return t}var $=function(){function e(t){var n=this;(0,c.Z)(this,e),this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new V,this._blacklist=new V,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((function(){n.typeError(A.notType)})),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},null==t?void 0:t.spec),this.withMutation((function(e){e.nonNullable()}))}return(0,u.Z)(e,[{key:"_type",get:function(){return this.type}},{key:"clone",value:function(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;var t=Object.create(Object.getPrototypeOf(this));
2return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=(0,l.Z)(this.deps),t.conditions=(0,l.Z)(this.conditions),t.tests=(0,l.Z)(this.tests),t.transforms=(0,l.Z)(this.transforms),t.spec=G(Object.assign({},this.spec,e)),t}},{key:"label",value:function(e){var t=this.clone();return t.spec.label=e,t}},{key:"meta",value:function(){if(0===arguments.length)return this.spec.meta;var e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},arguments.length<=0?void 0:arguments[0]),e}},{key:"withMutation",value:function(e){var t=this._mutate;this._mutate=!0;var n=e(this);return this._mutate=t,n}},{key:"concat",value:function(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError("You cannot `concat()` schema's of different types: ".concat(this.type," and ").concat(e.type));var t=this,n=e.clone(),r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation((function(t){e.tests.forEach((function(e){t.test(e.OPTIONS)}))})),n.transforms=[].concat((0,l.Z)(t.transforms),(0,l.Z)(n.transforms)),n}},{key:"isType",value:function(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}},{key:"resolve",value:function(e){var t=this;if(t.conditions.length){var n=t.conditions;(t=t.clone()).conditions=[],t=(t=n.reduce((function(t,n){return n.resolve(t,e)}),t)).resolve(e)}return t}},{key:"resolveOptions",value:function(e){var t,n,r;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive})}},{key:"cast",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.resolve(Object.assign({value:e},t)),r="ignore-optionality"===t.assert,i=n._cast(e,t);if(!1!==t.assert&&!n.isType(i)){if(r&&H(i))return i;var o=C(e),a=C(i);throw new TypeError("The value of ".concat(t.path||"field"," could not be cast to a value ")+'that satisfies the schema type: "'.concat(n.type,'". \n\n')+"attempted value: ".concat(o," \n")+(a!==o?"result of cast: ".concat(a):""))}return i}},{key:"_cast",value:function(e,t){var n=this,r=void 0===e?e:this.transforms.reduce((function(t,r){return r.call(n,t,e,n)}),e);return void 0===r&&(r=this.getDefault(t)),r}},{key:"_validate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=n.path,a=n.originalValue,s=void 0===a?e:a,l=n.strict,c=void 0===l?this.spec.strict:l,u=e;c||(u=this._cast(u,Object.assign({assert:!1},n)));for(var d=[],f=0,p=Object.values(this.internalTests);f<p.length;f++){var h=p[f];h&&d.push(h)}this.runTests({path:o,value:u,originalValue:s,options:n,tests:d},r,(function(e){if(e.length)return i(e,u);t.runTests({path:o,value:u,originalValue:s,options:n,tests:t.tests},r,i)}))}},{key:"runTests",value:function(e,t,n){var r=!1,i=e.tests,o=e.value,a=e.originalValue,s=e.path,l=e.options,c=function(e){r||(r=!0,t(e,o))},u=function(e){r||(r=!0,n(e,o))},d=i.length,f=[];if(!d)return u([]);for(var p={value:o,originalValue:a,path:s,options:l,schema:this},h=0;h<i.length;h++){(0,i[h])(p,c,(function(e){e&&(f=f.concat(e)),--d<=0&&u(f)}))}}},{key:"asNestedTest",value:function(e){var t,n=this,r=e.key,i=e.index,a=e.parent,s=e.parentPath,l=e.originalParent,c=e.options,u=null!=r?r:i;if(null==u)throw TypeError("Must include `key` or `index` for nested validations");var d="number"===typeof u,f=a[u],p=Object.assign({},c,(t={strict:!0,parent:a,value:f,originalValue:l[u],key:void 0},(0,o.Z)(t,d?"index":"key",u),(0,o.Z)(t,"path",d||u.includes(".")?"".concat(s||"","[").concat(f?u:'"'.concat(u,'"'),"]"):(s?"".concat(s,"."):"")+r),t));return function(e,t,r){return n.resolve(p)._validate(f,p,t,r)}}},{key:"validate",value:function(e,t){var n=this.resolve(Object.assign({},t,{value:e}));return new Promise((function(r,i){return n._validate(e,t,(function(e,t){N.isError(e)&&(e.value=t),i(e)}
2),(function(e,t){e.length?i(new N(e,t)):r(t)}))}))}},{key:"validateSync",value:function(e,t){var n;return this.resolve(Object.assign({},t,{value:e}))._validate(e,Object.assign({},t,{sync:!0}),(function(e,t){throw N.isError(e)&&(e.value=t),e}),(function(t,r){if(t.length)throw new N(t,e);n=r})),n}},{key:"isValid",value:function(e,t){return this.validate(e,t).then((function(){return!0}),(function(e){if(N.isError(e))return!1;throw e}))}},{key:"isValidSync",value:function(e,t){try{return this.validateSync(e,t),!0}catch(n){if(N.isError(n))return!1;throw n}}},{key:"_getDefault",value:function(e){var t=this.spec.default;return null==t?t:"function"===typeof t?t.call(this):G(t)}},{key:"getDefault",value:function(e){return this.resolve(e||{})._getDefault(e)}},{key:"default",value:function(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}},{key:"strict",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clone({strict:e})}},{key:"nullability",value:function(e,t){var n=this.clone({nullable:e});return n.internalTests.nullable=W({message:t,name:"nullable",test:function(e){return null!==e||this.schema.spec.nullable}}),n}},{key:"optionality",value:function(e,t){var n=this.clone({optional:e});return n.internalTests.optionality=W({message:t,name:"optionality",test:function(e){return void 0!==e||this.schema.spec.optional}}),n}},{key:"optional",value:function(){return this.optionality(!0)}},{key:"defined",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.defined;return this.optionality(!1,e)}},{key:"nullable",value:function(){return this.nullability(!0)}},{key:"nonNullable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.notNull;return this.nullability(!1,e)}},{key:"required",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.required;return this.clone().withMutation((function(t){return t.nonNullable(e).defined(e)}))}},{key:"notRequired",value:function(){return this.clone().withMutation((function(e){return e.nullable().optional()}))}},{key:"transform",value:function(e){var t=this.clone();return t.transforms.push(e),t}},{key:"test",value:function(){var e;if(void 0===(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message&&(e.message=A.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");var t=this.clone(),n=W(e),r=e.exclusive||e.name&&!0===t.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(t.exclusiveTests[e.name]=!!e.exclusive),t.tests=t.tests.filter((function(t){if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t}},{key:"when",value:function(e,t){Array.isArray(e)||"string"===typeof e||(t=e,e=".");var n=this.clone(),r=_(e).map((function(e){return new U(e)}));return r.forEach((function(e){e.isSibling&&n.deps.push(e.key)})),n.conditions.push("function"===typeof t?new R(r,t):R.fromOptions(r,t)),n}},{key:"typeError",value:function(e){var t=this.clone();return t.internalTests.typeError=W({message:e,name:"typeError",skipAbsent:!0,test:function(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}},{key:"oneOf",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.oneOf,n=this.clone();return e.forEach((function(e){n._whitelist.add(e),n._blacklist.delete(e)})),n.internalTests.whiteList=W({message:t,name:"oneOf",skipAbsent:!0,test:function(e){var t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}},{key:"notOneOf",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.notOneOf,n=this.clone();return e.forEach((function(e){n._blacklist.add(e),n._whitelist.delete(e)})),n.internalTests.blacklist=W({message:t,name:"notOneOf",test:function(e){var t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}},{key:"strip",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strip=e,t}},{key:"describe",value:function(e){var t=(e?this.resolve(e):this).clone(),n=t.spec,r=n.label;return{meta:n.meta,label:r,optional:n.optional,nullable:n.nullable,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blackl
2ist.describe(),tests:t.tests.map((function(e){return{name:e.OPTIONS.name,params:e.OPTIONS.params}})).filter((function(e,t,n){return n.findIndex((function(t){return t.name===e.name}))===t}))}}}]),e}();$.prototype.__isYupSchema__=!0;for(var J=function(){var e=Y[K];$.prototype["".concat(e,"At")]=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=q(this,t,n,r.context),o=i.parent,a=i.parentPath;return i.schema[e](o&&o[a],Object.assign({},r,{parent:o,path:t}))}},K=0,Y=["validate","validateSync"];K<Y.length;K++)J();for(var X=0,Q=["equals","is"];X<Q.length;X++){var ee=Q[X];$.prototype[ee]=$.prototype.oneOf}for(var te=0,ne=["not","nope"];te<ne.length;te++){var re=ne[te];$.prototype[re]=$.prototype.notOneOf}var ie=function(){return!0};function oe(e){return new ae(e)}var ae=function(e){(0,f.Z)(n,e);var t=(0,p.Z)(n);function n(e){return(0,c.Z)(this,n),t.call(this,"function"===typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:ie},e))}return(0,u.Z)(n)}($);oe.prototype=ae.prototype;var se=function(e){(0,f.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;return(0,c.Z)(this,n),(e=t.call(this,{type:"boolean",check:function(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"===typeof e}})).withMutation((function(){e.transform((function(e,t,n){if(n.spec.coerce&&!n.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e}))})),e}return(0,u.Z)(n,[{key:"isTrue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:function(e){return H(e)||!0===e}})}},{key:"isFalse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:function(e){return H(e)||!1===e}})}},{key:"default",value:function(e){return(0,r.Z)((0,i.Z)(n.prototype),"default",this).call(this,e)}},{key:"defined",value:function(e){return(0,r.Z)((0,i.Z)(n.prototype),"defined",this).call(this,e)}},{key:"optional",value:function(){return(0,r.Z)((0,i.Z)(n.prototype),"optional",this).call(this)}},{key:"required",value:function(e){return(0,r.Z)((0,i.Z)(n.prototype),"required",this).call(this,e)}},{key:"notRequired",value:function(){return(0,r.Z)((0,i.Z)(n.prototype),"notRequired",this).call(this)}},{key:"nullable",value:function(){return(0,r.Z)((0,i.Z)(n.prototype),"nullable",this).call(this)}},{key:"nonNullable",value:function(e){return(0,r.Z)((0,i.Z)(n.prototype),"nonNullable",this).call(this,e)}},{key:"strip",value:function(e){return(0,r.Z)((0,i.Z)(n.prototype),"strip",this).call(this,e)}}]),n}($);se.prototype;var le=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ce=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,ue=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,de=function(e){return H(e)||e===e.trim()},fe={}.toString();function pe(){return new he}var he=function(e){(0,f.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;return(0,c.Z)(this,n),(e=t.call(this,{type:"string",check:function(e){return e instanceof String&&(e=e.valueOf()),"string"===typeof e}})).withMutation((function(){e.transform((function(e,t,n){if(!n.spec.coerce||n.isType(e))return e;if(Array.isArray(e))return e;var r=null!=e&&e.toString?e.toString():e;return r===fe?e:r}))})),e}return(0,u.Z)(n,[{key:"required",value:function(e){return(0,r.Z)((0,i.Z)(n.prototype),"required",this).call(this,e).withMutation((function(t){return t.test({message:e||A.required,name:"required",skipAbsent:!0,test:function(e){return!!e.length}})}))}},{key:"notRequired",value:function(){return(0,r.Z)((0,i.Z)(n.prototype),"notRequired",this).call(this).withMutation((function(e){return e.tests=e.tests.filter((function(e){return"required"!==e.OPTIONS.name})),e}))}},{key:"length",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test:function(t){return t.length===this.resolve(e)}})}},{key:"min",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test:function(t){return t.length>=this.resolve(e)}})}},{key:"max",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D.max;return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test:function(t){return t.length<=this.resolve(e)}})}},{key:"matches",value:function(e,t){var n,r,i=!1;if(t)if("object"===typeof t){var o=t.excludeEmptyString;i=void 0!==o&&o,n=t.message,r=t.name}else n=t;return this.test({name:r||"matches",message:n||D.matches,params:{regex:e},skipAbsent:!0,test:function(t){return""===t&&i||-1!==t.search(e)}})}},{key:"email",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D.email;return this.matches(le,{name:"email",message:e,excludeEmptyString:!0})}},{key:"url",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D.url;return this.matches(ce,{name:"url",message:e,excludeEmptyString:!0})}},{key:"uuid",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D.uuid;return this.matches(ue,{name:"uuid",message:e,excludeEmptyString:!1})}},{key:"ensure",value:function(){return this.default("").transform((function(e){return null===e?"":e}))}},{key:"trim",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D.trim;return this.transform((function(e){return null!=e?e.trim():e})).test({message:e,name:"trim",test:de})}},{key:"lowercase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D.lowercase;return this.transform((function(e){return H(e)?e:e.toLowerCase()})).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:function(e){return H(e)||e===e.toLowerCase()}})}},{key:"uppercase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D.uppercase;return this.transform((function(e){return H(e)?e:e.toUpperCase()})).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:function(e){return H(e)||e===e.toUpperCase()}})}}]),n}($);pe.prototype=he.prototype;var me=function(e){(0,f.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;return(0,c.Z)(this,n),(e=t.call(this,{type:"number",check:function(e){return e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!function(e){return e!=+e}(e)}})).withMutation((function(){e.transform((function(e,t,n){if(!n.spec.coerce)return e;var r=e;if("string"===typeof r){if(""===(r=r.replace(/\s/g,"")))return NaN;r=+r}return n.isType(r)||null===r?r:parseFloat(r)}))})),e}return(0,u.Z)(n,[{key:"min",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test:function(t){return t>=this.resolve(e)}})}},{key:"max",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.max;return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test:function(t){return t<=this.resolve(e)}})}},{key:"lessThan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.lessThan;return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test:function(t){return t<this.resolve(e)}})}},{key:"moreThan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.moreThan;return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test:function(t){return t>this.resolve(e)}})}},{key:"positive",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.positive;return this.moreThan(0,e)}},{key:"negative",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.negative;return this.lessThan(0,e)}},{key:"integer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.integer;
2return this.test({name:"integer",message:e,skipAbsent:!0,test:function(e){return Number.isInteger(e)}})}},{key:"truncate",value:function(){return this.transform((function(e){return H(e)?e:0|e}))}},{key:"round",value:function(e){var t,n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform((function(t){return H(t)?t:Math[e](t)}))}}]),n}($);me.prototype;var ve=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;var ge=new Date("");function ye(){return new be}var be=function(e){(0,f.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;return(0,c.Z)(this,n),(e=t.call(this,{type:"date",check:function(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}})).withMutation((function(){e.transform((function(e,t,r){return!r.spec.coerce||r.isType(e)||null===e?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=ve.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?n.INVALID_DATE:new Date(e))}))})),e}return(0,u.Z)(n,[{key:"prepareParam",value:function(e,t){var n;if(U.isRef(e))n=e;else{var r=this.cast(e);if(!this._typeCheck(r))throw new TypeError("`".concat(t,"` must be a Date or a value that can be `cast()` to a Date"));n=r}return n}},{key:"min",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.min,n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test:function(e){return e>=this.resolve(n)}})}},{key:"max",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.max,n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test:function(e){return e<=this.resolve(n)}})}}]),n}($);function xe(e,t){var n=1/0;return e.some((function(e,r){var i;if(null!=(i=t.path)&&i.includes(e))return n=r,!0})),n}function we(e){return function(t,n){return xe(e,t)-xe(e,n)}}be.INVALID_DATE=ge,ye.prototype=be.prototype,ye.INVALID_DATE=ge;var ke=function(e,t,n){if("string"!==typeof e)return e;var r=e;try{r=JSON.parse(e)}catch(i){}return n.isType(r)?r:e};function Se(e){if("fields"in e){for(var t={},n=0,r=Object.entries(e.fields);n<r.length;n++){var i=(0,a.Z)(r[n],2),o=i[0],s=i[1];t[o]=Se(s)}return e.setFields(t)}if("array"===e.type){var l=e.optional();return l.innerType&&(l.innerType=Se(l.innerType)),l}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(Se)}):"optional"in e?e.optional():e}var je=function(e){return"[object Object]"===Object.prototype.toString.call(e)};var Ce=we([]);function _e(e){return new Ee(e)}var Ee=function(e){(0,f.Z)(n,e);var t=(0,p.Z)(n);function n(e){var r;return(0,c.Z)(this,n),(r=t.call(this,{type:"object",check:function(e){return je(e)||"function"===typeof e}})).fields=Object.create(null),r._sortErrors=Ce,r._nodes=[],r._excludedEdges=[],r.withMutation((function(){e&&r.shape(e)})),r}return(0,u.Z)(n,[{key:"_cast",value:function(e){var t,o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=(0,r.Z)((0,i.Z)(n.prototype),"_cast",this).call(this,e,a);if(void 0===l)return this.getDefault(a);if(!this._typeCheck(l))return l;var c,u=this.fields,d=null!=(t=a.stripUnknown)?t:this.spec.noUnknown,f=[].concat(this._nodes,Object.keys(l).filter((function(e){return!o._nodes.includes(e)}))),p={},h=Object.assign({},a,{parent:p,__validating:a.__validating||!1}),m=!1,v=(0,s.Z)(f);try{for(v.s();!(c=v.n()).done;){var g=c.value,y=u[g],b=g in l;if(y){var x,w=l[g];h.path=(a.path?"".concat(a.path,"."):"")+g;var k=(y=y.resolve({value:w,context:a.context,parent:p}))instanceof $?y.spec:void 0,S=null==k?void 0:k.strict;if(null!=k&&k.strip){m=m||g in l;
2continue}void 0!==(x=a.__validating&&S?l[g]:y.cast(l[g],h))&&(p[g]=x)}else b&&!d&&(p[g]=l[g]);b===g in p&&p[g]===l[g]||(m=!0)}}catch(j){v.e(j)}finally{v.f()}return m?p:l}},{key:"_validate",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,c=arguments.length>3?arguments[3]:void 0,u=o.from,d=void 0===u?[]:u,f=o.originalValue,p=void 0===f?e:f,h=o.recursive,m=void 0===h?this.spec.recursive:h;o.from=[{schema:this,value:p}].concat((0,l.Z)(d)),o.__validating=!0,o.originalValue=p,(0,r.Z)((0,i.Z)(n.prototype),"_validate",this).call(this,e,o,a,(function(e,n){if(m&&je(n)){p=p||n;var r,i=[],l=(0,s.Z)(t._nodes);try{for(l.s();!(r=l.n()).done;){var u=r.value,d=t.fields[u];d&&!U.isRef(d)&&i.push(d.asNestedTest({options:o,key:u,parent:n,parentPath:o.path,originalParent:p}))}}catch(f){l.e(f)}finally{l.f()}t.runTests({tests:i,value:n,originalValue:p,options:o},a,(function(r){c(r.sort(t._sortErrors).concat(e),n)}))}else c(e,n)}))}},{key:"clone",value:function(e){var t=(0,r.Z)((0,i.Z)(n.prototype),"clone",this).call(this,e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}},{key:"concat",value:function(e){for(var t=this,o=(0,r.Z)((0,i.Z)(n.prototype),"concat",this).call(this,e),s=o.fields,c=0,u=Object.entries(this.fields);c<u.length;c++){var d=(0,a.Z)(u[c],2),f=d[0],p=d[1],h=s[f];s[f]=void 0===h?p:h}return o.withMutation((function(n){return n.setFields(s,[].concat((0,l.Z)(t._excludedEdges),(0,l.Z)(e._excludedEdges)))}))}},{key:"_getDefault",value:function(e){var t=this;if("default"in this.spec)return(0,r.Z)((0,i.Z)(n.prototype),"_getDefault",this).call(this,e);if(this._nodes.length){var o={};return this._nodes.forEach((function(n){var r,i=t.fields[n],a=e;null!=(r=a)&&r.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[n]})),o[n]=i&&"getDefault"in i?i.getDefault(a):void 0})),o}}},{key:"setFields",value:function(e,t){var n=this.clone();return n.fields=e,n._nodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=new Set,i=new Set(t.map((function(e){var t=(0,a.Z)(e,2),n=t[0],r=t[1];return"".concat(n,"-").concat(r)})));function o(e,t){var o=(0,m.split)(e)[0];r.add(o),i.has("".concat(t,"-").concat(o))||n.push([t,o])}for(var s=function(){var t=c[l],n=e[t];r.add(t),U.isRef(n)&&n.isSibling?o(n.path,t):Z(n)&&"deps"in n&&n.deps.forEach((function(e){return o(e,t)}))},l=0,c=Object.keys(e);l<c.length;l++)s();return y().array(Array.from(r),n).reverse()}(e,t),n._sortErrors=we(Object.keys(e)),t&&(n._excludedEdges=t),n}},{key:"shape",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.clone().withMutation((function(n){var r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[].concat((0,l.Z)(n._excludedEdges),(0,l.Z)(t))),n.setFields(Object.assign(n.fields,e),r)}))}},{key:"partial",value:function(){for(var e={},t=0,n=Object.entries(this.fields);t<n.length;t++){var r=(0,a.Z)(n[t],2),i=r[0],o=r[1];e[i]="optional"in o&&o.optional instanceof Function?o.optional():o}return this.setFields(e)}},{key:"deepPartial",value:function(){return Se(this)}},{key:"pick",value:function(e){var t,n={},r=(0,s.Z)(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.fields[i]&&(n[i]=this.fields[i])}}catch(o){r.e(o)}finally{r.f()}return this.setFields(n)}},{key:"omit",value:function(e){var t,n=Object.assign({},this.fields),r=(0,s.Z)(e);try{for(r.s();!(t=r.n()).done;){delete n[t.value]}}catch(i){r.e(i)}finally{r.f()}return this.setFields(n)}},{key:"from",value:function(e,t,n){var r=(0,m.getter)(e,!0);return this.transform((function(i){if(!i)return i;var o=i;return function(e,t){var n=(0,l.Z)((0,m.normalizePath)(t));if(1===n.length)return n[0]in e;var r=n.pop(),i=(0,m.getter)((0,m.join)(n),!0)(e);return!(!i||!(r in i))}(i,e)&&(o=Object.assign({},i),n||delete o[e],o[t]=r(i)),o}))}},{key:"json",value:function(){return this.transform(ke)}},{key:"noUnknown",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.noUnknown;"boolean"!==typeof e&&(t=e,e=!0);var n=this.test({name:"noUnknown",exclusive:!0,message:t,test:function(t){if(null==t)return!0;var n=function(e,t){var n=Object.keys(e.fields);return Object.keys(t).filter((function(e){return-1===n.indexOf(e)}))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}},{key:"unknown",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.noUnknown;return this.noUnknown(!e,t)}},{key:"transformKeys",value:function(e){return this.transform((function(t){if(!t)return t;for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[e(o)]=t[o]}return n}))}}
2,{key:"camelCase",value:function(){return this.transformKeys(v.camelCase)}},{key:"snakeCase",value:function(){return this.transformKeys(v.snakeCase)}},{key:"constantCase",value:function(){return this.transformKeys((function(e){return(0,v.snakeCase)(e).toUpperCase()}))}},{key:"describe",value:function(e){var t=(0,r.Z)((0,i.Z)(n.prototype),"describe",this).call(this,e);t.fields={};for(var o=0,s=Object.entries(this.fields);o<s.length;o++){var l,c=(0,a.Z)(s[o],2),u=c[0],d=c[1],f=e;null!=(l=f)&&l.value&&(f=Object.assign({},f,{parent:f.value,value:f.value[u]})),t.fields[u]=d.describe(f)}return t}}]),n}($);_e.prototype=Ee.prototype;var Ne=function(e){(0,f.Z)(n,e);var t=(0,p.Z)(n);function n(e){var r;return(0,c.Z)(this,n),(r=t.call(this,{type:"array",spec:{types:e},check:function(e){return Array.isArray(e)}})).innerType=void 0,r.innerType=e,r}return(0,u.Z)(n,[{key:"_cast",value:function(e,t){var o=this,a=(0,r.Z)((0,i.Z)(n.prototype),"_cast",this).call(this,e,t);if(!this._typeCheck(a)||!this.innerType)return a;var s=!1,l=a.map((function(e,n){var r=o.innerType.cast(e,Object.assign({},t,{path:"".concat(t.path||"","[").concat(n,"]")}));return r!==e&&(s=!0),r}));return s?l:a}},{key:"_validate",value:function(e){var t,o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,c=this.innerType,u=null!=(t=a.recursive)?t:this.spec.recursive;null!=a.originalValue&&a.originalValue,(0,r.Z)((0,i.Z)(n.prototype),"_validate",this).call(this,e,a,s,(function(t,n){var r;if(u&&c&&o._typeCheck(n)){for(var i=new Array(n.length),d=0;d<n.length;d++){var f;i[d]=c.asNestedTest({options:a,index:d,parent:n,parentPath:a.path,originalParent:null!=(f=a.originalValue)?f:e})}o.runTests({value:n,tests:i,originalValue:null!=(r=a.originalValue)?r:e,options:a},s,(function(e){return l(e.concat(t),n)}))}else l(t,n)}))}},{key:"clone",value:function(e){var t=(0,r.Z)((0,i.Z)(n.prototype),"clone",this).call(this,e);return t.innerType=this.innerType,t}},{key:"json",value:function(){return this.transform(ke)}},{key:"concat",value:function(e){var t=(0,r.Z)((0,i.Z)(n.prototype),"concat",this).call(this,e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}},{key:"of",value:function(e){var t=this.clone();if(!Z(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+C(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}},{key:"length",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test:function(t){return t.length===this.resolve(e)}})}},{key:"min",value:function(e,t){return t=t||O.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test:function(t){return t.length>=this.resolve(e)}})}},{key:"max",value:function(e,t){return t=t||O.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test:function(t){return t.length<=this.resolve(e)}})}},{key:"ensure",value:function(){var e=this;return this.default((function(){return[]})).transform((function(t,n){return e._typeCheck(t)?t:null==n?[]:[].concat(n)}))}},{key:"compact",value:function(e){var t=e?function(t,n,r){return!e(t,n,r)}:function(e){return!!e};return this.transform((function(e){return null!=e?e.filter(t):e}))}},{key:"describe",value:function(e){var t=(0,r.Z)((0,i.Z)(n.prototype),"describe",this).call(this,e);if(this.innerType){var o,a=e;null!=(o=a)&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),t.innerType=this.innerType.describe(a)}return t}}]),n}($);Ne.prototype;var Ae=function(e){(0,f.Z)(n,e);var t=(0,p.Z)(n);function n(e){var r;return(0,c.Z)(this,n),(r=t.call(this,{type:"tuple",spec:{types:e},check:function(e){var t=this.spec.types;return Array.isArray(e)&&e.length===t.length}})).withMutation((function(){r.typeError(M)})),r}return(0,u.Z)(n,[{key:"_cast",value:function(e,t){var o=this.spec.types,a=(0,r.Z)((0,i.Z)(n.prototype),"_cast",this).call(this,e,t);if(!this._typeCheck(a))return a;var s=!1,l=o.map((function(e,n){var r=e.cast(a[n],Object.assign({},t,{path:"".concat(t.path||"","[").concat(n,"]")}));return r!==a[n]&&(s=!0),r}));return s?l:a}},{key:"_validate",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0,c=arguments.length>3?arguments[3]:void 0,u=this.spec.types;(0,r.Z)((0,i.Z)(n.prototype),"_validate",this).call(this,e,o,l,(function(n,r){var i;if(t._typeCheck(r)){var d,f=[],p=(0,s.Z)(u.entries());try{for(p.s();!(d=p.n()).done;){var h,m=(0,a.Z)(d.value,2),v=m[0],g=m[1];f[v]=g.asNestedTest({options:o,index:v,parent:r,parentPath:o.path,originalParent:null!=(h=o.originalValue)?h:e})}}catch(y){p.e(y)}finally{p.f()}t.runTests({value:r,tests:f,originalValue:null!=(i=o.originalValue)?i:e,options:o},l,(function(e){return c(e.concat(n),r)}))}else c(n,r)}))}},{key:"describe",value:function(e){var t=(0,r.Z)((0,i.Z)(n.prototype),"describe",this).call(this,e);return t.innerType=this.spec.types.map((function(t,n){var r,i=e;return null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[n]})),t.describe(i)})),t}}]),n}($);Ae.prototype},5862:function(){},6593:function(){},4277:function(){},6497:function(){},1142:function(){},2854:function(){},6814:function(){},2480:function(){},9061:function(){},3897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},5372:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},3405:function(e,t,n){var r=n(3897);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3515:function(e,t,n){var r=n(6015),i=n(9617);function o(t,n,a){return i()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}
2e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},9728:function(e,t,n){var r=n(4062);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},6389:function(e,t,n){var r=n(3808),i=n(9617),o=n(1294);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},1588:function(e,t,n){var r=n(1753);function i(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=i=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(this,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},3808:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:function(e,t,n){var r=n(6015);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},9617:function(e){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},9498:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8872:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},2218:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},2281:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},1294:function(e,t,n){var r=n(8698).default,i=n(6115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7424:function(e,t,n){var r=n(5372),i=n(8872),o=n(6116),a=n(2218);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},1753:function(e,t,n){var r=n(3808);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,n){var r=n(3405),i=n(9498),o=n(6116),a=n(2281);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},5036:function(e,t,n){var r=n(8698).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4062:function(e,t,n){var r=n(8698).default,i=n(5036);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6116:function(e,t,n){var r=n(3897);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},3878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5861:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return i}})},5671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},3144:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9142);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.Z)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},7762:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(181);function i(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=(0,r.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}},9388:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(1120),i=n(8814),o=n(2963);function a(e){var t=(0,i.Z)();return function(){var n,i=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return(0,o.Z)(this,n)}}},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9142);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},1752:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1120);function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,r.Z)(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},i.apply(this,arguments)}},1120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},136:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9611);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},8814:function(e,t,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},9199:function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},5267:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},1413:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4942);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},5987:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(3366);function i(e,t){if(null==e)return{};var n,i,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},2963:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1002),i=n(7326);function o(e,t){if(t&&("object"===(0,r.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},4165:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1002);function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(A){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new E(r||[]);return o(a,"_invoke",{value:S(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(A){return{type:"throw",arg:A}}}e.wrap=d;var p={};function h(){}function m(){}function v(){}var g={};u(g,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(N([])));b&&b!==t&&n.call(b,s)&&(g=b);var x=v.prototype=h.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,733 bytes, line 2
2))}function k(e,t){function i(o,a,s,l){var c=f(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==(0,r.Z)(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,l)}),(function(e){i("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return i("throw",e,s,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function S(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=j(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function N(e){if(e||""===e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}throw new TypeError((0,r.Z)(e)+" is not iterable")}return m.prototype=v,o(x,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},w(k.prototype),u(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(d(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(x),u(x,c,"Generator"),u(x,s,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},9439:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(3878);var i=n(181),o=n(5267);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||(0,i.Z)(e,t)||(0,o.Z)()}},4506:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(3878),i=n(9199),o=n(181),a=n(5267);function s(e){return(0,r.Z)(e)||(0,i.Z)(e)||(0,o.Z)(e)||(0,a.Z)()}},3433:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(907);var i=n(9199),o=n(181);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,i.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9142:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1002);function i(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(907);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},8737:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1120),i=n(9611);var o=n(8814);function a(e,t,n){return a=(0,o.Z)()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&(0,i.Z)(o,n.prototype),o},a.apply(null,arguments)}function s(e){var t="function"===typeof Map?new Map:void 0;return s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return a(e,arguments,(0,r.Z)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),(0,i.Z)(o,e)},s(e)}},7112:function(e,t,n){"use strict";n.d(t,{J:function(){return h}});var r,i="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,a="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",s=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");
2n.src="".concat(i).concat(t);var r=document.head||document.body;if(!r)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n},l=null,c=null,u=null,d=function(e){return null!==l?l:(l=new Promise((function(t,n){if("undefined"!==typeof window&&"undefined"!==typeof document)if(window.Stripe&&e&&console.warn(a),window.Stripe)t(window.Stripe);else try{var r=function(){for(var e=document.querySelectorAll('script[src^="'.concat(i,'"]')),t=0;t<e.length;t++){var n=e[t];if(o.test(n.src))return n}return null}();if(r&&e)console.warn(a);else if(r){if(r&&null!==u&&null!==c){var l;r.removeEventListener("load",u),r.removeEventListener("error",c),null===(l=r.parentNode)||void 0===l||l.removeChild(r),r=s(e)}}else r=s(e);u=function(e,t){return function(){window.Stripe?e(window.Stripe):t(new Error("Stripe.js not available"))}}(t,n),c=function(e){return function(){e(new Error("Failed to load Stripe.js"))}}(n),r.addEventListener("load",u),r.addEventListener("error",c)}catch(d){return void n(d)}else t(null)}))).catch((function(e){return l=null,Promise.reject(e)}))},f=!1,p=function(){return r||(r=d(null).catch((function(e){return r=null,Promise.reject(e)})))};Promise.resolve().then((function(){return p()})).catch((function(e){f||console.warn(e)}));var h=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];f=!0;var r=Date.now();return p().then((function(e){return function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"4.0.0",startTime:t})}(r,n),r}(e,t,r)}))}},1989:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ft}});var r={};n.r(r),n.d(r,{hasBrowserEnv:function(){return ve},hasStandardBrowserEnv:function(){return ge},hasStandardBrowserWebWorkerEnv:function(){return ye},origin:function(){return be}});var i=n(9439);function o(e,t){return function(){return e.apply(t,arguments)}}var a,s=Object.prototype.toString,l=Object.getPrototypeOf,c=(a=Object.create(null),function(e){var t=s.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),u=function(e){return e=e.toLowerCase(),function(t){return c(t)===e}},d=function(e){return function(t){return typeof t===e}},f=Array.isArray,p=d("undefined");var h=u("ArrayBuffer");var m=d("string"),v=d("function"),g=d("number"),y=function(e){return null!==e&&"object"===typeof e},b=function(e){if("object"!==c(e))return!1;var t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x=u("Date"),w=u("File"),k=u("Blob"),S=u("FileList"),j=u("URLSearchParams"),C=["ReadableStream","Request","Response","Headers"].map(u),_=(0,i.Z)(C,4),E=_[0],N=_[1],A=_[2],D=_[3];function T(e,t){var n,r,i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,o=void 0!==i&&i;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),f(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{var a,s=o?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;for(n=0;n<l;n++)a=s[n],t.call(null,e[a],a,e)}}function I(e,t){t=t.toLowerCase();for(var n,r=Object.keys(e),i=r.length;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}var P="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,F=function(e){return!p(e)&&e!==P};var O,M=(O="undefined"!==typeof Uint8Array&&l(Uint8Array),function(e){return O&&e instanceof O}),Z=u("HTMLFormElement"),R=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),L=u("RegExp"),B=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};T(n,(function(n,i){var o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},z="abcdefghijklmnopqrstuvwxyz",U="0123456789",H={DIGIT:U,ALPHA:z,ALPHA_DIGIT:z+z.toUpperCase()+U};var W=u("AsyncFunction"),q={isArray:f,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"===typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=c(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer)},isString:m,isNumber:g,isBoolean:function(e){return!0===e||!1===e},isObject:y,isPlainObject:b,isReadableStream:E,isRequest:N,isResponse:A,isHeaders:D,isUndefined:p,isDate:x,isFile:w,isBlob:k,isRegExp:L,isFunction:v,isStream:function(e){return y(e)&&v(e.pipe)},isURLSearchParams:j,isTypedArray:M,isFileList:S,forEach:T,merge:function e(){for(var t=(F(this)&&this||{}).caseless,n={},r=function(r,i){var o=t&&I(n,i)||i;b(n[o])&&b(r)?n[o]=e(n[o],r):b(r)?n[o]=e({},r):f(r)?n[o]=r.slice():n[o]=r},i=0,o=arguments.length;i<o;i++)arguments[i]&&T(arguments[i],r);return n},extend:function(e,t,n){return T(t,(function(t,r){n&&v(t)?e[r]=o(t,n):e[r]=t}),{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:u,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(f(e))return e;var t=e.length;if(!g(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}
2,forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var i=n.value;t.call(e,i[0],i[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Z,hasOwnProperty:R,hasOwnProp:R,reduceDescriptors:B,freezeMethods:function(e){B(e,(function(t,n){if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return f(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:I,global:P,isContextDefined:F,ALPHABET:H,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.ALPHA_DIGIT,n="",r=t.length;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,r){if(y(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var i=f(n)?[]:{};return T(n,(function(t,n){var o=e(t,r+1);!p(o)&&(i[n]=o)})),t[r]=void 0,i}}return n}(e,0)},isAsyncFn:W,isThenable:function(e){return e&&(y(e)||v(e))&&v(e.then)&&v(e.catch)}},V=n(4165),G=n(5861),$=n(5671),J=n(3144);function K(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}q.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Y=K.prototype,X={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){X[e]={value:e}})),Object.defineProperties(K,X),Object.defineProperty(Y,"isAxiosError",{value:!0}),K.from=function(e,t,n,r,i,o){var a=Object.create(Y);return q.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),K.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var Q=K;function ee(e){return q.isPlainObject(e)||q.isArray(e)}function te(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function ne(e,t,n){return e?e.concat(t).map((function(e,t){return e=te(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var re=q.toFlatObject(q,{},null,(function(e){return/^is[A-Z]/.test(e)}));var ie=function(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!q.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(q.isDate(e))return e.toISOString();if(!s&&q.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(e)||q.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){var s=e;if(e&&!i&&"object"===typeof e)if(q.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&function(e){return q.isArray(e)&&!e.some(ee)}(e)||(q.isFileList(e)||q.endsWith(n,"[]"))&&(s=q.toArray(e)))return n=te(n),s.forEach((function(e,r){!q.isUndefined(e)&&null!==e&&t.append(!0===a?ne([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!ee(e)||(t.append(ne(i,n,o),l(e)),!1)}var u=[],d=Object.assign(re,{defaultVisitor:c,convertValue:l,isVisitable:ee});if(!q.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!q.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),q.forEach(n,(function(n,o){!0===(!(q.isUndefined(n)||null===n)&&i.call(t,n,q.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};
2function oe(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ae(e,t){this._pairs=[],e&&ie(e,this,t)}var se=ae.prototype;se.append=function(e,t){this._pairs.push([e,t])},se.toString=function(e){var t=e?function(t){return e.call(this,t,oe)}:oe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var le=ae;function ce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ue(e,t,n){if(!t)return e;var r,i=n&&n.encode||ce,o=n&&n.serialize;if(r=o?o(t,n):q.isURLSearchParams(t)?t.toString():new le(t,n).toString(i)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var de,fe=function(){function e(){(0,$.Z)(this,e),this.handlers=[]}return(0,J.Z)(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){q.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},he=n(1413),me={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:le,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ve="undefined"!==typeof window&&"undefined"!==typeof document,ge=(de="undefined"!==typeof navigator&&navigator.product,ve&&["ReactNative","NativeScript","NS"].indexOf(de)<0),ye="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,be=ve&&window.location.href||"http://localhost",xe=(0,he.Z)((0,he.Z)({},r),me);var we=function(e){function t(e,n,r,i){var o=e[i++];if("__proto__"===o)return!0;var a=Number.isFinite(+o),s=i>=e.length;return o=!o&&q.isArray(r)?r.length:o,s?(q.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&q.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&q.isArray(r[o])&&(r[o]=function(e){var t,n,r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o])),!a)}if(q.isFormData(e)&&q.isFunction(e.entries)){var n={};return q.forEachEntry(e,(function(e,r){t(function(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),r,n,0)})),n}return null};var ke={transitional:pe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=q.isObject(e);if(o&&q.isHTMLForm(e)&&(e=new FormData(e)),q.isFormData(e))return i?JSON.stringify(we(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e)||q.isReadableStream(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ie(e,new xe.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return xe.isNode&&q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=q.isFileList(e))||r.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return ie(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ke.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(q.isResponse(e)||q.isReadableStream(e))return e;if(e&&q.isString(e)&&(n&&!this.responseType||r)){var i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(i){if("SyntaxError"===o.name)throw Q.from(o,Q.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xe.classes.FormData,Blob:xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],(function(e){ke.headers[e]={}}));var Se=ke,je=n(7762),Ce=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_e=Symbol("internals");function Ee(e){return e&&String(e).trim().toLowerCase()}function Ne(e){return!1===e||null==e?e:q.isArray(e)?e.map(Ne):String(e)}function Ae(e,t,n,r,i){return q.isFunction(r)?r.call(this,t,n):(i&&(t=n),q.isString(t)?q.isString(r)?-1!==t.indexOf(r):q.isRegExp(r)?r.test(t):void 0:void 0)}var De=function(e,t){function n(e){(0,$.Z)(this,n),e&&this.set(e)}return(0,J.Z)(n,[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var i=Ee(t);if(!i)throw new Error("header name must be a non-empty string");var o=q.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Ne(e))}var a=function(e,t){return q.forEach(e,(function(e,n){return o(e,n,t)}))};if(q.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a(function(e){var t,n,r,i={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&Ce[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)})),i}(e),t);else if(q.isHeaders(e)){var s,l=(0,je.Z)(e.entries());try{for(l.s();!(s=l.n()).done;){var c=(0,i.Z)(s.value,2),u=c[0];o(c[1],u,n)}}
2catch(d){l.e(d)}finally{l.f()}}else null!=e&&o(t,e,n);return this}},{key:"get",value:function(e,t){if(e=Ee(e)){var n=q.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(q.isFunction(t))return t.call(this,r,n);if(q.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Ee(e)){var n=q.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ae(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function i(e){if(e=Ee(e)){var i=q.findKey(n,e);!i||t&&!Ae(0,n[i],i,t)||(delete n[i],r=!0)}}return q.isArray(e)?e.forEach(i):i(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var i=t[n];e&&!Ae(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return q.forEach(this,(function(r,i){var o=q.findKey(n,i);if(o)return t[o]=Ne(r),void delete t[i];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(i):String(i).trim();a!==i&&delete t[i],t[a]=Ne(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return q.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&q.isArray(n)?n.join(", "):n)})),t}},{key:e,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=(0,i.Z)(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:t,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[_e]=this[_e]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=Ee(e);t[r]||(!function(e,t){var n=q.toCamelCase(" "+t);["get","set","has"].forEach((function(r){Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return q.isArray(e)?e.forEach(r):r(e),this}}]),n}(Symbol.iterator,Symbol.toStringTag);De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.reduceDescriptors(De.prototype,(function(e,t){var n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:function(){return n},set:function(e){this[r]=e}}})),q.freezeMethods(De);var Te=De;function Ie(e,t){var n=this||Se,r=t||n,i=Te.from(r.headers),o=r.data;return q.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Pe(e){return!(!e||!e.__CANCEL__)}function Fe(e,t,n){Q.call(this,null==e?"canceled":e,Q.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(Fe,Q,{__CANCEL__:!0});var Oe=Fe;function Me(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var Ze=function(e,t){e=e||10;var n,r=new Array(e),i=new Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){var l=Date.now(),c=i[a];n||(n=l),r[o]=s,i[o]=l;for(var u=a,d=0;u!==o;)d+=r[u++],u%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),!(l-n<t)){var f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}};var Re=function(e,t){var n=0,r=1e3/t,i=null;return function(){var t=arguments,o=!0===this,a=Date.now();if(o||a-n>r)return i&&(clearTimeout(i),i=null),n=a,e.apply(null,arguments);i||(i=setTimeout((function(){return i=null,n=Date.now(),e.apply(null,t)}),r-(a-n)))}},Le=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0,i=Ze(50,250);return Re((function(n){var o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o;var c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a};c[t?"download":"upload"]=!0,e(c)}),n)},Be=n(3433),ze=n(4506),Ue=xe.hasStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=q.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},He=xe.hasStandardBrowserEnv?{write:function(e,t,n,r,i,o){var a=[e+"="+encodeURIComponent(t)];q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),q.isString(r)&&a.push("path="+r),q.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function We(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var qe=function(e){return e instanceof Te?(0,he.Z)({},e):e};function Ve(e,t){t=t||{};var n={};function r(e,t,n){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:n},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function i(e,t,n){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!q.isUndefined(t))return r(void 0,t)}function a(e,t){return q.isUndefined(t)?q.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}var l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBo
2dyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t){return i(qe(e),qe(t),!0)}};return q.forEach(Object.keys(Object.assign({},e,t)),(function(r){var o=l[r]||i,a=o(e[r],t[r],r);q.isUndefined(a)&&o!==s||(n[r]=a)})),n}var Ge=function(e){var t,n=Ve({},e),r=n.data,i=n.withXSRFToken,o=n.xsrfHeaderName,a=n.xsrfCookieName,s=n.headers,l=n.auth;if(n.headers=s=Te.from(s),n.url=ue(We(n.baseURL,n.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),q.isFormData(r))if(xe.hasStandardBrowserEnv||xe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){var c=t?t.split(";").map((function(e){return e.trim()})).filter(Boolean):[],u=(0,ze.Z)(c),d=u[0],f=u.slice(1);s.setContentType([d||"multipart/form-data"].concat((0,Be.Z)(f)).join("; "))}if(xe.hasStandardBrowserEnv&&(i&&q.isFunction(i)&&(i=i(n)),i||!1!==i&&Ue(n.url))){var p=o&&a&&He.read(a);p&&s.set(o,p)}return n},$e="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,i=Ge(e),o=i.data,a=Te.from(i.headers).normalize(),s=i.responseType;function l(){i.cancelToken&&i.cancelToken.unsubscribe(r),i.signal&&i.signal.removeEventListener("abort",r)}var c=new XMLHttpRequest;function u(){if(c){var r=Te.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());Me((function(e){t(e),l()}),(function(e){n(e),l()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}}c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(n(new Q("Request aborted",Q.ECONNABORTED,i,c)),c=null)},c.onerror=function(){n(new Q("Network Error",Q.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){var e=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",t=i.transitional||pe;i.timeoutErrorMessage&&(e=i.timeoutErrorMessage),n(new Q(e,t.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,i,c)),c=null},void 0===o&&a.setContentType(null),"setRequestHeader"in c&&q.forEach(a.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),q.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),s&&"json"!==s&&(c.responseType=i.responseType),"function"===typeof i.onDownloadProgress&&c.addEventListener("progress",Le(i.onDownloadProgress,!0)),"function"===typeof i.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Le(i.onUploadProgress)),(i.cancelToken||i.signal)&&(r=function(t){c&&(n(!t||t.type?new Oe(null,e,c):t),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(r),i.signal&&(i.signal.aborted?r():i.signal.addEventListener("abort",r)));var d=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);d&&-1===xe.protocols.indexOf(d)?n(new Q("Unsupported protocol "+d+":",Q.ERR_BAD_REQUEST,e)):c.send(o||null)}))},Je=function(e,t){var n,r=new AbortController,i=function(e){if(!n){n=!0,a();var t=e instanceof Error?e:this.reason;r.abort(t instanceof Q?t:new Oe(t instanceof Error?t.message:t))}},o=t&&setTimeout((function(){i(new Q("timeout ".concat(t," of ms exceeded"),Q.ETIMEDOUT))}),t),a=function(){e&&(o&&clearTimeout(o),o=null,e.forEach((function(e){e&&(e.removeEventListener?e.removeEventListener("abort",i):e.unsubscribe(i))})),e=null)};e.forEach((function(e){return e&&e.addEventListener&&e.addEventListener("abort",i)}));var s=r.signal;return s.unsubscribe=a,[s,function(){o&&clearTimeout(o),o=null}]};function Ke(e,t){this.v=e,this.k=t}function Ye(e){var t,n;function r(t,n){try{var o=e[t](n),a=o.value,s=a instanceof Ke;Promise.resolve(s?a.v:a).then((function(n){if(s){var l="return"===t?"return":"next";if(!a.k||n.done)return r(l,n);n=e[l](n).value}i(o.done?"return":"normal",n)}),(function(e){r("throw",e)}))}catch(l){i("throw",l)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,i))}))}
2,"function"!=typeof e.return&&(this.return=void 0)}function Xe(e){return new Ke(e,0)}function Qe(e){var t={},n=!1;function r(t,r){return n=!0,{done:!1,value:new Ke(r=new Promise((function(n){n(e[t](r))})),1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):r("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return r("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):r("return",e)}),t}function et(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new tt(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function tt(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return tt=function(e){this.s=e,this.n=e.next},tt.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new tt(e)}Ye.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Ye.prototype.next=function(e){return this._invoke("next",e)},Ye.prototype.throw=function(e){return this._invoke("throw",e)},Ye.prototype.return=function(e){return this._invoke("return",e)};var nt,rt,it=(0,V.Z)().mark((function e(t,n){var r,i,o;return(0,V.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.byteLength,n&&!(r<n)){e.next=5;break}return e.next=4,t;case 4:return e.abrupt("return");case 5:i=0;case 6:if(!(i<r)){e.next=13;break}return o=i+n,e.next=10,t.slice(i,o);case 10:i=o,e.next=6;break;case 13:case"end":return e.stop()}}),e)})),ot=function(){var e,t=(e=(0,V.Z)().mark((function e(t,n,r){var i,o,a,s,l,c;return(0,V.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=!1,o=!1,e.prev=2,s=et(t);case 4:return e.next=6,Xe(s.next());case 6:if(!(i=!(l=e.sent).done)){e.next=27;break}if(c=l.value,e.t0=Qe,e.t1=et,e.t2=it,!ArrayBuffer.isView(c)){e.next=15;break}e.t3=c,e.next=18;break;case 15:return e.next=17,Xe(r(String(c)));case 17:e.t3=e.sent;case 18:return e.t4=e.t3,e.t5=n,e.t6=(0,e.t2)(e.t4,e.t5),e.t7=(0,e.t1)(e.t6),e.t8=Xe,e.delegateYield((0,e.t0)(e.t7,e.t8),"t9",24);case 24:i=!1,e.next=4;break;case 27:e.next=33;break;case 29:e.prev=29,e.t10=e.catch(2),o=!0,a=e.t10;case 33:if(e.prev=33,e.prev=34,!i||null==s.return){e.next=38;break}return e.next=38,Xe(s.return());case 38:if(e.prev=38,!o){e.next=41;break}throw a;case 41:return e.finish(38);case 42:return e.finish(33);case 43:case"end":return e.stop()}}),e,null,[[2,29,33,43],[34,,38,42]])})),function(){return new Ye(e.apply(this,arguments))});return function(e,n,r){return t.apply(this,arguments)}}(),at=function(e,t,n,r,i){var o=ot(e,t,i),a=0;return new ReadableStream({type:"bytes",pull:function(e){return(0,G.Z)((0,V.Z)().mark((function t(){var i,s,l,c;return(0,V.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.next();case 2:if(i=t.sent,s=i.done,l=i.value,!s){t.next=9;break}return e.close(),r(),t.abrupt("return");case 9:c=l.byteLength,n&&n(a+=c),e.enqueue(new Uint8Array(l));case 12:case"end":return t.stop()}}),t)})))()},cancel:function(e){return r(e),o.return()}},{highWaterMark:2})},st=function(e,t){var n=null!=e;return function(r){return setTimeout((function(){return t({lengthComputable:n,total:e,loaded:r})}))}},lt="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,ct=lt&&"function"===typeof ReadableStream,ut=lt&&("function"===typeof TextEncoder?(nt=new TextEncoder,function(e){return nt.encode(e)}):function(){var e=(0,G.Z)((0,V.Z)().mark((function e(t){return(0,V.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new Response(t).arrayBuffer();case 3:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}
2()),dt=ct&&function(){var e=!1,t=new Request(xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}(),ft=ct&&!!function(){try{return q.isReadableStream(new Response("").body)}catch(e){}}(),pt={stream:ft&&function(e){return e.body}};lt&&(rt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!pt[e]&&(pt[e]=q.isFunction(rt[e])?function(t){return t[e]()}:function(t,n){throw new Q("Response type '".concat(e,"' is not supported"),Q.ERR_NOT_SUPPORT,n)})})));var ht=function(){var e=(0,G.Z)((0,V.Z)().mark((function e(t){return(0,V.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",0);case 2:if(!q.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!q.isSpecCompliantForm(t)){e.next=8;break}return e.next=7,new Request(t).arrayBuffer();case 7:case 14:return e.abrupt("return",e.sent.byteLength);case 8:if(!q.isArrayBufferView(t)){e.next=10;break}return e.abrupt("return",t.byteLength);case 10:if(q.isURLSearchParams(t)&&(t+=""),!q.isString(t)){e.next=15;break}return e.next=14,ut(t);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),mt=function(){var e=(0,G.Z)((0,V.Z)().mark((function e(t,n){var r;return(0,V.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=q.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==r?ht(n):r);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),vt=lt&&function(){var e=(0,G.Z)((0,V.Z)().mark((function e(t){var n,r,o,a,s,l,c,u,d,f,p,h,m,v,g,y,b,x,w,k,S,j,C,_,E,N,A,D,T;return(0,V.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Ge(t),r=n.url,o=n.method,a=n.data,s=n.signal,l=n.cancelToken,c=n.timeout,u=n.onDownloadProgress,d=n.onUploadProgress,f=n.responseType,p=n.headers,h=n.withCredentials,m=void 0===h?"same-origin":h,v=n.fetchOptions,f=f?(f+"").toLowerCase():"text",g=s||l||c?Je([s,l],c):[],y=(0,i.Z)(g,2),b=y[0],x=y[1],S=function(){!w&&setTimeout((function(){b&&b.unsubscribe()})),w=!0},e.prev=4,e.t0=d&&dt&&"get"!==o&&"head"!==o,!e.t0){e.next=11;break}return e.next=9,mt(p,a);case 9:e.t1=j=e.sent,e.t0=0!==e.t1;case 11:if(!e.t0){e.next=15;break}C=new Request(r,{method:"POST",body:a,duplex:"half"}),q.isFormData(a)&&(_=C.headers.get("content-type"))&&p.setContentType(_),C.body&&(a=at(C.body,65536,st(j,Le(d)),null,ut));case 15:return q.isString(m)||(m=m?"cors":"omit"),k=new Request(r,(0,he.Z)((0,he.Z)({},v),{},{signal:b,method:o.toUpperCase(),headers:p.normalize().toJSON(),body:a,duplex:"half",withCredentials:m})),e.next=19,fetch(k);case 19:return E=e.sent,N=ft&&("stream"===f||"response"===f),ft&&(u||N)&&(A={},["status","statusText","headers"].forEach((function(e){A[e]=E[e]})),D=q.toFiniteNumber(E.headers.get("content-length")),E=new Response(at(E.body,65536,u&&st(D,Le(u,!0)),N&&S,ut),A)),f=f||"text",e.next=25,pt[q.findKey(pt,f)||"text"](E,t);case 25:return T=e.sent,!N&&S(),x&&x(),e.next=30,new Promise((function(e,n){Me(e,n,{data:T,headers:Te.from(E.headers),status:E.status,statusText:E.statusText,config:t,request:k})}));case 30:return e.abrupt("return",e.sent);case 33:if(e.prev=33,e.t2=e.catch(4),S(),!e.t2||"TypeError"!==e.t2.name||!/fetch/i.test(e.t2.message)){e.next=38;break}throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,t,k),{cause:e.t2.cause||e.t2});case 38:throw Q.from(e.t2,e.t2&&e.t2.code,t,k);case 39:case"end":return e.stop()}}),e,null,[[4,33]])})));return function(t){return e.apply(this,arguments)}}(),gt={http:null,xhr:$e,fetch:vt};q.forEach(gt,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));var yt=function(e){return"- ".concat(e)},bt=function(e){return q.isFunction(e)||null===e||!1===e},xt=function(e){for(var t,n,r=(e=q.isArray(e)?e:[e]).length,o={},a=0;a<r;a++){var s=void 0;if(n=t=e[a],!bt(t)&&void 0===(n=gt[(s=String(t)).toLowerCase()]))throw new Q("Unknown adapter '".concat(s,"'"));if(n)break;o[s||"#"+a]=n}if(!n){var l=Object.entries(o).map((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")})),c=r?l.length>
21?"since :\n"+l.map(yt).join("\n"):" "+yt(l[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return n};function wt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Oe(null,e)}function kt(e){return wt(e),e.headers=Te.from(e.headers),e.data=Ie.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xt(e.adapter||Se.adapter)(e).then((function(t){return wt(e),t.data=Ie.call(e,e.transformResponse,t),t.headers=Te.from(t.headers),t}),(function(t){return Pe(t)||(wt(e),t&&t.response&&(t.response.data=Ie.call(e,e.transformResponse,t.response),t.response.headers=Te.from(t.response.headers))),Promise.reject(t)}))}var St="1.7.2",jt={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){jt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Ct={};jt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new Q(r(i," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!Ct[i]&&(Ct[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var _t={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new Q("option "+o+" must be "+l,Q.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}},validators:jt},Et=_t.validators,Nt=function(){function e(t){(0,$.Z)(this,e),this.defaults=t,this.interceptors={request:new fe,response:new fe}}return(0,J.Z)(e,[{key:"request",value:function(){var e=(0,G.Z)((0,V.Z)().mark((function e(t,n){var r,i;return(0,V.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,n);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error,i=r.stack?r.stack.replace(/^.+\n/,""):"";try{e.t0.stack?i&&!String(e.t0.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+i):e.t0.stack=i}catch(o){}}throw e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_request",value:function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};var n=t=Ve(this.defaults,t),r=n.transitional,i=n.paramsSerializer,o=n.headers;void 0!==r&&_t.assertOptions(r,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),null!=i&&(q.isFunction(i)?t.paramsSerializer={serialize:i}:_t.assertOptions(i,{encode:Et.function,serialize:Et.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=o&&q.merge(o.common,o[t.method]);o&&q.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete o[e]})),t.headers=Te.concat(a,o);var s=[],l=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var c,u=[];this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));var d,f=0;if(!l){var p=[kt.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),d=p.length,c=Promise.resolve(t);f<d;)c=c.then(p[f++],p[f++]);return c}d=s.length;var h=t;for(f=0;f<d;){var m=s[f++],v=s[f++];try{h=m(h)}catch(g){v.call(this,g);break}}try{c=kt.call(this,h)}catch(g){return Promise.reject(g)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}},{key:"getUri",value:function(e){return ue(We((e=Ve(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}]),e}();q.forEach(["delete","get","head","options"],(function(e){Nt.prototype[e]=function(t,n){return this.request(Ve(n||{},{method:e,url:t,data:(n||{}).data}))}})),q.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Ve(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Nt.prototype[e]=t(),Nt.prototype[e+"Form"]=t(!0)}));var At=Nt,Dt=function(){function e(t){if((0,$.Z)(this,e),"function"!==typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var r=this;this.promise.then((function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,i){r.reason||(r.reason=new Oe(e,t,i),n(r.reason))}))}return(0,J.Z)(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}();var Tt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
2setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Tt).forEach((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];Tt[r]=n}));var It=Tt;var Pt=function e(t){var n=new At(t),r=o(At.prototype.request,n);return q.extend(r,At.prototype,n,{allOwnKeys:!0}),q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ve(t,n))},r}(Se);Pt.Axios=At,Pt.CanceledError=Oe,Pt.CancelToken=Dt,Pt.isCancel=Pe,Pt.VERSION=St,Pt.toFormData=ie,Pt.AxiosError=Q,Pt.Cancel=Pt.CanceledError,Pt.all=function(e){return Promise.all(e)},Pt.spread=function(e){return function(t){return e.apply(null,t)}},Pt.isAxiosError=function(e){return q.isObject(e)&&!0===e.isAxiosError},Pt.mergeConfig=Ve,Pt.AxiosHeaders=Te,Pt.formToJSON=function(e){return we(q.isHTMLForm(e)?new FormData(e):e)},Pt.getAdapter=xt,Pt.HttpStatusCode=It,Pt.default=Pt;var Ft=Pt},1476:function(e,t,n){"use strict";n.d(t,{Qc:function(){return Se}});var r=n(4942),i=n(2963),o=n(7326),a=n(3433),s=n(9439),l=n(7762),c=n(1752),u=n(1120),d=n(136),f=n(9388),p=n(8737),h=n(5671),m=n(3144),v=n(4165),g=n(5861),y="undefined"!=typeof self?self:global,b="undefined"!=typeof navigator,x=b&&"undefined"==typeof HTMLImageElement,w=!("undefined"==typeof global||"undefined"==typeof process||!process.versions||!process.versions.node),k=y.Buffer,S=y.BigInt,j=!!k,C=function(e){return e};function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C;if(w)try{return"function"==typeof require?Promise.resolve(t(require(e))):import(e).then(t)}catch(t){console.warn("Couldn't load ".concat(e))}}var E=y.fetch;if(!y.fetch){var N=_("http",(function(e){return e})),A=_("https",(function(e){return e}));!function(e){E=e}((function e(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).headers;return new Promise(function(){var r=(0,g.Z)((0,v.Z)().mark((function r(i,o){var a,s,l,c,u,d,f,p;return(0,v.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=new URL(t),s=a.port,l=a.hostname,c=a.pathname,u=a.protocol,d=a.search,f={method:"GET",hostname:l,path:encodeURI(c)+d,headers:n},""!==s&&(f.port=Number(s)),"https:"!==u){r.next=9;break}return r.next=6,A;case 6:r.t0=r.sent,r.next=12;break;case 9:return r.next=11,N;case 11:r.t0=r.sent;case 12:p=r.t0.request(f,(function(r){if(301===r.statusCode||302===r.statusCode){var a=new URL(r.headers.location,t).toString();return e(a,{headers:n}).then(i).catch(o)}i({status:r.statusCode,arrayBuffer:function(){return new Promise((function(e){var t=[];r.on("data",(function(e){return t.push(e)})),r.on("end",(function(){return e(Buffer.concat(t))}))}))}})})),p.on("error",o),p.end();case 14:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}())}))}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=function(e){return P(e)?void 0:e},I=function(e){return void 0!==e};function P(e){return void 0===e||(e instanceof Map?0===e.size:0===Object.values(e).filter(I).length)}function F(e){var t=new Error(e);throw delete t.stack,t}function O(e){return""===(e=function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e}(e).trim())?void 0:e}function M(e){var t=function(e){var t=0;return e.ifd0.enabled&&(t+=1024),e.exif.enabled&&(t+=2048),e.makerNote&&(t+=2048),e.userComment&&(t+=1024),e.gps.enabled&&(t+=512),e.interop.enabled&&(t+=100),e.ifd1.enabled&&(t+=1024),t+2048}(e);return e.jfif.enabled&&(t+=50),e.xmp.enabled&&(t+=2e4),e.iptc.enabled&&(t+=14e3),e.icc.enabled&&(t+=6e3),t}var Z=function(e){return String.fromCharCode.apply(null,e)},R="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;function L(e){return R?R.decode(e):j?Buffer.from(e).toString("utf8"):decodeURIComponent(escape(Z(e)))}var B=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if((0,h.Z)(this,e),"boolean"==typeof i&&(this.le=i),Array.isArray(t)&&(t=new Uint8Array(t)),0===t)this.byteOffset=0,this.byteLength=0;else if(t instanceof ArrayBuffer){void 0===r&&(r=t.byteLength-n);var o=new DataView(t,n,r);this._swapDataView(o)}else if(t instanceof Uint8Array||t instanceof DataView||t instanceof e){void 0===r&&(r=t.byteLength-n),(n+=t.byteOffset)+r>t.byteOffset+t.byteLength&&F("Creating view outside of available memory in ArrayBuffer");var a=new DataView(t.buffer,n,r);this._swapDataView(a)}else if("number"==typeof t){var s=new DataView(new ArrayBuffer(t));this._swapDataView(s)}else F("Invalid input argument for BufferView: "+t)}return(0,m.Z)(e,[{key:"_swapArrayBuffer",value:function(e){this._swapDataView(new DataView(e))}},{key:"_swapBuffer",value:function(e){this._swapDataView(new DataView(e.buffer,e.byteOffset,e.byteLength))}},{key:"_swapDataView",value:function(e){this.dataView=e,this.buffer=e.buffer,this.byteOffset=e.byteOffset,this.byteLength=e.byteLength}},{key:"_lengthToEnd",value:function(e){return this.byteLength-e}},{key:"set",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;return t instanceof DataView||t instanceof e?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t instanceof ArrayBuffer&&(t=new Uint8Array(t)),t instanceof Uint8Array||F("BufferView.set(): Invalid data argument."),this.toUint8().set(t,n),new r(this,n,t.byteLength)}},{key:"subarray",value:function(t,n){return new e(this,t,n=n||this._lengthToEnd(t))}},{key:"toUint8",value:function(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}},{key:"getUint8Array",value:function(e,t){return new Uint8Array(this.buffer,this.byteOffset+e,t)}},{key:"getString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength;return L(this.getUint8Array(e,t))}},{key:"getLatin1String",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,n=this.getUint8Array(e,t);return Z(n)}},{key:"getUnicodeString",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,n=[],r=0;r<t&&e+r<this.byteLength;r+=2)n.push(this.getUint16(e+r));return Z(n)}},{key:"getInt8",value:function(e){return this.dataView.getInt8(e)}},{key:"getUint8",value:function(e){return this.dataView.getUint8(e)}},{key:"getInt16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt16(e,t)}},{key:"getInt32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt32(e,t)}},{key:"getUint16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint16(e,t)}},{key:"getUint32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint32(e,t)}},{key:"getFloat32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(e,t)}},{key:"getFloat64",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(e,t)}},{key:"getFloat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(e,t)}},{key:"getDouble",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(e,t)}},{key:"getUintBytes",value:function(e,t,n){switch(t){case 1:return this.getUint8(e,n);case 2:return this.getUint16(e,n);case 4:return this.getUint32(e,n);case 8:return this.getUint64&&this.getUint64(e,n)}}},{key:"getUint",value:function(e,t,n){switch(t){case 8:return this.getUint8(e,n);case 16:return this.getUint16(e,n);case 32:return this.getUint32(e,n);case 64:return this.getUint64&&this.getUint64(e,n)}}},{key:"toString",value:function(e){return this.dataView.toString(e,this.constructor.name)}},{key:"ensureChunk",value:function(){}}],[{key:"from",value:function(t,n){return t instanceof this&&t.le===n?t:new e(t,void 0,void 0,n)}}]),e}();function z(e,t){F("".concat(e," '").concat(t,"' was not loaded, try using full build of exifr."))}var U=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(e){var r;return(0,h.Z)(this,n),(r=t.call(this)).kind=e,r}return(0,m.Z)(n,[{key:"get",value:function(e,t){return this.has(e)||z(this.kind,e),t&&(e in t||function(e,t){F("Unknown ".concat(e," '").concat(t,"'."))}(this.kind,e),t[e].enabled||z(this.kind,e)),(0,c.Z)((0,u.Z)(n.prototype),"get",this).call(this,e)}},{key:"keyList",value:function(){return Array.from(this.keys())}}]),n}((0,p.Z)(Map)),H=new U("file parser"),W=new U("segment parser"),q=new U("file reader");function V(e,t){return"string"==typeof e?G(e,t):b&&!x&&e instanceof HTMLImageElement?G(e.src,t):e instanceof Uint8Array||e instanceof ArrayBuffer||e instanceof DataView?new B(e):b&&e instanceof Blob?$(e,t,"blob",Q):void F("Invalid input argument")}function G(e,t){return(n=e).startsWith("data:")||n.length>1e4?K(e,t,"base64"):w&&e.includes("://")?$(e,t,"url",X):w?K(e,t,"fs"):b?$(e,t,"url",X):void F("Invalid input argument");var n}function $(e,t,n,r){return J.apply(this,arguments)}function J(){return J=(0,g.Z)((0,v.Z)().mark((function e(t,n,r,i){return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q.has(r)?K(t,n,r):i?function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t,n){var r;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t);case 2:return r=e.sent,e.abrupt("return",new B(r));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()(t,i):void F("Parser ".concat(r," is not loaded")));case 1:case"end":return e.stop()}}),e)}))),J.apply(this,arguments)}function K(e,t,n){return Y.apply(this,arguments)}function Y(){return Y=(0,g.Z)((0,v.Z)().mark((function e(t,n,r){var i;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new(q.get(r))(t,n),e.next=3,i.read();case 3:return e.abrupt("return",i);case 4:case"end":return e.stop()}}),e)}))),Y.apply(this,arguments)}var X=function(e){return E(e).then((function(e){return e.arrayBuffer()}))},Q=function(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){return t(r.result||new ArrayBuffer)},r.onerror=n,r.readAsArrayBuffer(e)}))},ee=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"tagKeys",get:function(){return this.allKeys||(this.allKeys=Array.from(this.keys())),this.allKeys}},{key:"tagValues",get:function(){return this.allValues||(this.allValues=Array.from(this.values())
2),this.allValues}}]),n}((0,p.Z)(Map));function te(e,t,n){var r,i=new ee,o=(0,l.Z)(n);try{for(o.s();!(r=o.n()).done;){var a=(0,s.Z)(r.value,2),c=a[0],u=a[1];i.set(c,u)}}catch(h){o.e(h)}finally{o.f()}if(Array.isArray(t)){var d,f=(0,l.Z)(t);try{for(f.s();!(d=f.n()).done;){var p=d.value;e.set(p,i)}}catch(h){f.e(h)}finally{f.f()}}else e.set(t,i);return i}function ne(e,t,n){var r,i,o=e.get(t),a=(0,l.Z)(n);try{for(a.s();!(i=a.n()).done;)r=i.value,o.set(r[0],r[1])}catch(s){a.e(s)}finally{a.f()}}var re=new Map,ie=new Map,oe=new Map,ae=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],se=["jfif","xmp","icc","iptc","ihdr"],le=["tiff"].concat(se),ce=["ifd0","ifd1","exif","gps","interop"],ue=[].concat((0,a.Z)(le),ce),de=["makerNote","userComment"],fe=["translateKeys","translateValues","reviveValues","multiSegment"],pe=[].concat(fe,["sanitize","mergeOutput","silentErrors"]),he=function(){function e(){(0,h.Z)(this,e)}return(0,m.Z)(e,[{key:"translate",get:function(){return this.translateKeys||this.translateValues||this.reviveValues}}]),e}(),me=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(e,r,a,s){var l;if((0,h.Z)(this,n),l=t.call(this),D((0,o.Z)(l),"enabled",!1),D((0,o.Z)(l),"skip",new Set),D((0,o.Z)(l),"pick",new Set),D((0,o.Z)(l),"deps",new Set),D((0,o.Z)(l),"translateKeys",!1),D((0,o.Z)(l),"translateValues",!1),D((0,o.Z)(l),"reviveValues",!1),l.key=e,l.enabled=r,l.parse=l.enabled,l.applyInheritables(s),l.canBeFiltered=ce.includes(e),l.canBeFiltered&&(l.dict=re.get(e)),void 0!==a)if(Array.isArray(a))l.parse=l.enabled=!0,l.canBeFiltered&&a.length>0&&l.translateTagSet(a,l.pick);else if("object"==typeof a){if(l.enabled=!0,l.parse=!1!==a.parse,l.canBeFiltered){var c=a.pick,u=a.skip;c&&c.length>0&&l.translateTagSet(c,l.pick),u&&u.length>0&&l.translateTagSet(u,l.skip)}l.applyInheritables(a)}else!0===a||!1===a?l.parse=l.enabled=a:F("Invalid options argument: ".concat(a));return(0,i.Z)(l)}return(0,m.Z)(n,[{key:"needed",get:function(){return this.enabled||this.deps.size>0}},{key:"applyInheritables",value:function(e){for(var t,n,r=0,i=fe;r<i.length;r++)void 0!==(n=e[t=i[r]])&&(this[t]=n)}},{key:"translateTagSet",value:function(e,t){if(this.dict){var n,r,i,o=this.dict,a=o.tagKeys,s=o.tagValues,c=(0,l.Z)(e);try{for(c.s();!(i=c.n()).done;)"string"==typeof(n=i.value)?(-1===(r=s.indexOf(n))&&(r=a.indexOf(Number(n))),-1!==r&&t.add(Number(a[r]))):t.add(n)}catch(p){c.e(p)}finally{c.f()}}else{var u,d=(0,l.Z)(e);try{for(d.s();!(u=d.n()).done;){var f=u.value;t.add(f)}}catch(p){d.e(p)}finally{d.f()}}}},{key:"finalizeFilters",value:function(){!this.enabled&&this.deps.size>0?(this.enabled=!0,we(this.pick,this.deps)):this.enabled&&this.pick.size>0&&we(this.pick,this.deps)}}]),n}(he),ve={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},ge=new Map,ye=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(e){var r;return(0,h.Z)(this,n),r=t.call(this),!0===e?r.setupFromTrue():void 0===e?r.setupFromUndefined():Array.isArray(e)?r.setupFromArray(e):"object"==typeof e?r.setupFromObject(e):F("Invalid options argument ".concat(e)),void 0===r.firstChunkSize&&(r.firstChunkSize=b?r.firstChunkSizeBrowser:r.firstChunkSizeNode),r.mergeOutput&&(r.ifd1.enabled=!1),r.filterNestedSegmentTags(),r.traverseTiffDependencyTree(),r.checkLoadedPlugins(),r}return(0,m.Z)(n,[{key:"setupFromUndefined",value:function(){for(var e,t=0,n=ae;t<n.length;t++)this[e=n[t]]=ve[e];var r,i=(0,l.Z)(pe);try{for(i.s();!(r=i.n()).done;)this[e=r.value]=ve[e]}catch(u){i.e(u)}finally{i.f()}for(var o=0,a=de;o<a.length;o++)this[e=a[o]]=ve[e];var s,c=(0,l.Z)(ue);try{for(c.s();!(s=c.n()).done;)this[e=s.value]=new me(e,ve[e],void 0,this)}catch(u){c.e(u)}finally{c.f()}}},{key:"setupFromTrue",value:function(){for(var e,t=0,n=ae;t<n.length;t++)this[e=n[t]]=ve[e];var r,i=(0,l.Z)(pe);try{for(i.s();!(r=i.n()).done;)this[e=r.value]=ve[e]}catch(u){i.e(u)}finally{i.f()}for(var o=0,a=de;o<a.length;o++)this[e=a[o]]=!0;var s,c=(0,l.Z)(ue);try{for(c.s();!(s=c.n()).done;)this[e=s.value]=new me(e,!0,void 0,this)}catch(u){c.e(u)}finally{c.f()}}},{key:"setupFromArray",value:function(e){for(var t,n=0,r=ae;n<r.length;n++)this[t=r[n]]=ve[t];var i,o=(0,l.Z)(pe);try{for(o.s();!(i=o.n()).done;)this[t=i.value]=ve[t]}catch(d){o.e(d)}finally{o.f()}for(var a=0,s=de;a<s.length;a++)this[t=s[a]]=ve[t];var c,u=(0,l.Z)(ue);try{for(u.s();!(c=u.n()).done;)this[t=c.value]=new me(t,!1,void 0,this)}catch(d){u.e(d)}finally{u.f()}this.setupGlobalFilters(e,void 0,ce)}},{key:"setupFromObject",value:function(e){for(var t,n=0,r=(ce.ifd0=ce.ifd0||ce.image,ce.ifd1=ce.ifd1||
2ce.thumbnail,Object.assign(this,e),ae);n<r.length;n++)this[t=r[n]]=xe(e[t],ve[t]);var i,o=(0,l.Z)(pe);try{for(o.s();!(i=o.n()).done;)this[t=i.value]=xe(e[t],ve[t])}catch(p){o.e(p)}finally{o.f()}for(var a=0,s=de;a<s.length;a++)this[t=s[a]]=xe(e[t],ve[t]);var c,u=(0,l.Z)(le);try{for(u.s();!(c=u.n()).done;)this[t=c.value]=new me(t,ve[t],e[t],this)}catch(p){u.e(p)}finally{u.f()}for(var d=0,f=ce;d<f.length;d++)this[t=f[d]]=new me(t,ve[t],e[t],this.tiff);this.setupGlobalFilters(e.pick,e.skip,ce,ue),!0===e.tiff?this.batchEnableWithBool(ce,!0):!1===e.tiff?this.batchEnableWithUserValue(ce,e):Array.isArray(e.tiff)?this.setupGlobalFilters(e.tiff,void 0,ce):"object"==typeof e.tiff&&this.setupGlobalFilters(e.tiff.pick,e.tiff.skip,ce)}},{key:"batchEnableWithBool",value:function(e,t){var n,r=(0,l.Z)(e);try{for(r.s();!(n=r.n()).done;){this[n.value].enabled=t}}catch(i){r.e(i)}finally{r.f()}}},{key:"batchEnableWithUserValue",value:function(e,t){var n,r=(0,l.Z)(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=t[i];this[i].enabled=!1!==o&&void 0!==o}}catch(a){r.e(a)}finally{r.f()}}},{key:"setupGlobalFilters",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(e&&e.length){var i,o=(0,l.Z)(r);try{for(o.s();!(i=o.n()).done;){this[i.value].enabled=!1}}catch(x){o.e(x)}finally{o.f()}var a,c=be(e,n),u=(0,l.Z)(c);try{for(u.s();!(a=u.n()).done;){var d=(0,s.Z)(a.value,2),f=d[0],p=d[1];we(this[f].pick,p),this[f].enabled=!0}}catch(x){u.e(x)}finally{u.f()}}else if(t&&t.length){var h,m=be(t,n),v=(0,l.Z)(m);try{for(v.s();!(h=v.n()).done;){var g=(0,s.Z)(h.value,2),y=g[0],b=g[1];we(this[y].skip,b)}}catch(x){v.e(x)}finally{v.f()}}}},{key:"filterNestedSegmentTags",value:function(){var e=this.ifd0,t=this.exif,n=this.xmp,r=this.iptc,i=this.icc;this.makerNote?t.deps.add(37500):t.skip.add(37500),this.userComment?t.deps.add(37510):t.skip.add(37510),n.enabled||e.skip.add(700),r.enabled||e.skip.add(33723),i.enabled||e.skip.add(34675)}},{key:"traverseTiffDependencyTree",value:function(){var e=this,t=this.ifd0,n=this.exif,r=this.gps;this.interop.needed&&(n.deps.add(40965),t.deps.add(40965)),n.needed&&t.deps.add(34665),r.needed&&t.deps.add(34853),this.tiff.enabled=ce.some((function(t){return!0===e[t].enabled}))||this.makerNote||this.userComment;for(var i=0,o=ce;i<o.length;i++){this[o[i]].finalizeFilters()}}},{key:"onlyTiff",get:function(){var e=this;return!se.map((function(t){return e[t].enabled})).some((function(e){return!0===e}))&&this.tiff.enabled}},{key:"checkLoadedPlugins",value:function(){var e,t=(0,l.Z)(le);try{for(t.s();!(e=t.n()).done;){var n=e.value;this[n].enabled&&!W.has(n)&&z("segment parser",n)}}catch(r){t.e(r)}finally{t.f()}}}],[{key:"useCached",value:function(e){var t=ge.get(e);return void 0!==t||(t=new this(e),ge.set(e,t)),t}}]),n}(he);function be(e,t){var n,r,i,o,a,s=[],c=(0,l.Z)(t);try{for(c.s();!(a=c.n()).done;){i=a.value;var u,d=(0,l.Z)((n=re.get(i),r=[],n));try{for(d.s();!(u=d.n()).done;)o=u.value,(e.includes(o[0])||e.includes(o[1]))&&r.push(o[0])}catch(f){d.e(f)}finally{d.f()}r.length&&s.push([i,r])}}catch(f){c.e(f)}finally{c.f()}return s}function xe(e,t){return void 0!==e?e:void 0!==t?t:void 0}function we(e,t){var n,r=(0,l.Z)(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.add(i)}}catch(o){r.e(o)}finally{r.f()}}D(ye,"default",ve);var ke=function(){function e(t){var n=this;(0,h.Z)(this,e),D(this,"parsers",{}),D(this,"output",{}),D(this,"errors",[]),D(this,"pushToErrors",(function(e){return n.errors.push(e)})),this.options=ye.useCached(t)}return(0,m.Z)(e,[{key:"read",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t){return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,V(t,this.options);case 2:this.file=e.sent;case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setup",value:function(){if(!this.fileParser){var e,t=this.file,n=t.getUint16(0),r=(0,l.Z)(H);try{for(r.s();!(e=r.n()).done;){var i=(0,s.Z)(e.value,2),o=i[0],a=i[1];if(a.canHandle(t,n))return this.fileParser=new a(this.options,this.file,this.parsers),t[o]=!0}}catch(c){r.e(c)}finally{r.f()}this.file.close&&this.file.close(),F("Unknown file format")}}},{key:"parse",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t,n;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.output,n=this.errors,this.setup(),!this.options.silentErrors){e.next=8;break}return e.next=5,this.executeParsers().catch(this.pushToErrors);case 5:n.push.apply(n,(0,a.Z)(this.fileParser.errors)),e.next=10;break;case 8:return e.next=10,this.executeParsers();case 10:return this.file.close&&this.file.close(),this.options.silentErrors&&n.length>0&&(t.errors=n),e.abrupt("return",T(t));case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"executeParsers",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t,n,r=this;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.output,e.next=3,this.fileParser.parse();case 3:return n=Object.values(this.parsers).map(function(){var e=(0,g.Z)((0,v.Z)().mark((function e(n){var r;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.parse();case 2:r=e.sent,n.assignToOutput(t,r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.options.silentErrors&&(n=n.map((function(e){return e.catch(r.pushToErrors)}))),e.next=7,Promise.all(n);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"extractThumbnail",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t,n,r,i,o,a,s;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.setup(),t=this.options,n=this.file,r=W.get("tiff",t),!n.tiff){e.next=6;break}i={start:0,type:"tiff"},e.next=11;break;case 6:if(e.t0=n.jpeg,!e.t0){e.next=11;break}return e.next=10,this.fileParser.getOrFindSegment("tiff");case 10:i=e.sent;case 11:if(void 0!==i){e.next=13;break}return e.abrupt("return");case 13:return e.next=15,this.fileParser.ensureSegmentChunk(i);case 15:return o=e.sent,a=this.parsers.tiff=new r(o,t,n),e.next=19,a.extractThumbnail();case 19:return s=e.sent,e.abrupt("return",(n.close&&n.close(),s));case 21:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function Se(e,t){return je.apply(this,arguments)}function je(){return je=(0,g.Z)((0,v.Z)().mark((function e(t,n){var r;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new ke(n),e.next=3,r.read(t);case 3:return e.abrupt("return",r.parse());case 4:case"end":return e.stop()}}),e)}))),je.apply(this,arguments)}var Ce=Object.freeze({__proto__:null,parse:Se,Exifr:ke,fileParsers:H,segmentParsers:W,fileReaders:q,tagKeys:re,tagValues:ie,tagRevivers:oe,createDictionary:te,extendDictionary:ne,fetchUrlAsArrayBuffer:X,readBlobAsArrayBuffer:Q,chunkedProps:ae,otherSegments:se,segments:le,tiffBlocks:ce,segmentsAndBlocks:ue,tiffExtractables:de,inheritables:fe,allFormatters:pe,Options:ye}),_e=function(){function e(t,n,r){var i=this;(0,h.Z)(this,e),D(this,"errors",[]),D(this,"ensureSegmentChunk",function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t){var n,r;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.start,r=t.size||65536,!i.file.chunked){e.next=17;break}if(!i.file.available(n,r)){e.next=6;break}t.chunk=i.file.subarray(n,r),e.next=15;break;case 6:return e.prev=6,e.next=9,i.file.readChunk(n,r);case 9:t.chunk=e.sent,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(6),F("Couldn't read segment: ".concat(JSON.stringify(t),". ").concat(e.t0.message));case 15:e.next=18;break;case 17:i.file.byteLength>n+r?t.chunk=i.file.subarray(n,r):void 0===t.size?t.chunk=i.file.subarray(n):F("Segment unreachable: "+JSON.stringify(t));case 18:return e.abrupt("return",t.chunk);case 19:case"end":return e.stop()}}),e,null,[[6,12]])})));return function(t){return e.apply(this,arguments)}}()),this.extendOptions&&this.extendOptions(t),this.options=t,this.file=n,this.parsers=r}return(0,m.Z)(e,[{key:"injectSegment",value:function(e,t){this.options[e].enabled&&this.createParser(e,t)}},{key:"createParser",value:function(e,t){var n=new(W.get(e))(t,this.options,this.file);return this.parsers[e]=n}},{key:"createParsers",value:function(e){var t,n=(0,l.Z)(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.type,o=r.chunk,a=this.options[i];if(a&&a.enabled){var s=this.parsers[i];s&&s.append||s||this.createParser(i,o)}}}catch(c){n.e(c)}finally{n.f()}}},{key:"readSegments",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t){var n;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.map(this.ensureSegmentChunk),e.next=3,Promise.all(n);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Ee=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;(0,h.Z)(this,e),D(this,"errors",[]),D(this,"raw",new Map),D(this,"handleError",(function(e){if(!n.options.silentErrors)throw e;n.errors.push(e.message)})),this.chunk=this.normalizeInput(t),this.file=i,this.type=this.constructor.type,this.globalOptions=this.options=r,this.localOptions=r[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}return(0,m.Z)(e,[{key:"normalizeInput",value:function(e){return e instanceof B?e:new B(e)}},{key:"translate",value:function(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}},{key:"output",get:function(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}},{key:"translateBlock",value:function(e,t){var n,r=oe.get(t),i=ie.get(t),o=re.get(t),a=this.options[t],c=a.reviveValues&&!!r,u=a.translateValues&&!!i,d=a.translateKeys&&!!o,f={},p=(0,l.Z)(e);try{for(p.s();!(n=p.n()).done;){var h=(0,s.Z)(n.value,2),m=h[0],v=h[1];c&&r.has(m)?v=r.get(m)(v):u&&i.has(m)&&(v=this.translateValue(v,i.get(m))),d&&o.has(m)&&(m=o.get(m)||m),f[m]=v}}catch(g){p.e(g)}finally{p.f()}return f}},{key:"translateValue",value:function(e,t){return t[e]||t.DEFAULT||e}},{key:"assignToOutput",value:function(e,t){this.assignObjectToOutput(e,this.constructor.type,t)}},{key:"assignObjectToOutput",value:function(e,t,n){if(this.globalOptions.mergeOutput)return Object.assign(e,n);e[t]?Object.assign(e[t],n):e[t]=n}}],[{key:"findPosition",value:function(e,t){var n=e.getUint16(t+2)+2,r="function"==typeof this.headerLength?this.headerLength(e,t,n):this.headerLength,i=t+r,o=n-r;return{offset:t,length:n,headerLength:r,start:i,size:o,end:i+o}}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new this(e,new ye((0,r.Z)({},this.type,t)),e).parse()}}]),e}();function Ne(e){return 192===e||194===e||196===e||219===e||221===e||218===e||254===e}function Ae(e){return e>=224&&e<=239}function De(e,t,n){var r,i=(0,l.Z)(W);try{for(i.s();!(r=i.n()).done;){var o=(0,s.Z)(r.value,2),a=o[0];if(o[1].canHandle(e,t,n))return a}}catch(c){i.e(c)}finally{i.f()}}D(Ee,"headerLength",4),D(Ee,"type",void 0),D(Ee,"multiSegment",!1),D(Ee,"canHandle",(function(){return!1}));var Te=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;(0,h.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),D((0,o.Z)(e),"appSegments",[]),D((0,o.Z)(e),"jpegSegments",[]),D((0,o.Z)(e),"unknownSegments",[]),e}return(0,m.Z)(n,[{key:"parse",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.findAppSegments();case 2:return e.next=4,this.readSegments(this.appSegments);case 4:this.mergeMultiSegments(),this.createParsers(this.mergedAppSegments||this.appSegments);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setupSegmentFinderArgs",value:function(e){var t=this;
2!0===e?(this.findAll=!0,this.wanted=new Set(W.keyList())):(e=void 0===e?W.keyList().filter((function(e){return t.options[e].enabled})):e.filter((function(e){return t.options[e].enabled&&W.has(e)})),this.findAll=!1,this.remaining=new Set(e),this.wanted=new Set(e)),this.unfinishedMultiSegment=!1}},{key:"findAppSegments",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t,n,r,i,o,a,s,l,c,u=this,d=arguments;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d.length>0&&void 0!==d[0]?d[0]:0,n=d.length>1?d[1]:void 0,this.setupSegmentFinderArgs(n),r=this.file,i=this.findAll,o=this.wanted,a=this.remaining,e.t0=!i&&this.file.chunked,!e.t0){e.next=11;break}if(i=Array.from(o).some((function(e){var t=W.get(e),n=u.options[e];return t.multiSegment&&n.multiSegment})),e.t1=i,!e.t1){e.next=11;break}return e.next=11,this.file.readWhole();case 11:if(t=this.findAppSegmentsInRange(t,r.byteLength),this.options.onlyTiff||!r.chunked){e.next=30;break}s=!1;case 14:if(!(a.size>0)||s||!r.canReadNextChunk&&!this.unfinishedMultiSegment){e.next=30;break}if(l=r.nextChunkOffset,c=this.appSegments.some((function(e){return!u.file.available(e.offset||e.start,e.length||e.size)})),!(t>l)||c){e.next=22;break}return e.next=19,r.readNextChunk(t);case 19:e.t2=!e.sent,e.next=25;break;case 22:return e.next=24,r.readNextChunk(l);case 24:e.t2=!e.sent;case 25:if(s=e.t2,void 0!==(t=this.findAppSegmentsInRange(t,r.byteLength))){e.next=28;break}return e.abrupt("return");case 28:e.next=14;break;case 30:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"findAppSegmentsInRange",value:function(e,t){t-=2;for(var n,r,i,o,a,s,l=this.file,c=this.findAll,u=this.wanted,d=this.remaining,f=this.options;e<t;e++)if(255===l.getUint8(e))if(Ae(n=l.getUint8(e+1))){if(r=l.getUint16(e+2),(i=De(l,e,r))&&u.has(i)&&(a=(o=W.get(i)).findPosition(l,e),s=f[i],a.type=i,this.appSegments.push(a),!c&&(o.multiSegment&&s.multiSegment?(this.unfinishedMultiSegment=a.chunkNumber<a.chunkCount,this.unfinishedMultiSegment||d.delete(i)):d.delete(i),0===d.size)))break;f.recordUnknownSegments&&((a=Ee.findPosition(l,e)).marker=n,this.unknownSegments.push(a)),e+=r+1}else if(Ne(n)){if(r=l.getUint16(e+2),218===n&&!1!==f.stopAfterSos)return;f.recordJpegSegments&&this.jpegSegments.push({offset:e,length:r,marker:n}),e+=r+1}return e}},{key:"mergeMultiSegments",value:function(){var e=this;if(this.appSegments.some((function(e){return e.multiSegment}))){var t=function(e,t){for(var n,r,i,o=new Map,a=0;a<e.length;a++)r=(n=e[a]).type,o.has(r)?i=o.get(r):o.set(r,i=[]),i.push(n);return Array.from(o)}(this.appSegments);this.mergedAppSegments=t.map((function(t){var n=(0,s.Z)(t,2),r=n[0],i=n[1],o=W.get(r,e.options);return o.handleMultiSegments?{type:r,chunk:o.handleMultiSegments(i)}:i[0]}))}}},{key:"getSegment",value:function(e){return this.appSegments.find((function(t){return t.type===e}))}},{key:"getOrFindSegment",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t){var n;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.getSegment(t),e.t0=void 0===n,!e.t0){e.next=6;break}return e.next=5,this.findAppSegments(0,[t]);case 5:n=this.getSegment(t);case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}],[{key:"canHandle",value:function(e,t){return 65496===t}}]),n}(_e);D(Te,"type","jpeg"),H.set("jpeg",Te);var Ie=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4],Pe=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"parseHeader",value:function(){var e=this.chunk.getUint16();18761===e?this.le=!0:19789===e&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}},{key:"parseTags",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map,r=this.options[t],i=r.pick,o=r.skip,a=(i=new Set(i)).size>0,s=0===o.size,l=this.chunk.getUint16(e);e+=2;for(var c=0;c<l;c++){var u=this.chunk.getUint16(e);if(a){if(i.has(u)&&(n.set(u,this.parseTag(e,u,t)),i.delete(u),0===i.size))break}else!s&&o.has(u)||n.set(u,this.parseTag(e,u,t));e+=12}return n}},{key:"parseTag",value:function(e,t,n){var r=this.chunk,i=r.getUint16(e+2),o=r.getUint32(e+4),a=Ie[i];if(a*o<=4?e+=8:e=r.getUint32(e+8),(i<1||i>13)&&F("Invalid TIFF value type. block: ".concat(n.toUpperCase(),", tag: ").concat(t.toString(16),", type: ").concat(i,", offset ").concat(e)),e>r.byteLength&&F("Invalid TIFF value offset. block: ".concat(n.toUpperCase(),", tag: ").concat(t.toString(16),", type: ").concat(i,", offset ").concat(e," is outside of chunk size ").concat(r.byteLength)),1===i)return r.getUint8Array(e,o);if(2===i)return O(r.getString(e,o));if(7===i)return r.getUint8Array(e,o);if(1===o)return this.parseTagValue(i,e);for(var s=new(function(e){switch(e){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(i))(o),l=a,c=0;c<o;c++)s[c]=this.parseTagValue(i,e),e+=l;return s}},{key:"parseTagValue",value:function(e,t){var n=this.chunk;switch(e){case 1:return n.getUint8(t);case 3:return n.getUint16(t);case 4:case 13:return n.getUint32(t);case 5:return n.getUint32(t)/n.getUint32(t+4);case 6:return n.getInt8(t);case 8:return n.getInt16(t);case 9:return n.getInt32(t);case 10:return n.getInt32(t)/n.getInt32(t+4);case 11:return n.getFloat(t);case 12:return n.getDouble(t);default:F("Invalid tiff type ".concat(e))}}}]),n}(Ee),Fe=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"parse",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.parseHeader(),t=this.options,e.t0=t.ifd0.enabled,!e.t0){e.next=6;break}return e.next=6,this.parseIfd0Block();case 6:if(e.t1=t.exif.enabled,!e.t1){e.next=10;break}return e.next=10,this.safeParse("parseExifBlock");case 10:if(e.t2=t.gps.enabled,!e.t2){e.next=14;break}return e.next=14,this.safeParse("parseGpsBlock");case 14:if(e.t3=t.interop.enabled,!e.t3){e.next=18;break}return e.next=18,this.safeParse("parseInteropBlock");case 18:if(e.t4=t.ifd1.enabled,!e.t4){e.next=22;break}return e.next=22,this.safeParse("parseThumbnailBlock");case 22:return e.abrupt("return",this.createOutput());case 23:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"safeParse",value:function(e){var t=this[e]();return void 0!==t.catch&&(t=t.catch(this.handleError)),t}},{key:"findIfd0Offset",value:function(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}},{key:"findIfd1Offset",value:function(){if(void 0===this.ifd1Offset){this.findIfd0Offset();var e=this.chunk.getUint16(this.ifd0Offset),t=this.ifd0Offset+2+12*e;this.ifd1Offset=this.chunk.getUint32(t)}}},{key:"parseBlock",value:function(e,t){var n=new Map;
2return this[t]=n,this.parseTags(e,t,n),n}},{key:"parseIfd0Block",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t,n;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.ifd0){e.next=2;break}return e.abrupt("return");case 2:if(t=this.file,this.findIfd0Offset(),this.ifd0Offset<8&&F("Malformed EXIF data"),!t.chunked&&this.ifd0Offset>t.byteLength&&F("IFD0 offset points to outside of file.\nthis.ifd0Offset: ".concat(this.ifd0Offset,", file.byteLength: ").concat(t.byteLength)),e.t0=t.tiff,!e.t0){e.next=10;break}return e.next=10,t.ensureChunk(this.ifd0Offset,M(this.options));case 10:return n=this.parseBlock(this.ifd0Offset,"ifd0"),e.abrupt("return",0!==n.size?(this.exifOffset=n.get(34665),this.interopOffset=n.get(40965),this.gpsOffset=n.get(34853),this.xmp=n.get(700),this.iptc=n.get(33723),this.icc=n.get(34675),this.options.sanitize&&(n.delete(34665),n.delete(40965),n.delete(34853),n.delete(700),n.delete(33723),n.delete(34675)),n):void 0);case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"parseExifBlock",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.exif){e.next=2;break}return e.abrupt("return");case 2:if(e.t0=this.ifd0,e.t0){e.next=6;break}return e.next=6,this.parseIfd0Block();case 6:if(void 0!==this.exifOffset){e.next=8;break}return e.abrupt("return");case 8:if(e.t1=this.file.tiff,!e.t1){e.next=12;break}return e.next=12,this.file.ensureChunk(this.exifOffset,M(this.options));case 12:return t=this.parseBlock(this.exifOffset,"exif"),e.abrupt("return",(this.interopOffset||(this.interopOffset=t.get(40965)),this.makerNote=t.get(37500),this.userComment=t.get(37510),this.options.sanitize&&(t.delete(40965),t.delete(37500),t.delete(37510)),this.unpack(t,41728),this.unpack(t,41729),t));case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"unpack",value:function(e,t){var n=e.get(t);n&&1===n.length&&e.set(t,n[0])}},{key:"parseGpsBlock",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.gps){e.next=2;break}return e.abrupt("return");case 2:if(e.t0=this.ifd0,e.t0){e.next=6;break}return e.next=6,this.parseIfd0Block();case 6:if(void 0!==this.gpsOffset){e.next=8;break}return e.abrupt("return");case 8:return t=this.parseBlock(this.gpsOffset,"gps"),e.abrupt("return",(t&&t.has(2)&&t.has(4)&&(t.set("latitude",Oe.apply(void 0,(0,a.Z)(t.get(2)).concat([t.get(1)]))),t.set("longitude",Oe.apply(void 0,(0,a.Z)(t.get(4)).concat([t.get(3)])))),t));case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"parseInteropBlock",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=!this.interop,!e.t0){e.next=11;break}if(e.t1=this.ifd0,e.t1){e.next=6;break}return e.next=6,this.parseIfd0Block();case 6:if(e.t2=void 0!==this.interopOffset||this.exif,e.t2){e.next=10;break}return e.next=10,this.parseExifBlock();case 10:e.t0=void 0!==this.interopOffset;case 11:if(!e.t0){e.next=13;break}return e.abrupt("return",this.parseBlock(this.interopOffset,"interop"));case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"parseThumbnailBlock",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t,n=arguments;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]&&n[0],this.ifd1||this.ifd1Parsed||this.options.mergeOutput&&!t){e.next=3;break}return e.abrupt("return",(this.findIfd1Offset(),this.ifd1Offset>0&&(this.parseBlock(this.ifd1Offset,"ifd1"),this.ifd1Parsed=!0),this.ifd1));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"extractThumbnail",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t,n;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.headerParsed||this.parseHeader(),e.t0=this.ifd1Parsed,e.t0){e.next=5;break}return e.next=5,this.parseThumbnailBlock(!0);case 5:if(void 0!==this.ifd1){e.next=7;break}return e.abrupt("return");case 7:return t=this.ifd1.get(513),n=this.ifd1.get(514),e.abrupt("return",this.chunk.getUint8Array(t,n));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"image",get:function(){return this.ifd0}},{key:"thumbnail",get:function(){return this.ifd1}},{key:"createOutput",value:function(){for(var e,t,n,r={},i=0,o=ce;i<o.length;i++)if(!P(e=this[t=o[i]]))if(n=this.canTranslate?this.translateBlock(e,t):Object.fromEntries(e),this.options.mergeOutput){if("ifd1"===t)continue;Object.assign(r,n)}else r[t]=n;return this.makerNote&&(r.makerNote=this.makerNote),this.userComment&&(r.userComment=this.userComment),r}},{key:"assignToOutput",value:function(e,t){if(this.globalOptions.mergeOutput)Object.assign(e,t);else for(var n=0,r=Object.entries(t);n<r.length;n++){var i=(0,s.Z)(r[n],2),o=i[0],a=i[1];this.assignObjectToOutput(e,o,a)}}}],[{key:"canHandle",value:function(e,t){return 225===e.getUint8(t+1)&&1165519206===e.getUint32(t+4)&&0===e.getUint16(t+8)}}]),n}(Pe);function Oe(e,t,n,r){var i=e+t/60+n/3600;return"S"!==r&&"W"!==r||(i*=-1),i}
2D(Fe,"type","tiff"),D(Fe,"headerLength",10),W.set("tiff",Fe);var Me=Object.freeze({__proto__:null,default:Ce,Exifr:ke,fileParsers:H,segmentParsers:W,fileReaders:q,tagKeys:re,tagValues:ie,tagRevivers:oe,createDictionary:te,extendDictionary:ne,fetchUrlAsArrayBuffer:X,readBlobAsArrayBuffer:Q,chunkedProps:ae,otherSegments:se,segments:le,tiffBlocks:ce,segmentsAndBlocks:ue,tiffExtractables:de,inheritables:fe,allFormatters:pe,Options:ye,parse:Se}),Ze={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},Re=Object.assign({},Ze,{firstChunkSize:4e4,gps:[1,2,3,4]});function Le(e){return Be.apply(this,arguments)}function Be(){return Be=(0,g.Z)((0,v.Z)().mark((function e(t){var n,r,i,o,a;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new ke(Re),e.next=3,n.read(t);case 3:return e.next=5,n.parse();case 5:if(!(r=e.sent)||!r.gps){e.next=9;break}return i=r.gps,o=i.latitude,a=i.longitude,e.abrupt("return",{latitude:o,longitude:a});case 9:case"end":return e.stop()}}),e)}))),Be.apply(this,arguments)}var ze=Object.assign({},Ze,{tiff:!1,ifd1:!0,mergeOutput:!1});function Ue(e){return He.apply(this,arguments)}function He(){return He=(0,g.Z)((0,v.Z)().mark((function e(t){var n,r;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new ke(ze),e.next=3,n.read(t);case 3:return e.next=5,n.extractThumbnail();case 5:return r=e.sent,e.abrupt("return",r&&j?k.from(r):r);case 7:case"end":return e.stop()}}),e)}))),He.apply(this,arguments)}function We(e){return qe.apply(this,arguments)}function qe(){return qe=(0,g.Z)((0,v.Z)().mark((function e(t){var n,r;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.thumbnail(t);case 2:if(void 0===(n=e.sent)){e.next=6;break}return r=new Blob([n]),e.abrupt("return",URL.createObjectURL(r));case 6:case"end":return e.stop()}}),e,this)}))),qe.apply(this,arguments)}var Ve=Object.assign({},Ze,{firstChunkSize:4e4,ifd0:[274]});function Ge(e){return $e.apply(this,arguments)}function $e(){return $e=(0,g.Z)((0,v.Z)().mark((function e(t){var n,r;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new ke(Ve),e.next=3,n.read(t);case 3:return e.next=5,n.parse();case 5:if(!(r=e.sent)||!r.ifd0){e.next=8;break}return e.abrupt("return",r.ifd0[274]);case 8:case"end":return e.stop()}}),e)}))),$e.apply(this,arguments)}var Je=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}}),Ke=!0,Ye=!0;if("object"==typeof navigator){var Xe=navigator.userAgent;if(Xe.includes("iPad")||Xe.includes("iPhone")){var Qe=Xe.match(/OS (\d+)_(\d+)/);if(Qe){var et=(0,s.Z)(Qe,3),tt=et[1],nt=et[2];w=Number(tt)+.1*Number(nt);Ke=w<13.4,Ye=!1}}else if(Xe.includes("OS X 10")){var rt=Xe.match(/OS X 10[_.](\d+)/),it=(0,s.Z)(rt,2)[1];Ke=Ye=Number(it)<15}if(Xe.includes("Chrome/")){var ot=Xe.match(/Chrome\/(\d+)/),at=(0,s.Z)(ot,2)[1];Ke=Ye=Number(at)<81}else if(Xe.includes("Firefox/")){var st=Xe.match(/Firefox\/(\d+)/),lt=(0,s.Z)(st,2)[1];Ke=Ye=Number(lt)<77}}function ct(e){return ut.apply(this,arguments)}function ut(){return ut=(0,g.Z)((0,v.Z)().mark((function e(t){var n;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ge(t);case 2:return n=e.sent,e.abrupt("return",Object.assign({canvas:Ke,css:Ye},Je[n]));case 4:case"end":return e.stop()}}),e)}))),ut.apply(this,arguments)}var dt=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;(0,h.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),D((0,o.Z)(e),"ranges",new ft),0!==e.byteLength&&e.ranges.add(0,e.byteLength),e}return(0,m.Z)(n,[{key:"_tryExtend",value:function(e,t,n){if(0===e&&0===this.byteLength&&n){var r=new DataView(n.buffer||n,n.byteOffset,n.byteLength);this._swapDataView(r)}else{var i=e+t;if(i>this.byteLength){var o=this._extend(i).dataView;this._swapDataView(o)}}}},{key:"_extend",value:function(e){var t;t=j?k.allocUnsafe(e):new Uint8Array(e);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:n}}},{key:"subarray",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=t||this._lengthToEnd(e),r&&this._tryExtend(e,t),this.ranges.add(e,t),(0,c.Z)((0,u.Z)(n.prototype),"subarray",this).call(this,e,t)}},{key:"set",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this._tryExtend(t,e.byteLength,e);var r=(0,c.Z)((0,u.Z)(n.prototype),"set",this).call(this,e,t);return this.ranges.add(t,r.byteLength),r}},{key:"ensureChunk",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t,n){return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.chunked,!e.t0){e.next=6;break}if(e.t1=this.ranges.available(t,n),e.t1){e.next=6;break}return e.next=6,this.readChunk(t,n);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"available",value:function(e,t){return this.ranges.available(e,t)}}]),n}(B),ft=function(){function e(){(0,h.Z)(this,e),D(this,"list",[])}return(0,m.Z)(e,[{key:"length",get:function(){return this.list.length}},{key:"add",value:function(e,t){var n=e+t,r=this.list.filter((function(t){return pt(e,t.offset,n)||pt(e,t.end,n)}));if(r.length>0){e=Math.min.apply(Math,[e].concat((0,a.Z)(r.map((function(e){return e.offset}))))),n=Math.max.apply(Math,[n].concat((0,a.Z)(r.map((function(e){return e.end}))))),t=n-e;var i=r.shift();i.offset=e,i.length=t,i.end=n,this.list=this.list.filter((function(e){return!r.includes(e)}))}else this.list.push({offset:e,length:t,end:n})}},{key:"available",value:function(e,t){var n=e+t;return this.list.some((function(t){return t.offset<=e&&n<=t.end}))}}]),e}();function pt(e,t,n){return e<=t&&t<=n}var ht=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(e,r){var i;return(0,h.Z)(this,n),i=t.call(this,0),D((0,o.Z)(i),"chunksRead",0),i.input=e,i.options=r,i}return(0,m.Z)(n,[{key:"readWhole",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.chunked=!1,e.next=3,this.readChunk(this.nextChunkOffset);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"readChunked",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.chunked=!0,e.next=3,this.readChunk(0,this.options.firstChunkSize);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"readNextChunk",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t,n,r,i=arguments;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:this.nextChunkOffset,!this.fullyRead){e.next=3;break}return e.abrupt("return",(this.chunksRead++,!1));case 3:return n=this.options.chunkSize,e.next=6,this.readChunk(t,n);case 6:return r=e.sent,e.abrupt("return",!!r&&r.byteLength===n);case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"readChunk",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t,n){return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.chunksRead++,0===(n=this.safeWrapAddress(t,n))){e.next=2;break}return e.abrupt("return",this._readChunk(t,n));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"safeWrapAddress",value:function(e,t){return void 0!==this.size&&e+t>this.size?Math.max(0,this.size-e):t}},{key:"nextChunkOffset",get:function(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}},{key:"canReadNextChunk",get:function(){return this.chunksRead<this.options.chunkLimit}},{key:"fullyRead",get:function(){return void 0!==this.size&&this.nextChunkOffset===this.size}},{key:"read",value:function(){return this.options.chunked?this.readChunked():this.readWhole()}},{key:"close",value:function(){}}]),n}(dt);q.set("blob",function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"readWhole",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.chunked=!1,e.next=3,Q(this.input);case 3:t=e.sent,this._swapArrayBuffer(t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"readChunked",value:function(){return this.chunked=!0,this.size=this.input.size,(0,c.Z)((0,u.Z)(n.prototype),"readChunked",this).call(this)}},{key:"_readChunk",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t,n){var r,i,o;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n?t+n:void 0,i=this.input.slice(t,r),e.next=4,Q(i);case 4:return o=e.sent,e.abrupt("return",this.set(o,t,!0));case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(ht));var mt=Object.freeze({__proto__:null,default:Me,Exifr:ke,fileParsers:H,segmentParsers:W,fileReaders:q,tagKeys:re,tagValues:ie,tagRevivers:oe,createDictionary:te,extendDictionary:ne,fetchUrlAsArrayBuffer:X,readBlobAsArrayBuffer:Q,chunkedProps:ae,otherSegments:se,segments:le,tiffBlocks:ce,segmentsAndBlocks:ue,tiffExtractables:de,inheritables:fe,allFormatters:pe,Options:ye,parse:Se,gpsOnlyOptions:Re,gps:Le,thumbnailOnlyOptions:ze,thumbnail:Ue,thumbnailUrl:We,orientationOnlyOptions:Ve,orientation:Ge,rotations:Je,get rotateCanvas(){return Ke},get rotateCss(){return Ye},rotation:ct});q.set("url",function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"readWhole",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.chunked=!1,e.next=3,X(this.input);case 3:(t=e.sent)instanceof ArrayBuffer?this._swapArrayBuffer(t):t instanceof Uint8Array&&this._swapBuffer(t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_readChunk",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t,n){var r,i,o,a,s;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n?t+n-1:void 0,i=this.options.httpHeaders||{},(t||r)&&(i.range="bytes=".concat([t,r].join("-"))),e.next=4,E(this.input,{headers:i});case 4:return o=e.sent,e.next=7,o.arrayBuffer();case 7:if(a=e.sent,s=a.byteLength,416===o.status){e.next=11;break}return e.abrupt("return",(s!==n&&(this.size=t+s),this.set(a,t,!0)));case 11:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(ht)),B.prototype.getUint64=function(e){var t=this.getUint32(e),n=this.getUint32(e+4);return t<1048575?t<<32|n:void 0!==typeof S?(console.warn("Using BigInt because of type 64uint but JS can only handle 53b numbers."),S(t)<<S(32)|S(n)):void F("Trying to read 64b value but JS can only handle 53b numbers.")};var vt=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"parseBoxes",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=[];e<this.file.byteLength-4;){var n=this.parseBoxHead(e);if(t.push(n),0===n.length)break;e+=n.length}return t}},{key:"parseSubBoxes",value:function(e){e.boxes=this.parseBoxes(e.start)}},{key:"findBox",value:function(e,t){return void 0===e.boxes&&this.parseSubBoxes(e),e.boxes.find((function(e){return e.kind===t}))}},{key:"parseBoxHead",value:function(e){var t=this.file.getUint32(e),n=this.file.getString(e+4,4),r=e+8;return 1===t&&(t=this.file.getUint64(e+8),r+=8),{offset:e,length:t,kind:n,start:r}}},{key:"parseBoxFullHead",value:function(e){if(void 0===e.version){var t=this.file.getUint32(e.start);e.version=t>>24,e.start+=4}}}]),n}(_e),gt=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"parse",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t,n;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.file.getUint32(0),n=this.parseBoxHead(t);case 1:if("meta"===n.kind){e.next=8;break}return t+=n.length,e.next=5,this.file.ensureChunk(t,16);case 5:n=this.parseBoxHead(t);case 6:e.next=1;break;case 8:return e.next=10,this.file.ensureChunk(n.offset,n.length);case 10:if(this.parseBoxFullHead(n),this.parseSubBoxes(n),e.t0=this.options.icc.enabled,!e.t0){e.next=16;break}return e.next=16,this.findIcc(n);case 16:if(e.t1=this.options.tiff.enabled,!e.t1){e.next=20;break}return e.next=20,this.findExif(n);case 20:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"registerSegment",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t,n,r){var i;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.file.ensureChunk(n,r);case 2:i=this.file.subarray(n,r),this.createParser(t,i);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"findIcc",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t){var n,r,i;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(n=this.findBox(t,"iprp"))){e.next=3;break}return e.abrupt("return");
2case 3:if(void 0!==(r=this.findBox(n,"ipco"))){e.next=6;break}return e.abrupt("return");case 6:if(i=this.findBox(r,"colr"),e.t0=void 0!==i,!e.t0){e.next=11;break}return e.next=11,this.registerSegment("icc",i.offset+12,i.length);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"findExif",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t){var n,r,i,o,a,l,c,u;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(n=this.findBox(t,"iinf"))){e.next=3;break}return e.abrupt("return");case 3:if(void 0!==(r=this.findBox(t,"iloc"))){e.next=6;break}return e.abrupt("return");case 6:if(i=this.findExifLocIdInIinf(n),void 0!==(o=this.findExtentInIloc(r,i))){e.next=9;break}return e.abrupt("return");case 9:return a=(0,s.Z)(o,2),l=a[0],c=a[1],e.next=12,this.file.ensureChunk(l,c);case 12:return u=4+this.file.getUint32(l),l+=u,c-=u,e.next=17,this.registerSegment("tiff",l,c);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"findExifLocIdInIinf",value:function(e){this.parseBoxFullHead(e);var t,n,r,i=e.start,o=this.file.getUint16(i);for(i+=2;o--;){if(t=this.parseBoxHead(i),this.parseBoxFullHead(t),n=t.start,t.version>=2&&(r=3===t.version?4:2,"Exif"===this.file.getString(n+r+2,4)))return this.file.getUintBytes(n,r);i+=t.length}}},{key:"get8bits",value:function(e){var t=this.file.getUint8(e);return[t>>4,15&t]}},{key:"findExtentInIloc",value:function(e,t){this.parseBoxFullHead(e);var n=e.start,r=this.get8bits(n++),i=(0,s.Z)(r,2),o=i[0],a=i[1],l=this.get8bits(n++),c=(0,s.Z)(l,2),u=c[0],d=c[1],f=2===e.version?4:2,p=1===e.version||2===e.version?2:0,h=d+o+a,m=2===e.version?4:2,v=this.file.getUintBytes(n,m);for(n+=m;v--;){var g=this.file.getUintBytes(n,f);n+=f+p+2+u;var y=this.file.getUint16(n);if(n+=2,g===t)return y>1&&console.warn("ILOC box has more than one extent but we're only processing one\nPlease create an issue at https://github.com/MikeKovarik/exifr with this file"),[this.file.getUintBytes(n+d,o),this.file.getUintBytes(n+d+o,a)];n+=y*h}}}],[{key:"canHandle",value:function(e,t){if(0!==t)return!1;var n=e.getUint16(2);if(n>50)return!1;for(var r=16,i=[];r<n;)i.push(e.getString(r,4)),r+=4;return i.includes(this.type)}}]),n}(vt),yt=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n)}(gt);D(yt,"type","heic");var bt=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n)}(gt);D(bt,"type","avif"),H.set("heic",yt),H.set("avif",bt),te(re,["ifd0","ifd1"],[[256,"ImageWidth"],[257,"ImageHeight"],[258,"BitsPerSample"],[259,"Compression"],[262,"PhotometricInterpretation"],[270,"ImageDescription"],[271,"Make"],[272,"Model"],[273,"StripOffsets"],[274,"Orientation"],[277,"SamplesPerPixel"],[278,"RowsPerStrip"],[279,"StripByteCounts"],[282,"XResolution"],[283,"YResolution"],[284,"PlanarConfiguration"],[296,"ResolutionUnit"],[301,"TransferFunction"],[305,"Software"],[306,"ModifyDate"],[315,"Artist"],[316,"HostComputer"],[317,"Predictor"],[318,"WhitePoint"],[319,"PrimaryChromaticities"],[513,"ThumbnailOffset"],[514,"ThumbnailLength"],[529,"YCbCrCoefficients"],[530,"YCbCrSubSampling"],[531,"YCbCrPositioning"],[532,"ReferenceBlackWhite"],[700,"ApplicationNotes"],[33432,"Copyright"],[33723,"IPTC"],[34665,"ExifIFD"],[34675,"ICC"],[34853,"GpsIFD"],[330,"SubIFD"],[40965,"InteropIFD"],[40091,"XPTitle"],[40092,"XPComment"],[40093,"XPAuthor"],[40094,"XPKeywords"],[40095,"XPSubject"]]),te(re,"exif",[[33434,"ExposureTime"],[33437,"FNumber"],[34850,"ExposureProgram"],[34852,"SpectralSensitivity"],[34855,"ISO"],[34858,"TimeZoneOffset"],[34859,"SelfTimerMode"],[34864,"SensitivityType"],[34865,"StandardOutputSensitivity"],[34866,"RecommendedExposureIndex"],[34867,"ISOSpeed"],[34868,"ISOSpeedLatitudeyyy"],[34869,"ISOSpeedLatitudezzz"],[36864,"ExifVersion"],[36867,"DateTimeOriginal"],[36868,"CreateDate"],[36873,"GooglePlusUploadCode"],[36880,"OffsetTime"],[36881,"OffsetTimeOriginal"],[36882,"OffsetTimeDigitized"],[37121,"ComponentsConfiguration"],[37122,"CompressedBitsPerPixel"],[37377,"ShutterSpeedValue"],[37378,"ApertureValue"],[37379,"BrightnessValue"],[3738
20,"ExposureCompensation"],[37381,"MaxApertureValue"],[37382,"SubjectDistance"],[37383,"MeteringMode"],[37384,"LightSource"],[37385,"Flash"],[37386,"FocalLength"],[37393,"ImageNumber"],[37394,"SecurityClassification"],[37395,"ImageHistory"],[37396,"SubjectArea"],[37500,"MakerNote"],[37510,"UserComment"],[37520,"SubSecTime"],[37521,"SubSecTimeOriginal"],[37522,"SubSecTimeDigitized"],[37888,"AmbientTemperature"],[37889,"Humidity"],[37890,"Pressure"],[37891,"WaterDepth"],[37892,"Acceleration"],[37893,"CameraElevationAngle"],[40960,"FlashpixVersion"],[40961,"ColorSpace"],[40962,"ExifImageWidth"],[40963,"ExifImageHeight"],[40964,"RelatedSoundFile"],[41483,"FlashEnergy"],[41486,"FocalPlaneXResolution"],[41487,"FocalPlaneYResolution"],[41488,"FocalPlaneResolutionUnit"],[41492,"SubjectLocation"],[41493,"ExposureIndex"],[41495,"SensingMethod"],[41728,"FileSource"],[41729,"SceneType"],[41730,"CFAPattern"],[41985,"CustomRendered"],[41986,"ExposureMode"],[41987,"WhiteBalance"],[41988,"DigitalZoomRatio"],[41989,"FocalLengthIn35mmFormat"],[41990,"SceneCaptureType"],[41991,"GainControl"],[41992,"Contrast"],[41993,"Saturation"],[41994,"Sharpness"],[41996,"SubjectDistanceRange"],[42016,"ImageUniqueID"],[42032,"OwnerName"],[42033,"SerialNumber"],[42034,"LensInfo"],[42035,"LensMake"],[42036,"LensModel"],[42037,"LensSerialNumber"],[42080,"CompositeImage"],[42081,"CompositeImageCount"],[42082,"CompositeImageExposureTimes"],[42240,"Gamma"],[59932,"Padding"],[59933,"OffsetSchema"],[65e3,"OwnerName"],[65001,"SerialNumber"],[65002,"Lens"],[65100,"RawFile"],[65101,"Converter"],[65102,"WhiteBalance"],[65105,"Exposure"],[65106,"Shadows"],[65107,"Brightness"],[65108,"Contrast"],[65109,"Saturation"],[65110,"Sharpness"],[65111,"Smoothness"],[65112,"MoireFilter"],[40965,"InteropIFD"]]),te(re,"gps",[[0,"GPSVersionID"],[1,"GPSLatitudeRef"],[2,"GPSLatitude"],[3,"GPSLongitudeRef"],[4,"GPSLongitude"],[5,"GPSAltitudeRef"],[6,"GPSAltitude"],[7,"GPSTimeStamp"],[8,"GPSSatellites"],[9,"GPSStatus"],[10,"GPSMeasureMode"],[11,"GPSDOP"],[12,"GPSSpeedRef"],[13,"GPSSpeed"],[14,"GPSTrackRef"],[15,"GPSTrack"],[16,"GPSImgDirectionRef"],[17,"GPSImgDirection"],[18,"GPSMapDatum"],[19,"GPSDestLatitudeRef"],[20,"GPSDestLatitude"],[21,"GPSDestLongitudeRef"],[22,"GPSDestLongitude"],[23,"GPSDestBearingRef"],[24,"GPSDestBearing"],[25,"GPSDestDistanceRef"],[26,"GPSDestDistance"],[27,"GPSProcessingMethod"],[28,"GPSAreaInformation"],[29,"GPSDateStamp"],[30,"GPSDifferential"],[31,"GPSHPositioningError"]]),te(ie,["ifd0","ifd1"],[[274,{1:"Horizontal (normal)",2:"Mirror horizontal",3:"Rotate 180",4:"Mirror vertical",5:"Mirror horizontal and rotate 270 CW",6:"Rotate 90 CW",7:"Mirror horizontal and rotate 90 CW",8:"Rotate 270 CW"}],[296,{1:"None",2:"inches",3:"cm"}]]);var xt=te(ie,"exif",[[34850,{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"}],[37121,{0:"-",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}],[37383,{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"}],[37384,{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"}],[37385,{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flas
2h fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"}],[41495,{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"}],[41728,{1:"Film Scanner",2:"Reflection Print Scanner",3:"Digital Camera"}],[41729,{1:"Directly photographed"}],[41985,{0:"Normal",1:"Custom",2:"HDR (no original saved)",3:"HDR (original saved)",4:"Original (for HDR)",6:"Panorama",7:"Portrait HDR",8:"Portrait"}],[41986,{0:"Auto",1:"Manual",2:"Auto bracket"}],[41987,{0:"Auto",1:"Manual"}],[41990,{0:"Standard",1:"Landscape",2:"Portrait",3:"Night",4:"Other"}],[41991,{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"}],[41996,{0:"Unknown",1:"Macro",2:"Close",3:"Distant"}],[42080,{0:"Unknown",1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"}]]),wt={1:"No absolute unit of measurement",2:"Inch",3:"Centimeter"};xt.set(37392,wt),xt.set(41488,wt);var kt={0:"Normal",1:"Low",2:"High"};function St(e){return"object"==typeof e&&void 0!==e.length?e[0]:e}function jt(e){var t=Array.from(e).slice(1);return t[1]>15&&(t=t.map((function(e){return String.fromCharCode(e)}))),"0"!==t[2]&&0!==t[2]||t.pop(),t.join(".")}function Ct(e){if("string"==typeof e){var t=e.trim().split(/[-: ]/g).map(Number),n=(0,s.Z)(t,6),r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],c=n[5],u=new Date(r,i-1,o);return Number.isNaN(a)||Number.isNaN(l)||Number.isNaN(c)||(u.setHours(a),u.setMinutes(l),u.setSeconds(c)),Number.isNaN(+u)?e:u}}function _t(e){if("string"==typeof e)return e;var t=[];if(0===e[1]&&0===e[e.length-1])for(var n=0;n<e.length;n+=2)t.push(Et(e[n+1],e[n]));else for(var r=0;r<e.length;r+=2)t.push(Et(e[r],e[r+1]));return O(String.fromCodePoint.apply(String,t))}function Et(e,t){return e<<8|t}xt.set(41992,kt),xt.set(41993,kt),xt.set(41994,kt),te(oe,["ifd0","ifd1"],[[50827,function(e){return"string"!=typeof e?L(e):e}],[306,Ct],[40091,_t],[40092,_t],[40093,_t],[40094,_t],[40095,_t]]),te(oe,"exif",[[40960,jt],[36864,jt],[36867,Ct],[36868,Ct],[40962,St],[40963,St]]),te(oe,"gps",[[0,function(e){return Array.from(e).join(".")}],[7,function(e){return Array.from(e).join(":")}]]);var Nt=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"normalizeInput",value:function(e){return"string"==typeof e?e:B.from(e).getString()}},{key:"parse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chunk;if(!this.localOptions.parse)return e;e=function(e){var t,n={},r={},i=(0,l.Z)(Zt);try{for(i.s();!(t=i.n()).done;){var o=t.value;n[o]=[],r[o]=0}}catch(a){i.e(a)}finally{i.f()}return e.replace(Rt,(function(e,t,i){if("<"===t){var o=++r[i];return n[i].push(o),"".concat(e,"#").concat(o)}return"".concat(e,"#").concat(n[i].pop())}))}(e);var t=Dt.findAll(e,"rdf","Description");0===t.length&&t.push(new Dt("rdf","Description",void 0,e));var n,r={},i=(0,l.Z)(t);try{for(i.s();!(n=i.n()).done;){var o,a=n.value,s=(0,l.Z)(a.properties);try{for(s.s();!(o=s.n()).done;){var c=o.value;Tt(c,Ft(c.ns,r))}}catch(u){s.e(u)}finally{s.f()}}}catch(u){i.e(u)}finally{i.f()}return function(e){for(var t in e)void 0===(e[t]=T(e[t]))&&delete e[t];return T(e)}(r)}},{key:"assignToOutput",value:function(e,t){if(this.localOptions.parse)for(var n=0,r=Object.entries(t);n<r.length;n++){var i=(0,s.Z)(r[n],2),o=i[0],a=i[1];switch(o){case"tiff":this.assignObjectToOutput(e,"ifd0",a);break;case"exif":this.assignObjectToOutput(e,"exif",a);break;case"xmlns":break;default:this.assignObjectToOutput(e,o,a)}}else e.xmp=t}}],[{key:"canHandle",value:function(e,t){return 225===e.getUint8(t+1)&&1752462448===e.getUint32(t+4)&&"http://ns.adobe.com/"===e.getString(t+4,20)}},{key:"headerLength",value:function(e,t){return"http://ns.adobe.com/xmp/extension/"===e.getString(t+4,34)?79:33}},{key:"findPosition",value:function(e,t){var r=(0,c.Z)((0,u.Z)(n),"findPosition",this).call(this,e,t);return r.multiSegment=r.extended=79===r.headerLength,r.multiSegment?(r.chunkCount=e.getUint8(t+72),r.chunkNumber=e.getUint8(t+76),0!==e.getUint8(t+77)&&r.chunkNumber++):(r.chunkCount=1/0,r.chunkNumber=-1),r}},{key:"handleMultiSegments",value:function(e){return e.map((function(e){return e.chunk.getString()})).join("")}}]),n}(Ee);D(Nt,"type","xmp"),D(Nt,"multiSegment",!0),W.set("xmp",Nt);var At=function(){function e(t,n,r){(0,h.Z)(this,e),this.ns=t,this.name=n,this.value=r}return(0,m.Z)(e,[{key:"serialize",value:function(){return this.value}}],[{key:"findAll",value:function(t){return Ot(t,/([a-zA-Z0-9-]+):([a-zA-Z0-9-]+)=("[^"]*"|'[^']*')/gm).map(e.unpackMatch)}},{key:"unpackMatch",value:function(t){var n=t[1],r=t[2],i=t[3].slice(1,-1);return new e(n,r,i=Mt(i))}}]),e}(),Dt=function(){function e(t,n,r,i){(0,h.Z)(this,e),this.ns=t,this.name=n,this.attrString=r,this.innerXml=i,this.attrs=At.f
2indAll(r),this.children=e.findAll(i),this.value=0===this.children.length?Mt(i):void 0,this.properties=[].concat((0,a.Z)(this.attrs),(0,a.Z)(this.children))}return(0,m.Z)(e,[{key:"isPrimitive",get:function(){return void 0!==this.value&&0===this.attrs.length&&0===this.children.length}},{key:"isListContainer",get:function(){return 1===this.children.length&&this.children[0].isList}},{key:"isList",get:function(){var e=this.ns,t=this.name;return"rdf"===e&&("Seq"===t||"Bag"===t||"Alt"===t)}},{key:"isListItem",get:function(){return"rdf"===this.ns&&"li"===this.name}},{key:"serialize",value:function(){if(0!==this.properties.length||void 0!==this.value){if(this.isPrimitive)return this.value;if(this.isListContainer)return this.children[0].serialize();if(this.isList)return Pt(this.children.map(It));if(this.isListItem&&1===this.children.length&&0===this.attrs.length)return this.children[0].serialize();var e,t={},n=(0,l.Z)(this.properties);try{for(n.s();!(e=n.n()).done;){Tt(e.value,t)}}catch(r){n.e(r)}finally{n.f()}return void 0!==this.value&&(t.value=this.value),T(t)}}}],[{key:"findAll",value:function(t,n,r){if(void 0!==n||void 0!==r){n=n||"[\\w\\d-]+",r=r||"[\\w\\d-]+";var i=new RegExp("<(".concat(n,"):(").concat(r,")(#\\d+)?((\\s+?[\\w\\d-:]+=(\"[^\"]*\"|'[^']*'))*\\s*)(\\/>|>([\\s\\S]*?)<\\/\\1:\\2\\3>)"),"gm")}else i=/<([\w\d-]+):([\w\d-]+)(#\d+)?((\s+?[\w\d-:]+=("[^"]*"|'[^']*'))*\s*)(\/>|>([\s\S]*?)<\/\1:\2\3>)/gm;return Ot(t,i).map(e.unpackMatch)}},{key:"unpackMatch",value:function(t){return new e(t[1],t[2],t[4],t[8])}}]),e}();function Tt(e,t){var n=e.serialize();void 0!==n&&(t[e.name]=n)}var It=function(e){return e.serialize()},Pt=function(e){return 1===e.length?e[0]:e},Ft=function(e,t){return t[e]?t[e]:t[e]={}};function Ot(e,t){var n,r=[];if(!e)return r;for(;null!==(n=t.exec(e));)r.push(n);return r}function Mt(e){if(!function(e){return null==e||"null"===e||"undefined"===e||""===e||""===e.trim()}(e)){var t=Number(e);if(!Number.isNaN(t))return t;var n=e.toLowerCase();return"true"===n||"false"!==n&&e.trim()}}var Zt=["rdf:li","rdf:Seq","rdf:Bag","rdf:Alt","rdf:Description"],Rt=new RegExp("(<|\\/)(".concat(Zt.join("|"),")"),"g"),Lt=Object.freeze({__proto__:null,default:mt,Exifr:ke,fileParsers:H,segmentParsers:W,fileReaders:q,tagKeys:re,tagValues:ie,tagRevivers:oe,createDictionary:te,extendDictionary:ne,fetchUrlAsArrayBuffer:X,readBlobAsArrayBuffer:Q,chunkedProps:ae,otherSegments:se,segments:le,tiffBlocks:ce,segmentsAndBlocks:ue,tiffExtractables:de,inheritables:fe,allFormatters:pe,Options:ye,parse:Se,gpsOnlyOptions:Re,gps:Le,thumbnailOnlyOptions:ze,thumbnail:Ue,thumbnailUrl:We,orientationOnlyOptions:Ve,orientation:Ge,rotations:Je,get rotateCanvas(){return Ke},get rotateCss(){return Ye},rotation:ct});var Bt=_("fs",(function(e){return e.promises}));q.set("fs",function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"readWhole",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.chunked=!1,e.next=3,Bt;case 3:return this.fs=e.sent,e.next=6,this.fs.readFile(this.input);case 6:t=e.sent,this._swapBuffer(t);case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"readChunked",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.chunked=!0,e.next=3,Bt;case 3:return this.fs=e.sent,e.next=6,this.open();case 6:return e.next=8,this.readChunk(0,this.options.firstChunkSize);case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"open",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=void 0===this.fh,!e.t0){e.next=8;break}return e.next=4,this.fs.open(this.input,"r");case 4:return this.fh=e.sent,e.next=7,this.fh.stat(this.input);case 7:this.size=e.sent.size;case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_readChunk",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t,n){var r;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=void 0===this.fh,!e.t0){e.next=4;break}return e.next=4,this.open();case 4:return t+n>this.size&&(n=this.size-t),r=this.subarray(t,n,!0),e.next=8,this.fh.read(r.dataView,0,n,t);case 8:return e.abrupt("return",r);case 9:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"close",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.fh){e.next=5;break}return t=this.fh,this.fh=void 0,e.next=5,t.close();case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),n}(ht)),q.set("base64",function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;(0,h.Z)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).input=e.input.replace(/^data:([^;]+);base64,/gim,""),e.size=e.input.length/4*3,e.input.endsWith("==")?e.size-=2:e.input.endsWith("=")&&(e.size-=1),e}return(0,m.Z)(n,[{key:"_readChunk",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t,n){var r,i,o,a,s,l,c,u,d,f,p;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.input,void 0===t?(t=0,r=0,i=0):(r=4*Math.floor(t/3),i=t-r/4*3),void 0===n&&(n=this.size),a=t+n,s=r+4*Math.ceil(a/3),o=o.slice(r,s),l=Math.min(n,this.size-t),!j){e.next=8;break}return c=k.from(o,"base64").slice(i,i+l),e.abrupt("return",this.set(c,t,!0));case 8:for(u=this.subarray(t,l,!0),d=atob(o),f=u.toUint8(),p=0;p<l;
2p++)f[p]=d.charCodeAt(i+p);return e.abrupt("return",u);case 11:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(ht));var zt=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"extendOptions",value:function(e){var t=e.ifd0,n=e.xmp,r=e.iptc,i=e.icc;n.enabled&&t.deps.add(700),r.enabled&&t.deps.add(33723),i.enabled&&t.deps.add(34675),t.finalizeFilters()}},{key:"parse",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t,n,r,i,o,a;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.options,n=t.tiff,r=t.xmp,i=t.iptc,o=t.icc,!(n.enabled||r.enabled||i.enabled||o.enabled)){e.next=12;break}return a=Math.max(M(this.options),this.options.chunkSize),e.next=5,this.file.ensureChunk(0,a);case 5:return this.createParser("tiff",this.file),this.parsers.tiff.parseHeader(),e.next=9,this.parsers.tiff.parseIfd0Block();case 9:this.adaptTiffPropAsSegment("xmp"),this.adaptTiffPropAsSegment("iptc"),this.adaptTiffPropAsSegment("icc");case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"adaptTiffPropAsSegment",value:function(e){if(this.parsers.tiff[e]){var t=this.parsers.tiff[e];this.injectSegment(e,t)}}}],[{key:"canHandle",value:function(e,t){return 18761===t||19789===t}}]),n}(_e);D(zt,"type","tiff"),H.set("tiff",zt);var Ut=_("zlib"),Ht=["ihdr","iccp","text","itxt","exif"],Wt=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){var e;(0,h.Z)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),D((0,o.Z)(e),"catchError",(function(t){return e.errors.push(t)})),D((0,o.Z)(e),"metaChunks",[]),D((0,o.Z)(e),"unknownChunks",[]),e}return(0,m.Z)(n,[{key:"parse",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.file,e.next=3,this.findPngChunksInRange(8,t.byteLength);case 3:return e.next=5,this.readSegments(this.metaChunks);case 5:return this.findIhdr(),this.parseTextChunks(),e.next=9,this.findExif().catch(this.catchError);case 9:return e.next=11,this.findXmp().catch(this.catchError);case 11:return e.next=13,this.findIcc().catch(this.catchError);case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"findPngChunksInRange",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(t,n){var r,i,o,a,s,l;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=this.file;t<n;)i=r.getUint32(t),o=r.getUint32(t+4),a=r.getString(t+4,4).toLowerCase(),l={type:a,offset:t,length:s=i+4+4+4,start:t+4+4,size:i,marker:o},Ht.includes(a)?this.metaChunks.push(l):this.unknownChunks.push(l),t+=s;case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"parseTextChunks",value:function(){var e,t=this.metaChunks.filter((function(e){return"text"===e.type})),n=(0,l.Z)(t);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=this.file.getString(r.start,r.size).split("\0"),o=(0,s.Z)(i,2),a=o[0],c=o[1];this.injectKeyValToIhdr(a,c)}}catch(u){n.e(u)}finally{n.f()}}},{key:"injectKeyValToIhdr",value:function(e,t){var n=this.parsers.ihdr;n&&n.raw.set(e,t)}},{key:"findIhdr",value:function(){var e=this.metaChunks.find((function(e){return"ihdr"===e.type}));e&&!1!==this.options.ihdr.enabled&&this.createParser("ihdr",e.chunk)}},{key:"findExif",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=this.metaChunks.find((function(e){return"exif"===e.type})))&&this.injectSegment("tiff",t.chunk);case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"findXmp",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t,n,r,i;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.metaChunks.filter((function(e){return"itxt"===e.type})),n=(0,l.Z)(t);try{for(n.s();!(r=n.n()).done;)"XML:com.adobe.xmp"===(i=r.value).chunk.getString(0,17)&&this.injectSegment("xmp",i.chunk)}catch(o){n.e(o)}finally{n.f()}case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"findIcc",value:function(){var e=(0,g.Z)((0,v.Z)().mark((function e(){var t,n,r,i,o,a,s,l;return(0,v.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.metaChunks.find((function(e){return"iccp"===e.type}))){e.next=3;break}return e.abrupt("return");case 3:for(n=t.chunk,r=n.getUint8Array(0,81),i=0;i<80&&0!==r[i];)i++;if(o=i+2,a=n.getString(0,i),this.injectKeyValToIhdr("ProfileName",a),!w){e.next=12;break}return e.next=9,Ut;case 9:s=e.sent,l=n.getUint8Array(o),l=s.inflateSync(l),this.injectSegment("icc",l);case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}],[{key:"canHandle",value:function(e,t){return 35152===t&&2303741511===e.getUint32(0)&&218765834===e.getUint32(4)}}]),n}(_e);D(Wt,"type","png"),H.set("png",Wt),te(re,"interop",[[1,"InteropIndex"],[2,"InteropVersion"],[4096,"RelatedImageFileFormat"],[4097,"RelatedImageWidth"],[4098,"RelatedImageHeight"]]),ne(re,"ifd0",[[11,"ProcessingSoftw
2are"],[254,"SubfileType"],[255,"OldSubfileType"],[263,"Thresholding"],[264,"CellWidth"],[265,"CellLength"],[266,"FillOrder"],[269,"DocumentName"],[280,"MinSampleValue"],[281,"MaxSampleValue"],[285,"PageName"],[286,"XPosition"],[287,"YPosition"],[290,"GrayResponseUnit"],[297,"PageNumber"],[321,"HalftoneHints"],[322,"TileWidth"],[323,"TileLength"],[332,"InkSet"],[337,"TargetPrinter"],[18246,"Rating"],[18249,"RatingPercent"],[33550,"PixelScale"],[34264,"ModelTransform"],[34377,"PhotoshopSettings"],[50706,"DNGVersion"],[50707,"DNGBackwardVersion"],[50708,"UniqueCameraModel"],[50709,"LocalizedCameraModel"],[50736,"DNGLensInfo"],[50739,"ShadowScale"],[50740,"DNGPrivateData"],[33920,"IntergraphMatrix"],[33922,"ModelTiePoint"],[34118,"SEMInfo"],[34735,"GeoTiffDirectory"],[34736,"GeoTiffDoubleParams"],[34737,"GeoTiffAsciiParams"],[50341,"PrintIM"],[50721,"ColorMatrix1"],[50722,"ColorMatrix2"],[50723,"CameraCalibration1"],[50724,"CameraCalibration2"],[50725,"ReductionMatrix1"],[50726,"ReductionMatrix2"],[50727,"AnalogBalance"],[50728,"AsShotNeutral"],[50729,"AsShotWhiteXY"],[50730,"BaselineExposure"],[50731,"BaselineNoise"],[50732,"BaselineSharpness"],[50734,"LinearResponseLimit"],[50735,"CameraSerialNumber"],[50741,"MakerNoteSafety"],[50778,"CalibrationIlluminant1"],[50779,"CalibrationIlluminant2"],[50781,"RawDataUniqueID"],[50827,"OriginalRawFileName"],[50828,"OriginalRawFileData"],[50831,"AsShotICCProfile"],[50832,"AsShotPreProfileMatrix"],[50833,"CurrentICCProfile"],[50834,"CurrentPreProfileMatrix"],[50879,"ColorimetricReference"],[50885,"SRawType"],[50898,"PanasonicTitle"],[50899,"PanasonicTitle2"],[50931,"CameraCalibrationSig"],[50932,"ProfileCalibrationSig"],[50933,"ProfileIFD"],[50934,"AsShotProfileName"],[50936,"ProfileName"],[50937,"ProfileHueSatMapDims"],[50938,"ProfileHueSatMapData1"],[50939,"ProfileHueSatMapData2"],[50940,"ProfileToneCurve"],[50941,"ProfileEmbedPolicy"],[50942,"ProfileCopyright"],[50964,"ForwardMatrix1"],[50965,"ForwardMatrix2"],[50966,"PreviewApplicationName"],[50967,"PreviewApplicationVersion"],[50968,"PreviewSettingsName"],[50969,"PreviewSettingsDigest"],[50970,"PreviewColorSpace"],[50971,"PreviewDateTime"],[50972,"RawImageDigest"],[50973,"OriginalRawFileDigest"],[50981,"ProfileLookTableDims"],[50982,"ProfileLookTableData"],[51043,"TimeCodes"],[51044,"FrameRate"],[51058,"TStop"],[51081,"ReelName"],[51089,"OriginalDefaultFinalSize"],[51090,"OriginalBestQualitySize"],[51091,"OriginalDefaultCropSize"],[51105,"CameraLabel"],[51107,"ProfileHueSatMapEncoding"],[51108,"ProfileLookTableEncoding"],[51109,"BaselineExposureOffset"],[51110,"DefaultBlackRender"],[51111,"NewRawImageDigest"],[51112,"RawToPreviewGain"]]);var qt=[[273,"StripOffsets"],[279,"StripByteCounts"],[288,"FreeOffsets"],[289,"FreeByteCounts"],[291,"GrayResponseCurve"],[292,"T4Options"],[293,"T6Options"],[300,"ColorResponseUnit"],[320,"ColorMap"],[324,"TileOffsets"],[325,"TileByteCounts"],[326,"BadFaxLines"],[327,"CleanFaxData"],[328,"ConsecutiveBadFaxLines"],[330,"SubIFD"],[333,"InkNames"],[334,"NumberofInks"],[336,"DotRange"],[338,"ExtraSamples"],[339,"SampleFormat"],[340,"SMinSampleValue"],[341,"SMaxSampleValue"],[342,"TransferRange"],[343,"ClipPath"],[344,"XClipPathUnits"],[345,"YClipPathUnits"],[346,"Indexed"],[347,"JPEGTables"],[351,"OPIProxy"],[400,"GlobalParametersIFD"],[401,"ProfileType"],[402,"FaxProfile"],[403,"CodingMethods"],[404,"VersionYear"],[405,"ModeNumber"],[433,"Decode"],[434,"DefaultImageColor"],[435,"T82Options"],[437,"JPEGTables"],[512,"JPEGProc"],[515,"JPEGRestartInterval"],[517,"JPEGLosslessPredictors"],[518,"JPEGPointTransforms"],[519,"JPEGQTables"],[520,"JPEGDCTables"],[521,"JPEGACTables"],[559,"StripRowCounts"],[999,"USPTOMiscellaneous"],[18247,"XP_DIP_XML"],[18248,"StitchInfo"],[28672,"SonyRawFileType"],[28688,"SonyToneCurve"],[28721,"VignettingCorrection"],[28722,"VignettingCorrParams"],[28724,"ChromaticAberrationCorrection"],[28725,"ChromaticAberrationCorrParams"],[28726,"DistortionCorrection"],[28727,"DistortionCorrParams"],[29895,"SonyCropTopLeft"],[29896,"SonyCropSize"],[32781,"ImageID"],[32931,"WangTag1"],[32932,"WangAnnotation"],[32933,"WangTag3"],[32934,"WangTag4"],[32953,"ImageReferencePoints"],[32954,"RegionXformTackPoint"],[32955,"WarpQuadrilateral"],[32956,"AffineTransformMat"],[32995,"Matteing"],[32996,"DataType"],[32997,"ImageDepth"],[32998,"TileDepth"],[33300,"ImageFullWidth"],[33301,"ImageFullHeight"],[33302,"TextureFormat"],[33303,"WrapModes"],[33304,"FovCot"],[33305,"MatrixWorldToScreen"],[33306,"MatrixWorldToCamera"],[33405,"Model2"],[33421,"CFARepeatPatternDim"],[33422,"CFAPattern2"],[33423,"BatteryLevel"],[33424,"KodakIFD"],[33445,"MDFileTag"],[33446,"MDScalePixel"],[33447,"MDColorTable"],[33448,"MDLabName"],[33449,"MDSampleInfo"],[33450,"MDPrepDate"],[33451,"MDPrepTime"],[33452,"MDFileUnits"],[33589,"AdventScale"],[33590,"AdventRevision"],[33628,"UIC1Tag"],[33629,"UIC2Tag"],[33630,"UIC3Tag"],[33631,"UIC4Tag"],[33918,"IntergraphPacketData"],[33919,"IntergraphFlagRegisters"],[33921,"INGRReserved"],[34016,"Site"],[34017,"ColorSequence"],[34018,"IT8Header"],[34019,"RasterPadding"],[34020,"BitsPerRunLength"],[34021,"BitsPerExtendedRunLength"],[34022,"ColorTable"],[34023,"ImageColorIndicator"],[34024,"Backgroun
2dColorIndicator"],[34025,"ImageColorValue"],[34026,"BackgroundColorValue"],[34027,"PixelIntensityRange"],[34028,"TransparencyIndicator"],[34029,"ColorCharacterization"],[34030,"HCUsage"],[34031,"TrapIndicator"],[34032,"CMYKEquivalent"],[34152,"AFCP_IPTC"],[34232,"PixelMagicJBIGOptions"],[34263,"JPLCartoIFD"],[34306,"WB_GRGBLevels"],[34310,"LeafData"],[34687,"TIFF_FXExtensions"],[34688,"MultiProfiles"],[34689,"SharedData"],[34690,"T88Options"],[34732,"ImageLayer"],[34750,"JBIGOptions"],[34856,"Opto-ElectricConvFactor"],[34857,"Interlace"],[34908,"FaxRecvParams"],[34909,"FaxSubAddress"],[34910,"FaxRecvTime"],[34929,"FedexEDR"],[34954,"LeafSubIFD"],[37387,"FlashEnergy"],[37388,"SpatialFrequencyResponse"],[37389,"Noise"],[37390,"FocalPlaneXResolution"],[37391,"FocalPlaneYResolution"],[37392,"FocalPlaneResolutionUnit"],[37397,"ExposureIndex"],[37398,"TIFF-EPStandardID"],[37399,"SensingMethod"],[37434,"CIP3DataFile"],[37435,"CIP3Sheet"],[37436,"CIP3Side"],[37439,"StoNits"],[37679,"MSDocumentText"],[37680,"MSPropertySetStorage"],[37681,"MSDocumentTextPosition"],[37724,"ImageSourceData"],[40965,"InteropIFD"],[40976,"SamsungRawPointersOffset"],[40977,"SamsungRawPointersLength"],[41217,"SamsungRawByteOrder"],[41218,"SamsungRawUnknown"],[41484,"SpatialFrequencyResponse"],[41485,"Noise"],[41489,"ImageNumber"],[41490,"SecurityClassification"],[41491,"ImageHistory"],[41494,"TIFF-EPStandardID"],[41995,"DeviceSettingDescription"],[42112,"GDALMetadata"],[42113,"GDALNoData"],[44992,"ExpandSoftware"],[44993,"ExpandLens"],[44994,"ExpandFilm"],[44995,"ExpandFilterLens"],[44996,"ExpandScanner"],[44997,"ExpandFlashLamp"],[46275,"HasselbladRawImage"],[48129,"PixelFormat"],[48130,"Transformation"],[48131,"Uncompressed"],[48132,"ImageType"],[48256,"ImageWidth"],[48257,"ImageHeight"],[48258,"WidthResolution"],[48259,"HeightResolution"],[48320,"ImageOffset"],[48321,"ImageByteCount"],[48322,"AlphaOffset"],[48323,"AlphaByteCount"],[48324,"ImageDataDiscard"],[48325,"AlphaDataDiscard"],[50215,"OceScanjobDesc"],[50216,"OceApplicationSelector"],[50217,"OceIDNumber"],[50218,"OceImageLogic"],[50255,"Annotations"],[50459,"HasselbladExif"],[50547,"OriginalFileName"],[50560,"USPTOOriginalContentType"],[50656,"CR2CFAPattern"],[50710,"CFAPlaneColor"],[50711,"CFALayout"],[50712,"LinearizationTable"],[50713,"BlackLevelRepeatDim"],[50714,"BlackLevel"],[50715,"BlackLevelDeltaH"],[50716,"BlackLevelDeltaV"],[50717,"WhiteLevel"],[50718,"DefaultScale"],[50719,"DefaultCropOrigin"],[50720,"DefaultCropSize"],[50733,"BayerGreenSplit"],[50737,"ChromaBlurRadius"],[50738,"AntiAliasStrength"],[50752,"RawImageSegmentation"],[50780,"BestQualityScale"],[50784,"AliasLayerMetadata"],[50829,"ActiveArea"],[50830,"MaskedAreas"],[50935,"NoiseReductionApplied"],[50974,"SubTileBlockSize"],[50975,"RowInterleaveFactor"],[51008,"OpcodeList1"],[51009,"OpcodeList2"],[51022,"OpcodeList3"],[51041,"NoiseProfile"],[51114,"CacheVersion"],[51125,"DefaultUserCrop"],[51157,"NikonNEFInfo"],[65024,"KdcIFD"]];ne(re,"ifd0",qt),ne(re,"exif",qt),te(ie,"gps",[[23,{M:"Magnetic North",T:"True North"}],[25,{K:"Kilometers",M:"Miles",N:"Nautical Miles"}]]);var Vt=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"parse",value:function(){return this.parseTags(),this.translate(),this.output}},{key:"parseTags",value:function(){this.raw=new Map([[0,this.chunk.getUint16(0)],[2,this.chunk.getUint8(2)],[3,this.chunk.getUint16(3)],[5,this.chunk.getUint16(5)],[7,this.chunk.getUint8(7)],[8,this.chunk.getUint8(8)]])}}],[{key:"canHandle",value:function(e,t){return 224===e.getUint8(t+1)&&1246120262===e.getUint32(t+4)&&0===e.getUint8(t+8)}}]),n}(Ee);D(Vt,"type","jfif"),D(Vt,"headerLength",9),W.set("jfif",Vt),te(re,"jfif",[[0,"JFIFVersion"],[2,"ResolutionUnit"],[3,"XResolution"],[5,"YResolution"],[7,"ThumbnailWidth"],[8,"ThumbnailHeight"]]);var Gt=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"parse",value:function(){return this.parseTags(),this.translate(),this.output}},{key:"parseTags",value:function(){this.raw=new Map([[0,this.chunk.getUint32(0)],[4,this.chunk.getUint32(4)],[8,this.chunk.getUint8(8)],[9,this.chunk.getUint8(9)],[10,this.chunk.getUint8(10)],[11,this.chunk.getUint8(11)],[12,this.chunk.getUint8(12)]].concat((0,a.Z)(Array.from(this.raw))))}}]),n}(Ee);D(Gt,"type","ihdr"),W.set("ihdr",Gt),te(re,"ihdr",[[0,"ImageWidth"],[4,"ImageHeight"],[8,"BitDepth"],[9,"ColorType"],[10,"Compression"],[11,"Filter"],[12,"Interlace"]]),te(ie,"ihdr",[[9,{0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha",DEFAULT:"Unknown"}],[10,{0:"Deflate/Inflate",DEFAULT:"Unknown"}],[11,{0:"Adaptive",DEFAULT:"Unknown"}],[12,{0:"Noninterlaced",1:"Adam7 Interlace",DEFAULT:"Unknown"}]]);var $t=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"parse",value:function(){return this.raw=new Map,this.parseHeader(),this.parseTags(),this.translate(),this.output}},{key:"parseHeader",value:function(){var e=this.raw;this.chunk.byteLength<84&&F("ICC header is too short");for(var t=0,n=Object.entries(Jt);t<n.length;t++){var r=(0,s.Z)(n[t],2),i=r[0],o=r[1];i=parseInt(i,10);var a=o(this.chunk,i);"\0\0\0\0"!==a&&e.set(i,a)}}},{key:"parseTags",value:function(){for(var e,t,n,r,i,o=this.raw,a=this.chunk.getUint32(128),s=132,l=this.chunk.byteLength;a--;){if(e=this.chunk.getString(s,4),t=this.chunk.getUint32(s+4),n=this.chunk.getUint32(s+8),r=this.chunk.getString(t,4),t+n>l)return void console.warn("reached the end of the first ICC chunk. Enable options.tiff.multiSegment to read all ICC segments.");void 0!==(i=this.parseTag(r,t,n))&&"\0\0\0\0"!==i&&o.set(e,i),s+=12}}}
2,{key:"parseTag",value:function(e,t,n){switch(e){case"desc":return this.parseDesc(t);case"mluc":return this.parseMluc(t);case"text":return this.parseText(t,n);case"sig ":return this.parseSig(t)}if(!(t+n>this.chunk.byteLength))return this.chunk.getUint8Array(t,n)}},{key:"parseDesc",value:function(e){var t=this.chunk.getUint32(e+8)-1;return O(this.chunk.getString(e+12,t))}},{key:"parseText",value:function(e,t){return O(this.chunk.getString(e+8,t-8))}},{key:"parseSig",value:function(e){return O(this.chunk.getString(e+8,4))}},{key:"parseMluc",value:function(e){for(var t=this.chunk,n=t.getUint32(e+8),r=t.getUint32(e+12),i=e+16,o=[],a=0;a<n;a++){var s=t.getString(i+0,2),l=t.getString(i+2,2),c=t.getUint32(i+4),u=t.getUint32(i+8)+e,d=O(t.getUnicodeString(u,c));o.push({lang:s,country:l,text:d}),i+=r}return 1===n?o[0].text:o}},{key:"translateValue",value:function(e,t){return"string"==typeof e?t[e]||t[e.toLowerCase()]||e:t[e]||e}}],[{key:"canHandle",value:function(e,t){return 226===e.getUint8(t+1)&&1229144927===e.getUint32(t+4)}},{key:"findPosition",value:function(e,t){var r=(0,c.Z)((0,u.Z)(n),"findPosition",this).call(this,e,t);return r.chunkNumber=e.getUint8(t+16),r.chunkCount=e.getUint8(t+17),r.multiSegment=r.chunkCount>1,r}},{key:"handleMultiSegments",value:function(e){return function(e){var t=function(e){var t,n=e[0].constructor,r=0,i=(0,l.Z)(e);try{for(i.s();!(t=i.n()).done;){r+=t.value.length}}catch(d){i.e(d)}finally{i.f()}var o,a=new n(r),s=0,c=(0,l.Z)(e);try{for(c.s();!(o=c.n()).done;){var u=o.value;a.set(u,s),s+=u.length}}catch(d){c.e(d)}finally{c.f()}return a}(e.map((function(e){return e.chunk.toUint8()})));return new B(t)}(e)}}]),n}(Ee);D($t,"type","icc"),D($t,"multiSegment",!0),D($t,"headerLength",18);var Jt={4:Kt,8:function(e,t){return[e.getUint8(t),e.getUint8(t+1)>>4,e.getUint8(t+1)%16].map((function(e){return e.toString(10)})).join(".")},12:Kt,16:Kt,20:Kt,24:function(e,t){var n=e.getUint16(t),r=e.getUint16(t+2)-1,i=e.getUint16(t+4),o=e.getUint16(t+6),a=e.getUint16(t+8),s=e.getUint16(t+10);return new Date(Date.UTC(n,r,i,o,a,s))},36:Kt,40:Kt,48:Kt,52:Kt,64:function(e,t){return e.getUint32(t)},80:Kt};function Kt(e,t){return O(e.getString(t,4))}W.set("icc",$t),te(re,"icc",[[4,"ProfileCMMType"],[8,"ProfileVersion"],[12,"ProfileClass"],[16,"ColorSpaceData"],[20,"ProfileConnectionSpace"],[24,"ProfileDateTime"],[36,"ProfileFileSignature"],[40,"PrimaryPlatform"],[44,"CMMFlags"],[48,"DeviceManufacturer"],[52,"DeviceModel"],[56,"DeviceAttributes"],[64,"RenderingIntent"],[68,"ConnectionSpaceIlluminant"],[80,"ProfileCreator"],[84,"ProfileID"],["Header","ProfileHeader"],["MS00","WCSProfiles"],["bTRC","BlueTRC"],["bXYZ","BlueMatrixColumn"],["bfd","UCRBG"],["bkpt","MediaBlackPoint"],["calt","CalibrationDateTime"],["chad","ChromaticAdaptation"],["chrm","Chromaticity"],["ciis","ColorimetricIntentImageState"],["clot","ColorantTableOut"],["clro","ColorantOrder"],["clrt","ColorantTable"],["cprt","ProfileCopyright"],["crdi","CRDInfo"],["desc","ProfileDescription"],["devs","DeviceSettings"],["dmdd","DeviceModelDesc"],["dmnd","DeviceMfgDesc"],["dscm","ProfileDescriptionML"],["fpce","FocalPlaneColorimetryEstimates"],["gTRC","GreenTRC"],["gXYZ","GreenMatrixColumn"],["gamt","Gamut"],["kTRC","GrayTRC"],["lumi","Luminance"],["meas","Measurement"],["meta","Metadata"],["mmod","MakeAndModel"],["ncl2","NamedColor2"],["ncol","NamedColor"],["ndin","NativeDisplayInfo"],["pre0","Preview0"],["pre1","Preview1"],["pre2","Preview2"],["ps2i","PS2RenderingIntent"],["ps2s","PostScript2CSA"],["psd0","PostScript2CRD0"],["psd1","PostScript2CRD1"],["psd2","PostScript2CRD2"],["psd3","PostScript2CRD3"],["pseq","ProfileSequenceDesc"],["psid","ProfileSequenceIdentifier"],["psvm","PS2CRDVMSize"],["rTRC","RedTRC"],["rXYZ","RedMatrixColumn"],["resp","OutputResponse"],["rhoc","ReflectionHardcopyOrigColorimetry"],["rig0","PerceptualRenderingIntentGamut"],["rig2","SaturationRenderingIntentGamut"],["rpoc","ReflectionPrintOutputColorimetry"],["sape","SceneAppearanceEstimates"],["scoe","SceneColorimetryEstimates"],["scrd","ScreeningDesc"],["scrn","Screening"],["targ","CharTarget"],["tech","Technology"],["vcgt","VideoCardGamma"],["view","ViewingConditions"],["vued","Vie
2wingCondDesc"],["wtpt","MediaWhitePoint"]]);var Yt={"4d2p":"Erdt Systems",AAMA:"Aamazing Technologies",ACER:"Acer",ACLT:"Acolyte Color Research",ACTI:"Actix Sytems",ADAR:"Adara Technology",ADBE:"Adobe",ADI:"ADI Systems",AGFA:"Agfa Graphics",ALMD:"Alps Electric",ALPS:"Alps Electric",ALWN:"Alwan Color Expertise",AMTI:"Amiable Technologies",AOC:"AOC International",APAG:"Apago",APPL:"Apple Computer",AST:"AST","AT&T":"AT&T",BAEL:"BARBIERI electronic",BRCO:"Barco NV",BRKP:"Breakpoint",BROT:"Brother",BULL:"Bull",BUS:"Bus Computer Systems","C-IT":"C-Itoh",CAMR:"Intel",CANO:"Canon",CARR:"Carroll Touch",CASI:"Casio",CBUS:"Colorbus PL",CEL:"Crossfield",CELx:"Crossfield",CGS:"CGS Publishing Technologies International",CHM:"Rochester Robotics",CIGL:"Colour Imaging Group, London",CITI:"Citizen",CL00:"Candela",CLIQ:"Color IQ",CMCO:"Chromaco",CMiX:"CHROMiX",COLO:"Colorgraphic Communications",COMP:"Compaq",COMp:"Compeq/Focus Technology",CONR:"Conrac Display Products",CORD:"Cordata Technologies",CPQ:"Compaq",CPRO:"ColorPro",CRN:"Cornerstone",CTX:"CTX International",CVIS:"ColorVision",CWC:"Fujitsu Laboratories",DARI:"Darius Technology",DATA:"Dataproducts",DCP:"Dry Creek Photo",DCRC:"Digital Contents Resource Center, Chung-Ang University",DELL:"Dell Computer",DIC:"Dainippon Ink and Chemicals",DICO:"Diconix",DIGI:"Digital","DL&C":"Digital Light & Color",DPLG:"Doppelganger",DS:"Dainippon Screen",DSOL:"DOOSOL",DUPN:"DuPont",EPSO:"Epson",ESKO:"Esko-Graphics",ETRI:"Electronics and Telecommunications Research Institute",EVER:"Everex Systems",EXAC:"ExactCODE",Eizo:"Eizo",FALC:"Falco Data Products",FF:"Fuji Photo Film",FFEI:"FujiFilm Electronic Imaging",FNRD:"Fnord Software",FORA:"Fora",FORE:"Forefront Technology",FP:"Fujitsu",FPA:"WayTech Development",FUJI:"Fujitsu",FX:"Fuji Xerox",GCC:"GCC Technologies",GGSL:"Global Graphics Software",GMB:"Gretagmacbeth",GMG:"GMG",GOLD:"GoldStar Technology",GOOG:"Google",GPRT:"Giantprint",GTMB:"Gretagmacbeth",GVC:"WayTech Development",GW2K:"Sony",HCI:"HCI",HDM:"Heidelberger Druckmaschinen",HERM:"Hermes",HITA:"Hitachi America",HP:"Hewlett-Packard",HTC:"Hitachi",HiTi:"HiTi Digital",IBM:"IBM",IDNT:"Scitex",IEC:"Hewlett-Packard",IIYA:"Iiyama North America",IKEG:"Ikegami Electronics",IMAG:"Image Systems",IMI:"Ingram Micro",INTC:"Intel",INTL:"N/A (INTL)",INTR:"Intra Electronics",IOCO:"Iocomm International Technology",IPS:"InfoPrint Solutions Company",IRIS:"Scitex",ISL:"Ichikawa Soft Laboratory",ITNL:"N/A (ITNL)",IVM:"IVM",IWAT:"Iwatsu Electric",Idnt:"Scitex",Inca:"Inca Digital Printers",Iris:"Scitex",JPEG:"Joint Photographic Experts Group",JSFT:"Jetsoft Development",JVC:"JVC Information Products",KART:"Scitex",KFC:"KFC Computek Components",KLH:"KLH Computers",KMHD:"Konica Minolta",KNCA:"Konica",KODA:"Kodak",KYOC:"Kyocera",Kart:"Scitex",LCAG:"Leica",LCCD:"Leeds Colour",LDAK:"Left Dakota",LEAD:"Leading Technology",LEXM:"Lexmark International",LINK:"Link Computer",LINO:"Linotronic",LITE:"Lite-On",Leaf:"Leaf",Lino:"Linotronic",MAGC:"Mag Computronic",MAGI:"MAG Innovision",MANN:"Mannesmann",MICN:"Micron Technology",MICR:"Microtek",MICV:"Microvitec",MINO:"Minolta",MITS:"Mitsubishi Electronics America",MITs:"Mitsuba",MNLT:"Minolta",MODG:"Modgraph",MONI:"Monitronix",MONS:"Monaco Systems",MORS:"Morse Technology",MOTI:"Motive Systems",MSFT:"Microsoft",MUTO:"MUTOH INDUSTRIES",Mits:"Mitsubishi Electric",NANA:"NANAO",NEC:"NEC",NEXP:"NexPress Solutions",NISS:"Nissei Sangyo America",NKON:"Nikon",NONE:"none",OCE:"Oce Technologies",OCEC:"OceColor",OKI:"Oki",OKID:"Okidata",OKIP:"Okidata",OLIV:"Olivetti",OLYM:"Olympus",ONYX:"Onyx Graphics",OPTI:"Optiquest",PACK:"Packard Bell",PANA:"Matsushita Electric Industrial",PANT:"Pantone",PBN:"Packard Bell",PFU:"PFU",PHIL:"Philips Consumer Electronics",PNTX:"HOYA",POne:"Phase One A/S",PREM:"Premier Computer Innovations",PRIN:"Princeton Graphic Systems",PRIP:"Princeton Publishing Labs",QLUX:"Hong Kong",QMS:"QMS",QPCD:"QPcard AB",QUAD:"QuadLaser",QUME:"Qume",RADI:"Radius",RDDx:"Integrated Color Solutions",RDG:"Roland DG",REDM:"REDMS Group",RELI:"Relisys",RGMS:"Rolf Gierling Multitools",RICO:"Ricoh",RNLD:"Edmund Ronald",ROYA:"Royal",RPC:"Ricoh Printing Systems",RTL:"Royal Information Electronics",SAMP:"Sampo",SAMS:"Samsung",SANT:"Jaime Santana Pomares",SCIT:"Scitex",SCRN:"Dainippon Screen",SDP:"Scitex",SEC:"Samsung",SEIK:"Seiko Instruments",SEIk:"Seikosha",SGUY:"ScanGuy.c
2om",SHAR:"Sharp Laboratories",SICC:"International Color Consortium",SONY:"Sony",SPCL:"SpectraCal",STAR:"Star",STC:"Sampo Technology",Scit:"Scitex",Sdp:"Scitex",Sony:"Sony",TALO:"Talon Technology",TAND:"Tandy",TATU:"Tatung",TAXA:"TAXAN America",TDS:"Tokyo Denshi Sekei",TECO:"TECO Information Systems",TEGR:"Tegra",TEKT:"Tektronix",TI:"Texas Instruments",TMKR:"TypeMaker",TOSB:"Toshiba",TOSH:"Toshiba",TOTK:"TOTOKU ELECTRIC",TRIU:"Triumph",TSBT:"Toshiba",TTX:"TTX Computer Products",TVM:"TVM Professional Monitor",TW:"TW Casper",ULSX:"Ulead Systems",UNIS:"Unisys",UTZF:"Utz Fehlau & Sohn",VARI:"Varityper",VIEW:"Viewsonic",VISL:"Visual communication",VIVO:"Vivo Mobile Communication",WANG:"Wang",WLBR:"Wilbur Imaging",WTG2:"Ware To Go",WYSE:"WYSE Technology",XERX:"Xerox",XRIT:"X-Rite",ZRAN:"Zoran",Zebr:"Zebra Technologies",appl:"Apple Computer",bICC:"basICColor",berg:"bergdesign",ceyd:"Integrated Color Solutions",clsp:"MacDermid ColorSpan",ds:"Dainippon Screen",dupn:"DuPont",ffei:"FujiFilm Electronic Imaging",flux:"FluxData",iris:"Scitex",kart:"Scitex",lcms:"Little CMS",lino:"Linotronic",none:"none",ob4d:"Erdt Systems",obic:"Medigraph",quby:"Qubyx Sarl",scit:"Scitex",scrn:"Dainippon Screen",sdp:"Scitex",siwi:"SIWI GRAFIKA",yxym:"YxyMaster"},Xt={scnr:"Scanner",mntr:"Monitor",prtr:"Printer",link:"Device Link",abst:"Abstract",spac:"Color Space Conversion Profile",nmcl:"Named Color",cenc:"ColorEncodingSpace profile",mid:"MultiplexIdentification profile",mlnk:"MultiplexLink profile",mvis:"MultiplexVisualization profile",nkpf:"Nikon Input Device Profile (NON-STANDARD!)"};te(ie,"icc",[[4,Yt],[12,Xt],[40,Object.assign({},Yt,Xt)],[48,Yt],[80,Yt],[64,{0:"Perceptual",1:"Relative Colorimetric",2:"Saturation",3:"Absolute Colorimetric"}],["tech",{amd:"Active Matrix Display",crt:"Cathode Ray Tube Display",kpcd:"Photo CD",pmd:"Passive Matrix Display",dcam:"Digital Camera",dcpj:"Digital Cinema Projector",dmpc:"Digital Motion Picture Camera",dsub:"Dye Sublimation Printer",epho:"Electrophotographic Printer",esta:"Electrostatic Printer",flex:"Flexography",fprn:"Film Writer",fscn:"Film Scanner",grav:"Gravure",ijet:"Ink Jet Printer",imgs:"Photo Image Setter",mpfr:"Motion Picture Film Recorder",mpfs:"Motion Picture Film Scanner",offs:"Offset Lithography",pjtv:"Projection Television",rpho:"Photographic Paper Printer",rscn:"Reflective Scanner",silk:"Silkscreen",twax:"Thermal Wax Printer",vidc:"Video Camera",vidm:"Video Monitor"}]]);var Qt=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"parse",value:function(){for(var e=this.raw,t=this.chunk.byteLength-1,n=!1,r=0;r<t;r++)if(28===this.chunk.getUint8(r)&&2===this.chunk.getUint8(r+1)){n=!0;var i=this.chunk.getUint16(r+3),o=this.chunk.getUint8(r+2),a=this.chunk.getLatin1String(r+5,i);e.set(o,this.pluralizeValue(e.get(o),a)),r+=4+i}else if(n)break;return this.translate(),this.output}},{key:"pluralizeValue",value:function(e,t){return void 0!==e?e instanceof Array?(e.push(t),e):[e,t]:t}}],[{key:"canHandle",value:function(e,t,n){return 237===e.getUint8(t+1)&&"Photoshop"===e.getString(t+4,9)&&void 0!==this.containsIptc8bim(e,t,n)}},{key:"headerLength",value:function(e,t,n){var r,i=this.containsIptc8bim(e,t,n);if(void 0!==i)return(r=e.getUint8(t+i+7))%2!=0&&(r+=1),0===r&&(r=4),i+8+r}},{key:"containsIptc8bim",value:function(e,t,n){for(var r=0;r<n;r++)if(this.isIptcSegmentHead(e,t+r))return r}},{key:"isIptcSegmentHead",value:function(e,t){return 56===e.getUint8(t)&&943868237===e.getUint32(t)&&1028===e.getUint16(t+4)}}]),n}(Ee);D(Qt,"type","iptc"),D(Qt,"translateValues",!1),D(Qt,"reviveValues",!1),W.set("iptc",Qt),te(re,"iptc",[[0,"ApplicationRecordVersion"],[3,"ObjectTypeReference"],[4,"ObjectAttributeReference"],[5,"ObjectName"],[7,"EditStatus"],[8,"EditorialUpdate"],[10,"Urgency"],[12,"SubjectReference"],[15,"Category"],[20,"SupplementalCategories"],[22,"FixtureIdentifier"],[25,"Keywords"],[26,"ContentLocationCode"],[27,"ContentLocationName"],[30,"ReleaseDate"],[35,"ReleaseTime"],[37,"ExpirationDate"],[38,"ExpirationTime"],[40,"SpecialInstructions"],[42,"ActionAdvised"],[45,"ReferenceService"],[47,"ReferenceDate"],[50,"ReferenceNumber"],[55,"DateCreated"],[60,"TimeCreated"],[62,"DigitalCreationDate"],[63,"DigitalCreationTime"],[65,"OriginatingProgram"],[70,"ProgramVersion"],[75,"ObjectCycle"],[80,"Byline"],[85,"BylineTitle"],[90,"City"],[92,"Sublocation"],[95,"State"],[100,"CountryCode"],[101,"Country"],[103,"OriginalTransmissionReference"],[105,"Headline"],[110,"Credit"],[115,"Source"],[116,"CopyrightNotice"],[118,"Contact"],[120,"Caption"],[121,"LocalCaption"],[122,"Writer"],[125,"RasterizedCaption"],[130,"ImageType"],[131,"ImageOrientation"],[135,"LanguageIdentifier"],[150,"AudioType"],[151,"AudioSamplingRate"],[152,"AudioSamplingResolution"],[153,"AudioDuration"],[154,"AudioOutcue"],[184,"JobID"],[185,"MasterDocumentID"],[186,"ShortDocumentID"],[187,"UniqueDocumentID"],[188,"OwnerID"],[200,"ObjectPreviewFileFormat"],[201,"ObjectPreviewFileVersion"],[202,"ObjectPreviewData"],[221,"Prefs"],[225,"ClassifyState"],[228,"Similarity
2Index"],[230,"DocumentNotes"],[231,"DocumentHistory"],[232,"ExifCameraInfo"],[255,"CatalogSets"]]),te(ie,"iptc",[[10,{0:"0 (reserved)",1:"1 (most urgent)",2:"2",3:"3",4:"4",5:"5 (normal urgency)",6:"6",7:"7",8:"8 (least urgent)",9:"9 (user-defined priority)"}],[75,{a:"Morning",b:"Both Morning and Evening",p:"Evening"}],[131,{L:"Landscape",P:"Portrait",S:"Square"}]]),t.ZP=Lt},8329:function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{Z:function(){return i}});var i=function e(t,n){function i(e,i,o){if("undefined"!==typeof document){"number"===typeof(o=r({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(l){}}return e?r[e]:r}},remove:function(e,t){i(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},8290:function(e,t,n){"use strict";n.d(t,{Z:function(){return d},y:function(){return f}});var r=n(9439),i=n(1413),o=n(5987),a=n(2791),s=["count","wrapper","className","containerClassName","containerTestId","circle","style"],l=["children"],c=a.createContext({}),u=!0;function d(e){for(var t,n,l,d=e.count,f=void 0===d?1:d,p=e.wrapper,h=e.className,m=e.containerClassName,v=e.containerTestId,g=e.circle,y=void 0!==g&&g,b=e.style,x=(0,o.Z)(e,s),w=a.useContext(c),k=(0,i.Z)({},x),S=0,j=Object.entries(x);S<j.length;S++){var C=(0,r.Z)(j[S],2),_=C[0];"undefined"===typeof C[1]&&delete k[_]}var E=(0,i.Z)((0,i.Z)((0,i.Z)({},w),k),{},{circle:y}),N=(0,i.Z)((0,i.Z)({},b),function(e){var t=e.baseColor,n=e.highlightColor,r=e.width,i=e.height,o=e.borderRadius,a=e.circle,s=e.direction,l=e.duration,c=e.enableAnimation,d=void 0===c?u:c,f={};return"rtl"===s&&(f["--animation-direction"]="reverse"),"number"===typeof l&&(f["--animation-duration"]="".concat(l,"s")),d||(f["--pseudo-element-display"]="none"),"string"!==typeof r&&"number"!==typeof r||(f.width=r),"string"!==typeof i&&"number"!==typeof i||(f.height=i),"string"!==typeof o&&"number"!==typeof o||(f.borderRadius=o),a&&(f.borderRadius="50%"),"undefined"!==typeof t&&(f["--base-color"]=t),"undefined"!==typeof n&&(f["--highlight-color"]=n),f}(E)),A="react-loading-skeleton";h&&(A+=" ".concat(h));for(var D=null!==(t=E.inline)&&void 0!==t&&t,T=[],I=Math.ceil(f),P=0;P<I;P++){var F=N;if(I>f&&P===I-1){var O=null!==(n=F.width)&&void 0!==n?n:"100%",M=f%1,Z="number"===typeof O?O*M:"calc(".concat(O," * ").concat(M,")");F=(0,i.Z)((0,i.Z)({},F),{},{width:Z})}var R=a.createElement("span",{className:A,style:F,key:P},"\u200c");D?T.push(R):T.push(a.createElement(a.Fragment,{key:P},R,a.createElement("br",null)))}return a.createElement("span",{className:m,"data-testid":v,"aria-live":"polite","aria-busy":null!==(l=E.enableAnimation)&&void 0!==l?l:u},p?T.map((function(e,t){return a.createElement(p,{key:t},e)})):T)}function f(e){var t=e.children,n=(0,o.Z)(e,l);return a.createElement(c.Provider,{value:n},t)}},8870:function(e,t,n){"use strict";n.d(t,{Rv:function(){return d},W_:function(){return s},tl:function(){return c},o3:function(){return u}});var r=n(7485),i=n(7609);var o=n(3433);function a(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach((function(o){if
2(!n[o]&&!0===n.auto){var a=(0,i.e)(e.el,".".concat(r[o]))[0];a||((a=(0,i.c)("div",r[o])).className=r[o],e.el.append(a)),n[o]=a,t[o]=a}})),n}function s(e){var t=e.swiper,n=e.extendParams,r=e.on,s=e.emit;function l(e){var n;return e&&"string"===typeof e&&t.isElement&&(n=t.el.querySelector(e))?n:(e&&("string"===typeof e&&(n=(0,o.Z)(document.querySelectorAll(e))),t.params.uniqueNavElements&&"string"===typeof e&&n.length>1&&1===t.el.querySelectorAll(e).length&&(n=t.el.querySelector(e))),e&&!n?e:n)}function c(e,n){var r=t.params.navigation;(e=(0,i.m)(e)).forEach((function(e){var i;e&&((i=e.classList)[n?"add":"remove"].apply(i,(0,o.Z)(r.disabledClass.split(" "))),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](r.lockClass))}))}function u(){var e=t.navigation,n=e.nextEl,r=e.prevEl;if(t.params.loop)return c(r,!1),void c(n,!1);c(r,t.isBeginning&&!t.params.rewind),c(n,t.isEnd&&!t.params.rewind)}function d(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),s("navigationPrev"))}function f(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),s("navigationNext"))}function p(){var e=t.params.navigation;if(t.params.navigation=a(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),e.nextEl||e.prevEl){var n=l(e.nextEl),r=l(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:r}),n=(0,i.m)(n),r=(0,i.m)(r);var s=function(n,r){var i;(n&&n.addEventListener("click","next"===r?f:d),!t.enabled&&n)&&(i=n.classList).add.apply(i,(0,o.Z)(e.lockClass.split(" ")))};n.forEach((function(e){return s(e,"next")})),r.forEach((function(e){return s(e,"prev")}))}}function h(){var e=t.navigation,n=e.nextEl,r=e.prevEl;n=(0,i.m)(n),r=(0,i.m)(r);var a=function(e,n){var r;e.removeEventListener("click","next"===n?f:d),(r=e.classList).remove.apply(r,(0,o.Z)(t.params.navigation.disabledClass.split(" ")))};n.forEach((function(e){return a(e,"next")})),r.forEach((function(e){return a(e,"prev")}))}n({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},r("init",(function(){!1===t.params.navigation.enabled?m():(p(),u())})),r("toEdge fromEdge lock unlock",(function(){u()})),r("destroy",(function(){h()})),r("enable disable",(function(){var e=t.navigation,n=e.nextEl,r=e.prevEl;n=(0,i.m)(n),r=(0,i.m)(r),t.enabled?u():[].concat((0,o.Z)(n),(0,o.Z)(r)).filter((function(e){return!!e})).forEach((function(e){return e.classList.add(t.params.navigation.lockClass)}))})),r("click",(function(e,n){var r=t.navigation,a=r.nextEl,l=r.prevEl;a=(0,i.m)(a),l=(0,i.m)(l);var c=n.target;if(t.params.navigation.hideOnClick&&!l.includes(c)&&!a.includes(c)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===c||t.pagination.el.contains(c)))return;var u;a.length?u=a[0].classList.contains(t.params.navigation.hiddenClass):l.length&&(u=l[0].classList.contains(t.params.navigation.hiddenClass)),s(!0===u?"navigationShow":"navigationHide"),[].concat((0,o.Z)(a),(0,o.Z)(l)).filter((function(e){return!!e})).forEach((function(e){return e.classList.toggle(t.params.navigation.hiddenClass)}))}}));var m=function(){var e;(e=t.el.classList).add.apply(e,(0,o.Z)(t.params.navigation.navigationDisabledClass.split(" "))),h()};Object.assign(t.navigation,{enable:function(){var e;(e=t.el.classList).remove.apply(e,(0,o.Z)(t.params.navigation.navigationDisabledClass.split(" "))),p(),u()},disable:m,update:u,init:p,destroy:h})}function l(e){return void 0===e&&(e=""),".".concat(e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,"."))}function c(e){var t,n=e.swiper,r=e.extendParams,s=e.on,c=e.emit,u="swiper-pagination";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:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"".concat(u,"-bullet"),bulletActiveClass:"".concat(u,"-bullet-active"),modifierClass:"".concat(u,"-"),currentClass:"".concat(u,"-current"),totalClass:"".concat(u,"-total"),hiddenClass:"".concat(u,"-hidden"),progressbarFillClass:"".concat(u,"-progressbar-fill"),progressbarOppositeClass:"".concat(u,"-progressbar-opposite"),clickableClass:"".concat(u,"-clickable"),lockClass:"".concat(u,"-lock"),horizontalClass:"".concat(u,"-horizontal"),verticalClass:"".concat(u,"-vertical"),paginationDisabledClass:"".concat(u,"-disabled")}}),n.pagination={el:null,bullets:[]};var d=0;function f(){return!n.params.pagination.el||!n.pagination.el||Array.isArray(n.pagination.el)&&0===n.pagination.el.length}function p(e,t){var r=n.params.pagination.bulletActiveClass;e&&(e=e["".concat("prev"===t?"previous":"next","ElementSibling")])&&(e.classList.add("".concat(r,"-").concat(t)),(e=e["".concat("prev"===t?"previous":"next","ElementSibling")])&&e.classList.add("".concat(r,"-").concat(t,"-").concat(t)))}function h(e){var t=e.target.closest(l(n.params.pagination.bulletClass));if(t){e.preventDefault();var r=(0,i.g)(t)*n.params.slidesPerGroup;if(n.params.loop){if(n.realIndex===r)return;n.slideToLoop(r)}else n.slideTo(r)}}function m(){var e=n.rtl,r=n.params.pagination;if(!f()){var a,s,u=n.pagination.el;u=(0,i.m)(u);var h=n.virtual&&n.params.virtual.enabled?n.virtual.slides.length:n.slides.length,m=n.params.loop?Math.
2ceil(h/n.params.slidesPerGroup):n.snapGrid.length;if(n.params.loop?(s=n.previousRealIndex||0,a=n.params.slidesPerGroup>1?Math.floor(n.realIndex/n.params.slidesPerGroup):n.realIndex):"undefined"!==typeof n.snapIndex?(a=n.snapIndex,s=n.previousSnapIndex):(s=n.previousIndex||0,a=n.activeIndex||0),"bullets"===r.type&&n.pagination.bullets&&n.pagination.bullets.length>0){var v,g,y,b=n.pagination.bullets;if(r.dynamicBullets&&(t=(0,i.f)(b[0],n.isHorizontal()?"width":"height",!0),u.forEach((function(e){e.style[n.isHorizontal()?"width":"height"]="".concat(t*(r.dynamicMainBullets+4),"px")})),r.dynamicMainBullets>1&&void 0!==s&&((d+=a-(s||0))>r.dynamicMainBullets-1?d=r.dynamicMainBullets-1:d<0&&(d=0)),v=Math.max(a-d,0),y=((g=v+(Math.min(b.length,r.dynamicMainBullets)-1))+v)/2),b.forEach((function(e){var t,n=(0,o.Z)(["","-next","-next-next","-prev","-prev-prev","-main"].map((function(e){return"".concat(r.bulletActiveClass).concat(e)}))).map((function(e){return"string"===typeof e&&e.includes(" ")?e.split(" "):e})).flat();(t=e.classList).remove.apply(t,(0,o.Z)(n))})),u.length>1)b.forEach((function(e){var t,s=(0,i.g)(e);s===a?(t=e.classList).add.apply(t,(0,o.Z)(r.bulletActiveClass.split(" "))):n.isElement&&e.setAttribute("part","bullet");if(r.dynamicBullets){var l;if(s>=v&&s<=g)(l=e.classList).add.apply(l,(0,o.Z)("".concat(r.bulletActiveClass,"-main").split(" ")));s===v&&p(e,"prev"),s===g&&p(e,"next")}}));else{var x,w=b[a];if(w)(x=w.classList).add.apply(x,(0,o.Z)(r.bulletActiveClass.split(" ")));if(n.isElement&&b.forEach((function(e,t){e.setAttribute("part",t===a?"bullet-active":"bullet")})),r.dynamicBullets){for(var k=b[v],S=b[g],j=v;j<=g;j+=1){var C;if(b[j])(C=b[j].classList).add.apply(C,(0,o.Z)("".concat(r.bulletActiveClass,"-main").split(" ")))}p(k,"prev"),p(S,"next")}}if(r.dynamicBullets){var _=Math.min(b.length,r.dynamicMainBullets+4),E=(t*_-t)/2-y*t,N=e?"right":"left";b.forEach((function(e){e.style[n.isHorizontal()?N:"top"]="".concat(E,"px")}))}}u.forEach((function(e,t){if("fraction"===r.type&&(e.querySelectorAll(l(r.currentClass)).forEach((function(e){e.textContent=r.formatFractionCurrent(a+1)})),e.querySelectorAll(l(r.totalClass)).forEach((function(e){e.textContent=r.formatFractionTotal(m)}))),"progressbar"===r.type){var i;i=r.progressbarOpposite?n.isHorizontal()?"vertical":"horizontal":n.isHorizontal()?"horizontal":"vertical";var o=(a+1)/m,s=1,u=1;"horizontal"===i?s=o:u=o,e.querySelectorAll(l(r.progressbarFillClass)).forEach((function(e){e.style.transform="translate3d(0,0,0) scaleX(".concat(s,") scaleY(").concat(u,")"),e.style.transitionDuration="".concat(n.params.speed,"ms")}))}"custom"===r.type&&r.renderCustom?(e.innerHTML=r.renderCustom(n,a+1,m),0===t&&c("paginationRender",e)):(0===t&&c("paginationRender",e),c("paginationUpdate",e)),n.params.watchOverflow&&n.enabled&&e.classList[n.isLocked?"add":"remove"](r.lockClass)}))}}function v(){var e=n.params.pagination;if(!f()){var t=n.virtual&&n.params.virtual.enabled?n.virtual.slides.length:n.grid&&n.params.grid.rows>1?n.slides.length/Math.ceil(n.params.grid.rows):n.slides.length,r=n.pagination.el;r=(0,i.m)(r);var a="";if("bullets"===e.type){var s=n.params.loop?Math.ceil(t/n.params.slidesPerGroup):n.snapGrid.length;n.params.freeMode&&n.params.freeMode.enabled&&s>t&&(s=t);for(var u=0;u<s;u+=1)e.renderBullet?a+=e.renderBullet.call(n,u,e.bulletClass):a+="<".concat(e.bulletElement," ").concat(n.isElement?'part="bullet"':"",' class="').concat(e.bulletClass,'"></').concat(e.bulletElement,">")}"fraction"===e.type&&(a=e.renderFraction?e.renderFraction.call(n,e.currentClass,e.totalClass):'<span class="'.concat(e.currentClass,'"></span>')+" / "+'<span class="'.concat(e.totalClass,'"></span>')),"progressbar"===e.type&&(a=e.renderProgressbar?e.renderProgressbar.call(n,e.progressbarFillClass):'<span class="'.concat(e.progressbarFillClass,'"></span>')),n.pagination.bullets=[],r.forEach((function(t){var r;("custom"!==e.type&&(t.innerHTML=a||""),"bullets"===e.type)&&(r=n.pagination.bullets).push.apply(r,(0,o.Z)(t.querySelectorAll(l(e.bulletClass))))})),"custom"!==e.type&&c("paginationRender",r[0])}}function g(){n.params.pagination=a(n,n.originalParams.pagination,n.params.pagination,{el:"swiper-pagination"});var e,t=n.params.pagination;t.el&&("string"===typeof t.el&&n.isElement&&(e=n.el.querySelector(t.el)),e||"string"!==typeof t.el||(e=(0,o.Z)(document.querySelectorAll(t.el))),e||(e=t.el),e&&0!==e.length&&(n.params.uniqueNavElements&&"string"===typeof t.el&&Array.isArray(e)&&e.length>1&&(e=(0,o.Z)(n.el.querySelectorAll(t.el))).length>1&&(e=e.filter((function(e){return(0,i.a)(e,".swiper")[0]===n.el}))[0]),Array.isArray(e)&&1===e.length&&(e=e[0]),Object.assign(n.pagination,{el:e}
2),(e=(0,i.m)(e)).forEach((function(e){var r;"bullets"===t.type&&t.clickable&&(r=e.classList).add.apply(r,(0,o.Z)((t.clickableClass||"").split(" ")));e.classList.add(t.modifierClass+t.type),e.classList.add(n.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(e.classList.add("".concat(t.modifierClass).concat(t.type,"-dynamic")),d=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&e.classList.add(t.progressbarOppositeClass),t.clickable&&e.addEventListener("click",h),n.enabled||e.classList.add(t.lockClass)}))))}function y(){var e=n.params.pagination;if(!f()){var t=n.pagination.el;t&&(t=(0,i.m)(t)).forEach((function(t){var r;(t.classList.remove(e.hiddenClass),t.classList.remove(e.modifierClass+e.type),t.classList.remove(n.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable)&&((r=t.classList).remove.apply(r,(0,o.Z)((e.clickableClass||"").split(" "))),t.removeEventListener("click",h))})),n.pagination.bullets&&n.pagination.bullets.forEach((function(t){var n;return(n=t.classList).remove.apply(n,(0,o.Z)(e.bulletActiveClass.split(" ")))}))}}s("changeDirection",(function(){if(n.pagination&&n.pagination.el){var e=n.params.pagination,t=n.pagination.el;(t=(0,i.m)(t)).forEach((function(t){t.classList.remove(e.horizontalClass,e.verticalClass),t.classList.add(n.isHorizontal()?e.horizontalClass:e.verticalClass)}))}})),s("init",(function(){!1===n.params.pagination.enabled?b():(g(),v(),m())})),s("activeIndexChange",(function(){"undefined"===typeof n.snapIndex&&m()})),s("snapIndexChange",(function(){m()})),s("snapGridLengthChange",(function(){v(),m()})),s("destroy",(function(){y()})),s("enable disable",(function(){var e=n.pagination.el;e&&(e=(0,i.m)(e)).forEach((function(e){return e.classList[n.enabled?"remove":"add"](n.params.pagination.lockClass)}))})),s("lock unlock",(function(){m()})),s("click",(function(e,t){var r=t.target,o=(0,i.m)(n.pagination.el);if(n.params.pagination.el&&n.params.pagination.hideOnClick&&o&&o.length>0&&!r.classList.contains(n.params.pagination.bulletClass)){if(n.navigation&&(n.navigation.nextEl&&r===n.navigation.nextEl||n.navigation.prevEl&&r===n.navigation.prevEl))return;var a=o[0].classList.contains(n.params.pagination.hiddenClass);c(!0===a?"paginationShow":"paginationHide"),o.forEach((function(e){return e.classList.toggle(n.params.pagination.hiddenClass)}))}}));var b=function(){n.el.classList.add(n.params.pagination.paginationDisabledClass);var e=n.pagination.el;e&&(e=(0,i.m)(e)).forEach((function(e){return e.classList.add(n.params.pagination.paginationDisabledClass)})),y()};Object.assign(n.pagination,{enable:function(){n.el.classList.remove(n.params.pagination.paginationDisabledClass);var e=n.pagination.el;e&&(e=(0,i.m)(e)).forEach((function(e){return e.classList.remove(n.params.pagination.paginationDisabledClass)})),g(),v(),m()},disable:b,render:v,update:m,init:g,destroy:y})}function u(e){var t=e.swiper,n=e.extendParams,o=e.on;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});var a=!1,s=!1;function l(){var e=t.thumbs.swiper;if(e&&!e.destroyed){var n,r=e.clickedIndex,i=e.clickedSlide;if(!i||!i.classList.contains(t.params.thumbs.slideThumbActiveClass))if("undefined"!==typeof r&&null!==r)n=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):r,t.params.loop?t.slideToLoop(n):t.slideTo(n)}}function c(){var e=t.params.thumbs;if(a)return!1;a=!0;var n=t.constructor;if(e.swiper instanceof n)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if((0,i.k)(e.swiper)){var r=Object.assign({},e.swiper);Object.assign(r,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new n(r),s=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",l),!0}function u(e){var n=t.thumbs.swiper;if(n&&!n.destroyed){var r="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView,o=1,a=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(o=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(o=1),o=Math.floor(o),n.slides.forEac
2h((function(e){return e.classList.remove(a)})),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(var s=0;s<o;s+=1)(0,i.e)(n.slidesEl,'[data-swiper-slide-index="'.concat(t.realIndex+s,'"]')).forEach((function(e){e.classList.add(a)}));else for(var l=0;l<o;l+=1)n.slides[t.realIndex+l]&&n.slides[t.realIndex+l].classList.add(a);var c=t.params.thumbs.autoScrollOffset,u=c&&!n.params.loop;if(t.realIndex!==n.realIndex||u){var d,f,p=n.activeIndex;if(n.params.loop){var h=n.slides.filter((function(e){return e.getAttribute("data-swiper-slide-index")==="".concat(t.realIndex)}))[0];d=n.slides.indexOf(h),f=t.activeIndex>t.previousIndex?"next":"prev"}else f=(d=t.realIndex)>t.previousIndex?"next":"prev";u&&(d+="next"===f?c:-1*c),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(d)<0&&(n.params.centeredSlides?d=d>p?d-Math.floor(r/2)+1:d+Math.floor(r/2)-1:d>p&&n.params.slidesPerGroup,n.slideTo(d,e?0:void 0))}}}t.thumbs={swiper:null},o("beforeInit",(function(){var e=t.params.thumbs;if(e&&e.swiper)if("string"===typeof e.swiper||e.swiper instanceof HTMLElement){var n=(0,r.g)();requestAnimationFrame((function r(){t.destroyed||(function(){var r="string"===typeof e.swiper?n.querySelector(e.swiper):e.swiper;r&&r.swiper?(e.swiper=r.swiper,c(),u(!0)):r&&r.addEventListener("init",(function n(i){e.swiper=i.detail[0],r.removeEventListener("init",n),c(),u(!0),e.swiper.update(),t.update()}));return r}()||requestAnimationFrame(r))}))}else c(),u(!0)})),o("slideChange update resize observerUpdate",(function(){u()})),o("setTransition",(function(e,n){var r=t.thumbs.swiper;r&&!r.destroyed&&r.setTransition(n)})),o("beforeDestroy",(function(){var e=t.thumbs.swiper;e&&!e.destroyed&&s&&e.destroy()})),Object.assign(t.thumbs,{init:c,update:u})}function d(e){var t=e.swiper,n=e.extendParams,r=e.emit,o=e.once;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(!t.params.cssMode){var e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}},onTouchMove:function(){if(!t.params.cssMode){var e=t.touchEventsData,n=t.touches;0===e.velocities.length&&e.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:(0,i.d)()})}},onTouchEnd:function(e){var n=e.currentPos;if(!t.params.cssMode){var a=t.params,s=t.wrapperEl,l=t.rtlTranslate,c=t.snapGrid,u=t.touchEventsData,d=(0,i.d)()-u.touchStartTime;if(n<-t.minTranslate())t.slideTo(t.activeIndex);else if(n>-t.maxTranslate())t.slides.length<c.length?t.slideTo(c.length-1):t.slideTo(t.slides.length-1);else{if(a.freeMode.momentum){if(u.velocities.length>1){var f=u.velocities.pop(),p=u.velocities.pop(),h=f.position-p.position,m=f.time-p.time;t.velocity=h/m,t.velocity/=2,Math.abs(t.velocity)<a.freeMode.minimumVelocity&&(t.velocity=0),(m>150||(0,i.d)()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeMode.momentumVelocityRatio,u.velocities.length=0;
2var v=1e3*a.freeMode.momentumRatio,g=t.velocity*v,y=t.translate+g;l&&(y=-y);var b,x,w=!1,k=20*Math.abs(t.velocity)*a.freeMode.momentumBounceRatio;if(y<t.maxTranslate())a.freeMode.momentumBounce?(y+t.maxTranslate()<-k&&(y=t.maxTranslate()-k),b=t.maxTranslate(),w=!0,u.allowMomentumBounce=!0):y=t.maxTranslate(),a.loop&&a.centeredSlides&&(x=!0);else if(y>t.minTranslate())a.freeMode.momentumBounce?(y-t.minTranslate()>k&&(y=t.minTranslate()+k),b=t.minTranslate(),w=!0,u.allowMomentumBounce=!0):y=t.minTranslate(),a.loop&&a.centeredSlides&&(x=!0);else if(a.freeMode.sticky){for(var S,j=0;j<c.length;j+=1)if(c[j]>-y){S=j;break}y=-(y=Math.abs(c[S]-y)<Math.abs(c[S-1]-y)||"next"===t.swipeDirection?c[S]:c[S-1])}if(x&&o("transitionEnd",(function(){t.loopFix()})),0!==t.velocity){if(v=l?Math.abs((-y-t.translate)/t.velocity):Math.abs((y-t.translate)/t.velocity),a.freeMode.sticky){var C=Math.abs((l?-y:y)-t.translate),_=t.slidesSizesGrid[t.activeIndex];v=C<_?a.speed:C<2*_?1.5*a.speed:2.5*a.speed}}else if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode.momentumBounce&&w?(t.updateProgress(b),t.setTransition(v),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating=!0,(0,i.j)(s,(function(){t&&!t.destroyed&&u.allowMomentumBounce&&(r("momentumBounce"),t.setTransition(a.speed),setTimeout((function(){t.setTranslate(b),(0,i.j)(s,(function(){t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(r("_freeModeNoMomentumRelease"),t.updateProgress(y),t.setTransition(v),t.setTranslate(y),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,(0,i.j)(s,(function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(y),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode&&r("_freeModeNoMomentumRelease")}(!a.freeMode.momentum||d>=a.longSwipesMs)&&(r("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}}})}},7485:function(e,t,n){"use strict";function r(e){return null!==e&&"object"===typeof e&&"constructor"in e&&e.constructor===Object}function i(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){"undefined"===typeof e[n]?e[n]=t[n]:r(t[n])&&r(e[n])&&Object.keys(t[n]).length>0&&i(e[n],t[n])}))}n.d(t,{a:function(){return l},g:function(){return a}});var o={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){var e="undefined"!==typeof document?document:{};return i(e,o),e}var s={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!==typeof setTimeout&&clearTimeout(e)}};function l(){var e="undefined"!==typeof window?window:{};return i(e,s),e}},7609:function(e,t,n){"use strict";n.d(t,{a:function(){return w},c:function(){return v},d:function(){return l},e:function(){return h},f:function(){return S},g:function(){return x},i:function(){return c},j:function(){return k},k:function(){return u},m:function(){return j},n:function(){return s},o:function(){return b},p:function(){return y},q:function(){return g},r:function(){return p},s:function(){return f},t:function(){return m},u:function(){return d},v:function(){return a}});var r=n(3433),i=n(4942),o=n(7485);function a(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(n){}try{delete t[e]}catch(n){}}))}function s(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function l(){return Date.now()}function c(e,t){void 0===t&&(t="x");var n,r,i,a=(0,o.a)(),s=function(e){var t,n=(0,o.a)();return n.getComputedStyle&&(t=n.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e);return a.WebKitCSSMatrix?((r=s.transform||s.webkitTransform).split(",").length>6&&(r=r.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),i=new a.WebKitCSSMatrix("none"===r?"":r)):n=(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=a.WebKitCSSMatrix?i.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=a.WebKitCSSMatrix?i.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}function u(e){return"object"===typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function d(){for(var e,t=Object(arguments.length<=0?void 0:arguments[0]),n=["__proto__","constructor","prototype"],r=1;r<arguments.length;r+=1){var i=r<0||arguments.length<=r?void 0:arguments[r];if(void 0!==i&&null!==i&&(e=i,!("undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType))))for(var o=Object.keys(Object(i)).filter((function(e){return n.indexOf(e)<0})),a=0,s=o.length;a<s;a+=1){var l=o[a],c=Object.getOwnPropertyDescriptor(i,l);void 0!==c&&c.enumerable&&(u(t[l])&&u(i[l])?i[l].__swiper__?t[l]=i[l]:d(t[l],i[l]):!u(t[l])&&u(i[l])?(t[l]={},i[l].__swiper__?t[l]=i[l]:d(t[l],i[l])):t[l]=i[l])}}return t}function f(e,t,n){e.style.setProperty(t,n)}function p(e){var t,n=e.swiper,r=e.targetPosition,a=e.side,s=(0,o.a)(),l=-n.translate,c=null,u=n.params.speed;n.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(n.cssModeFrameID);var d=r>l?"next":"prev",f=function(e,t){return"next"===d&&e>=t||"prev"===d&&e<=t};!function e(){t=(new Date).getTime(),null===c&&(c=t);var o=Math.max(Math.min((t-c)/u,1),0),d=.5-Math.cos(o*Math.PI)/2,p=l+d*(r-l);if(f(p,r)&&(p=r),n.wrapperEl.scrollTo((0,i.Z)({},a,p)),f(p,r))return n.wrapperEl.style.overflow="hidden",n.wrapperEl.style.scrollSnapType="",setTimeout((function(){n.wrapperEl.style.overflow="",n.wrapperEl.scrollTo((0,i.Z)({},a,p))})),void s.cancelAnimationFrame(n.cssModeFrameID);n.cssModeFrameID=s.requestAnimationFrame(e)}()}function h(e,t){return void 0===t&&(t=""),(0,r.Z)(e.children).filter((function(e){return e.matches(t)}))}function m(e){try{return void console.warn(e)}catch(t){}}function v(e,t){var n;void 0===t&&(t=[]);var i=document.createElement(e);return(n=i.classList).add.apply(n,(0,r.Z)(Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter((function(e){return!!e.trim()}))}(t))),i}function g(e,t){for(var n=[];e.previousElementSibling;){var r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function y(e,t){for(var n=[];e.nextElementSibling;){var r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function b(e,t){return(0,o.a)().getComputedStyle(e,null).getPropertyValue(t)}function x(e){var t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function w(e,t){for(var n=[],r=e.parentElement;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function k(e,t){t&&e.addEventListener("transitionend",(function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}))}function S(e,t,n){var r=(0,o.a)();
2return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function j(e){return(Array.isArray(e)?e:[e]).filter((function(e){return!!e}))}},9705:function(e,t,n){"use strict";n.d(t,{tq:function(){return se},o5:function(){return le}});var r,i,o,a=n(1413),s=n(9439),l=n(5987),c=n(4942),u=n(2791),d=n(5671),f=n(3144),p=n(3433),h=n(7485),m=n(7609);function v(){return r||(r=function(){var e=(0,h.a)(),t=(0,h.g)();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),r}function g(e){return void 0===e&&(e={}),i||(i=function(e){var t=(void 0===e?{}:e).userAgent,n=v(),r=(0,h.a)(),i=r.navigator.platform,o=t||r.navigator.userAgent,a={ios:!1,android:!1},s=r.screen.width,l=r.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/),u=o.match(/(iPad).*OS\s([\d_]+)/),d=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===i,m="MacIntel"===i;return!u&&m&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf("".concat(s,"x").concat(l))>=0&&((u=o.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),m=!1),c&&!p&&(a.os="android",a.android=!0),(u||f||d)&&(a.os="ios",a.ios=!0),a}(e)),i}function y(){return o||(o=function(){var e=(0,h.a)(),t=g(),n=!1;function r(){var t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(r()){var i=String(e.navigator.userAgent);if(i.includes("Version/")){var o=i.split("Version/")[1].split(" ")[0].split(".").map((function(e){return Number(e)})),a=(0,s.Z)(o,2),l=a[0],c=a[1];n=l<16||16===l&&c<2}}var u=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),d=r();return{isSafari:n||d,needPerspectiveFix:n,need3dFix:d||u&&t.ios,isWebView:u}}()),o}var b={on:function(e,t,n){var r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!==typeof t)return r;var i=n?"unshift":"push";return e.split(" ").forEach((function(e){r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r},once:function(e,t,n){var r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!==typeof t)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny:function(e,t){var n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!==typeof e)return n;var r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny:function(e){var t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;var n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off:function(e,t){var n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((function(e){"undefined"===typeof t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((function(r,i){(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit:function(){var e,t,n,r=this;if(!r.eventsListeners||r.destroyed)return r;if(!r.eventsListeners)return r;for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return"string"===typeof o[0]||Array.isArray(o[0])?(e=o[0],t=o.slice(1,o.length),n=r):(e=o[0].events,t=o[0].data,n=o[0].context||r),t.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach((function(e){r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach((function(r){r.apply(n,[e].concat((0,p.Z)(t)))})),r.eventsListeners&&r.eventsListeners[e]&&r.eventsListeners[e].forEach((function(e){e.apply(n,t)}))})),r}};var x=function(e,t){if(e&&!e.destroyed&&e.params){var n=t.closest(e.isElement?"swiper-slide":".".concat(e.params.slideClass));if(n){var r=n.querySelector(".".concat(e.params.lazyPreloaderClass));!r&&e.isElement&&(n.shadowRoot?r=n.shadowRoot.querySelector(".".concat(e.params.lazyPreloaderClass)):requestAnimationFrame((function(){n.shadowRoot&&(r=n.shadowRoot.querySelector(".".concat(e.params.lazyPreloaderClass)))&&r.remove()}))),r&&r.remove()}}},w=function(e,t){if(e.slides[t]){var n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")}},k=function(e){if(e&&!e.destroyed&&e.params){var t=e.params.lazyPreloadPrevNext,n=e.slides.length;if(n&&t&&!(t<0)){t=Math.min(t,n);var r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){var o=i,a=[o-t];return a.push.apply(a,(0,p.Z)(Array.from({length:t}).map((function(e,t){return o+r+t}
2)))),void e.slides.forEach((function(t,n){a.includes(t.column)&&w(e,n)}))}var s=i+r-1;if(e.params.rewind||e.params.loop)for(var l=i-t;l<=s+t;l+=1){var c=(l%n+n)%n;(c<i||c>s)&&w(e,c)}else for(var u=Math.max(i-t,0);u<=Math.min(s+t,n-1);u+=1)u!==i&&(u>s||u<i)&&w(e,u)}}};var S={updateSize:function(){var e,t,n=this,r=n.el;e="undefined"!==typeof n.params.width&&null!==n.params.width?n.params.width:r.clientWidth,t="undefined"!==typeof n.params.height&&null!==n.params.height?n.params.height:r.clientHeight,0===e&&n.isHorizontal()||0===t&&n.isVertical()||(e=e-parseInt((0,m.o)(r,"padding-left")||0,10)-parseInt((0,m.o)(r,"padding-right")||0,10),t=t-parseInt((0,m.o)(r,"padding-top")||0,10)-parseInt((0,m.o)(r,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(n,{width:e,height:t,size:n.isHorizontal()?e:t}))},updateSlides:function(){var e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}var n=e.params,r=e.wrapperEl,i=e.slidesEl,o=e.size,a=e.rtlTranslate,s=e.wrongRTL,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=(0,m.e)(i,".".concat(e.params.slideClass,", swiper-slide")),d=l?e.virtual.slides.length:u.length,f=[],p=[],h=[],v=n.slidesOffsetBefore;"function"===typeof v&&(v=n.slidesOffsetBefore.call(e));var g=n.slidesOffsetAfter;"function"===typeof g&&(g=n.slidesOffsetAfter.call(e));var y=e.snapGrid.length,b=e.slidesGrid.length,x=n.spaceBetween,w=-v,k=0,S=0;if("undefined"!==typeof o){"string"===typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*o:"string"===typeof x&&(x=parseFloat(x)),e.virtualSize=-x,u.forEach((function(e){a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),n.centeredSlides&&n.cssMode&&((0,m.s)(r,"--swiper-centered-offset-before",""),(0,m.s)(r,"--swiper-centered-offset-after",""));var j,C=n.grid&&n.grid.rows>1&&e.grid;C?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();for(var _="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((function(e){return"undefined"!==typeof n.breakpoints[e].slidesPerView})).length>0,E=0;E<d;E+=1){j=0;var N=void 0;if(u[E]&&(N=u[E]),C&&e.grid.updateSlide(E,N,u),!u[E]||"none"!==(0,m.o)(N,"display")){if("auto"===n.slidesPerView){_&&(u[E].style[e.getDirectionLabel("width")]="");var A=getComputedStyle(N),D=N.style.transform,T=N.style.webkitTransform;if(D&&(N.style.transform="none"),T&&(N.style.webkitTransform="none"),n.roundLengths)j=e.isHorizontal()?(0,m.f)(N,"width",!0):(0,m.f)(N,"height",!0);else{var I=t(A,"width"),P=t(A,"padding-left"),F=t(A,"padding-right"),O=t(A,"margin-left"),M=t(A,"margin-right"),Z=A.getPropertyValue("box-sizing");if(Z&&"border-box"===Z)j=I+O+M;else{var R=N,L=R.clientWidth;j=I+P+F+O+M+(R.offsetWidth-L)}}D&&(N.style.transform=D),T&&(N.style.webkitTransform=T),n.roundLengths&&(j=Math.floor(j))}else j=(o-(n.slidesPerView-1)*x)/n.slidesPerView,n.roundLengths&&(j=Math.floor(j)),u[E]&&(u[E].style[e.getDirectionLabel("width")]="".concat(j,"px"));u[E]&&(u[E].swiperSlideSize=j),h.push(j),n.centeredSlides?(w=w+j/2+k/2+x,0===k&&0!==E&&(w=w-o/2-x),0===E&&(w=w-o/2-x),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),S%n.slidesPerGroup===0&&f.push(w),p.push(w)):(n.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&f.push(w),p.push(w),w=w+j+x),e.virtualSize+=j+x,k=j,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+g,a&&s&&("slide"===n.effect||"coverflow"===n.effect)&&(r.style.width="".concat(e.virtualSize+x,"px")),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]="".concat(e.virtualSize+x,"px")),C&&e.grid.updateWrapperSize(j,f),!n.centeredSlides){for(var B=[],z=0;z<f.length;z+=1){var U=f[z];n.roundLengths&&(U=Math.floor(U)),f[z]<=e.virtualSize-o&&B.push(U)}f=B,Math.floor(e.virtualSize-o)-Math.floor(f[f.length-1])>1&&f.push(e.virtualSize-o)}if(l&&n.loop){var H=h[0]+x;if(n.slidesPerGroup>1)for(var W=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),q=H*n.slidesPerGroup,V=0;V<W;V+=1)f.push(f[f.length-1]+q);for(var G=0;G<e.virtual.slidesBefore+e.virtual.slidesAfter;G+=1)1===n.slidesPerGroup&&f.push(f[f.length-1]+H),p.push(p[p.length-1]+H),e.virtualSize+=H}if(0===f.length&&(f=[0]),0!==x){var $=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");u.filter((function(e,t){return!(n.cssMode&&!n.loop)||t!==u.length-1}
2)).forEach((function(e){e.style[$]="".concat(x,"px")}))}if(n.centeredSlides&&n.centeredSlidesBounds){var J=0;h.forEach((function(e){J+=e+(x||0)}));var K=(J-=x)-o;f=f.map((function(e){return e<=0?-v:e>K?K+g:e}))}if(n.centerInsufficientSlides){var Y=0;if(h.forEach((function(e){Y+=e+(x||0)})),(Y-=x)<o){var X=(o-Y)/2;f.forEach((function(e,t){f[t]=e-X})),p.forEach((function(e,t){p[t]=e+X}))}}if(Object.assign(e,{slides:u,snapGrid:f,slidesGrid:p,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){(0,m.s)(r,"--swiper-centered-offset-before","".concat(-f[0],"px")),(0,m.s)(r,"--swiper-centered-offset-after","".concat(e.size/2-h[h.length-1]/2,"px"));var Q=-e.snapGrid[0],ee=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((function(e){return e+Q})),e.slidesGrid=e.slidesGrid.map((function(e){return e+ee}))}if(d!==c&&e.emit("slidesLengthChange"),f.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!n.cssMode&&("slide"===n.effect||"fade"===n.effect)){var te="".concat(n.containerModifierClass,"backface-hidden"),ne=e.el.classList.contains(te);d<=n.maxBackfaceHiddenSlides?ne||e.el.classList.add(te):ne&&e.el.classList.remove(te)}}},updateAutoHeight:function(e){var t,n=this,r=[],i=n.virtual&&n.params.virtual.enabled,o=0;"number"===typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed);var a=function(e){return i?n.slides[n.getSlideIndexByData(e)]:n.slides[e]};if("auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)if(n.params.centeredSlides)(n.visibleSlides||[]).forEach((function(e){r.push(e)}));else for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){var s=n.activeIndex+t;if(s>n.slides.length&&!i)break;r.push(a(s))}else r.push(a(n.activeIndex));for(t=0;t<r.length;t+=1)if("undefined"!==typeof r[t]){var l=r[t].offsetHeight;o=l>o?l:o}(o||0===o)&&(n.wrapperEl.style.height="".concat(o,"px"))},updateSlidesOffset:function(){for(var e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0,r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this,n=t.params,r=t.slides,i=t.rtlTranslate,o=t.snapGrid;if(0!==r.length){"undefined"===typeof r[0].swiperSlideOffset&&t.updateSlidesOffset();var a=-e;i&&(a=e),r.forEach((function(e){e.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];var s=n.spaceBetween;"string"===typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:"string"===typeof s&&(s=parseFloat(s));for(var l=0;l<r.length;l+=1){var c=r[l],u=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);var d=(a+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+s),f=(a-o[0]+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+s),p=-(a-u),h=p+t.slidesSizesGrid[l],m=p>=0&&p<=t.size-t.slidesSizesGrid[l];(p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),m&&r[l].classList.add(n.slideFullyVisibleClass),c.progress=i?-d:d,c.originalProgress=i?-f:f}}},updateProgress:function(e){var t=this;if("undefined"===typeof e){var n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}var r=t.params,i=t.maxTranslate()-t.minTranslate(),o=t.progress,a=t.isBeginning,s=t.isEnd,l=t.progressLoop,c=a,u=s;if(0===i)o=0,a=!0,s=!0;else{o=(e-t.minTranslate())/i;var d=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;a=d||o<=0,s=f||o>=1,d&&(o=0),f&&(o=1)}if(r.loop){var p=t.getSlideIndexByData(0),h=t.getSlideIndexByData(t.slides.length-1),m=t.slidesGrid[p],v=t.slidesGrid[h],g=t.slidesGrid[t.slidesGrid.length-1],y=Math.abs(e);(l=y>=m?(y-m)/g:(y+g-v)/g)>1&&(l-=1)}Object.assign(t,{progress:o,progressLoop:l,isBeginning:a,isEnd:s}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),a&&!c&&t.emit("reachBeginning toEdge"),s&&!u&&t.emit("reachEnd toEdge"),(c&&!a||u&&!s)&&t.emit("fromEdge"),t.emit("progress",o)},updateSlidesClasses:function(){var e,t,n,r=this,i=r.slides,o=r.params,a=r.slidesEl,s=r.activeIndex,l=r.virtual&&o.virtual.enabled,c=r.grid&&o.grid&&o.grid.rows>1,u=function(e){return(0,m.e)(a,".".concat(o.slideClass).concat(e,", swiper-slide").concat(e))[0]};if(i.forEach((function(e){e.classList.remove(o.slideActiveClass,o.slideNextClass,o.slidePrevClass)})),l)if(o.loop){var d=s-r.virtual.slidesBefore;d<0&&(d=r.virtual.slides.length+d),d>=r.virtual.slides.length&&(d-=r.virtual.slides.length),e=u('[data-swiper-slide-index="'.concat(d,'"]'))}else e=u('[data-swiper-slide-index="'.concat(s,'"]'));else c?(e=i.filter((function(e){return e.column===s}))[0],n=i.filter((function(e){return e.column===s+1}))[0],t=i.filter((function(e){return e.column===s-1}))[0]):e=i[s];e&&(e.classList.add(o.slideActiveClass),c?(n&&n.classList.add(o.slideNextClass),t&&t.classList.add(o.slidePrevClass)):(n=(0,m.p)(e,".".concat(o.slideClass,", swiper-slide"))[0],o.loop&&!n&&(n=i[0]),n&&n.classList.add(o.slideNextClass),t=(0,m.q)(e,".".concat(o.slideClass,", swiper-slide"))[0],o.loop&&0===!t&&(t=i[i.length-1]),t&&t.classList.add(o.slidePrevClass))),r.emitSlidesClasses()},updateActiveIndex:function(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,i=n.snapGrid,o=n.params,a=n.activeIndex,s=n.realIndex,l=n.snapIndex,c=e,u=function(e){var t=e-n.virtual.slidesBefore;return t<0&&(t=n.virtual.slides.length+t),t>=n.virtual.slides.length&&(t-=n.virtual.slides.length),t};if("undefined"===typeof c&&(c=function(e){for(var t,n=e.slidesGrid,r=e.params,i=e.rtlTranslate?e.translate:-e.translate,o=0;o<n.length;o+=1)"undefined"!==typeof n[o+1]?i>
2=n[o]&&i<n[o+1]-(n[o+1]-n[o])/2?t=o:i>=n[o]&&i<n[o+1]&&(t=o+1):i>=n[o]&&(t=o);return r.normalizeSlideIndex&&(t<0||"undefined"===typeof t)&&(t=0),t}(n)),i.indexOf(r)>=0)t=i.indexOf(r);else{var d=Math.min(o.slidesPerGroupSkip,c);t=d+Math.floor((c-d)/o.slidesPerGroup)}if(t>=i.length&&(t=i.length-1),c!==a||n.params.loop)if(c===a&&n.params.loop&&n.virtual&&n.params.virtual.enabled)n.realIndex=u(c);else{var f,p=n.grid&&o.grid&&o.grid.rows>1;if(n.virtual&&o.virtual.enabled&&o.loop)f=u(c);else if(p){var h=n.slides.filter((function(e){return e.column===c}))[0],m=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(n.slides.indexOf(h),0)),f=Math.floor(m/o.grid.rows)}else if(n.slides[c]){var v=n.slides[c].getAttribute("data-swiper-slide-index");f=v?parseInt(v,10):c}else f=c;Object.assign(n,{previousSnapIndex:l,snapIndex:t,previousRealIndex:s,realIndex:f,previousIndex:a,activeIndex:c}),n.initialized&&k(n),n.emit("activeIndexChange"),n.emit("snapIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&(s!==f&&n.emit("realIndexChange"),n.emit("slideChange"))}else t!==l&&(n.snapIndex=t,n.emit("snapIndexChange"))},updateClickedSlide:function(e,t){var n=this,r=n.params,i=e.closest(".".concat(r.slideClass,", swiper-slide"));!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&(0,p.Z)(t.slice(t.indexOf(e)+1,t.length)).forEach((function(e){!i&&e.matches&&e.matches(".".concat(r.slideClass,", swiper-slide"))&&(i=e)}));var o,a=!1;if(i)for(var s=0;s<n.slides.length;s+=1)if(n.slides[s]===i){a=!0,o=s;break}if(!i||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};var j={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,n=t.params,r=t.rtlTranslate,i=t.translate,o=t.wrapperEl;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;var a=(0,m.i)(o,e);return a+=t.cssOverflowAdjustment(),r&&(a=-a),a||0},setTranslate:function(e,t){var n=this,r=n.rtlTranslate,i=n.params,o=n.wrapperEl,a=n.progress,s=0,l=0;n.isHorizontal()?s=r?-e:e:l=e,i.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:l,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-s:-l:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),o.style.transform="translate3d(".concat(s,"px, ").concat(l,"px, ").concat(0,"px)"));var c=n.maxTranslate()-n.minTranslate();(0===c?0:(e-n.minTranslate())/c)!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,r,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===r&&(r=!0);var o=this,a=o.params,s=o.wrapperEl;if(o.animating&&a.preventInteractionOnTransition)return!1;var l,u=o.minTranslate(),d=o.maxTranslate();if(l=r&&e>u?u:r&&e<d?d:e,o.updateProgress(l),a.cssMode){var f=o.isHorizontal();if(0===t)s[f?"scrollLeft":"scrollTop"]=-l;else{var p;if(!o.support.smoothScroll)return(0,m.r)({swiper:o,targetPosition:-l,side:f?"left":"top"}),!0;s.scrollTo((p={},(0,c.Z)(p,f?"left":"top",-l),(0,c.Z)(p,"behavior","smooth"),p))}return!0}return 0===t?(o.setTransition(0),o.setTranslate(l),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(l),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}};function C(e){var t=e.swiper,n=e.runCallbacks,r=e.direction,i=e.step,o=t.activeIndex,a=t.previousIndex,s=r;if(s||(s=o>a?"next":o<a?"prev":"reset"),t.emit("transition".concat(i)),n&&o!==a){if("reset"===s)return void t.emit("slideResetTransition".concat(i));t.emit("slideChangeTransition".concat(i)),"next"===s?t.emit("slideNextTransition".concat(i)):t.emit("slidePrevTransition".concat(i))}}var _={slideTo:function(e,t,n,r,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),"string"===typeof e&&(e=parseInt(e,10));var o=this,a=e;a<0&&(a=0);var s=o.params,l=o.snapGrid,u=o.slidesGrid,d=o.previousIndex,f=o.activeIndex,p=o.rtlTranslate,h=o.wrapperEl,v=o.enabled;if(o.animating&&s.preventInteractionOnTransition||!v&&!r&&!i||o.destroyed)return!1;var g=Math.min(o.params.slidesPerGroupSkip,a),y=g+Math.floor((a-g)/o.params.slidesPerGroup);y>=l.length&&(y=l.length-1);var b,x=-l[y];if(s.normalizeSlideIndex)for(var w=0;w<u.length;w+=1){var k=-Math.floor(100*x),S=Math.floor(100*u[w]),j=Math.floor(100*u[w+1]);"undefined"!==typeof u[w+1]?k>=S&&k<j-(j-S)/2?a=w:k>=S&&k<j&&(a=w+1):k>=S&&(a=w)}if(o.initialized&&a!==f){if(!o.allowSlideNext&&(p?x>o.translate&&x>o.minTranslate():x<o.translate&&x<o.minTranslate()))return!1;if(!o.allowSlidePrev&&x>o.translate&&x>o.maxTranslate()&&(f||0)!==a)return!1}if(a!==(d||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(x),b=a>f?"next":a<f?"prev":"reset",p&&-x===o.translate||!p&&x===o.translate)return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==s.effect&&o.setTranslate(x),"reset"!==b&&(o.transitionStart(n,b),o.transitionEnd(n,b)),!1;if(s.cssMode){var C=o.isHorizontal(),_=p?x:-x;if(0===t){var E=o.virtual&&o.params.virtual.enabled;E&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),E&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame((function(){h[C?"scrollLeft":"scrollTop"]=_}))):h[C?"scrollLeft":"scrollTop"]=_,E&&requestAnimationFrame((function(){o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1}))}else{var N;if(!o.support.smoothScroll)return(0,m.r)({swiper:o,targetPosition:_,side:C?"left":"top"}),!0;h.scrollTo((N={},(0,c.Z)(N,C?"left":"top",_),(0,c.Z)(N,"behavior","smooth"),N))}return!0}return o.setTransition(t),o.setTranslate(x),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,b),0===t?o.transitionEnd(n,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),"string"===typeof e&&(e=parseInt(e,10));var i=this;if(!i.destroyed){var o=i.grid&&i.params.grid&&i.params.grid.rows>1,a=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a+=i.virtual.slidesBefore;else{var s;if(o){var l=a*i.params.grid.rows;s=i.slides.filter((function(e){return 1*e.getAttribute("data-swiper-slide-index")===l}
2))[0].column}else s=i.getSlideIndexByData(a);var c=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,u=i.params.centeredSlides,d=i.params.slidesPerView;"auto"===d?d=i.slidesPerViewDynamic():(d=Math.ceil(parseFloat(i.params.slidesPerView,10)),u&&d%2===0&&(d+=1));var f=c-s<d;if(u&&(f=f||s<Math.ceil(d/2)),f){var p=u?s<i.activeIndex?"prev":"next":s-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:p,slideTo:!0,activeSlideIndex:"next"===p?s+1:s-c+1,slideRealIndex:"next"===p?i.realIndex:void 0})}if(o){var h=a*i.params.grid.rows;a=i.slides.filter((function(e){return 1*e.getAttribute("data-swiper-slide-index")===h}))[0].column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame((function(){i.slideTo(a,t,n,r)})),i}},slideNext:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,i=r.enabled,o=r.params,a=r.animating;if(!i||r.destroyed)return r;var s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));var l=r.activeIndex<o.slidesPerGroupSkip?1:s,c=r.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame((function(){r.slideTo(r.activeIndex+l,e,t,n)})),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,i=r.params,o=r.snapGrid,a=r.slidesGrid,s=r.rtlTranslate,l=r.enabled,c=r.animating;if(!l||r.destroyed)return r;var u=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var f,p=d(s?r.translate:-r.translate),h=o.map((function(e){return d(e)})),m=o[h.indexOf(p)-1];"undefined"===typeof m&&i.cssMode&&(o.forEach((function(e,t){p>=e&&(f=t)})),"undefined"!==typeof f&&(m=o[f>0?f-1:f]));var v=0;if("undefined"!==typeof m&&((v=a.indexOf(m))<0&&(v=r.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(v=v-r.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),i.rewind&&r.isBeginning){var g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}return i.loop&&0===r.activeIndex&&i.cssMode?(requestAnimationFrame((function(){r.slideTo(v,e,t,n)})),!0):r.slideTo(v,e,t,n)},slideReset:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this;if(!r.destroyed)return r.slideTo(r.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===r&&(r=.5);var i=this;if(!i.destroyed){var o=i.activeIndex,a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){var c=i.snapGrid[s];l-c>(i.snapGrid[s+1]-c)*r&&(o+=i.params.slidesPerGroup)}else{var u=i.snapGrid[s-1];l-u<=(i.snapGrid[s]-u)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)}},slideToClickedSlide:function(){var e=this;if(!e.destroyed){var t,n=e.params,r=e.slidesEl,i="auto"===n.slidesPerView?e.slidesPerViewDynamic():n.slidesPerView,o=e.clickedIndex,a=e.isElement?"swiper-slide":".".concat(n.slideClass);if(n.loop){if(e.animating)return;t=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),n.centeredSlides?o<e.loopedSlides-i/2||o>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),o=e.getSlideIndex((0,m.e)(r,"".concat(a,'[data-swiper-slide-index="').concat(t,'"]'))[0]),(0,m.n)((function(){e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-i?(e.loopFix(),o=e.getSlideIndex((0,m.e)(r,"".concat(a,'[data-swiper-slide-index="').concat(t,'"]'))[0]),(0,m.n)((function(){e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}}};var E={loopCreate:function(e){var t=this,n=t.params,r=t.slidesEl;if(!(!n.loop||t.virtual&&t.params.virtual.enabled)){var i=function(){(0,m.e)(r,".".concat(n.slideClass,", swiper-slide")).forEac
2h((function(e,t){e.setAttribute("data-swiper-slide-index",t)}))},o=t.grid&&n.grid&&n.grid.rows>1,a=n.slidesPerGroup*(o?n.grid.rows:1),s=t.slides.length%a!==0,l=o&&t.slides.length%n.grid.rows!==0,c=function(e){for(var r=0;r<e;r+=1){var i=t.isElement?(0,m.c)("swiper-slide",[n.slideBlankClass]):(0,m.c)("div",[n.slideClass,n.slideBlankClass]);t.slidesEl.append(i)}};if(s){if(n.loopAddBlankSlides)c(a-t.slides.length%a),t.recalcSlides(),t.updateSlides();else(0,m.t)("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)");i()}else if(l){if(n.loopAddBlankSlides)c(n.grid.rows-t.slides.length%n.grid.rows),t.recalcSlides(),t.updateSlides();else(0,m.t)("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)");i()}else i();t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}},loopFix:function(e){var t=void 0===e?{}:e,n=t.slideRealIndex,r=t.slideTo,i=void 0===r||r,o=t.direction,s=t.setTranslate,l=t.activeSlideIndex,c=t.byController,u=t.byMousewheel,d=this;if(d.params.loop){d.emit("beforeLoopFix");var f=d.slides,p=d.allowSlidePrev,h=d.allowSlideNext,v=d.slidesEl,g=d.params,y=g.centeredSlides;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&g.virtual.enabled)return i&&(g.centeredSlides||0!==d.snapIndex?g.centeredSlides&&d.snapIndex<g.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=p,d.allowSlideNext=h,void d.emit("loopFix");var b=g.slidesPerView;"auto"===b?b=d.slidesPerViewDynamic():(b=Math.ceil(parseFloat(g.slidesPerView,10)),y&&b%2===0&&(b+=1));var x=g.slidesPerGroupAuto?b:g.slidesPerGroup,w=x;w%x!==0&&(w+=x-w%x),w+=g.loopAdditionalSlides,d.loopedSlides=w;var k=d.grid&&g.grid&&g.grid.rows>1;f.length<b+w?(0,m.t)("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):k&&"row"===g.grid.fill&&(0,m.t)("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");var S=[],j=[],C=d.activeIndex;"undefined"===typeof l?l=d.getSlideIndex(f.filter((function(e){return e.classList.contains(g.slideActiveClass)}))[0]):C=l;var _="next"===o||!o,E="prev"===o||!o,N=0,A=0,D=k?Math.ceil(f.length/g.grid.rows):f.length,T=(k?f[l].column:l)+(y&&"undefined"===typeof s?-b/2+.5:0);if(T<w){N=Math.max(w-T,x);for(var I=0;I<w-T;I+=1){var P=I-Math.floor(I/D)*D;if(k)for(var F=D-P-1,O=f.length-1;O>=0;O-=1)f[O].column===F&&S.push(O);else S.push(D-P-1)}}else if(T+b>D-w){A=Math.max(T-(D-2*w),x);for(var M=function(){var e=Z-Math.floor(Z/D)*D;k?f.forEach((function(t,n){t.column===e&&j.push(n)})):j.push(e)},Z=0;Z<A;Z+=1)M()}if(d.__preventObserver__=!0,requestAnimationFrame((function(){d.__preventObserver__=!1})),E&&S.forEach((function(e){f[e].swiperLoopMoveDOM=!0,v.prepend(f[e]),f[e].swiperLoopMoveDOM=!1})),_&&j.forEach((function(e){f[e].swiperLoopMoveDOM=!0,v.append(f[e]),f[e].swiperLoopMoveDOM=!1})),d.recalcSlides(),"auto"===g.slidesPerView?d.updateSlides():k&&(S.length>0&&E||j.length>0&&_)&&d.slides.forEach((function(e,t){d.grid.updateSlide(t,e,d.slides)})),g.watchSlidesProgress&&d.updateSlidesOffset(),i)if(S.length>0&&E){if("undefined"===typeof n){var R=d.slidesGrid[C],L=d.slidesGrid[C+N]-R;u?d.setTranslate(d.translate-L):(d.slideTo(C+N,0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-L,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-L))}else if(s){var B=k?S.length/g.grid.rows:S.length;d.slideTo(d.activeIndex+B,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(j.length>0&&_)if("undefined"===typeof n){var z=d.slidesGrid[C],U=d.slidesGrid[C-A]-z;u?d.setTranslate(d.translate-U):(d.slideTo(C-A,0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-U,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-U))}else{var H=k?j.length/g.grid.rows:j.length;d.slideTo(d.activeIndex-H,0,!1,!0)}if(d.allowSlidePrev=p,d.allowSlideNext=h,d.controller&&d.controller.control&&!c){var W={slideRealIndex:n,direction:o,setTranslate:s,activeSlideIndex:l,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach((function(e){!e.destroyed&&e.params.loop&&e.loopFix((0,a.Z)((0,a.Z)({},W),{},{slideTo:e.params.slidesPerView===g.slidesPerView&&i}))})):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix((0,a.Z)((0,a.Z)({},W),{},{slideTo:d.controller.control.params.slidesPerView===g.slidesPerView&&i}))}d.emit("loopFix")}},loopDestroy:function(){var e=this,t=e.params,n=e.slidesEl;if(!(!t.loop||e.virtual&&e.params.virtual.enabled)){e.recalcSlides();var r=[];
2e.slides.forEach((function(e){var t="undefined"===typeof e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e})),e.slides.forEach((function(e){e.removeAttribute("data-swiper-slide-index")})),r.forEach((function(e){n.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}}};function N(e,t,n){var r=(0,h.a)(),i=e.params,o=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return!o||!(n<=a||n>=r.innerWidth-a)||"prevent"===o&&(t.preventDefault(),!0)}function A(e){var t=this,n=(0,h.g)(),r=e;r.originalEvent&&(r=r.originalEvent);var i=t.touchEventsData;if("pointerdown"===r.type){if(null!==i.pointerId&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(i.touchId=r.targetTouches[0].identifier);if("touchstart"!==r.type){var o=t.params,a=t.touches;if(t.enabled&&(o.simulateTouch||"mouse"!==r.pointerType)&&(!t.animating||!o.preventInteractionOnTransition)){!t.animating&&o.cssMode&&o.loop&&t.loopFix();var s=r.target;if(("wrapper"!==o.touchEventsTarget||t.wrapperEl.contains(s))&&(!("which"in r)||3!==r.which)&&!("button"in r&&r.button>0)&&(!i.isTouched||!i.isMoved)){var l=!!o.noSwipingClass&&""!==o.noSwipingClass,c=r.composedPath?r.composedPath():r.path;l&&r.target&&r.target.shadowRoot&&c&&(s=c[0]);var u=o.noSwipingSelector?o.noSwipingSelector:".".concat(o.noSwipingClass),d=!(!r.target||!r.target.shadowRoot);if(o.noSwiping&&(d?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===(0,h.g)()||n===(0,h.a)())return null;n.assignedSlot&&(n=n.assignedSlot);var r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(u,s):s.closest(u)))t.allowClick=!0;else if(!o.swipeHandler||s.closest(o.swipeHandler)){a.currentX=r.pageX,a.currentY=r.pageY;var f=a.currentX,p=a.currentY;if(N(t,r,f)){Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=f,a.startY=p,i.touchStartTime=(0,m.d)(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);var v=!0;s.matches(i.focusableElements)&&(v=!1,"SELECT"===s.nodeName&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==s&&n.activeElement.blur();var g=v&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!g||s.isContentEditable||r.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}}}}}else N(t,r,r.targetTouches[0].pageX)}function D(e){var t=(0,h.g)(),n=this,r=n.touchEventsData,i=n.params,o=n.touches,a=n.rtlTranslate;if(n.enabled&&(i.simulateTouch||"mouse"!==e.pointerType)){var s,l=e;if(l.originalEvent&&(l=l.originalEvent),"pointermove"===l.type){if(null!==r.touchId)return;if(l.pointerId!==r.pointerId)return}if("touchmove"===l.type){if(!(s=(0,p.Z)(l.changedTouches).filter((function(e){return e.identifier===r.touchId}))[0])||s.identifier!==r.touchId)return}else s=l;if(r.isTouched){var c=s.pageX,u=s.pageY;if(l.preventedByNestedSwiper)return o.startX=c,void(o.startY=u);if(!n.allowTouchMove)return l.target.matches(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(o,{startX:c,startY:u,currentX:c,currentY:u}),r.touchStartTime=(0,m.d)()));if(i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(u<o.startY&&n.translate<=n.maxTranslate()||u>o.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(c<o.startX&&n.translate<=n.maxTranslate()||c>o.startX&&n.translate>=n.minTranslate())return;if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);r.allowTouchCallbacks&&n.emit("touchMove",l),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=c,o.currentY=u;var d=o.currentX-o.startX,f=o.currentY-o.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(f,2))<n.params.threshold)){var v;if("undefined"===typeof r.isScrolling)n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:d*d+f*f>
2=25&&(v=180*Math.atan2(Math.abs(f),Math.abs(d))/Math.PI,r.isScrolling=n.isHorizontal()?v>i.touchAngle:90-v>i.touchAngle);if(r.isScrolling&&n.emit("touchMoveOpposite",l),"undefined"===typeof r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();var g=n.isHorizontal()?d:f,y=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(g=Math.abs(g)*(a?1:-1),y=Math.abs(y)*(a?1:-1)),o.diff=g,g*=i.touchRatio,a&&(g=-g,y=-y);var b=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=y>0?"prev":"next";var x=n.params.loop&&!i.cssMode,w="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!r.isMoved){if(x&&w&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){var k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(k)}r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}if((new Date).getTime(),r.isMoved&&r.allowThresholdMove&&b!==n.touchesDirection&&x&&w&&Math.abs(g)>=1)return Object.assign(o,{startX:c,startY:u,currentX:c,currentY:u,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;var S=!0,j=i.resistanceRatio;if(i.touchReleaseOnEdges&&(j=0),g>0?(x&&w&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(S=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+g,j)))):g<0&&(x&&w&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===i.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(S=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-r.startTranslate-g,j)))),S&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(g)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);
2if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}else r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l)}}function T(e){var t,n=this,r=n.touchEventsData,i=e;if(i.originalEvent&&(i=i.originalEvent),"touchend"===i.type||"touchcancel"===i.type){if(!(t=(0,p.Z)(i.changedTouches).filter((function(e){return e.identifier===r.touchId}))[0])||t.identifier!==r.touchId)return}else{if(null!==r.touchId)return;if(i.pointerId!==r.pointerId)return;t=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(n.browser.isSafari||n.browser.isWebView)))return;r.pointerId=null,r.touchId=null;var o=n.params,a=n.touches,s=n.rtlTranslate,l=n.slidesGrid;if(n.enabled&&(o.simulateTouch||"mouse"!==i.pointerType)){if(r.allowTouchCallbacks&&n.emit("touchEnd",i),r.allowTouchCallbacks=!1,!r.isTouched)return r.isMoved&&o.grabCursor&&n.setGrabCursor(!1),r.isMoved=!1,void(r.startMoving=!1);o.grabCursor&&r.isMoved&&r.isTouched&&(!0===n.allowSlideNext||!0===n.allowSlidePrev)&&n.setGrabCursor(!1);var c,u=(0,m.d)(),d=u-r.touchStartTime;if(n.allowClick){var f=i.path||i.composedPath&&i.composedPath();n.updateClickedSlide(f&&f[0]||i.target,f),n.emit("tap click",i),d<300&&u-r.lastClickTime<300&&n.emit("doubleTap doubleClick",i)}if(r.lastClickTime=(0,m.d)(),(0,m.n)((function(){n.destroyed||(n.allowClick=!0)})),!r.isTouched||!r.isMoved||!n.swipeDirection||0===a.diff&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset)return r.isTouched=!1,r.isMoved=!1,void(r.startMoving=!1);if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,c=o.followFinger?s?n.translate:-n.translate:-r.currentTranslate,!o.cssMode)if(o.freeMode&&o.freeMode.enabled)n.freeMode.onTouchEnd({currentPos:c});else{for(var h=c>=-n.maxTranslate()&&!n.params.loop,v=0,g=n.slidesSizesGrid[0],y=0;y<l.length;y+=y<o.slidesPerGroupSkip?1:o.slidesPerGroup){var b=y<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;"undefined"!==typeof l[y+b]?(h||c>=l[y]&&c<l[y+b])&&(v=y,g=l[y+b]-l[y]):(h||c>=l[y])&&(v=y,g=l[l.length-1]-l[l.length-2])}var x=null,w=null;o.rewind&&(n.isBeginning?w=o.virtual&&o.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1:n.isEnd&&(x=0));var k=(c-l[v])/g,S=v<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(d>o.longSwipesMs){if(!o.longSwipes)return void n.slideTo(n.activeIndex);"next"===n.swipeDirection&&(k>=o.longSwipesRatio?n.slideTo(o.rewind&&n.isEnd?x:v+S):n.slideTo(v)),"prev"===n.swipeDirection&&(k>1-o.longSwipesRatio?n.slideTo(v+S):null!==w&&k<0&&Math.abs(k)>o.longSwipesRatio?n.slideTo(w):n.slideTo(v))}else{if(!o.shortSwipes)return void n.slideTo(n.activeIndex);n.navigation&&(i.target===n.navigation.nextEl||i.target===n.navigation.prevEl)?i.target===n.navigation.nextEl?n.slideTo(v+S):n.slideTo(v):("next"===n.swipeDirection&&n.slideTo(null!==x?x:v+S),"prev"===n.swipeDirection&&n.slideTo(null!==w?w:v))}}}}function I(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var r=e.allowSlideNext,i=e.allowSlidePrev,o=e.snapGrid,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();var s=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!a?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((function(){e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}}function P(e){var t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function F(){var e=this,t=e.wrapperEl,n=e.rtlTranslate;if(e.enabled){e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();var r=e.maxTranslate()-e.minTranslate();(0===r?0:(e.translate-e.minTranslate())/r)!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}}function O(e){var t=this;x(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update(
2)}function M(){var e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}var Z=function(e,t){var n=(0,h.g)(),r=e.params,i=e.el,o=e.wrapperEl,a=e.device,s=!!r.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:s}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",I,!0):e[c]("observerUpdate",I,!0),i[l]("load",e.onLoad,{capture:!0})};var R=function(e,t){return e.grid&&t.grid&&t.grid.rows>1};var L={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 B(e,t){return function(n){void 0===n&&(n={});var r=Object.keys(n)[0],i=n[r];"object"===typeof i&&null!==i?(!0===e[r]&&(e[r]={enabled:!0}),"navigation"===r&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&"enabled"in i?("object"!==typeof e[r]||"enabled"in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),(0,m.u)(t,n)):(0,m.u)(t,n)):(0,m.u)(t,n)}}var z={eventsEmitter:b,update:S,translate:j,transition:{setTransition:function(e,t){var n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration="".concat(e,"ms"),n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var n=this,r=n.params;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),C({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);var n=this,r=n.params;n.animating=!1,r.cssMode||(n.setTransition(0),C({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:_,loop:E,grabCursor:{setGrabCursor:function(e){var t=this;if(!(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)){var n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((function(){t.__preventObserver__=!1}))}},unsetGrabCursor:function(){var 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((function(){e.__preventObserver__=!1})))}},events:{attachEvents:function(){var e=this,t=e.params;e.onTouchStart=A.bind(e),e.onTouchMove=D.bind(e),e.onTouchEnd=T.bind(e),e.onDocumentTouchStart=M.bind(e),t.cssMode&&(e.onScroll=F.bind(e)),e.onClick=P.bind(e),e.onLoad=O.bind(e),Z(e,"on")},detachEvents:function(){Z(this,"off")}},breakpoints:{setBreakpoint:function(){var e=this,t=e.realIndex,n=e.initialized,r=e.params,i=e.el,o=r.breakpoints;
2if(o&&(!o||0!==Object.keys(o).length)){var a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(a&&e.currentBreakpoint!==a){var s=(a in o?o[a]:void 0)||e.originalParams,l=R(e,r),c=R(e,s),u=r.enabled;l&&!c?(i.classList.remove("".concat(r.containerModifierClass,"grid"),"".concat(r.containerModifierClass,"grid-column")),e.emitContainerClasses()):!l&&c&&(i.classList.add("".concat(r.containerModifierClass,"grid")),(s.grid.fill&&"column"===s.grid.fill||!s.grid.fill&&"column"===r.grid.fill)&&i.classList.add("".concat(r.containerModifierClass,"grid-column")),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((function(t){if("undefined"!==typeof s[t]){var n=r[t]&&r[t].enabled,i=s[t]&&s[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()}}));var d=s.direction&&s.direction!==r.direction,f=r.loop&&(s.slidesPerView!==r.slidesPerView||d),p=r.loop;d&&n&&e.changeDirection(),(0,m.u)(e.params,s);var h=e.params.enabled,v=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!h?e.disable():!u&&h&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",s),n&&(f?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!p&&v?(e.loopCreate(t),e.updateSlides()):p&&!v&&e.loopDestroy()),e.emit("breakpoint",s)}}},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),e&&("container"!==t||n)){var r=!1,i=(0,h.a)(),o="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map((function(e){if("string"===typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));a.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var s=0;s<a.length;s+=1){var l=a[s],c=l.point,u=l.value;"window"===t?i.matchMedia("(min-width: ".concat(u,"px)")).matches&&(r=c):u<=n.clientWidth&&(r=c)}return r||"max"}}},checkOverflow:{checkOverflow:function(){var e=this,t=e.isLocked,n=e.params,r=n.slidesOffsetBefore;if(r){var i=e.slides.length-1,o=e.slidesGrid[i]+e.slidesSizesGrid[i]+2*r;e.isLocked=e.size>o}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){var e,t=this,n=t.classNames,r=t.params,i=t.rtl,o=t.el,a=t.device,s=function(e,t){var n=[];return e.forEach((function(e){"object"===typeof e?Object.keys(e).forEach((function(r){e[r]&&n.push(t+r)})):"string"===typeof e&&n.push(t+e)})),n}(["initialized",r.direction,{"free-mode":t.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:i},{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);n.push.apply(n,(0,p.Z)(s)),(e=o.classList).add.apply(e,(0,p.Z)(n)),t.emitContainerClasses()},removeClasses:function(){var e,t=this,n=t.el,r=t.classNames;(e=n.classList).remove.apply(e,(0,p.Z)(r)),t.emitContainerClasses()}}},U={},H=function(){function e(){var t,n;(0,d.Z)(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?n=i[0]:(t=i[0],n=i[1]),n||(n={}),n=(0,m.u)({},n),t&&!n.el&&(n.el=t);var a=(0,h.g)();if(n.el&&"string"===typeof n.el&&a.querySelectorAll(n.el).length>1){var s=[];return a.querySelectorAll(n.el).forEach((function(t){var r=(0,m.u)({},n,{el:t});s.push(new e(r))})),s}var l,c=this;(c.__swiper__=!0,c.support=v(),c.device=g({userAgent:n.userAgent}),c.browser=y(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=(0,p.Z)(c.__modules__),n.modules&&Array.isArray(n.modules))&&(l=c.modules).push.apply(l,(0,p.Z)(n.modules));var u={};c.modules.forEach((function(e){e({params:n,swiper:c,extendParams:B(n,u),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})}));var f=(0,m.u)({},L,u);return c.params=(0,m.u)({},f,U,n),c.originalParams=(0,m.u)({},c.params),c.passedParams=(0,m.u)({}
2,n),c.params&&c.params.on&&Object.keys(c.params.on).forEach((function(e){c.on(e,c.params.on[e])})),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===c.params.direction},isVertical:function(){return"vertical"===c.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment:function(){return Math.trunc(this.translate/Math.pow(2,23))*Math.pow(2,23)},allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.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:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}return(0,f.Z)(e,[{key:"getDirectionLabel",value:function(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]}},{key:"getSlideIndex",value:function(e){var t=this.slidesEl,n=this.params,r=(0,m.e)(t,".".concat(n.slideClass,", swiper-slide")),i=(0,m.g)(r[0]);return(0,m.g)(e)-i}},{key:"getSlideIndexByData",value:function(e){return this.getSlideIndex(this.slides.filter((function(t){return 1*t.getAttribute("data-swiper-slide-index")===e}))[0])}},{key:"recalcSlides",value:function(){var e=this,t=e.slidesEl,n=e.params;e.slides=(0,m.e)(t,".".concat(n.slideClass,", swiper-slide"))}},{key:"enable",value:function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}},{key:"disable",value:function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}},{key:"setProgress",value:function(e,t){var n=this;e=Math.min(Math.max(e,0),1);var r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,"undefined"===typeof t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}},{key:"emitContainerClasses",value:function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter((function(t){return 0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)}));e.emit("_containerClasses",t.join(" "))}}},{key:"getSlideClasses",value:function(e){var t=this;return t.destroyed?"":e.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)})).join(" ")}},{key:"emitSlidesClasses",value:function(){var e=this;if(e.params._emitClasses&&e.el){var t=[];e.slides.forEach((function(n){var r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}}},{key:"slidesPerViewDynamic",value:function(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);var n=this,r=n.params,i=n.slides,o=n.slidesGrid,a=n.slidesSizesGrid,s=n.size,l=n.activeIndex,c=1;if("number"===typeof r.slidesPerView)return r.slidesPerView;if(r.centeredSlides){for(var u,d=i[l]?Math.ceil(i[l].swiperSlideSize):0,f=l+1;f<i.length;f+=1)i[f]&&!u&&(c+=1,(d+=Math.ceil(i[f].swiperSlideSize))>s&&(u=!0));for(var p=l-1;p>=0;p-=1)i[p]&&!u&&(c+=1,(d+=i[p].swiperSlideSize)>s&&(u=!0))}else if("current"===e)for(var h=l+1;h<i.length;h+=1){(t?o[h]+a[h]-o[l]<s:o[h]-o[l]<s)&&(c+=1)}else for(var m=l-1;m>=0;m-=1){o[l]-o[m]<s&&(c+=1)}return c}},{key:"update",value:function(){var e=this;if(e&&!e.destroyed){var t,n=e.snapGrid,r=e.params;if(r.breakpoints&&e.setBreakpoint(),(0,p.Z)(e.el.querySelectorAll('[loading="lazy"]')).forEach((function(t){t.complete&&x(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),r.freeMode&&r.freeMode.enabled&&!r.cssMode)o(),r.autoHeight&&e.updateAutoHeight();else{if(("auto"===r.slidesPerView||r.slidesPerView>1)&&e.isEnd&&!r.centeredSlides){var i=e.virtual&&r.virtual.enabled?e.virtual.slides:e.slides;t=e.slideTo(i.length-1,0,!1,!0)}else t=e.slideTo(e.activeIndex,0,!1,!0);t||o()}r.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function o(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}}},{key:"changeDirection",value:function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove("".concat(n.params.containerModifierClass).concat(r)),n.el.classList.add("".concat(n.params.containerModifierClass).concat(e)),n.emitContainerClasses(),n.params.direction=e,n.slides.forEac
2h((function(t){"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}},{key:"changeLanguageDirection",value:function(e){var 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("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="rtl"):(t.el.classList.remove("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="ltr"),t.update())}},{key:"mount",value:function(e){var t=this;if(t.mounted)return!0;var n=e||t.params.el;if("string"===typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);var r=function(){return".".concat((t.params.wrapperClass||"").trim().split(" ").join("."))},i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):(0,m.e)(n,r())[0];return!i&&t.params.createElements&&(i=(0,m.c)("div",t.params.wrapperClass),n.append(i),(0,m.e)(n,".".concat(t.params.slideClass)).forEach((function(e){i.append(e)}))),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===(0,m.o)(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===(0,m.o)(n,"direction")),wrongRTL:"-webkit-box"===(0,m.o)(i,"display")}),!0}},{key:"init",value:function(e){var 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(),t.attachEvents();var n=(0,p.Z)(t.el.querySelectorAll('[loading="lazy"]'));return t.isElement&&n.push.apply(n,(0,p.Z)(t.hostEl.querySelectorAll('[loading="lazy"]'))),n.forEach((function(e){e.complete?x(t,e):e.addEventListener("load",(function(e){x(t,e.target)}))})),k(t),t.initialized=!0,k(t),t.emit("init"),t.emit("afterInit"),t}},{key:"destroy",value:function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n=this,r=n.params,i=n.el,o=n.wrapperEl,a=n.slides;return"undefined"===typeof n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach((function(e){e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(e){n.off(e)})),!1!==e&&(n.el.swiper=null,(0,m.v)(n)),n.destroyed=!0),null}}],[{key:"extendDefaults",value:function(e){(0,m.u)(U,e)}},{key:"extendedDefaults",get:function(){return U}},{key:"defaults",get:function(){return L}},{key:"installModule",value:function(t){e.prototype.__modules__||(e.prototype.__modules__=[]);var n=e.prototype.__modules__;"function"===typeof t&&n.indexOf(t)<0&&n.push(t)}},{key:"use",value:function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)}}]),e}();Object.keys(z).forEach((function(e){Object.keys(z[e]).forEach((function(t){H.prototype[t]=z[e][t]}))})),H.use([function(e){var t=e.swiper,n=e.on,r=e.emit,i=(0,h.a)(),o=null,a=null,s=function(){t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},l=function(){t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",(function(){t.params.resizeObserver&&"undefined"!==typeof i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver((function(e){a=i.requestAnimationFrame((function(){var n=t.width,r=t.height,i=n,o=r;e.forEach((function(e){var n=e.contentBoxSize,r=e.contentRect,a=e.target;a&&a!==t.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)})),i===n&&o===r||s()}))}))).observe(t.el):(i.addEventListener("resize",s),i.addEventListener("orientationchange",l))})),n("destroy",(function(){a&&i.cancelAnimationFrame(a),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),i.removeEventListener("resize",s),i.removeEventListener("orientationchange",l)}))},function(e){var t=e.swiper,n=e.extendParams,r=e.on,i=e.emit,o=[],a=(0,h.a)(),s=function(e,n){void 0===n&&(n={});var r=new(a.MutationObserver||a.WebkitMutationObserver)((function(e){if(!t.__preventObserver__)if(1!==e.length){var n=function(){i("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)}else i("observerUpdate",e[0])}));r.observe(e,{attributes:"undefined"===typeof n.attributes||n.attributes,childList:"undefined"===typeof n.childList||n.childList,characterData:"undefined"===typeof n.characterData||n.characterData}),o.push(r)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",(function(){if(t.params.observer){if(t.params.observeParents)for(var e=(0,m.a)(t.hostEl),n=0;n<e.length;n+=1)s(e[n]);s(t.hostEl,{childList:t.params.observeSlideChildren}),s(t.wrapperEl,{attributes:!1})}})),r("destroy",(function(){o.forEach((function(e){e.disconnect()})),o.splice(0,o.length)}))}]);var W=["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","_centeredSlidesB
2ounds","_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 q(e){return"object"===typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function V(e,t){var n=["__proto__","constructor","prototype"];Object.keys(t).filter((function(e){return n.indexOf(e)<0})).forEach((function(n){"undefined"===typeof e[n]?e[n]=t[n]:q(t[n])&&q(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:V(e[n],t[n]):e[n]=t[n]}))}function G(e){return void 0===e&&(e={}),e.navigation&&"undefined"===typeof e.navigation.nextEl&&"undefined"===typeof e.navigation.prevEl}function $(e){return void 0===e&&(e={}),e.pagination&&"undefined"===typeof e.pagination.el}function J(e){return void 0===e&&(e={}),e.scrollbar&&"undefined"===typeof e.scrollbar.el}function K(e){void 0===e&&(e="");var t=e.split(" ").map((function(e){return e.trim()})).filter((function(e){return!!e})),n=[];return t.forEach((function(e){n.indexOf(e)<0&&n.push(e)})),n.join(" ")}function Y(e){return void 0===e&&(e=""),e?e.includes("swiper-wrapper")?e:"swiper-wrapper ".concat(e):"swiper-wrapper"}var X=["className","tag","wrapperTag","children","onSwiper"],Q=["tag","children","className","swiper","zoom","lazy","virtualIndex","swiperSlideIndex"];function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(this,arguments)}function te(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function ne(e){var t=[];return u.Children.toArray(e).forEach((function(e){te(e)?t.push(e):e.props&&e.props.children&&ne(e.props.children).forEach((function(e){return t.push(e)}))})),t}function re(e){var t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return u.Children.toArray(e).forEach((function(e){if(te(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){var r=ne(e.props.children);r.length>0?r.forEach((function(e){return t.push(e)})):n["container-end"].push(e)}else n["container-end"].push(e)})),{slides:t,slots:n}}function ie(e,t){return"undefined"===typeof window?(0,u.useEffect)(e,t):(0,u.useLayoutEffect)(e,t)}var oe=(0,u.createContext)(null),ae=(0,u.createContext)(null),se=(0,u.forwardRef)((function(e,t){var n=void 0===e?{}:e,r=n.className,i=n.tag,o=void 0===i?"div":i,d=n.wrapperTag,f=void 0===d?"div":d,p=n.children,h=n.onSwiper,m=(0,l.Z)(n,X),v=!1,g=(0,u.useState)("swiper"),y=(0,s.Z)(g,2),b=y[0],x=y[1],w=(0,u.useState)(null),k=(0,s.Z)(w,2),S=k[0],j=k[1],C=(0,u.useState)(!1),_=(0,s.Z)(C,2),E=_[0],N=_[1],A=(0,u.useRef)(!1),D=(0,u.useRef)(null),T=(0,u.useRef)(null),I=(0,u.useRef)(null),P=(0,u.useRef)(null),F=(0,u.useRef)(null),O=(0,u.useRef)(null),M=(0,u.useRef)(null),Z=(0,u.useRef)(null),R=function(e,t){void 0===e&&(e={}),void 0===t&&(t=!0);var n={on:{}},r={},i={};V(n,L),n._emitClasses=!0,n.init=!1;var o={},a=W.map((function(e){return e.replace(/_/,"")})),s=Object.assign({},e);
2return Object.keys(s).forEach((function(s){"undefined"!==typeof e[s]&&(a.indexOf(s)>=0?q(e[s])?(n[s]={},i[s]={},V(n[s],e[s]),V(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):0===s.search(/on[A-Z]/)&&"function"===typeof e[s]?t?r["".concat(s[2].toLowerCase()).concat(s.substr(3))]=e[s]:n.on["".concat(s[2].toLowerCase()).concat(s.substr(3))]=e[s]:o[s]=e[s])})),["navigation","pagination","scrollbar"].forEach((function(e){!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]})),{params:n,passedParams:i,rest:o,events:r}}(m),B=R.params,z=R.passedParams,U=R.rest,Q=R.events,te=re(p),ne=te.slides,oe=te.slots,se=function(){N(!E)};Object.assign(B.on,{_containerClasses:function(e,t){x(t)}});var le=function(){Object.assign(B.on,Q),v=!0;var e=(0,a.Z)({},B);if(delete e.wrapperClass,T.current=new H(e),T.current.virtual&&T.current.params.virtual.enabled){T.current.virtual.slides=ne;var t={cache:!1,slides:ne,renderExternal:j,renderExternalUpdate:!1};V(T.current.params.virtual,t),V(T.current.originalParams.virtual,t)}};D.current||le(),T.current&&T.current.on("_beforeBreakpoint",se);return(0,u.useEffect)((function(){return function(){T.current&&T.current.off("_beforeBreakpoint",se)}})),(0,u.useEffect)((function(){!A.current&&T.current&&(T.current.emitSlidesClasses(),A.current=!0)})),ie((function(){if(t&&(t.current=D.current),D.current)return T.current.destroyed&&le(),function(e,t){var n=e.el,r=e.nextEl,i=e.prevEl,o=e.paginationEl,a=e.scrollbarEl,s=e.swiper;G(t)&&r&&i&&(s.params.navigation.nextEl=r,s.originalParams.navigation.nextEl=r,s.params.navigation.prevEl=i,s.originalParams.navigation.prevEl=i),$(t)&&o&&(s.params.pagination.el=o,s.originalParams.pagination.el=o),J(t)&&a&&(s.params.scrollbar.el=a,s.originalParams.scrollbar.el=a),s.init(n)}({el:D.current,nextEl:F.current,prevEl:O.current,paginationEl:M.current,scrollbarEl:Z.current,swiper:T.current},B),h&&!T.current.destroyed&&h(T.current),function(){T.current&&!T.current.destroyed&&T.current.destroy(!0,!1)}}),[]),ie((function(){!v&&Q&&T.current&&Object.keys(Q).forEach((function(e){T.current.on(e,Q[e])}));var e=function(e,t,n,r,i){var o=[];if(!t)return o;var a=function(e){o.indexOf(e)<0&&o.push(e)};if(n&&r){var s=r.map(i),l=n.map(i);s.join("")!==l.join("")&&a("children"),r.length!==n.length&&a("children")}return W.filter((function(e){return"_"===e[0]})).map((function(e){return e.replace(/_/,"")})).forEach((function(n){if(n in e&&n in t)if(q(e[n])&&q(t[n])){var r=Object.keys(e[n]),i=Object.keys(t[n]);r.length!==i.length?a(n):(r.forEach((function(r){e[n][r]!==t[n][r]&&a(n)})),i.forEach((function(r){e[n][r]!==t[n][r]&&a(n)})))}else e[n]!==t[n]&&a(n)})),o}(z,I.current,ne,P.current,(function(e){return e.key}));return I.current=z,P.current=ne,e.length&&T.current&&!T.current.destroyed&&function(e){var t,n,r,i,o,a,s,l,c=e.swiper,u=e.slides,d=e.passedParams,f=e.changedParams,p=e.nextEl,h=e.prevEl,m=e.scrollbarEl,v=e.paginationEl,g=f.filter((function(e){return"children"!==e&&"direction"!==e&&"wrapperClass"!==e})),y=c.params,b=c.pagination,x=c.navigation,w=c.scrollbar,k=c.virtual,S=c.thumbs;f.includes("thumbs")&&d.thumbs&&d.thumbs.swiper&&y.thumbs&&!y.thumbs.swiper&&(t=!0),f.includes("controller")&&d.controller&&d.controller.control&&y.controller&&!y.controller.control&&(n=!0),f.includes("pagination")&&d.pagination&&(d.pagination.el||v)&&(y.pagination||!1===y.pagination)&&b&&!b.el&&(r=!0),f.includes("scrollbar")&&d.scrollbar&&(d.scrollbar.el||m)&&(y.scrollbar||!1===y.scrollbar)&&w&&!w.el&&(i=!0),f.includes("navigation")&&d.navigation&&(d.navigation.prevEl||h)&&(d.navigation.nextEl||p)&&(y.navigation||!1===y.navigation)&&x&&!x.prevEl&&!x.nextEl&&(o=!0);var j=function(e){c[e]&&(c[e].destroy(),"navigation"===e?(c.isElement&&(c[e].prevEl.remove(),c[e].nextEl.remove()),y[e].prevEl=void 0,y[e].nextEl=void 0,c[e].prevEl=void 0,c[e].nextEl=void 0):(c.isElement&&c[e].el.remove(),y[e].el=void 0,c[e].el=void 0))};f.includes("loop")&&c.isElement&&(y.loop&&!d.loop?a=!0:!y.loop&&d.loop?s=!0:l=!0),g.forEach((function(e){if(q(y[e])&&q(d[e]))Object.assign(y[e],d[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in d[e])||d[e].enabled||j(e);else{var t=d[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?y[e]=d[e]:!1===t&&j(e)}})),g.includes("controller")&&!n&&c.controller&&c.controller.control&&y.controller&&y.controller.control&&(c.controller.control=y.controller.control),f.includes("children")&&u&&k&&y.virtual.enabled?(k.slides=u,k.update(!0)):f.includes("virtual")&&k&&y.virtual.enabled&&(u&&(k.slides=u),k.update(!0)),f.includes("children")&&u&&y.loop&&(l=!0),t&&S.init()&&S.update(!0),n&&(c.controller.control=y.controller.control),r&&(!c.isElement||v&&"string"!==typeof v||((v=document.createElement("div")).classList.add("swiper-pagination"),v.part.add("pagination"),c.el.appendChild(v)),v&&(y.pagination.el=v),b.init(),b.render(),b.update(
2)),i&&(!c.isElement||m&&"string"!==typeof m||((m=document.createElement("div")).classList.add("swiper-scrollbar"),m.part.add("scrollbar"),c.el.appendChild(m)),m&&(y.scrollbar.el=m),w.init(),w.updateSize(),w.setTranslate()),o&&(c.isElement&&(p&&"string"!==typeof p||((p=document.createElement("div")).classList.add("swiper-button-next"),p.innerHTML=c.hostEl.constructor.nextButtonSvg,p.part.add("button-next"),c.el.appendChild(p)),h&&"string"!==typeof h||((h=document.createElement("div")).classList.add("swiper-button-prev"),h.innerHTML=c.hostEl.constructor.prevButtonSvg,h.part.add("button-prev"),c.el.appendChild(h))),p&&(y.navigation.nextEl=p),h&&(y.navigation.prevEl=h),x.init(),x.update()),f.includes("allowSlideNext")&&(c.allowSlideNext=d.allowSlideNext),f.includes("allowSlidePrev")&&(c.allowSlidePrev=d.allowSlidePrev),f.includes("direction")&&c.changeDirection(d.direction,!1),(a||l)&&c.loopDestroy(),(s||l)&&c.loopCreate(),c.update()}({swiper:T.current,slides:ne,passedParams:z,changedParams:e,nextEl:F.current,prevEl:O.current,scrollbarEl:Z.current,paginationEl:M.current}),function(){Q&&T.current&&Object.keys(Q).forEach((function(e){T.current.off(e,Q[e])}))}})),ie((function(){var e;!(e=T.current)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())}),[S]),u.createElement(o,ee({ref:D,className:K("".concat(b).concat(r?" ".concat(r):""))},U),u.createElement(ae.Provider,{value:T.current},oe["container-start"],u.createElement(f,{className:Y(B.wrapperClass)},oe["wrapper-start"],B.virtual?function(e,t,n){if(!n)return null;for(var r=function(e){var n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},i=e.isHorizontal()?(0,c.Z)({},e.rtlTranslate?"right":"left","".concat(n.offset,"px")):{top:"".concat(n.offset,"px")},o=n.from,a=n.to,s=e.params.loop?-t.length:0,l=e.params.loop?2*t.length:t.length,d=[],f=s;f<l;f+=1)f>=o&&f<=a&&d.push(t[r(f)]);return d.map((function(t,n){return u.cloneElement(t,{swiper:e,style:i,key:"slide-".concat(n)})}))}(T.current,ne,S):ne.map((function(e,t){return u.cloneElement(e,{swiper:T.current,swiperSlideIndex:t})})),oe["wrapper-end"]),G(B)&&u.createElement(u.Fragment,null,u.createElement("div",{ref:O,className:"swiper-button-prev"}),u.createElement("div",{ref:F,className:"swiper-button-next"})),J(B)&&u.createElement("div",{ref:Z,className:"swiper-scrollbar"}),$(B)&&u.createElement("div",{ref:M,className:"swiper-pagination"}),oe["container-end"]))}));se.displayName="Swiper";var le=(0,u.forwardRef)((function(e,t){var n=void 0===e?{}:e,r=n.tag,i=void 0===r?"div":r,o=n.children,a=n.className,c=void 0===a?"":a,d=n.swiper,f=n.zoom,p=n.lazy,h=n.virtualIndex,m=n.swiperSlideIndex,v=(0,l.Z)(n,Q),g=(0,u.useRef)(null),y=(0,u.useState)("swiper-slide"),b=(0,s.Z)(y,2),x=b[0],w=b[1],k=(0,u.useState)(!1),S=(0,s.Z)(k,2),j=S[0],C=S[1];function _(e,t,n){t===g.current&&w(n)}ie((function(){if("undefined"!==typeof m&&(g.current.swiperSlideIndex=m),t&&(t.current=g.current),g.current&&d){if(!d.destroyed)return d.on("_slideClass",_),function(){d&&d.off("_slideClass",_)};"swiper-slide"!==x&&w("swiper-slide")}})),ie((function(){d&&g.current&&!d.destroyed&&w(d.getSlideClasses(g.current))}),[d]);var E={isActive:x.indexOf("swiper-slide-active")>=0,isVisible:x.indexOf("swiper-slide-visible")>=0,isPrev:x.indexOf("swiper-slide-prev")>=0,isNext:x.indexOf("swiper-slide-next")>=0},N=function(){return"function"===typeof o?o(E):o};return u.createElement(i,ee({ref:g,className:K("".concat(x).concat(c?" ".concat(c):"")),"data-swiper-slide-index":h,onLoad:function(){C(!0)}},v),f&&u.createElement(oe.Provider,{value:E},u.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"===typeof f?f:void 0},N(),p&&!j&&u.createElement("div",{className:"swiper-lazy-preloader"}))),!f&&u.createElement(oe.Provider,{value:E},N(),p&&!j&&u.createElement("div",{className:"swiper-lazy-preloader"})))}));le.displayName="SwiperSlide"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.m=e,n.amdO={}
vendor: 6,349 bytes, line 2
2,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+"."+{458:"e8cdeb9d",470:"e0418293",633:"c5502d77",787:"47485350",1088:"899304a8",1148:"08c0e446",1246:"f2378636",1340:"3fd02099",1362:"21d4bb14",1431:"8fdfda5a",1526:"ad33faf0",1527:"f29aab83",1695:"b8a1567f",1769:"90eb54ce",1892:"0fbcd9e8",1984:"4ad976da",2163:"82d5a0da",2179:"007c6cde",2318:"5f18ac6e",2641:"d55c9c67",2993:"479ec5e2",3053:"e1701fa6",3420:"258e5c14",3435:"72bb5b58",3636:"0a8e3739",4072:"11710a0c",4173:"b8137ed6",4198:"e2b2bef7",4305:"0413fef9",4487:"a278ad5b",5164:"a9cccaae",5382:"9fb92a6a",5394:"e0a52eae",5536:"d6783f73",5697:"59e1fdd5",5867:"63817f21",6067:"dc59cad9",6667:"3b0aea24",6770:"a8622e5f",6838:"efa42cff",6887:"dff9329b",6931:"30b657d3",7143:"f6332e88",7145:"c827448d",7225:"74cc6aad",7302:"9cad03c0",7509:"873cfa39",7722:"c9451fda",7745:"e854e6d8",7917:"54984e97",8099:"0aba225f",8114:"5047e06d",8143:"d74c1cd1",8649:"0211848b",8971:"45435ec2",8990:"7069f495",9195:"66aef71f",9612:"ff045292",9652:"c7b4eac4",9672:"7f921e7d",9997:"d6dde562"}[e]+".chunk.js"},n.miniCssF=function(e){return"static/css/"+e+"."+{458:"17aebc69",1088:"43a62061",1892:"1bef1a70",2318:"c21f9d3b",3420:"949bccba",3435:"5d614744",6667:"95e0092e",8114:"3ace93e5",9672:"9c7f15c8"}[e]+".chunk.css"},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="statingtem:";n.l=function(r,i,o,a){if(e[r])e[r].push(i);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var f=function(t,n){s.onerror=s.onload=null,clearTimeout(p);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){if("undefined"!==typeof document){var e=function(e){return new Promise((function(t,r){var i=n.miniCssF(e),o=n.p+i;if(function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}}(i,o))return t();!function(e,t,n,r,i){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=function(n){if(o.onerror=o.onload=null,"load"===n.type)r();else{var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,o.parentNode.removeChild(o),i(l)}},o.href=t,n?n.parentNode.insertBefore(o,n.nextSibling):document.head.appendChild(o)}(e,o,null,t,r)}))},t={179:0};n.f.miniCss=function(n,r){t[n]?r.push(t[n]):0!==t[n]&&{458:1,1088:1,1892:1,2318:1,3420:1,3435:1,6667:1,8114:1,9672:1}[n]&&r.push(t[n]=e(n).then((function(){t[n]=0}),(function(e){throw delete t[n],e})))}}}(),function(){var e={179:0};n.f.j=function(t,r){var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else if(/^(3420|8114)$/.test(t))e[t]=0;else{var o=new Promise((function(n,r){i=e[t]=[n,r]}));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(function(r){if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=function(t,r){var i,o,a=r[0],s=r[1],l=r[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)l(n)}for(t&&t(r);c<a.length;c++)o=a[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkstatingtem=self.webpackChunkstatingtem||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),function(){"use strict";var e={};n.r(e),n.d(e,{attentionMarkers:function(){return Fl},contentInitial:function(){return Nl},disable:function(){return Ol},document:function(){return El},flow:function(){return Dl},flowInitial:function(){return Al},insideSpan:function(){return Pl},string:function(){return Tl},text:function(){return Il}});var t={};n.r(t),n.d(t,{boolean:function(){return Dc},booleanish:function(){return Tc},commaOrSpaceSeparated:function(){return Mc},commaSeparated:function(){return Oc},number:function(){return Pc},overloadedBoolean:function(){return Ic},spaceSeparated:function(){return Fc}});var r={};n.r(r),n.d(r,{decode:function(){return VD},encode:function(){return JD},format:function(){return KD},parse:function(){return dT}});var i={};n.r(i),n.d(i,{Any:function(){return hT},Cc:function(){return mT},Cf:function(){return vT},P:function(){return fT},S:function(){return pT},Z:function(){return gT}});var o={};n.r(o),n.d(o,{arrayReplaceAt:function(){return UT},asciiTrim:function(){return dI},assign:function(){return zT},escapeHtml:function(){return tI},escapeRE:function(){return rI},fromCodePoint:function(){return WT},has:function(){return BT},isMdAsciiPunct:function(){return lI},isPunctChar:function(){return aI},isPunctCharCode:function(){return sI},isSpace:function(){return iI},isString:function(){return RT},isValidEntityCode:function(){return HT},isWhiteSpace:function(){return oI},lib:function(){return fI},normalizeReference:function(){return cI},unescapeAll:function(){return KT},unescapeMd:function(){return JT}}
2);var a={};n.r(a),n.d(a,{parseLinkDestination:function(){return hI},parseLinkLabel:function(){return pI},parseLinkTitle:function(){return mI}});var s={};n.r(s),n.d(s,{Decoder:function(){return mZ},Encoder:function(){return pZ},PacketType:function(){return uZ},protocol:function(){return fZ}});var l,c=n(2791),u=n(1250),d=n(4165),f=n(5861),p=n(9439),h=n(7689),m=n(2719),v=(n(2854),n(3433)),g=n(1087),y=n(9434),b=n(4014),x=n(7019),w=n(6461),k=n(6866),S=n(6893),j=n(3195),C=n(892),_=function(e,t,n){return Math.max(0,e+t-n)},E=function(e){if(!e||"undefined"===typeof document)return null;var t;try{t=document.querySelectorAll("["+e+"]")}catch(r){return null}var n=[];return t.forEach((function(t){var r=t.getBoundingClientRect();n.push({id:t.getAttribute(e),top:r.top,bottom:r.bottom})})),function(e){if(!Array.isArray(e))return null;for(var t=0;t<e.length;t+=1){var n=e[t];if(n&&n.bottom>0)return{anchorId:n.id,anchorTop:n.top}}return null}(n)},N=function(e){var t=e.keyName,n=e.enabled,r=void 0===n||n,i=e.filterSig,o=void 0===i?null:i,a=e.anchorAttr,s=void 0===a?null:a,l=e.restoreOnMount,u=void 0===l||l,d=(0,c.useRef)(null),f=(0,c.useRef)(!1),p=(0,c.useRef)(!1),h=(0,c.useRef)(0),m=(0,c.useRef)(o);m.current=o;var v=(0,c.useRef)(s);v.current=s;var g=(0,c.useRef)(null);return(0,c.useEffect)((function(){if(r&&u){var e=s,n=(0,C.ij)(t),i=function(){var e=null,t=null,r=!1,i=function(){if(e){try{e.disconnect()}catch(n){}e=null}t&&(clearTimeout(t),t=null)},o=function(){if(!r&&!f.current){var e=d.current;if(null!=e)document.documentElement.scrollHeight-window.innerHeight+1>=e&&(window.scrollTo({top:e,left:0,behavior:"instant"}),r=!0,i())}},a=function(){f.current=!0,i()},s={capture:!0,once:!0,passive:!0},l=n&&"number"===typeof n.scrollY?n.scrollY:0;if(l>0&&(d.current=l,f.current=!1,o(),!r)){try{(e=new ResizeObserver((function(){return o()}))).observe(document.documentElement)}catch(c){}t=setTimeout((function(){r||f.current||null==d.current||(window.scrollTo({top:d.current,left:0,behavior:"instant"}),r=!0),i()}),1500),window.addEventListener("wheel",a,s),window.addEventListener("touchstart",a,s),window.addEventListener("keydown",a,s)}return function(){i(),window.removeEventListener("wheel",a,s),window.removeEventListener("touchstart",a,s),window.removeEventListener("keydown",a,s)}};if(!(!!e&&"object"===typeof n&&null!==n&&"string"===typeof n.anchorId&&n.anchorId.length>0&&"number"===typeof n.anchorTop))return i();var o=null;try{o=document.querySelector("["+e+'="'+CSS.escape(n.anchorId)+'"]')}catch(a){o=null}return o?function(){var t=n.anchorTop,r=!1,i=!1,o=null,a=null,s={capture:!0,once:!0,passive:!0},l=function(){if(r=!0,o){try{o.disconnect()}catch(e){}o=null}a&&(clearTimeout(a),a=null)},c=function(){if(!r){var o=document.querySelector("["+e+'="'+CSS.escape(n.anchorId)+'"]');if(o){var a=o.getBoundingClientRect();if(i=!0,Math.abs(a.top-t)>2){var s=window.scrollY||window.pageYOffset||0;window.scrollTo({top:_(s,a.top,t),left:0,behavior:"instant"})}}else i&&l()}};c();try{(o=new ResizeObserver((function(){return c()}))).observe(document.documentElement)}catch(d){}a=setTimeout((function(){l()}),4e3);var u=function(){l()};return window.addEventListener("wheel",u,s),window.addEventListener("touchstart",u,s),window.addEventListener("keydown",u,s),function(){l(),window.removeEventListener("wheel",u,s),window.removeEventListener("touchstart",u,s),window.removeEventListener("keydown",u,s)}}():i()}}),[t,r,s,u]),(0,c.useLayoutEffect)((function(){if(r){p.current=!1;var e=null,n=function(){p.current=!0,h.current=window.scrollY||window.pageYOffset||0,e||(e=setTimeout((function(){e=null;var n,r=v.current;r?(n=E(r))&&(g.current=n):n=void 0,(0,C.pi)(t,h.current,m.current,n)}),150))};return window.addEventListener("scroll",n,{passive:!0}),function(){if(window.removeEventListener("scroll",n),e&&(clearTimeout(e),e=null),p.current)try{var r,i=v.current;r=i?E(i)||g.current||null:void 0,(0,C.pi)(t,h.current,m.current,r)}catch(o){}}}}),[t,r]),null},A=n(1413),D=function(e,t){if(!Array.isArray(t))return t;if(!e||"object"!==typeof e||null==e.photoID)return t;var n="boolean"===typeof e.votebtnactive,r="boolean"===typeof e.Follow;if(!n&&!r)return t;var i=String(e.photoID),o=!1,a=t.map((function(t){if(t&&String(t.id)===i){o=!0;var a={};return n&&(a.is_vote=e.votebtnactive,a.total_votes=e.TotalVote),r&&(a.is_follow=e.Follow),(0,A.Z)((0,A.Z)({},t),a)}return t}));return o?a:t},T=n(9826),I=n(4695),P=n(8863),F=n(184),O=function(e){var t=e.openDelayMs,n=e.onSeen,r=e.onCtaClick,i=e.onClose,o=(0,c.useState)("closed"),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useRef)(null),d=(0,c.useRef)(!1),f=(0,c.useId)(),h=(0,c.useRef)("number"===typeof t&&t>=0?t:400);(0,c.useEffect)((function(){if("closed"===s){var e=0,t=0,n=setTimeout((function(){e=requestAnimationFrame((function(){t=requestAnimationFrame((function(){return l("open")}))}
2))}),h.current);return function(){clearTimeout(n),e&&cancelAnimationFrame(e),t&&cancelAnimationFrame(t)}}}),[s]);var m=(0,c.useCallback)((function(){l((function(e){return"closing"===e||"gone"===e?e:"closing"}))}),[]);(0,c.useEffect)((function(){if("closing"===s){var e=setTimeout((function(){l("gone"),i&&i()}),400);return function(){return clearTimeout(e)}}}),[s,i]),(0,c.useEffect)((function(){if("open"===s&&!d.current&&n){var e=u.current;if(e&&"undefined"!==typeof IntersectionObserver){var t=null,r=null,i=!1,o=function(){r&&(clearTimeout(r),r=null)},a=function(){t&&t.disconnect(),document.removeEventListener("visibilitychange",c)},l=function(){r||d.current||i&&"visible"===document.visibilityState&&(r=setTimeout((function(){r=null,d.current=!0,a(),n()}),1e3))};return t=new IntersectionObserver((function(e){e.forEach((function(e){(i=e.isIntersecting)?l():o()}))}),{threshold:.5}),document.addEventListener("visibilitychange",c),t.observe(e),function(){o(),a()}}}function c(){"visible"===document.visibilityState?l():o()}}),[s,n]);if("gone"===s)return null;var v=["hunt-poster-nudge-slot","open"===s?"hunt-poster-nudge-slot--open":"","closing"===s?"hunt-poster-nudge-slot--closing":""].filter(Boolean).join(" ");return(0,F.jsx)("div",{className:v,children:(0,F.jsx)("div",{className:"hunt-poster-nudge-slot__inner",children:(0,F.jsxs)("div",{className:"hunt-poster-nudge",role:"region","aria-labelledby":f,ref:u,children:[(0,F.jsx)("span",{className:"hunt-poster-nudge__tile","aria-hidden":"true",children:(0,F.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),(0,F.jsx)("circle",{cx:"12",cy:"13",r:"4"})]})}),(0,F.jsxs)("div",{className:"hunt-poster-nudge__copy",children:[(0,F.jsx)("p",{className:"hunt-poster-nudge__headline",id:f,children:"You're good at this Upvote thing!"}),(0,F.jsx)("p",{className:"hunt-poster-nudge__body",children:"You've upvoted a good amount of photos. Want to hunt one of your own?"})]}),(0,F.jsx)("button",{type:"button",className:"hunt-poster-nudge__cta",onClick:function(){r&&r(),m()},children:"Hunt a photo"}),(0,F.jsx)("button",{type:"button",className:"hunt-poster-nudge__dismiss","aria-label":"Dismiss",onClick:m,children:(0,F.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,F.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})})})},M=n(4993),Z=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,M.Z.get("/user/poster-nudge-state");case 3:return t=e.sent,e.abrupt("return",t);case 7:throw e.prev=7,e.t0=e.catch(0),e.t0;case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,M.Z.post("/user/poster-nudge-shown",{});case 3:return t=e.sent,e.abrupt("return",t);case 7:throw e.prev=7,e.t0=e.catch(0),e.t0;case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,M.Z.post("/user/poster-nudge-retire",{});case 3:return t=e.sent,e.abrupt("return",t);case 7:throw e.prev=7,e.t0=e.catch(0),e.t0;case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),B="posterNudgeState_v1",z=null,U={eligible:!1,upvotesUntilNext:0},H=null,W=null,q=null,V=!1,G=null,$=z,J=function(){if("undefined"===typeof window)return"anon";try{var e=(0,b.a)(localStorage.getItem("Data"))||{};return e.userid||e.userId||"anon"}catch(t){return"anon"}},K=function(e){var t=e&&e.data?e.data:null;if(!t||"object"!==typeof t)return U;if("string"===typeof t.status&&"error"===t.status.toLowerCase())return U;var n=t.data&&"object"===typeof t.data?t.data:t,r=Number(n.upvotesUntilNext);return{eligible:!0===n.eligible,upvotesUntilNext:r>0?r:0}},Y=function(e,t){try{sessionStorage.setItem(B,JSON.stringify({state:e,viewerKey:t}))}catch(n){}},X=function(){var e=J();if(void 0!==l&&H===e)return Promise.resolve(l);var t=function(e){if("undefined"!==typeof window)try{var t=sessionStorage.getItem(B);if(!t)return;var n=JSON.parse(t);return n&&n.viewerKey===e&&n.state?n.state:void sessionStorage.removeItem(B)}catch(r){return}}(e);return void 0!==t?(l=t,H=e,Promise.resolve(t)):(W||(W=Z().then(K).catch((function(){return U})).then((function(t){return l=t,H=e,Y(t,e),W=null,t}))),W)},Q=function(e){var t=(0,y.I0)(),n=(0,y.v9)((function(e){return e.LightBox.UpdateTheMianFeedpage})),r=(0,c.useState)(null),i=(0,p.Z)(r,2),o=i[0],a=i[1],s=(0,c.useRef)(!1);return(0,c.useEffect)((function(){var t;if(e&&(t=J(),G!==t&&(G=t,q=null,V=!1,$=z),!V&&n&&"object"===typeof n&&!0===n.votebtnactive&&q!==n)){q=n;var r=n.photoID;if(void 0!==r&&null!==r&&""!==r){var i=Date.now(),o=function(){V=!0,$=-1,l=U,Y(U,J()),a({photoId:r,openDelayMs:Math.max(0,400-(Date.now()-i))})};if($===z)return $="pending",void X().then((function(e){V||(e.eligible?o():$=e.upvotesUntilNext>0?e.upvotesUntilNext:-1)}));"number"!==typeof $||$<=0||0===($-=1)&&o()}}}),[n,e]),{nudge:o,onSeen:(0,c.useCallback)((function(){s.current||(s.current=!0,R().catch((function(){})))}),[]),onCtaClick:(0,c.useCallback)((function(){L().catch((function(){})),t(x.N.setPhotoUploadModalState(!0)),t(x.N.setPhotoUploadType("hunted_photo")),t(x.N.setisQueued({queue:!1}))}),[t]),onClose:(0,c.useCallback)((function(){return a(null)}),[])}},ee=function(e,t,n){if(!e||!e.photoId)return-1;if(!Array.isArray(t)||0===t.length)return-1;var r=t.findIndex((function(t){return t&&String(t.id)===String(e.photoId)}));if(r<0)return-1;for(var i=r;i<t.length;i+=1){var o=(0,P.Yp)(i);if(!(o>0&&Boolean(n&&n[o-1])))return i}return-1},te="Jump to what you haven\u2019t seen",ne=function(e){var t=e.visible,n=e.busy,r=e.onJump,i=e.onDismiss,o=(0,c.useState)(Boolean(t)),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useState)(!1),d=(0,p.Z)(u,2),f=d[0],h=d[1];return(0,c.useEffect)((function(){if(t){l(!0);var e=window.requestAnimationFrame((function(){return h(!0)}));return function(){return window.cancelAnimationFrame(e)}}h(!1);var n=window.setTimeout((function(){return l(!1)}),220);return function(){return window.clearTimeout(n)}}),[t]),s?(0,F.jsxs)("div",{className:"bph-wja".concat(f?" bph-wja--shown":""),children:[(0,F.jsxs)("button",{type:"button",className:"bph-wja__jump","aria-label":te,"aria-busy":n?"true":"false",onClick:r,children:[(0,F.jsx)("span",{className:"bph-wja__tooltip","aria-hidden":"true",children:te}),(0,F.jsx)("svg",{className:"bph-wja__chevron",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",focusable:"false",children:(0,F.jsx)("path",{d:"M10 4 L10 15 M5 10.5 L10 15.5 L15 10.5",stroke:"#05081E",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,F.jsx)("button",{type:"button",className:"bph-wja__dismiss","aria-label":"Hide this for now",onClick:i,children:(0,F.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",focusable:"false",children:(0,F.jsx)("path",{d:"M1.5 1.5 L8.5 8.5 M8.5 1.5 L1.5 8.5",stroke:"#696B78",strokeWidth:"1.5",strokeLinecap:"round"})})})]}):null},re=function(e){if("string"!==typeof e)return null;var t=/^\s*(\d{4})-(\d{2})-(\d{2})/.exec(e);return t?"".concat(t[1],"-").concat(t[2],"-").concat(t[3]):null},ie=function(e){if("string"!==typeof e)return null;var t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;var n=Date.UTC(Number(t[1]),Number(t[2])-1,Number(t[3]));if(Number.isNaN(n))return null;var r=new Date(n).getUTCDay();return new Date(n-864e5*(0===r?6:r-1)).toISOString().slice(0,10)},oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;
2try{var t=new Intl.DateTimeFormat("en-CA",{timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit"}).format(e);return ie(t)}catch(n){return null}},ae=C.jT,se="bph-week-jump-dismissed",le=function(e,t){try{j.Z.getInstance().logEvent(e,t)}catch(n){}},ce=function(e,t){return"by_recent_photos"===(e||(t?"by_recent_photos":"last_week"))},ue=function(){var e=(0,c.useRef)(),t=(0,y.v9)((function(e){return e.Login.isLoggedIn})),n=(0,c.useMemo)((function(){try{var e=localStorage.getItem("Data"),t=(0,b.a)(e)||{};return t.userid||t.userId||"anon"}catch(n){return"anon"}}),[t]),r=(0,c.useMemo)((function(){return JSON.stringify({filter:"by_recent_photos",viewerId:n})}),[n]),i=(0,h.ur)(),o=(0,c.useState)((function(){return"POP"!==i})),a=(0,p.Z)(o,1)[0];(0,c.useLayoutEffect)((function(){if(a)try{window.scrollTo({top:0,left:0,behavior:"instant"})}catch(e){}}),[a]);var s=(0,c.useState)((function(){(0,C.SY)(ae);var e=(0,C.ij)(ae,{filterSig:r});return e&&Array.isArray(e.rows)&&0!==e.rows.length?{rows:e.rows,offset:"number"===typeof e.cursor?e.cursor:0}:null})),l=(0,p.Z)(s,1)[0],u=(0,c.useState)(l?l.rows:[]),m=(0,p.Z)(u,2),_=m[0],E=m[1],A=(0,c.useState)([]),M=(0,p.Z)(A,2),Z=M[0],R=M[1],L=(0,c.useState)(!1),B=(0,p.Z)(L,2),z=B[0],U=B[1],H=(0,c.useState)(!0),W=(0,p.Z)(H,2),q=W[0],V=W[1],G=(0,c.useState)(""),$=(0,p.Z)(G,2),J=$[0],K=$[1],Y=(0,c.useState)(!1),X=(0,p.Z)(Y,2),te=X[0],ue=X[1],de=(0,c.useState)(!1),fe=(0,p.Z)(de,2),pe=fe[0],he=fe[1],me=(0,c.useRef)(l?l.offset:0),ve=(0,c.useRef)(Boolean(l)),ge=(0,c.useRef)(!1),ye=(0,h.TH)().search,be=(0,c.useMemo)((function(){var e=new URLSearchParams(ye);return{photoId:e.get("photo"),commentId:e.get("comment")}}),[ye]),xe=(0,c.useState)(null),we=(0,p.Z)(xe,2),ke=we[0],Se=we[1],je=(0,c.useRef)(null),Ce=(0,I.ZP)(),_e=(0,y.v9)((function(e){return e.PayWall.UserPaymentStatus})),Ee=(0,y.I0)(),Ne=(0,c.useRef)([]),Ae=(0,c.useRef)(!1),De=(0,c.useRef)(0),Te=(0,c.useRef)(!1),Ie=(0,c.useState)(null),Pe=(0,p.Z)(Ie,2),Fe=Pe[0],Oe=Pe[1],Me=(0,c.useState)(0),Ze=(0,p.Z)(Me,2),Re=Ze[0],Le=Ze[1],Be=(0,c.useState)(!1),ze=(0,p.Z)(Be,2),Ue=ze[0],He=ze[1],We=(0,c.useState)(!1),qe=(0,p.Z)(We,2),Ve=qe[0],Ge=qe[1],$e=(0,c.useState)((function(){try{return"1"===window.sessionStorage.getItem(se)}catch(e){return!1}})),Je=(0,p.Z)($e,2),Ke=Je[0],Ye=Je[1],Xe=localStorage.getItem("Data"),Qe=(0,b.a)(Xe),et=Qe.token,tt=Qe.isLoggedIn,nt=Qe.userid,rt=Qe.useDisplay_name,it=Qe.Display_UserSocailPhoto,ot=Q(tt);function at(e){var t=document.createElement("script");t.src=e,t.async=!0,document.body.appendChild(t)}var st=function(e){(0,C.ZH)(ae),K(e),me.current=0,V(!0)},lt=function(e){e[0].isIntersecting&&(me.current=me.current+10,ft(me.current))},ct=(0,y.v9)((function(e){return e.LightBox.LoadMorePhotos}));(0,c.useEffect)((function(){ct.fetchMorePhotos&&(me.current=me.current+10,ft(me.current),Ee(S.H.setLoadMorePhotos({fetchMorePhotos:!1,fetchAction:!1})))}),[ct.fetchAction]);var ut=(0,y.v9)((function(e){return e.LightBox.UpdateTheMianFeedpage}));(0,c.useEffect)((function(){E((function(e){return D(ut,e)})),R((function(e){return D(ut,e)}))}),[ut]);var dt,ft=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return U(!0),e.prev=1,e.next=4,(0,k.yU)("all",J||(tt?"by_recent_photos":"last_week"),t,et,tt);case 4:return n=e.sent,r=n.data.data.results,R((function(e){return[].concat((0,v.Z)(e),(0,v.Z)(r))})),j.Z.getInstance().logEvent("View (Scroll) Photo Feed",{UserID:nt}),(0===r.length||r.length<10)&&V(!1),U(!1),e.abrupt("return",r);case 13:return e.prev=13,e.t0=e.catch(1),U(!1),e.abrupt("return",[]);case 17:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(t){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){var t=new IntersectionObserver(lt,{root:null,threshold:0}),n=e.current;return n&&t.observe(n),function(){n&&t.unobserve(n)}}),[J,_,t]),(0,c.useEffect)((function(){if(ve.current)return ve.current=!1,void(window.innerWidth<=500&&he(!0));E([]),R([]),ue(!1),window.innerWidth<=500&&he(!0);var e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return U(!0),t=localStorage.getItem("RehuntedPost"),n=t?JSON.parse(t):null,e.prev=3,e.next=6,(0,k.yU)("all",J||(tt?"by_recent_photos":"last_week"),0,et,tt,n);case 6:r=e.sent,localStorage.removeItem("RehuntedPost"),E(r.data.data.results),U(!1),V(!0),me.current=0,0==r.data.data.results.length&&ue(!0),e.next=17;break;case 15:e.prev=15,e.t0=e.catch(3);case 17:case"end":return e.stop()}}),e,null,[[3,15]])})));return function(){return e.apply(this,arguments)}}();return e(),De.current+=1,function(){De.current+=1}}),[t,J]),dt=0===me.current?(0,v.Z)(_):[].concat((0,v.Z)(_),(0,v.Z)(Z));var pt=ke?dt.filter((function(e){return e.id!==ke.id})):dt,ht=ee(ot.nudge,pt,Ce),mt=Boolean(tt)&&ce(J,tt),vt=mt?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe();if(!Array.isArray(e)||0===e.length||!t)return-1;for(var n=-1,r=0;r<e.length;r+=1){var i=e[r];ie(re(i&&i.photo_posted_date))===t&&(n=r)}return n<=0||n>=e.length-1?-1:n}(pt):-1;(0,c.useEffect)((function(){if(mt){var e=!1;return(0,k.P1)().then((function(t){e||Oe(t||null)})).catch((function(){e||Oe(null)})),function(){e=!0}}Oe(null)}),[mt,t,J]),(0,c.useEffect)((function(){if(mt){var e=null,t=function(){e=null;for(var t=Ne.current||[],n=0,r=0;r<t.length;r+=1){var i=t[r];
2if(i){if(i.getBoundingClientRect().bottom>=0)break;n+=1}}Le(n);var o=Fe?document.querySelector('[data-restore-anchor="'.concat(Fe,'"]')):null;He(!!o&&o.getBoundingClientRect().top<window.innerHeight)},n=function(){null===e&&(e=window.requestAnimationFrame(t))};return t(),window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n,{passive:!0}),function(){null!==e&&window.cancelAnimationFrame(e),window.removeEventListener("scroll",n),window.removeEventListener("resize",n)}}}),[mt,pt.length,Fe]);var gt=Fe?pt.findIndex((function(e){return e&&e.id===Fe})):-1,yt=function(e){var t=e.applies,n=e.targetId,r=e.dismissed,i=e.scrolledPastCount,o=e.targetIndex,a=e.targetInView,s=e.minScrolled,l=e.minDistance;return!(!t||!n||r)&&!(i<s)&&!a&&(-1===o||o-i>=l)}({applies:mt,targetId:Fe,dismissed:Ke,scrolledPastCount:Re,targetIndex:gt,targetInView:Ue,minScrolled:10,minDistance:10});(0,c.useEffect)((function(){yt&&!Te.current?(Te.current=!0,le("Week Jump Arrow Shown",{UserID:nt})):yt||(Te.current=!1)}),[yt,nt]);var bt=function(e){var t=document.querySelector('[data-restore-anchor="'.concat(e,'"]'));if(!t)return!1;var n=!1;try{n=window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch(r){}return t.scrollIntoView({behavior:n?"instant":"smooth",block:"start"}),!0},xt=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,n,r,i,o,a,s;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Fe&&!Ae.current){e.next=2;break}return e.abrupt("return");case 2:if(Ae.current=!0,Ge(!0),le("Week Jump Arrow Tapped",{UserID:nt}),t=De.current,n=J,r=function(){return De.current===t&&J===n},e.prev=8,!bt(Fe)){e.next=11;break}return e.abrupt("return");case 11:i=0;case 12:if(!(i<20)){e.next=30;break}if(r()){e.next=15;break}return e.abrupt("return");case 15:return me.current=me.current+10,e.next=18,ft(me.current);case 18:if(o=e.sent,r()){e.next=21;break}return e.abrupt("return");case 21:if(Array.isArray(o)&&0!==o.length){e.next=23;break}return e.abrupt("break",30);case 23:if(!o.some((function(e){return e&&e.id===Fe}))){e.next=25;break}return e.abrupt("break",30);case 25:if(!(o.length<10)){e.next=27;break}return e.abrupt("break",30);case 27:i+=1,e.next=12;break;case 30:a=0,30,s=function e(){r()&&(bt(Fe)||((a+=1)<30?window.requestAnimationFrame(e):Oe(null)))},window.requestAnimationFrame(s);case 34:return e.prev=34,Ae.current=!1,Ge(!1),e.finish(34);case 38:case"end":return e.stop()}}),e,null,[[8,,34,38]])})));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){ce(J,t)&&Array.isArray(dt)&&0!==dt.length&&(0,C.Ff)(ae,dt.map(C.Hi),{cursor:me.current,filterSig:r})}),[dt,J,t,r]),(0,c.useEffect)((function(){if(!tt){var e=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&(ge.current||(j.Z.getInstance().logEvent("Secondary CTA Click",{source:"scroll_trigger",experiment_id:null,variant_id:null,page:"home"}),ge.current=!0),Ee(x.N.setJoinNowModalState(!0)),e.unobserve(t.target))}))}),{root:null,rootMargin:"0px",threshold:.1}),t=Ne.current;return t.forEach((function(t,n){t&&n>0&&n%3===0&&e.observe(t)})),function(){t.forEach((function(t){t&&e.unobserve(t)}))}}}),[dt,tt,Ee]),(0,c.useEffect)((function(){var e=ke?[ke].concat((0,v.Z)(pt)):dt;e&&Ee(S.H.setLightBoxState({PhotoArr:e,LoginUserPhotos:!1}))}),[dt,ke]),(0,c.useEffect)((function(){var e=!1;if(be.photoId)return(0,f.Z)((0,d.Z)().mark((function t(){var n,r,i,o,a;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,k.j0)(be.photoId,tt);case 3:i=t.sent,o=null===i||void 0===i||null===(n=i.data)||void 0===n||null===(r=n.data)||void 0===r?void 0:r[0],a=o&&o.id&&!o.isDeleted&&!o.isQueued&&!o.ownerIsBlocked,!e&&a&&Se(o),t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,9]])})))(),function(){e=!0};Se(null)}),[be.photoId,tt]);var wt=(0,c.useRef)(!1);(0,c.useEffect)((function(){if(ke&&!wt.current){var e=window.requestAnimationFrame((function(){if(je.current){wt.current=!0,je.current.scrollIntoView({behavior:"smooth",block:"start"});var e=new URL(window.location.href);e.searchParams.delete("photo"),e.searchParams.delete("comment"),window.history.replaceState(window.history.state,"","".concat(e.pathname).concat(e.search).concat(e.hash))}}));return function(){return window.cancelAnimationFrame(e)}}}),[ke]);var kt=[],St=new Set,jt=null,Ct=function(){jt||(jt=setTimeout((function(){if(kt.length>0){var e=[].concat(kt);kt.length=0,(0,k.z6)(e)}jt=null}),2e3))},_t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,F.jsx)(w.Z,{img:pe?"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_700,f_auto,q_auto/Resized_Photos/".concat(e.compressedImageId):e.photo_url,postId:e.id,isAdultContent:e.is_adult_content,TotalVotes:e.total_votes,voted:e.is_vote,Name:e.name,postedDate:e.photo_posted_date,Userlocation:e.state,UserPhoto:e.user_photo_url,Userid:e.user_id,usertoken:et,isLoggedIn:tt,loginUserid:nt,display_name:rt,displaySocailUserPhoto:it,First1Comments:e.comments,TotalComments:e.total_comments,description:e.description,feedback:e.feedback_type,metadata:e.metadata,is_follow:e.is_follow,UserPaymentStatus:_e,boostedWeeklyPhoto:e.boostedWeeklyPhoto,comingUp:"coming_next_photos"===J,is_notify:e.is_notify,highlightCommentId:t,globalPhotoViewBuffer:kt,globalAlreadyTrackedIds:St,scheduleGlobalPhotoViews:Ct})};return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(N,{keyName:ae,filterSig:r,anchorAttr:"data-restore-anchor",restoreOnMount:!a}),(0,F.jsxs)("div",{className:"feed_content",children:[(0,F.jsxs)("div",{className:"feed_content_heading d-flex gap-lg-3 flex-column flex-md-row align-items-center justify-content-center justify-content-md-between flex-wrap",children:[(0,F.jsx)("h3",{className:"title",children:"Upvote Your Favorite Photos"}),(0,F.jsxs)("ul",{className:"feedFilter dropdown",children:[(0,F.jsx)("li",{className:"activated"}),(0,F.jsx)("img",{src:"/assets/img/icons/arrow-down.svg",alt:"img"}),tt?(0,F.jsx)("ul",{className:"filter_lists",children:[{key:"by_recent_photos",label:"Most Recent",active:!0},{key:"following",label:"I'm Following",active:!1},{key:"this_week",label:"This Week",active:!1},{key:"last_week",label:"Last Week",active:!1},{key:"coming_next_photos",label:"Coming Up",active:!1},{key:"participating_members",label:"Pro Members",active:!1},{key:"leader_board",label:"All Time",active:!1},{key:"new_to_you",label:"New To You",active:!1}].map((function(e){return(0,F.jsx)("li",{className:e.active?"active":"",children:(0,F.jsx)(g.rU,{onClick:function(){st(e.key)},children:e.label})},e.key)}))}):(0,F.jsx)("ul",{className:"filter_lists",children:[{key:"last_week",label:"Last Week",active:!0},{key:"this_week",label:"This Week",active:!1},{key:"by_recent_photos",label:"Most Recent",active:!1}].map((function(e){return(0,F.jsx)("li",{className:e.active?"active":"",children:(0,F.jsx)(g.rU,{onClick:function(){st(e.key)},children:e.label})},e.key)}))})]})]}),(0,F.jsxs)("div",{className:"feed_items text-center text-md-start",children:[ke&&(0,F.jsx)("div",{ref:je,"data-deeplink-photo":ke.id,children:_t(ke,be.commentId)}),null===pt||void 0===pt?void 0:pt.map((function(e,t){return(0,F.jsxs)(c.Fragment,{children:[(0,F.jsx)("div",{ref:function(e){return Ne.current[t]=e},className:"bph-wja-anchor","data-restore-anchor":e.id,children:_t(e)}),function(){var e,n=(0,P.Yp)(t),r=n>0?Ce[n-1]:null;return r?(e=r,(0,F.jsx)("div",{style:{marginBottom:40,textAlign:"left"},children:(0,F.jsx)(T.Z,{post:e,placement:"hunt_feed",variant:(0,P.e8)(P.VS),layout:"feed"})})):null}(),t===vt&&(0,F.jsx)("div",{style:{paddingLeft:16,paddingRight:16,paddingTop:12,paddingBottom:12},children:(0,F.jsx)("div",{className:"since_visit_last_time",children:(0,F.jsx)("span",{className:"text",children:"This week starts here"})})}),t===ht&&(0,F.jsx)(O,{openDelayMs:ot.nudge.openDelayMs,onSeen:ot.onSeen,onCtaClick:ot.onCtaClick,onClose:ot.onClose})]},e.id)})),te&&(0,F.jsx)("h4",{children:"You\u2019ve seen all the recent hunted photos."}),q&&z&&(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,F.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,F.jsx)("span",{className:"sr-only"})})}),q&&_.length>0&&(0,F.jsx)("div",{ref:e})]})]}),(0,F.jsx)(ne,{visible:yt,busy:Ve,onJump:xt,onDismiss:function(){le("Week Jump Arrow Closed",{UserID:nt}),Ye(!0);try{window.sessionStorage.setItem(se,"1")}catch(e){}}}),at("/assets/js/magnific-popup.min.js"),at("/assets/js/owl.carousel.min.js"),at("/assets/js/main.js")]})},de=n(1046),fe=function(e){e.MarginTopNone;return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("section",{className:"photo-feed-section logout-home",style:{paddingTop:"0px"},children:(0,F.jsx)("div",{className:"container",children:(0,F.jsxs)("div",{className:"row justify-content-center",children:[(0,F.jsx)("div",{className:"col-12 col-lg-8",style:{padding:"0px"},children:(0,F.jsx)(ue,{})}),(0,F.jsx)("div",{className:"col-lg-4 d-none d-xl-block",children:(0,F.jsx)(de.Z,{})})]})})})})},pe=c.memo(fe),he=n(1570),me=n(5201),ve=["Add your take","Join the discussion","Read the thread","Weigh in","Jump in","See the replies","Have your say","Join in","Add your voice","Read & reply"],ge=function(e){var t=e.size;return(0,F.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:(0,F.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",stroke:"#7A4A2E",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})},ye=function(){return(0,F.jsx)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:(0,F.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7",stroke:"#2883D8",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})},be=function(){var e=(0,c.useState)([]),t=(0,p.Z)(e,2),n=t[0],r=t[1],i=(0,c.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),o=(0,p.Z)(i,2),a=o[0],s=o[1];(0,c.useEffect)((function(){if("undefined"!==typeof window){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return s(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}}),[]),(0,c.useEffect)((function(){var e=!1;return(0,he.H)().then((function(t){var n=t&&t.data&&t.data.data||{},i=Array.isArray(n.posts)?n.posts:[];e||r(i)})).catch((function(){e||r([])})),function(){e=!0}}),[]);var l=(0,c.useMemo)((function(){return function(e){for(var t=ve.slice(),n=t.length-1;n>0;n-=1){var r=Math.floor(Math.random()*(n+1)),i=[t[r],t[n]];t[n]=i[0],t[r]=i[1]}return t.slice(0,Math.max(0,e))}(n.length)}),[n.length]);if(!n.length)return null;return(0,F.jsx)("section",{className:"bpb-jtc",children:(0,F.jsx)("div",{className:"container",children:(0,F.jsxs)("div",{className:"bpb-jtc-inner",children:[(0,F.jsxs)("div",{className:"bpb-jtc-header",children:[(0,F.jsxs)("span",{className:"bpb-jtc-eyebrow",children:[(0,F.jsx)(ge,{size:a?12:14}),"The Big Photo Board"]}),(0,F.jsx)("h2",{className:"bpb-jtc-title",children:"Join the conversation"}),(0,F.jsx)("p",{className:"bpb-jtc-sub",children:"Real photographers talking gear, photos and more every day on the Board."})]}),(0,F.jsx)("div",{className:"bpb-jtc-grid",children:n.map((function(e,t){return(0,F.jsx)("div",{className:"bpb-jtc-cell".concat(t>=2?" bpb-jtc-cell--third":""),children:(0,F.jsx)(T.Z,{post:e,placement:"homepage_loggedout",variant:l[t],ctaLabel:l[t],layout:"homepage",eyebrowText:"This week\u2019s Board picks"})},e.id)}))}),(0,F.jsxs)(g.rU,{to:"/board",className:"bpb-jtc-seeall",onClick:function(){try{j.Z.getInstance().logEvent("bpb_cta_click",{placement:"homepage_seeall_link",variant:"none",logged_in:(0,me.I)(),destination:"board",viewer_replied:!1})}catch(e){}},children:["See the whole Board",(0,F.jsx)(ye,{})]})]})})})},xe=n(6129),we=n(9704),ke=n.n(we),Se=(n(5862),n(1989)),je=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={"Content-Type":"application/json"},e.next=4,Se.Z.post("".concat("https://bigbesos.com","/user/testimonials"),{},{headers:t});case 4:return n=e.sent,e.abrupt("return",n);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),Ce=n(2294),_e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={"Content-Type":"application/json"},e.next=4,Se.Z.post("".concat("https://bigbesos.com","/ab/experiment"),{location:t},{headers:n});case 4:return r=e.sent,e.abrupt("return",r);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),Ee=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={"Content-Type":"application/json"},e.next=4,Se.Z.post("".concat("https://bigbesos.com","/ab/event"),t,{headers:n});case 4:return r=e.sent,e.abrupt("return",r);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),Ne="homepage_hero",Ae="ab_visitor_id",De="ab_cache_"+Ne,Te="ab_assignment_";function Ie(e){try{return window.localStorage.getItem(e)}catch(t){return null}}function Pe(e,t){try{window.localStorage.setItem(e,t)}catch(n){}}function Fe(e){try{window.localStorage.removeItem(e)}catch(t){}}function Oe(){var e=Ie(Ae);return e||(e=window.crypto&&"function"===typeof window.crypto.randomUUID?window.crypto.randomUUID():"v-"+Date.now().toString(36)+"-"+Math.random().toString(36).slice(2,12),Pe(Ae,e),e)}function Me(e,t){var n=function(e,t){var n=Te+e,r=Ie(n);if(r){var i=t.find((function(e){return e.id===r}));if(i)return i}var o,a=function(e){return"number"===typeof e.weight&&e.weight>0?e.weight:0},s=t.reduce((function(e,t){return e+a(t)}),0);if(s>0){var l=Math.random()*s;o=t[t.length-1];for(var c=0;c<t.length;c++)if((l-=a(t[c]))<0){o=t[c];break}}else o=t[Math.floor(Math.random()*t.length)];return Pe(n,o.id),o}(e.id,t);return{experimentId:e.id,variantId:n.id,headline:n.headline}}function Ze(){return(Ze=(0,f.Z)((0,d.Z)().mark((function e(){var t,n,r,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_e(Ne);case 3:if(t=e.sent,n=t&&t.data&&t.data.data,r=n&&n.experiment,i=n&&n.variants,r&&r.id&&Array.isArray(i)&&0!==i.length){e.next=10;break}return Fe(De),e.abrupt("return",null);case 10:return Pe(De,JSON.stringify({experiment:r,variants:i})),e.abrupt("return",Me(r,i));case 14:return e.prev=14,e.t0=e.catch(0),e.abrupt("return",null);case 17:case"end":return e.stop()}}),e,null,[[0,14]])}
2)))).apply(this,arguments)}function Re(e,t,n){if(t&&n){var r={experiment_id:t,variant_id:n,visitor_id:Oe(),event_type:e};Ee(r).catch((function(){}))}}function Le(){var e=Ie(Ae);if(!e)return{};var t=Ie(De);if(!t)return{};try{var n=JSON.parse(t),r=n&&n.experiment&&n.experiment.id;if(!r)return{};var i=Ie(Te+r);return i?{ab_visitor_id:e,ab_variant_id:i}:{}}catch(o){return{}}}var Be=n(5817),ze="Growing Our Photography Together",Ue=function(){function e(e){var t=document.createElement("script");t.src=e,t.async=!0,document.body.appendChild(t)}var t=(0,c.useState)(0),n=(0,p.Z)(t,2),r=(n[0],n[1]),i=(0,c.useState)([]),o=(0,p.Z)(i,2),a=o[0],s=o[1],l=(0,y.I0)(),u=(0,h.s0)(),v=localStorage.getItem("Data"),g=(0,b.a)(v).isLoggedIn,w=(0,h.TH)(),k=new URLSearchParams(w.search).get("link")||"",S=!g&&!k,C=(0,c.useState)(null),_=(0,p.Z)(C,2),E=_[0],N=_[1];(0,c.useEffect)((function(){var e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,je();case 3:t=e.sent,s(t.data.data),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,c.useEffect)((function(){if(S){var e=function(){var e=Ie(De);if(!e)return null;try{var t=JSON.parse(e);return t&&t.experiment&&t.experiment.id&&Array.isArray(t.variants)&&0!==t.variants.length?Me(t.experiment,t.variants):null}catch(n){return null}}();e&&N(e);var t=!1;return function(){return Ze.apply(this,arguments)}().then((function(e){var n,r;t||(e?(N(e),n=e.experimentId,r=e.variantId,Re("impression",n,r)):N({experimentId:null,variantId:null,headline:ze}))})),function(){t=!0}}}),[S]);(0,c.useEffect)((function(){if(!g){var e=setInterval((function(){r((function(e){return(e+1)%4})),document.querySelector(".carousel-control-next").click();var e=document.querySelector(".nameSlider"),t=document.querySelectorAll(".nameslide"),n=0;!function(){n=(n+1)%t.length;var r=t[n],i=t[(n+t.length-1)%t.length];e.appendChild(i),r.classList.add("active"),i.classList.remove("active")}()}),3e4);return function(){return clearInterval(e)}}}),[g]);var A=[{title:"Greg Moore, Kansas, USA",date:"Top Ten Winner"},{title:"Samuel Messerini, Livorno, Italy",date:"Top Ten Winner"},{title:"Rick Teal, Washington, USA",date:"Top Ten Winner"},{title:"Lola Delabays, Lyon, France",date:"Top Ten Winner"}];return(0,c.useEffect)((function(){xe.ZP.pageview(window.location.pathname+window.location.search)}),[]),(0,F.jsxs)(F.Fragment,{children:[g&&!k&&(0,F.jsx)(Ce.Z,{}),(0,F.jsxs)("main",{className:"".concat(g?"site-content topPadding":""),id:"main",children:[(!g||k)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("div",{id:"carouselExampleControls",className:"carousel slide","data-bs-ride":"carousel","data-bs-interval":"300000000000000",children:[(0,F.jsx)("div",{className:"carousel-inner",children:["https://bph051023a.s3.amazonaws.com/hero-image/hero-image1.jpeg","https://bph051023a.s3.amazonaws.com/hero-image/hero-image-2.jpeg","https://bph051023a.s3.amazonaws.com/hero-image/hero-image-3.jpeg","https://bph051023a.s3.amazonaws.com/hero-image/hero-image-4.jpg"].map((function(e,t){return(0,F.jsx)("div",{className:"carousel-item ".concat(0===t?"active":""),children:(0,F.jsx)("section",{className:"hero-section d-flex align-items-center",id:"hero",style:{background:"linear-gradient(\n            0deg,\n            rgba(5, 8, 30, 0.2),\n            rgba(5, 8, 30, 0.2)\n        ), url(".concat(e,")")},children:(0,F.jsx)("div",{className:"container",children:(0,F.jsx)("div",{className:"row",children:(0,F.jsx)("div",{className:"col",children:(0,F.jsxs)("div",{className:"hero_inner_content",children:[(0,F.jsx)("h1",{className:"title",children:S?E?E.headline:"\xa0":ze}),(0,F.jsx)("p",{className:"text",children:k?"".concat(null===k||void 0===k?void 0:k.replace(/_/g," ")," invites you to join our friendly community of amateur photographers for inspiration, discovery and to meet others."):"Join our free, friendly community of amateur photographers to find inspiration, get discovered and meet others."}),(0,F.jsx)("a",{className:"btn",onClick:function(){var e,t;S&&E&&E.experimentId&&(e=E.experimentId,t=E.variantId,Re("cta_click",e,t)),l(x.N.setPo
2pupModalMessage({joinModalHeading:"",popupHeading:"",popupMessage:"",photoID:"",userID:""})),l(x.N.setJoinNowModalState(!0))},children:"Join Free"})]})})})})})},t)}))}),(0,F.jsxs)("button",{style:{display:"none"},className:"carousel-control-next",type:"button","data-bs-target":"#carouselExampleControls","data-bs-slide":"next",children:[(0,F.jsx)("span",{className:"carousel-control-next-icon","aria-hidden":"true"}),(0,F.jsx)("span",{className:"visually-hidden",children:"Next"})]})]}),(0,F.jsx)("section",{className:"bottom-slider-section",children:(0,F.jsx)("div",{className:"container",children:(0,F.jsx)("div",{className:"row",children:(0,F.jsx)("div",{className:"col",children:(0,F.jsx)("div",{className:"hero_bottom_slider",children:(0,F.jsxs)("div",{className:"bottom_slider_inner nameSlider",children:[(0,F.jsxs)("div",{className:"single_slider active nameslide",children:[(0,F.jsx)("div",{className:"title",children:A[0].title}),(0,F.jsx)("span",{className:"date",children:A[0].date})]}),(0,F.jsxs)("div",{className:"single_slider nameslide",children:[(0,F.jsx)("div",{className:"title",children:A[1].title}),(0,F.jsx)("span",{className:"date",children:A[1].date})]}),(0,F.jsxs)("div",{className:"single_slider  nameslide",children:[(0,F.jsx)("div",{className:"title",children:A[2].title}),(0,F.jsx)("span",{className:"date",children:A[2].date})]}),(0,F.jsxs)("div",{className:"single_slider  nameslide",children:[(0,F.jsx)("div",{className:"title",children:A[3].title}),(0,F.jsx)("span",{className:"date",children:A[3].date})]})]})})})})})}),Be.T&&(0,F.jsx)("section",{className:"rypc-band",children:(0,F.jsxs)("div",{className:"container rypc-band-grid",children:[(0,F.jsxs)("div",{className:"rypc-band-copy",children:[(0,F.jsx)("div",{className:"rypc-eyebrow-chip",children:"New \xb7 Ken-Bot, our AI coach"}),(0,F.jsx)("h2",{className:"rypc-band-headline",children:"Get an honest look at your photo. Finally."}),(0,F.jsxs)("p",{className:"rypc-band-sub",children:[(0,F.jsx)("span",{className:"rypc-sub-desktop",children:"No ego and no politeness filter. Just your photo ranked against every photo in the Big Photo Hunt. Drop in your photo and get:"}),(0,F.jsx)("span",{className:"rypc-sub-mobile",children:"No ego and no politeness filter. Just your photo ranked against every photo in the Big Photo Hunt."})]}),(0,F.jsxs)("div",{className:"rypc-band-bullets",children:[(0,F.jsxs)("div",{className:"rypc-band-bullet",children:[(0,F.jsx)("span",{className:"rypc-band-bullet-dot"}),(0,F.jsxs)("span",{className:"rypc-band-bullet-text",children:[(0,F.jsx)("span",{className:"rypc-sub-desktop",children:"What's working in your shot: specifics"}),(0,F.jsx)("span",{className:"rypc-sub-mobile",children:"What's working: specifics"})]})]}),(0,F.jsxs)("div",{className:"rypc-band-bullet",children:[(0,F.jsx)("span",{className:"rypc-band-bullet-dot"}),(0,F.jsxs)("span",{className:"rypc-band-bullet-text",children:[(0,F.jsx)("span",{className:"rypc-sub-desktop",children:"Where you stand among 20,000+ real photos from the Big Photo Hunt community"}),(0,F.jsx)("span",{className:"rypc-sub-mobile",children:"Where you stand among 20,000+ real community photos"})]})]}),(0,F.jsxs)("div",{className:"rypc-band-bullet",children:[(0,F.jsx)("span",{className:"rypc-band-bullet-dot"}),(0,F.jsx)("span",{className:"rypc-band-bullet-text",children:"The top things holding it back"})]})]}),(0,F.jsxs)("div",{className:"rypc-band-cta-group",children:[(0,F.jsxs)("button",{type:"button",className:"rypc-band-cta",onClick:function(){return u("/photo-review")},children:["Drop your photo",(0,F.jsx)("span",{className:"rypc-band-cta-arrow",children:"\u2192"})]}),(0,F.jsx)("div",{className:"rypc-band-micro",children:"Your strengths and what's holding you back. Free."})]})]}),(0,F.jsx)("div",{className:"rypc-band-cardwrap",children:(0,F.jsx)(m.Z,{})})]})}),(0,F.jsx)("section",{className:"why-join-section",children:(0,F.jsxs)("div",{className:"container",children:[(0,F.jsx)("div",{className:"row",children:(0,F.jsx)("div",{className:"col",children:(0,F.jsx)("div",{className:"section_title text-center",children:(0,F.jsx)("h3",{className:"title",children:"Why Join the Big Photo Hunt"})})})}),(0,F.jsxs)("div",{className:"row",children:[(0,F.jsx)("div",{className:"col-6 col-lg-3",children:(0,F.jsxs)("div",{className:"why_join_single",children:[(0,F.jsx)("div",{className:"thumb",children:(0,F.jsx)("img",{src:"/assets/img/why-join/photography-club.png",alt:"img"})}),(0,F.jsxs)("div",{className:"content",children:[(0,F.jsx)("h6",{className:"title",children:"Be Part of a Global Amateur Photography Club"}),(0,F.jsx)("p",{className:"text",children:"Gain an instant following and become better by learning from others."})]})]})}),(0,F.jsx)("div",{className:"col-6 col-lg-3",children:(0,F.jsxs)("div",{className:"why_join_single",children:[(0,F.jsx)("div",{className:"thumb",children:(0,F.jsx)("img",{src:"/assets/img/why-join/skills.png",alt:"img"})}),(0,F.jsxs)("div",{className:"content",children:[(0,F.jsx)("h6",{className:"title",children:"Share & Connect with Like-Minded People"}),(0,F.jsx)("p",{className:"text",children:"Find inspiration and get your photography seen while meeting new like-minded photographers."})]})]})}),(0,F.jsx)("div",{className:"col-6 col-lg-3",children:(0,F.jsxs)("div",{className:"why_join_single",children:[(0,F.jsx)("div",{className:"thumb",children:(0,F.jsx)("img",{src:"/assets/img/why-join/inspiration.png",alt:"img"})}),(0,F.jsxs)("div",{className:"content",children:[(0,F.jsx)("h6",{className:"title",children:"Get Motivating Feedback & Improve Your Skills"}),(0,F.jsx)("p",{className:"text",children:"Stay motivated, learn and improve your skills with thoughtful perspectives from around the world."})]})]})}),(0,F.jsx)("div",{className:"col-6 col-lg-3",children:(0,F.jsxs)("div",{className:"why_join_single",children:[(0,F.jsx)("div",{className:"thumb",children:(0,F.jsx)("img",{src:"/assets/img/why-join/recognized.png",alt:"img"})}),(0,F.jsxs)("div",{className:"content",children:[(0,F.jsx)("h6",{className:"title",children:"Be Recognized Weekly & Monthly!"}),(0,F.jsx)("p",{className:"text",children:"Earn a chance to have your photography recognized through weekly and monthly photo competitions."})]})]})})]}),(0,F.jsx)("div",{className:"row",children:(0,F.jsx)("div",{className:"col",children:(0,F.jsx)("div",{className:"why_join_btn text-center",children:(0,F.jsx)("a",{className:"btn",onClick:function(){var e,t;j.Z.getInstance().logEvent("Secondary CTA Click",{source:"why_join_cta",element:"join_now",experiment_id:null!==(e=null===E||void 0===E?void 0:E.experimentId)&&void 0!==e?e:null,variant_id:null!==(t=null===E||void 0===E?void 0:E.variantId)&&void 0!==t?t:null,page:"home"}
2),l(x.N.setPopupModalMessage({joinModalHeading:""})),l(x.N.setJoinNowModalState(!0))},children:"Join Now"})})})})]})}),(0,F.jsx)(be,{}),(0,F.jsx)("section",{className:"why-do-think",children:(0,F.jsxs)("div",{className:"container",children:[(0,F.jsx)("div",{className:"row",children:(0,F.jsx)("div",{className:"col",children:(0,F.jsx)("div",{className:"section_title text-center",style:{maxWidth:"none"},children:(0,F.jsxs)("h3",{className:"title",children:["Why do we think the Big Photo Hunt",(0,F.jsx)("br",{}),"is Awesome?"]})})})}),(0,F.jsx)("div",{className:"row",children:(0,F.jsx)("div",{className:"col-12",children:a.length>0&&(0,F.jsx)("div",{className:"why_do_think_items  owl-carousel",children:null===a||void 0===a?void 0:a.map((function(e,t){return(0,F.jsxs)("a",{className:"why_do_think_item",children:[(0,F.jsxs)("div",{className:"user_details",children:[(0,F.jsx)("div",{className:"user_img",children:(0,F.jsx)("img",{src:e.profile_pic,alt:"img"})}),(0,F.jsxs)("div",{className:"user_content",children:[(0,F.jsx)("h6",{className:"name",children:e.name}),(0,F.jsx)("span",{className:"address",children:e.state}),(0,F.jsxs)("ul",{className:"other_info d-none d-md-block",children:[(0,F.jsxs)("li",{children:[(0,F.jsx)("strong",{children:"Camera: "}),e.camera_brand]}),(0,F.jsxs)("li",{children:[(0,F.jsx)("strong",{children:"Genres: "}),e.genres_list]})]})]})]}),(0,F.jsxs)("ul",{className:"other_info d-md-none",children:[(0,F.jsxs)("li",{children:[(0,F.jsx)("strong",{children:"Camera: "})," ",e.camera_brand]}),(0,F.jsxs)("li",{children:[(0,F.jsx)("strong",{children:"Genres: "}),e.genres_list]})]}),(0,F.jsx)("div",{className:"think_content",children:(0,F.jsxs)("p",{children:["\u201c",e.quote,"\u201d"]})})]},t)}))})})})]})})]}),(0,F.jsx)(pe,{})]}),e("/assets/js/owl.carousel.min.js"),e("/assets/js/main.js")]})},He=n(1514),We=n(3452),qe="bph_shop_strip_dismissed",Ve=function(e){if(!e)return!1;var t=function(e){try{return"undefined"!==typeof window&&window.localStorage?window.localStorage.getItem(e):null}catch(t){return null}}(qe);if(!t)return!1;try{var n=JSON.parse(t);return n&&n.dropId===e}catch(r){return!1}},Ge=function(e){e&&function(e,t){try{return!("undefined"===typeof window||!window.localStorage)&&(window.localStorage.setItem(e,t),!0)}catch(n){return!1}}(qe,JSON.stringify({dropId:e,dismissedAt:(new Date).toISOString()}))},$e=(n(6814),function(e){var t=e.isLoggedIn,n=(0,h.TH)().pathname,r=(0,c.useState)(null),i=(0,p.Z)(r,2),o=i[0],a=i[1],s=(0,c.useState)(!1),l=(0,p.Z)(s,2),u=l[0],d=l[1];if((0,c.useEffect)((function(){var e=!1;return(0,He.OR)().then((function(t){if(!e){var n=t.activeDrop||t.nextDrop;if(n)"closed"!==(0,We.P)(n)?(a(n),d(Ve(n.id))):a(null);else a(null)}})).catch((function(){})),function(){e=!0}}),[]),t)return null;if(n&&n.toLowerCase().startsWith("/shop"))return null;if(!o)return null;if(u)return null;var f="upcoming"===(0,We.P)(o)?"opens soon":"is live";return(0,F.jsxs)("div",{className:"shop-announce",role:"region","aria-label":"Shop drop announcement",children:[(0,F.jsxs)("span",{children:["The ",o.name," ",f," - "]}),(0,F.jsx)(g.rU,{to:"/shop",className:"shop-announce__link",children:"Shop \u2192"}),(0,F.jsx)("button",{type:"button",className:"shop-announce__close",onClick:function(){Ge(o.id),d(!0)},"aria-label":"Dismiss announcement",children:"\xd7"})]})}),Je=function(){var e=(0,c.useState)(!1),t=(0,p.Z)(e,2),n=t[0],r=t[1],i=(0,c.useState)(!1),o=(0,p.Z)(i,2),a=o[0],s=o[1],l=(0,c.useState)(""),u=(0,p.Z)(l,2),d=u[0],f=u[1],m=(0,h.TH)(),v=new URLSearchParams(m.search),w=encodeURIComponent(v.get("login")),k=encodeURIComponent(v.get("join"));(0,c.useEffect)((function(){w&&"true"==w&&A(x.N.setSignInModalState(!0))}),[w]),(0,c.useEffect)((function(){k&&"true"==k&&A(x.N.setJoinNowModalState(!0))}),[k]);var S=function(){A(x.N.setPopupModalMessage({joinModalHeading:"",popupHeading:"",popupMessage:"",photoID:"",userID:""}))},C=function(){A(x.N.setSignInModalState(!0)),S()},_=function(){A(x.N.setJoinNowModalState(!0)),S()},E=function(e){f(e)},N=function(){r(!1),s(!1),window.scrollTo({top:0,behavior:"smooth"})},A=(0,y.I0)(),D=window.location.pathname,T=function(){r(!1),s(!1)};return(0,F.jsxs)(F.Fragment,{children:[a&&(0,F.jsx)("div",{className:"overlay ",onClick:T}),(0,F.jsxs)("header",{className:"site-header ".concat("/"==D||"/C051324"==D?"without_login":"sticky"," header-absolute"),id:"site-header",children:[(0,F.jsx)("div",{className:"container",children:(0,F.jsx)("div",{className:"row",children:(0,F.jsx)("div",{className:"col",children:(0,F.jsxs)("div",{className:"site_menu d-flex align-items-center flex-wrap",children:[(0,F.jsxs)("div",{className:"menu_bar",children:["/C051324"!==D&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(g.rU,{className:"forDes",children:[(0,F.jsx)("img",{className:"white_bar",src:"/assets/img/icons/menu-bar-white.svg",alt:"Menu Bar"}),(0,F.jsx)("img",{className:"black_bar",src:"/assets/img/icons/menu-bar.svg",alt:"Menu Bar"})]}),(0,F.jsxs)(g.rU,{className:"forMob",onClick:function(){r(!0),s(!0)},children:[(0,F.jsx)("img",{className:"white_bar",src:"/assets/img/icons/menu-bar-white.svg",alt:"Menu Bar"}),(0,F.jsx)("img",{className:"black_bar",src:"/assets/img/icons/menu-bar.svg",alt:"Menu Bar"})]})]}),(0,F.jsx)("nav",{className:"side_menu d-none d-md-block",children:(0,F.jsxs)("ul",{children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/about",onClick:N,children:"About"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/shop",onClick:N,children:"Shop"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/how-works",onClick:N,children:"How It Works"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/topten",onClick:N,children:"Weekly Top 10"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/feedback",onClick:N,children:"Good Feedback"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/contact",onClick:N,children:"Contact Us"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/feature-request",onClick:N,children:"Request a feature"})}),(0,F.jsx)("li",{children:(0,F.jsx)("a",{href:"/podcast/",children:"Podcast"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/beta",onClick:N,children:"Beta"})})]})})]}),(0,F.jsx)("div",{className:"site_logo",onClick:N,children:(0,F.jsxs)(g.rU,{to:"/",children:[(0,F.jsx)("img",{className:"white_logo",src:"/assets/img/logo/logo-white.png",alt:"Site Logo"}),(0,F.jsx)("img",{className:"black_logo",src:"/assets/img/logo/logo-black.png",alt:"Site Logo"})]})}),(0,F.jsx)("nav",{className:"main_menu d-none d-md-block",children:"/C051324"!==D&&(0,F.jsxs)("ul",{children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/how-works",onClick:N,children:"How It Works"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/topten",onClick:N,children:"Weekly Top 10"})}),(0,F.jsxs)("li",{className:"has-dropdown",style:{position:"relative"},children:[(0,F.jsx)("a",{children:"Giveaway "}),(0,F.jsxs)("ul",{className:"submenu",style:{minWidth:"130px"},children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/new-giveaway",onClick:N,children:"This Month"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/previousgiveaways",onClick:N,children:"Previous Months"})})]})]}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/board",onClick:N,children:"Board"})}),(0,F.jsx)("li",{className:"has-dropdown",style:{position:"relative"},children:(0,F.jsx)(g.rU,{to:"https://www.youtube.com/@KenDeckinger",target:"_blank",children:"YouTube"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/shop",onClick:N,children:"Shop"})})]})}),(0,F.jsxs)("div",{className:"menu_right without_login d-none d-md-flex",children:[(0,F.jsx)("div",{className:"button sign_in",children:(0,F.jsx)("a",{className:"btn btn-white signModal",onClick:C,children:"Sign in"})}),(0,F.jsx)("div",{className:"button join_now",children:(0,F.jsx)("a",{className:"btn",onClick:function(){j.Z.getInstance().logEvent("Secondary CTA Click",{source:"header_desktop",experiment_id:null,variant_id:null,page:"home"}),_()},children:"Join now"})})]}),(0,F.jsxs)("div",{className:"menu_right without_login d-md-none",children:[(0,F.jsx)("div",{className:"button sign_in",children:(0,F.jsx)("a",{className:"btn btn-white signModal",onClick:C,children:"Sign in"})}),(0,F.jsx)("div",{className:"button join_now",children:(0,F.jsx)("a",{className:"btn",onClick:function(){j.Z.getInstance().logEvent("Secondary CTA Click",{source:"header_mobile",experiment_id:null,variant_id:null,page:"home"}),_()},children:"Join"})})]})]})})})}),(0,F.jsxs)("nav",{className:"side_menu mobile d-md-none ".concat(n?"open":""),children:[(0,F.jsx)("div",{className:"side_menu_top",children:(0,F.jsx)(g.rU,{href:"",className:"close",onClick:T,children:(0,F.jsx)("img",{src:"/assets/img/icons/close.svg",alt:"img"})})}),(0,F.jsxs)("ul",{children:[(0,F.jsxs)("li",{className:"has-dropdown",children:[(0,F.jsx)("a",{onClick:function(){E("about")},children:"About"}),(0,F.jsxs)("ul",{className:"submenu",style:{display:"about"==d?"block":"none"},children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/about",onClick:N,children:"About Us"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/how-works",onClick:N,children:"How It Works"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/feedback",onClick:N,children:"Good Feedback"})}),(0,F.jsx)("li",{children:(0,F.jsx)("a",{href:"/podcast/",children:"Podcast"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/beta",onClick:N,children:"Beta"})})]})]}),(0,F.jsxs)("li",{className:"has-dropdown",children:[(0,F.jsx)("a",{onClick:function(){E("giveaway")},children:"Monthly Giveaway "}),(0,F.jsxs)("ul",{className:"submenu",style:{display:"giveaway"==d?"block":"none"},children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/new-giveaway",onClick:N,children:"This Month"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/previousgiveaways",onClick:N,children:"Previous Months"})})]})]}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/topten",onClick:N,children:"Weekly Top 10"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/board",onClick:N,children:"Board"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/contact",onClick:N,children:"Contact Us"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/feature-request",onClick:N,children:"Request a feature"})}),(0,F.jsx)("li",{className:"has-dropdown",children:(0,F.jsx)(g.rU,{to:"https://www.youtube.com/@KenDeckinger",target:"_blank",children:"YouTube"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/shop",onClick:N,children:"Shop"})})]})]})]}),(0,F.jsx)($e,{isLoggedIn:Boolean(((0,b.a)(localStorage.getItem("Data"))||{}).isLoggedIn)})]})},Ke=n(4848),Ye=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={cursor:t||null},e.next=4,M.Z.post("/notify/user",n);case 4:return r=e.sent,e.abrupt("return",r);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),Xe=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,M.Z.post("/notify/getNotification",{});case 3:return n=e.sent,e.abrupt("return",n);case 7:throw e.prev=7,e.t0=e.catch(0),e.t0;case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),Qe=n(747),et=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=4,Se.Z.post("".concat("https://bigbesos.com","/user/getPaymentStatus"),{},{headers:n});case 4:return r=e.sent,e.abrupt("return",r);case 8:throw e.prev=8,e.t0=e.catch(0),new Error("Failed to fetch payment status.");case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),tt=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t,n){var r,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={subscription_reason:n.trim()},i={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=5,Se.Z.post("".concat("https://bigbesos.com","/user/updateSubscriptionReason"),r,{headers:i});case 5:return o=e.sent,e.abrupt("return",o);case 9:throw e.prev=9,e.t0=e.catch(0),new Error("Failed to fetch.");case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}
2(),nt=n(8268),rt=n(2317),it=n(1467),ot=function(e){var t=e.socket,n=(0,c.useState)(!1),r=(0,p.Z)(n,2),i=r[0],o=r[1],a=(0,c.useState)(!1),s=(0,p.Z)(a,2),l=s[0],u=s[1],m=(0,c.useState)(!1),v=(0,p.Z)(m,2),w=v[0],k=v[1],S=(0,c.useState)(!1),C=(0,p.Z)(S,2),_=C[0],E=C[1],N=(0,c.useState)(""),A=(0,p.Z)(N,2),D=A[0],T=A[1],I=(0,c.useState)(!1),P=(0,p.Z)(I,2),O=P[0],M=P[1],Z=(0,c.useState)(!1),R=(0,p.Z)(Z,2),L=R[0],B=R[1],z=(0,c.useState)(!1),U=(0,p.Z)(z,2),H=U[0],W=U[1],q=(0,c.useState)(""),V=(0,p.Z)(q,2),G=V[0],$=V[1],J=(0,c.useState)(!1),K=(0,p.Z)(J,2),Y=K[0],X=K[1],Q=(0,c.useState)(!1),ee=(0,p.Z)(Q,2),te=ee[0],ne=ee[1],re=(0,c.useState)(!1),ie=(0,p.Z)(re,2),oe=ie[0],ae=ie[1],se=(0,y.I0)(),le=(0,h.s0)(),ce=(0,h.TH)(),ue=(0,rt.Z)(),de=localStorage.getItem("Data"),fe=(0,b.a)(de),pe=fe.Display_UserSocailPhoto,he=fe.useDisplay_name,me=fe.token;(0,c.useEffect)((function(){var e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,it.IS)()!==me&&(0,it.vn)(me),e.prev=2,e.next=5,et(me);case 5:t=e.sent,n=t.data.data,ne("first_time:true"==n.payment_frequency),se(Qe.h.setUserPaymentStatus(n.isPaid)),se(Qe.h.setPersonalSite(n)),B(n.isPaid),W(!0),n.membershipPlan&&j.Z.getInstance().logEvent("Checkout ".concat(n.membershipPlan)),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(2),console.log(e.t0);case 18:case"end":return e.stop()}}),e,null,[[2,15]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,c.useEffect)((function(){if(new URLSearchParams(ce.search).get("subscribed")){le(ce.pathname,{replace:!0});var e=0,t=setInterval((0,f.Z)((0,d.Z)().mark((function n(){var r,i;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e+=2e3,n.prev=1,n.next=4,et(me);case 4:r=n.sent,(i=r.data.data).isPaid&&(se(Qe.h.setUserPaymentStatus(!0)),se(Qe.h.setPersonalSite(i)),B(!0),W(!0),"first_time:true"===i.payment_frequency&&ne(!0),clearInterval(t)),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(1),console.log(n.t0);case 12:e>=3e4&&clearInterval(t);case 13:case"end":return n.stop()}}),n,null,[[1,9]])}))),2e3);return function(){return clearInterval(t)}}}),[]);var ve=function(){se(x.N.setPhotoUploadModalState(!0)),se(x.N.setPhotoUploadType("hunted_photo")),se(x.N.setisQueued({queue:!1}))};(0,c.useEffect)((function(){null===t||void 0===t||t.on("getNotification",(function(e){k(!0),E(!0)}))}),[t]),(0,c.useEffect)((function(){var e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!1),e.prev=1,{Authorization:"Bearer ".concat(me),"Content-Type":"application/json"},e.next=5,Xe(me);case 5:t=e.sent,k(t.data.data[0].is_notification),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(){return e.apply(this,arguments)}}();e()}),[]);var ge=(0,y.v9)((function(e){return e.Socket.ReloadGetNorificationApi}));(0,y.v9)((function(e){return e.Modal.MeApiState}))&&(fe=(0,b.a)(de));var ye=function(){o(!1),u(!1)},be=function(e){T(e)},xe=function(){o(!1),u(!1),M(!1),window.scrollTo({top:0,behavior:"smooth"})},we=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ae(!0),e.prev=1,e.next=4,tt(me,G);case 4:e.sent,ne(!1),ae(!1),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.log(e.t0);case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(){return e.apply(this,arguments)}}();return(0,F.jsxs)(F.Fragment,{children:[l&&(0,F.jsx)("div",{className:"overlay ",onClick:ye}),(0,F.jsxs)("header",{className:"site-header with_login",id:"site-header",children:[(0,F.jsx)("div",{className:"container",children:(0,F.jsx)("div",{className:"row",children:(0,F.jsx)("div",{className:"col",children:(0,F.jsxs)("div",{className:"site_menu d-flex align-items-center flex-wrap",children:[(0,F.jsxs)("div",{className:"menu_bar",children:[(0,F.jsxs)(g.rU,{children:[(0,F.jsx)("img",{className:"forDesktop",src:"/assets/img/icons/menu-bar.svg",alt:"Menu Bar"}),(0,F.jsx)("img",{className:"forMobile",onClick:function(){o(!0),u(!0)},src:"/assets/img/icons/menu-bar.svg",alt:"Menu Bar"})]}),(0,F.jsx)("nav",{className:"side_menu d-none d-md-block",children:(0,F.jsxs)("ul",{children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/about",onClick:xe,children:"About"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/how-works",onClick:xe,children:"How It Works"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/topten",onClick:xe,children:"Weekly Top 10"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/feedback",onClick:xe,children:"Good Feedback"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/contact",onClick:xe,children:"Contact Us"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/feature-request",onClick:xe,children:"Request a feature"})}),(0,F.jsx)("li",{children:(0,F.jsx)("a",{href:"/podcast/",children:"Podcast"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/beta",onClick:xe,children:"Beta"})})]})})]}),(0,F.jsx)("div",{className:"site_logo",children:(0,F.jsx)(g.rU,{to:"/",onClick:function(){le("/"),window.scrollTo({top:0,behavior:"smooth"})},children:(0,F.jsx)("img",{src:"/assets/img/logo/logo-black.png",alt:"Site Logo"})})}),(0,F.jsx)("nav",{className:"main_menu d-none d-md-block",children:(0,F.jsxs)("ul",{children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/topten",onClick:xe,children:"Weekly Top 10"})}),(0,F.jsxs)("li",{className:"has-dropdown",style:{position:"relative"},children:[(0,F.jsx)("a",{children:"Giveaway "}),(0,F.jsxs)("ul",{className:"submenu",style:{minWidth:"130px"},children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/new-giveaway",onClick:xe,children:"This Month"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/previousgiveaways",onClick:xe,children:"Previous Months"})})]})]}),(0,F.jsxs)("li",{className:"has-dropdown",style:{position:"relative"},children:[(0,F.jsx)("a",{children:"Events"}),(0,F.jsxs)("ul",{className:"submenu",style:{minWidth:"145px"},children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/monthly-townhall",onClick:xe,children:"Townhall"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/newyorkcity-photowalk",onClick:xe,children:"NY Photowalk"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/previous-monthly-townhall",onClick:xe,children:"Previous"})})]})]}),(0,F.jsx)("li",{className:"has-dropdown",style:{position:"relative"},children:(0,F.jsx)(g.rU,{to:"https://www.youtube.com/@KenDeckinger",target:"_blank",children:"YouTube"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/shop",onClick:xe,children:"Shop"})}),H&&!L&&(0,F.jsx)("li",{children:(0,F.jsx)("a",{onClick:function(){return ue("Upgradebtn")},children:"Upgrade"})})]})}),(0,F.jsxs)("div",{className:"menu_right with_logged_in",children:[(0,F.jsxs)("div",{className:"button",children:[(0,F.jsx)("button",{onClick:ve,className:"btn d-none d-lg-inline-block",children:"Hunt My Photo"}),(0,F.jsx)(g.rU,{to:"#",className:"btn plus d-lg-none",onClick:ve,children:(0,F.jsx)("img",{src:"/assets/img/icons/plus.svg",alt:"img"})})]}),(0,F.jsx)("div",{className:"notification",children:(0,F.jsx)(g.rU,{to:"/activity",className:"".concat(w?"":"inline-style "),onClick:function(){k(!1),window.scrollTo(0,0),_&&se(Ke.$.setReloadGetNorificationApi(!ge)),E(!1)},children:(0,F.jsx)("img",{src:"/assets/img/icons/bell.svg",alt:"Bell",className:"".concat(w?"bump":"")})})}),(0,F.jsxs)("div",{className:"user",children:[(0,F.jsx)(g.rU,{to:"/profile",onClick:function(){xe(),M(!O)},style:{backgroundImage:"url(".concat(pe||"",")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:"50%",cursor:"pointer"},children:!pe&&(0,F.jsx)("img",{style:{borderRadius:"50%"}
2,src:"https://ui-avatars.com/api/?name=".concat(he,"&size=40&rounded=true&background=01655a&color=fff"),alt:"User Pic"})}),(window.innerWidth>=600||O)&&(0,F.jsx)("div",{className:"profile_settings",children:(0,F.jsxs)("ul",{onClick:xe,children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.OL,{to:"/invite-friend",activeClassName:"active",children:"Invite a Friend"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.OL,{to:"/profile",activeClassName:"active",children:"Profile"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.OL,{to:"/people",activeClassName:"active",children:"People"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.OL,{to:"/queue",activeClassName:"active",children:"Queue"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.OL,{to:"/hunt-score",activeClassName:"active",children:"Hunt Score"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.OL,{to:"/edit-profile",activeClassName:"active",children:"Account"})})]})})]})]})]})})})}),(0,F.jsxs)("nav",{className:"side_menu mobile d-md-none ".concat(i?"open":""),children:[(0,F.jsx)("div",{className:"side_menu_top",children:(0,F.jsx)(g.rU,{className:"close",onClick:ye,children:(0,F.jsx)("img",{src:"/assets/img/icons/close.svg",alt:"img"})})}),(0,F.jsxs)("ul",{children:[(0,F.jsxs)("li",{className:"has-dropdown",children:[(0,F.jsx)("a",{onClick:function(){be("about")},children:"About"}),(0,F.jsxs)("ul",{className:"submenu",style:{display:"about"==D?"block":"none"},children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/about",onClick:xe,children:"About Us"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/how-works",onClick:xe,children:"How It Works"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/feedback",onClick:xe,children:"Good Feedback"})}),(0,F.jsx)("li",{children:(0,F.jsx)("a",{href:"/podcast/",children:"Podcast"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/beta",onClick:xe,children:"Beta"})})]})]}),(0,F.jsxs)("li",{className:"has-dropdown",children:[(0,F.jsx)("a",{onClick:function(){be("giveaway")},children:"Giveaway "}),(0,F.jsxs)("ul",{className:"submenu",style:{display:"giveaway"==D?"block":"none"},children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/new-giveaway",onClick:xe,children:"This Month"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/previousgiveaways",onClick:xe,children:"Previous Months"})})]})]}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/topten",onClick:xe,children:"Weekly Top 10"})}),H&&!L&&(0,F.jsx)("li",{children:(0,F.jsx)("a",{onClick:function(){return ue("Upgradebtn")},children:"Upgrade"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/new-members",onClick:xe,children:"New Members"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/contact",onClick:xe,children:"Contact Us"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/feature-request",onClick:xe,children:"Request a feature"})}),(0,F.jsxs)("li",{className:"has-dropdown",children:[(0,F.jsx)("a",{onClick:function(){be("Event")},children:"Events"}),(0,F.jsxs)("ul",{className:"submenu",style:{display:"Event"==D?"block":"none"},children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/monthly-townhall",onClick:xe,children:"Townhall"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/newyorkcity-photowalk",onClick:xe,children:"NY Photowalk"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/previous-monthly-townhall",onClick:xe,children:"Previous"})})]})]}),(0,F.jsx)("li",{className:"has-dropdown",children:(0,F.jsx)(g.rU,{to:"https://www.youtube.com/@KenDeckinger",target:"_blank",children:"YouTube"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/shop",onClick:xe,children:"Shop"})})]})]})]}),te&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"backdrop"}),(0,F.jsx)("div",{className:"modal fade bph-modal show ",id:"joinModal",tabIndex:-1,"aria-labelledby":"joinModal","aria-hidden":"true",style:{display:"block"},children:(0,F.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,F.jsx)("div",{className:"modal-content",children:(0,F.jsx)("div",{className:"modal-body",children:(0,F.jsx)("div",{className:"onboarding_modal wizardStep ques_step_modal cool-step-modal show",children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:function(){ne(!1)}}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:""})}),(0,F.jsxs)("div",{className:"modal_content text-start",children:[(0,F.jsx)("h4",{className:"title",children:"Thank y
2ou and welcome!"}),(0,F.jsxs)("div",{className:"form show-box",children:[(0,F.jsx)("div",{className:"form_title",style:{marginTop:"10px",marginBottom:"30px"},children:(0,F.jsx)("p",{children:"So that we can improve for you, mind telling us why you subscribed?"})}),nt.cx.map((function(e,t){return(0,F.jsxs)("div",{className:"form_group radio",children:[(0,F.jsx)("input",{type:"radio",value:e.value,name:"photoType",id:e.id,onChange:function(){return function(e){var t=nt.cx[e].value;"Other"===t?(X(!0),$("")):($(t),X(!1))}(t)}}),(0,F.jsx)("label",{htmlFor:e.id,children:e.value})]},t)})),(0,F.jsx)("div",{className:"else-box ",children:Y&&(0,F.jsx)("input",{maxLength:100,required:!0,type:"text",name:"name",placeholder:"Oh, cool! What was it?",onChange:function(e){var t=e.target.value;$(t)},value:G})}),(0,F.jsx)("div",{className:"buttons",children:oe?(0,F.jsx)("button",{className:"btn",type:"button",children:(0,F.jsx)("span",{className:"loader"})}):(0,F.jsx)("button",{onClick:we,type:"button",className:"btn ",disabled:!G,children:"Continue"})})]})]})]})})})})})})]})]})},at=n(1830),st=n.n(at),lt=n(9705),ct=n(8870),ut=n(7818),dt=n(3054),ft=n(4805),pt=n(9343),ht=n(2826),mt=n(3172),vt=function(e){var t,n,r=(0,c.useState)(e.is_vote),i=(0,p.Z)(r,2),o=i[0],a=i[1],s=(0,c.useState)(e.is_vote),l=(0,p.Z)(s,2),u=l[0],m=l[1],v=(0,c.useState)(e.is_follow),g=(0,p.Z)(v,2),b=g[0],w=g[1],k=(0,c.useState)(Number(null!==(t=e.TotalVotes)&&void 0!==t?t:0)),C=(0,p.Z)(k,2),_=C[0],E=C[1],N=(0,y.v9)((function(e){return e.Login.isLoggedIn})),A=(0,mt.ZP)(e.is_adult_content,null!==(n=e.gatePhotoId)&&void 0!==n?n:e.photoId,e.Userid),D=A.isGated,T=A.reveal,I=(0,ut.V)(e.Userlocation,16),P=(0,ft.p)(e.postedDate),O=!(null===e||void 0===e||!e.gallery),M=String(e.LoginUserid)===String(e.Userid)||!!e.LoginUserPhotos,Z=!!e.LoginUserPhotos,R=(Z?e.DisplayName||e.Name:e.Name||(M?e.DisplayName:""))||"",L=Z?e.DisplayUserPhoto||e.UserPhoto:e.UserPhoto||(M?e.DisplayUserPhoto:""),B=Z?e.DisplayLocation||I:I||(M?e.DisplayLocation:""),z=Z?e.DisplayDate||P:e.postedDate?P:M?e.DisplayDate:"",U=(0,h.s0)(),H=function(t){if(t.preventDefault(),e.Userid==e.LoginUserid)U("/profile"),W(x.N.setisLightboxModalOpen(!1));else{var n={PhotoID:"",UserID:e.Userid},r=we.AES.encrypt(JSON.stringify(n),"siddiqui").toString();U("/otherusers-profile?userdata=".concat(encodeURIComponent(r))),W(x.N.setisLightboxModalOpen(!1)),window.scrollTo(0,0)}},W=(0,y.I0)(),q=(0,y.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),V=function(){W(Ke.$.setSocketReceiverUserID(e.Userid)),W(Ke.$.setReloadNotificationSenderFn(!q))},G=function(){var t=(0,f.Z)((0,d.Z)().mark((function t(n){var r;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),a(!o),m(!u),u?(r="remove",E(1*_-1),W(S.H.setUpdateTheMianFeedpage({TotalVote:1*_-1,Follow:b,photoID:e.photoId,votebtnactive:!o}))):(E(1*_+1),W(S.H.setUpdateTheMianFeedpage({TotalVote:1*_+1,Follow:b,photoID:e.photoId,votebtnactive:!o})),r="add",j.Z.getInstance().setUserId(e.LoginUserid),j.Z.getInstance().logEvent("Upvote",{UserID:e.LoginUserid})),t.prev=4,t.next=7,(0,dt.T)(e.photoId,r,e.usertoken);case 7:t.sent,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(4);case 12:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(e){return t.apply(this,arguments)}}(),$=function(){var t=(0,f.Z)((0,d.Z)().mark((function t(n){return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),w(!b),W(S.H.setUpdateTheMianFeedpage({TotalVote:_,Follow:!b,photoID:e.photoId})),t.prev=3,t.next=6,(0,pt.P)(e.Userid,!b,e.usertoken,e.LoginUserid,V);case 6:t.sent,t.next=11;break;case 9:t.prev=9,t.t0=t.catch(3);case 11:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e){return t.apply(this,arguments)}}(),J=function(){W(x.N.setisLightboxModalOpen(!1)),W(x.N.setSharePhotoModalState(!0)),W(x.N.setShareModalPhotoInfo(e.LoginUserid!==e.Userid?{path:e.photo_url,id:e.photoId,shareType:"Share Other User Photo"}:{path:e.photo_url,id:e.photoId,shareType:""}))},K=(0,y.v9)((function(e){return e.LightBox.UpdateTheMianFeedpage}));return(0,c.useEffect)((function(){(null===K||void 0===K?void 0:K.photoID)===e.photoId&&(K.TotalVote!==_&&(E(K.TotalVote),a(K.votebtnactive),m(K.votebtnactive)),w(null===K||void 0===K?void 0:K.Follow))}),[]),(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{className:"gallery_item_inner",children:[(0,F.jsxs)("div",{className:"gallery_img ".concat(D?"aco-host":""),children:[(0,F.jsx)("img",{className:"img-responsive",src:e.photo_url,alt:"","aria-hidden":D?"true":void 0,style:{cursor:D?"default":"grab"}}),D&&(0,F.jsx)(ht.Z,{variant:"lightbox",isLoggedIn:N,onReveal:T,photoId:e.photoId})]}),function(){var t=(0,F.jsxs)("div",{className:"lb_person",children:[(0,F.jsx)("a",{className:"user_img",onClick:H,style:{backgroundImage:"url(".concat(L||"",")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",cursor:"pointer"}
2,children:!L&&(0,F.jsx)("img",{src:"https://ui-avatars.com/api/?name=".concat(R,"&size=88&rounded=true&background=01655a&color=fff"),alt:""})}),(0,F.jsxs)("div",{className:"user_text",children:[(0,F.jsx)("a",{onClick:H,className:"user_name",children:R}),(B||z)&&(0,F.jsxs)("p",{className:"user_meta",children:[B&&(0,F.jsx)("span",{className:"location",children:B}),z&&(0,F.jsx)("span",{className:"date",children:z})]})]})]}),n=(0,F.jsxs)("button",{type:"button",className:"lb_action lb_share",onClick:J,children:[(0,F.jsx)("img",{src:"/assets/img/icons/share-icon-black.svg",alt:""}),(0,F.jsx)("span",{children:"Share"})]});return O?e.LoginUserPhotos?(0,F.jsx)("div",{className:"gallery_content_meta lb_footer lb_footer--byline",children:(0,F.jsx)("div",{className:"lb_cluster lb_cluster--person",children:t})}):null:M?(0,F.jsxs)("div",{className:"gallery_content_meta lb_footer lb_footer--own",children:[(0,F.jsx)("div",{className:"lb_cluster lb_cluster--person",children:t}),(0,F.jsx)("div",{className:"lb_cluster lb_cluster--actions",children:n})]}):(0,F.jsxs)("div",{className:"gallery_content_meta lb_footer",children:[(0,F.jsxs)("div",{className:"lb_cluster lb_cluster--person",children:[t,(0,F.jsxs)("button",{type:"button",onClick:$,className:"btn btn-follow lb_action lb_follow ".concat(b?"is-following":""),"aria-label":b?"Unfollow":"Follow",children:[(0,F.jsx)("img",{src:"".concat(b?"/assets/img/icons/following.svg":"/assets/img/icons/follow-black.svg"),alt:""}),(0,F.jsx)("span",{children:"".concat(b?"Following":"Follow")})]})]}),(0,F.jsxs)("div",{className:"lb_cluster lb_cluster--actions",children:[n,(0,F.jsx)("div",{className:"feed_vote",children:(0,F.jsxs)("button",{type:"button",className:"btn btn-vote lb_vote ".concat(o?"active":""),onClick:G,"aria-pressed":o,"aria-label":o?"Remove upvote":"Upvote",children:[(0,F.jsx)("img",{src:"/assets/img/icons/arrow-up.svg",alt:""}),(0,F.jsx)("span",{children:o?"Upvoted":"Upvote"})]})})]})]})}()]})})},gt=n(4444),yt=new Set,bt=function(e,t,n){try{if(!e||yt.has(e))return;var r=function(){try{var e=(0,it.IS)();if(e)return e;var t=(0,b.a)(localStorage.getItem("Data"));return(null===t||void 0===t?void 0:t.token)||null}catch(n){return null}}();if(!r)return;yt.add(e);var i={photoID:e};t&&(i.surface=t),"number"===typeof n&&Number.isFinite(n)&&(i.dwellMs=Math.max(0,Math.round(n))),fetch("".concat("https://bigbesos.com","/photo/record_photo_open"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)},body:JSON.stringify(i),keepalive:!0}).catch((function(){}))}catch(o){}},xt=(n(6497),n(6593),function(){var e=(0,y.v9)((function(e){return e.LightBox.LightBoxState})),t=(0,y.v9)((function(e){return e.LightBox.LightBoxActiveImgId})),n=(0,y.v9)((function(e){return e.LightBox.LoadMorePhotos})),r=(0,y.v9)((function(e){return e.Modal.SharePhotoModalState})),i=(0,y.I0)(),o=localStorage.getItem("Data"),a=(0,b.a)(o),s=a.token,l=a.userid,u=a.useDisplay_name,d=a.Display_UserSocailPhoto,f=null!==a&&void 0!==a&&a.state?(0,ut.V)(a.state,16):"",p=(0,ft.p)(a.CreatedAt),h=(0,c.useRef)(null),m=(0,c.useRef)(null),v=function(t){var n,r,i=null===e||void 0===e||null===(n=e.PhotoArr)||void 0===n?void 0:n[t];return i?null!==(r=i.photo_id)&&void 0!==r?r:i.id:null},g=function(e){if(m.current&&clearTimeout(m.current),e){var t=Date.now();m.current=setTimeout((function(){bt(e,"lightbox",Date.now()-t)}),1500)}};(0,c.useEffect)((function(){return function(){m.current&&clearTimeout(m.current)}}),[]),(0,c.useEffect)((function(){var n,r;h.current&&e.PhotoArr&&(-1!==(r=null!==(n=e.PhotoArr[0])&&void 0!==n&&n.photo_id?e.PhotoArr.findIndex((function(e){return e.photo_id===t})):e.PhotoArr.findIndex((function(e){return e.id===t})))&&(h.current.swiper.slideTo(r),g(v(r))))}),[]);var w=function(){i(x.N.setisLightboxModalOpen(!1))},k=(0,gt.Z)(w);return(0,c.useEffect)((function(){var e=function(e){if("Escape"===e.key)r||w();else if("ArrowLeft"===e.key){var t,n;null===(t=h.current)||void 0===t||null===(n=t.swiper)||void 0===n||n.slidePrev()}else if("ArrowRight"===e.key){var i,o;null===(i=h.current)||void 0===i||null===(o=i.swiper)||void 0===o||o.slideNext()}};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[r]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"backdrop"}),(0,F.jsx)("div",{className:"modal fade show bph-modal galleryExpanded",id:"galleryExpanded",tabIndex:-1,"aria-labelledby":"galleryExpanded","aria-hidden":"true",style:{display:"block"},children:(0,F.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,F.jsx)("div",{className:"modal-content",ref:k,children:(0,F.jsxs)("div",{className:"gallery_expand_content",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:w}),(0,F.jsx)("div",{className:"gallery_popup_content",children:(0,F.jsx)("div",{className:"gallery_popup_carousel swiper swiper-container",id:"galleryPopupCarousel",children:(0,F.jsx)(lt.tq,{ref:h,modules:[ct.W_],spaceBetween:50,slidesPerView:1,navigation:{nextEl:".galleryNextBtn",prevEl:".galleryPrevBtn"},onSlideChange:function(e){var t=e.slides.length,r=e.activeIndex;g(v(r)),t-r<=4&&i(S.H.setLoadMorePhotos({fetchMorePhotos:!0,fetchAction:!n.fetchAction}))},children:e.PhotoArr&&e.PhotoArr.map((function(t,n){var r;return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(lt.o5,{children:(0,F.jsx)(vt,{Name:t.name,photo_url:t.photo_url,is_adult_content:t.is_adult_content,gatePhotoId:null!==(r=t.photo_id)&&void 0!==r?r:t.id,UserPhoto:t.user_photo_url,Userlocation:t.state,is_vote:t.is_vote,photoId:t.id,postedDate:t.photo_posted_date,usertoken:s,is_follow:t.is_follow,Userid:t.user_id,LoginUserid:l,LoginUserPhotos:e.LoginUserPhotos,gallery:e.gallery,TotalVotes:t.total_votes,DisplayName:u,DisplayUserPhoto:d,DisplayLocation:f,DisplayDate:p})},t.id)})}))})})}),(0,F.jsxs)("div",{className:"photo_nav",children:[(0,F.jsx)("button",{type:"button",className:"galleryPrevBtn swiper-button-prev","aria-label":"Previous photo",children:(0,F.jsx)("img",{src:"/assets/img/icons/arrow-left.svg",alt:"Previous"})}),(0,F.jsx)("button",{type:"button",className:"galleryNextBtn swiper-button-next ","aria-label":"Next p
2hoto",children:(0,F.jsx)("img",{src:"/assets/img/icons/arrow-right.svg",alt:"Next"})})]})]})})})})]})}),wt=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r,i,o,a,s=arguments;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:"",r=s.length>2&&void 0!==s[2]?s[2]:"",i=s.length>3?s[3]:void 0,e.prev=3,o=(0,A.Z)({email:t,contact_url:n,form_elapsed_ms:r},void 0!==i&&{captchaToken:i}),e.next=7,Se.Z.post("".concat("https://bigbesos.com","/user/add_newsletter_recipient"),o);case 7:return a=e.sent,e.abrupt("return",a);case 11:throw e.prev=11,e.t0=e.catch(3),e.t0;case 14:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t){return e.apply(this,arguments)}}(),kt=n(2007),St=n.n(kt),jt=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ct.apply(this,arguments)}function _t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Et(e,t){return Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Et(e,t)}var Nt=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(_t(t)),t.handleErrored=t.handleErrored.bind(_t(t)),t.handleChange=t.handleChange.bind(_t(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(_t(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Et(t,n);var i=r.prototype;return i.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},i.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},i.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},i.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},i.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},i.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},i.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},i.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},i.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},i.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},i.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},i.componentDidMount=function(){this.explicitRender()},i.componentDidUpdate=function(){this.explicitRender()},i.handleRecaptchaRef=function(e){this.captcha=e},i.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,jt));return c.createElement("div",Ct({},t,{ref:this.handleRecaptchaRef}))},r}(c.Component);
2Nt.displayName="ReCAPTCHA",Nt.propTypes={sitekey:St().string.isRequired,onChange:St().func,grecaptcha:St().object,theme:St().oneOf(["dark","light"]),type:St().oneOf(["image","audio"]),tabindex:St().number,onExpired:St().func,onErrored:St().func,size:St().oneOf(["compact","normal","invisible"]),stoken:St().string,hl:St().string,badge:St().oneOf(["bottomright","bottomleft","inline"]),isolated:St().bool},Nt.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var At=n(2110),Dt=n.n(At);function Tt(){return Tt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(this,arguments)}var It={},Pt=0;var Ft="onloadcallback";function Ot(){return"undefined"!==typeof window&&window.recaptchaOptions||{}}var Mt=function(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",i=function(r){var i,o;function a(e,t){var n;return(n=r.call(this,e,t)||this).state={},n.__scriptURL="",n}o=r,(i=a).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var s=a.prototype;return s.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+Pt++),this.__scriptLoaderID},s.setupScriptURL=function(){return this.__scriptURL="function"===typeof e?e():e,this.__scriptURL},s.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},s.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=It[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var n in e.observers)e.observers[n](e);delete window[t.callbackName]},s.componentDidMount=function(){var e=this,n=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),i=t,o=i.globalName,a=i.callbackName,s=i.scriptId;if(o&&"undefined"!==typeof window[o]&&(It[n]={loaded:!0,observers:{}}),It[n]){var l=It[n];return l&&(l.loaded||l.errored)?void this.asyncScriptLoaderHandleLoad(l):void(l.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},It[n]={loaded:!1,observers:c};var u=document.createElement("script");for(var d in u.src=n,u.async=!0,t.attributes)u.setAttribute(d,t.attributes[d]);s&&(u.id=s);var f=function(e){if(It[n]){var t=It[n].observers;for(var r in t)e(t[r])&&delete t[r]}};a&&"undefined"!==typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=It[n];e&&(e.loaded=!0,f((function(t){return!a&&(t(e),!0)})))},u.onerror=function(){var e=It[n];e&&(e.errored=!0,f((function(t){return t(e),!0})))},document.body.appendChild(u)},s.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var n=document.getElementsByTagName("script"),r=0;r<n.length;r+=1)n[r].src.indexOf(e)>-1&&n[r].parentNode&&n[r].parentNode.removeChild(n[r]);var i=It[e];i&&(delete i.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete It[e])},s.render=function(){var e=t.globalName,r=this.props,i=(r.asyncScriptOnLoad,r.forwardedRef),o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!==typeof window&&(o[e]="undefined"!==typeof window[e]?window[e]:void 0),o.ref=i,(0,c.createElement)(n,o)},a}(c.Component),o=(0,c.forwardRef)((function(e,t){return(0,c.createElement)(i,Tt({},e,{forwardedRef:t}))}));return o.displayName="AsyncScriptLoader("+r+")",o.propTypes={asyncScriptOnLoad:St().func},Dt()(o,n)}}((function(){var e=Ot(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+Ft+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+Ft+"&render=explicit"}),{callbackName:Ft,globalName:"grecaptcha",attributes:Ot().nonce?{nonce:Ot().nonce}:{}})(Nt),Zt=Mt,Rt=function(){var e=(0,c.useState)(!1),t=(0,p.Z)(e,2),n=t[0],r=t[1],i=(0,c.useRef)(),o=(0,c.useRef)(),a=(0,c.useRef)(Date.now()),s=(0,c.useState)(!1),l=(0,p.Z)(s,2),u=l[0],h=l[1],m=(0,c.useRef)(),v=function(){return h(!0)},y=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,s,l,c,u,f;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),n=i.current.value,v(),r(!0),e.prev=4,s=null,!m.current){e.next=19;break}return e.prev=7,e.next=10,Promise.race([m.current.executeAsync(),new Promise((function(e){return setTimeout((function(){return e(null)}),8e3)}))]);case 10:s=e.sent,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(7),s=null;case 16:e.prev=16;try{m.current.reset()}catch(d){}return e.finish(16);
2case 19:return e.next=21,wt(n,o.current?o.current.value:"",String(Date.now()-a.current),s);case 21:l=e.sent,st().fire("",l.data.data.response,"success"),i.current.value="",e.next=31;break;case 26:e.prev=26,e.t1=e.catch(4),console.error("Error:",e.t1),f=null===e.t1||void 0===e.t1||null===(c=e.t1.response)||void 0===c||null===(u=c.data)||void 0===u?void 0:u.message,st().fire("",f||"We couldn't reach Big Photo Hunt just then. Please check your connection and try again.","error");case 31:return e.prev=31,r(!1),e.finish(31);case 34:case"end":return e.stop()}}),e,null,[[4,26,31,34],[7,13,16,19]])})));return function(t){return e.apply(this,arguments)}}();return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("footer",{className:"site-footer",id:"footer",children:(0,F.jsx)("div",{className:"container",children:(0,F.jsxs)("div",{className:"row",children:[(0,F.jsx)("div",{className:"col-md-6 col-lg-3 order-4 order-md-1",children:(0,F.jsx)("div",{className:"footer_widget",children:(0,F.jsxs)("div",{className:"site_info",children:[(0,F.jsxs)("ul",{className:"socials d-md-none",children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"#",target:"_blank",children:(0,F.jsx)("img",{src:"/assets/img/icons/twitter.svg",alt:"img"})})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"#",target:"_blank",children:(0,F.jsx)("img",{src:"/assets/img/icons/instagram.svg",alt:"img"})})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"#",target:"_blank",children:(0,F.jsx)("img",{src:"/assets/img/icons/facebook.svg",alt:"img"})})})]}),(0,F.jsx)("div",{className:"footer_logo",children:(0,F.jsx)(g.rU,{to:"/",children:(0,F.jsx)("img",{src:"/assets/img/logo/footer-logo.png",alt:"Footer Logo"})})}),(0,F.jsx)("div",{className:"hash_tag",children:(0,F.jsx)("span",{children:"#pointshootupvote"})}),(0,F.jsx)("div",{className:"info_text",children:(0,F.jsx)("p",{children:"The Big Photo Hunt grows your photography in a friendly community of aspiring and amateur photographers."})}),(0,F.jsxs)("ul",{className:"socials d-none d-md-block",children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"https://twitter.com/bigphotohunt",target:"_blank",children:(0,F.jsx)("img",{src:"/assets/img/icons/twitter.svg",alt:"img"})})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"https://www.instagram.com/bigphotohunt/",target:"_blank",children:(0,F.jsx)("img",{src:"/assets/img/icons/instagram.svg",alt:"img"})})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"https://www.facebook.com/bigphotohunt",target:"_blank",children:(0,F.jsx)("img",{src:"/assets/img/icons/facebook.svg",alt:"img"})})})]})]})})}),(0,F.jsx)("div",{className:"col-md-6 col-lg-2 order-1 offset-lg-1 order-md-2",children:(0,F.jsxs)("div",{className:"footer_widget",children:[(0,F.jsx)("div",{className:"footer_title",children:"Info"}),(0,F.jsx)("div",{className:"footer_menu",children:(0,F.jsxs)("ul",{onClick:function(){window.scrollTo(0,0)},children:[(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/about",children:"About Us"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/how-works",children:"How It Works"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/meet-terry",children:"A Mouse?"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/contact",children:"Contact"})}),(0,F.jsx)("li",{children:(0,F.jsx)("a",{href:"/podcast/",children:"Podcast"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/terms",children:"Terms"})}),(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/policy",children:"Privacy Policy"})})]})})]})}),(0,F.jsx)("div",{className:"col-md-6 col-lg-2 order-2 order-md-3",children:(0,F.jsxs)("div",{className:"footer_widget",children:[(0,F.jsx)("div",{className:"footer_title",children:"Be Recognized"}),(0,F.jsx)("div",{className:"footer_menu",children:(0,F.jsx)("ul",{onClick:function(){window.scrollTo(0,0)},children:(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/topten",children:"Weekly Top 10"})})})})]})}),(0,F.jsx)("div",{className:"col-md-6 col-lg-4 order-3 order-md-4",children:(0,F.jsx)("div",{className:"footer_widget",children:(0,F.jsxs)("div",{className:"footer_subscription",children:[(0,F.jsx)("div",{className:"title",children:"Receive Our 1x Week Newsletter"}),(0,F.jsxs)("form",{className:"form",onSubmit:y,children:[(0,F.jsx)("input",{type:"text",name:"contact_url",ref:o,tabIndex:-1,autoComplete:"off","aria-hidden":"true",style:{display:"none"}}),(0,F.jsx)("input",{type:"email",name:"email",id:"email",placeholder:"Email",ref:i,onFocus:v,required:!0}),u&&(0,F.jsx)(Zt,{ref:m,size:"invisible",sitekey:"6LdsCVItAAAAAGdHsCkDrTyDAS6ixNlCC-SMIU_j"}),n?(0,F.jsx)("button",{className:"btn",style:{width:"100%"},children:(0,F.jsx)("span",{className:"loader"})}):(0,F.jsx)("button",{className:"btn",type:"submit",style:{width:"100%"},children:" Subscribe "})]})]})})})]})})})})},Lt=n(5705),Bt=n(8224),zt=n(9829),Ut=(0,zt.oM)({name:"SocialMedia",initialState:{SocialMediaUserInfo:[]},reducers:{getSocialMediaUserInfo:function(e,t){e.SocialMediaUserInfo=t.payload}}}),Ht=Ut.actions,Wt=Ut,qt=n(3244);function Vt(){return(Vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $t=window,Jt=((0,c.memo)((function(e){var t=e.state,n=void 0===t?"":t,r=e.client_id,i=e.className,o=e.redirect_uri,a=e.scope,s=void 0===a?"profile":a,l=e.isOnlyGetToken,u=void 0!==l&&l,d=e.scope_data,f=void 0===d?{profile:{essential:!0}}:d,p=e.response_type,h=void 0===p?"token":p,m=e.children,v=e.onReject,g=e.onResolve,y=e.onLoginStart,b=(0,c.useRef)(null),x=(0,c.useState)(!1),w=x[0],k=x[1];(0,c.useEffect)((function(){!w&&N()}),[w]),(0,c.useEffect)((function(){return function(){b.current&&b.current.remove()}}),[]);var S=(0,c.useCallback)((function(){return!!document.getElementById("amazon-login")}),[]),j=(0,c.useCallback)((function(e,t,n,r,i){void 0===t&&(t="script");var o=e.createElement(t);o.id=n,o.src=r,o.async=!0,o.defer=!0;var a=document.getElementsByTagName("script")[0];b.current=o,a&&a.parentNode&&a.parentNode.insertBefore(o,a),o.onload=i}),[]),C=(0,c.useCallback)((function(e){try{return fetch("https://api.amazon.com/user/profile",{headers:{Authorization:"Bearer "+e.access_token}}).then((function(e){return e.json()})).then((function(t){g({provider:"amazon",data:Vt({},t,e)})})).catch((function(e){v(e)})).finally((function(){})),Promise.resolve()}catch(e){return Promise.reject(e)}}),[v,g]),_=(0,c.useCallback)((function(e){u?g({provider:"amazon",data:Vt({},e)}):C(e)}),[C,g,u]),E=(0,c.useCallback)((function(e){v(e)}),[v]),N=(0,c.useCallback)((function(){S()?k(!0):j(document,"script","amazon-login","https://assets.loginwithamazon.com/sdk/na/login1.js",(function(){$t.amazon.Login.setClientId(r),k(!0)}))}),[S,r,j]),A=(0,c.useCallback)((function(){w&&($t.amazon?(y&&y(),$t.amazon.Login.authorize({scope:s,scope_data:f,response_type:h,redirect_uri:o,state:n},(function(e){e.error?E(e.error):_(e)}))):(N(),v("Google SDK isn't loaded!")))}),[N,s,n,v,f,w,E,y,o,h,_]);return c.createElement("div",{className:i,onClick:A},m)})),window),Kt=(0,c.memo)((function(e){var t=e.appId,n=e.scope,r=void 0===n?"email,public_profile":n,i=e.state,o=void 0===i||i,a=e.xfbml,s=void 0===a||a,l=e.cookie,u=void 0===l||l,d=e.version,f=void 0===d?"v2.7":d,p=e.language,h=void 0===p?"en_EN":p,m=e.auth_type,v=void 0===m?"":m,g=e.className,y=e.onLoginStart,b=e.onReject,x=e.onResolve,w=e.redirect_uri,k=e.fieldsProfile,S=void 0===k?"id,first_name,last_name,middle_name,name,name_format,picture,short_name,email,gender":k,j=e.response_type,C=void 0===j?"code":j,_=e.return_scopes,E=void 0===_||_,N=e.isOnlyGetToken,A=void 0!==N&&N,D=e.children,T=(0,c.useRef)(null),I=(0,c.useState)(!1),P=I[0],F=I[1],O=(0,c.useState)(!1),M=O[0],Z=O[1];(0,c.useEffect)((function(){!P&&H()}),[P]),(0,c.useEffect)((function(){return function(){T.current&&T.current.remove()}}),[]);var R=(0,c.useCallback)((function(e,t){var n=e.createElement("script");n.id="facebook-jssdk",n.src="https://connect.facebook.net/en_EN/sdk.js";var r=e.getElementsByTagName("script")[0];r&&r.parentNode&&r.parentNode.insertBefore(n,r),t()}),[]),L=(0,c.useCallback)((function(){return!!document.getElementById("facebook-jssdk")}),[]),B=(0,c.useCallback)((function(e,t){var n=window;n.fbAsyncInit=function(){n.FB&&n.FB.init(Vt({},e)),F(!0);var r=t.getElementById("fb-root");r||((r=t.createElement("div")).id="fb-root",t.body.appendChild(r)),T.current=r}}),[]),z=(0,c.useCallback)((function(e){Jt.FB.api("/me",{locale:h,fields:S},(function(t){x({provider:"facebook",data:Vt({},e,t)})}))}
2),[S,h,x]),U=(0,c.useCallback)((function(e){e.authResponse?A?x({provider:"facebook",data:Vt({},e.authResponse)}):z(e.authResponse):b(e),Z(!1)}),[z,A,b,x]),H=(0,c.useCallback)((function(){L()?F(!0):R(document,(function(){B({appId:t,xfbml:s,version:f,state:o,cookie:u,redirect_uri:w,response_type:C},document)}))}),[o,t,s,u,f,B,w,C,R,L]),W=(0,c.useCallback)((function(){P&&!M&&(Jt.FB?(Z(!0),y&&y(),Jt.FB.login(U,{scope:r,return_scopes:E,auth_type:v})):(H(),b("Fb isn't loaded!"),Z(!1)))}),[H,r,b,v,P,y,M,E,U]);return c.createElement("div",{className:g,onClick:W},D)})),Yt="875c0462-6309-4ddf-9889-5227b1acc82c",Xt=window;(0,c.memo)((function(e){var t=e.client_id,n=e.scope,r=void 0===n?"https://www.googleapis.com/auth/userinfo.profile":n,i=e.prompt,o=void 0===i?"select_account":i,a=e.typeResponse,s=void 0===a?"accessToken":a,l=e.ux_mode,u=e.className,d=void 0===u?"":u,f=e.login_hint,p=void 0===f?"":f,h=e.access_type,m=void 0===h?"online":h,v=e.onLoginStart,g=e.onReject,y=e.onResolve,b=e.redirect_uri,x=void 0===b?"/":b,w=e.auto_select,k=void 0!==w&&w,S=e.isOnlyGetToken,j=void 0!==S&&S,C=e.cookie_policy,_=void 0===C?"single_host_origin":C,E=e.hosted_domain,N=void 0===E?"":E,A=e.discoveryDocs,D=void 0===A?"":A,T=e.children,I=e.fetch_basic_profile,P=void 0===I||I,F=(0,c.useRef)(null),O=(0,c.useState)(!1),M=O[0],Z=O[1],R=(0,c.useState)(null),L=R[0],B=R[1];(0,c.useEffect)((function(){!M&&q()}),[M]),(0,c.useEffect)((function(){return function(){F.current&&F.current.remove()}}),[]);var z=(0,c.useCallback)((function(){return!!document.getElementById("google-login")}),[]),U=(0,c.useCallback)((function(e,t,n,r,i){void 0===t&&(t="script");var o=e.createElement(t);o.id=n,o.src=r,o.async=!0,o.defer=!0;var a=document.getElementsByTagName("script")[0];F.current=o,a&&a.parentNode&&a.parentNode.insertBefore(o,a),o.onload=i}),[]),H=(0,c.useCallback)((function(e){if("accessToken"===s){var t=new Headers({"Content-Type":"application/x-www-form-urlencoded","x-cors-grida-api-key":Yt,Authorization:"Bearer "+e.access_token});fetch("https://cors.bridged.cc/https://www.googleapis.com/oauth2/v3/userinfo?alt=json",{method:"GET",headers:t}).then((function(e){return e.json()})).then((function(t){var n=Vt({},e,t);y({provider:"google",data:n})})).catch((function(e){g(e)}))}else fetch("https://www.googleapis.com/oauth2/v3/tokeninfo?id_token="+e.credential,{method:"GET"}).then((function(e){return e.json()})).then((function(t){console.log("\ud83d\ude80 ~ file: index.tsx ~ line 153 ~ response",t);var n=Vt({},e,t);y({provider:"google",data:n})})).catch((function(e){g(e)}))}),[s,g,y]),W=(0,c.useCallback)((function(e){j?y({provider:"google",data:e}):H(e)}),[j,H,y]),q=(0,c.useCallback)((function(){z()?Z(!0):U(document,"script","google-login","https://accounts.google.com/gsi/client",(function(){var e={client_id:t,ux_mode:l},n=null;"idToken"===s?Xt.google.accounts.id.initialize(Vt({},e,{auto_select:k,callback:W})):n=Xt.google.accounts.oauth2.initTokenClient(Vt({},e,{scope:r,prompt:o,login_hint:p,access_type:m,hosted_domain:N,redirect_uri:x,cookie_policy:_,discoveryDocs:D,immediate:!0,fetch_basic_profile:P,callback:W})),n&&B(n),Z(!0)}))}),[r,o,l,t,p,k,m,x,s,D,_,N,W,P,U,z]),V=(0,c.useCallback)((function(){M&&(Xt.google?(v&&v(),L?L.requestAccessToken():Xt.google.accounts.id.prompt()):(q(),g("Google SDK isn't loaded!")))}),[L,M,q,v,g]);return c.createElement("div",{className:d,onClick:V},T)})),(0,c.memo)((function(e){var t=e.state,n=void 0===t?"":t,r=e.scope,i=void 0===r?"repo,gist":r,o=e.client_id,a=e.client_secret,s=e.className,l=void 0===s?"":s,u=e.redirect_uri,d=e.allow_signup,f=void 0!==d&&d,p=e.isOnlyGetToken,h=void 0!==p&&p,m=e.isOnlyGetCode,v=void 0!==m&&m,g=e.children,y=e.onReject,b=e.onResolve,x=e.onLoginStart;(0,c.useEffect)((function(){var e=new URL(window.location.href),t=e.searchParams.get("code"),n=e.searchParams.get("state");null!=n&&n.includes("_github")&&t&&(localStorage.setItem("github",t),window.close())}),[]);var w=(0,c.useCallback)((function(e){fetch("https://cors.bridged.cc/https://api.github.com//user",{method:"GET",headers:{Authorization:"token "+e.access_token,"x-cors-grida-api-key":Yt}}).then((function(e){return e.json()})).then((function(t){b({provider:"github",data:Vt({},t,e)})})).catch((function(e){y(e)}))}),[y,b]),k=(0,c.useCallback)((function(e){if(v)b({provider:"github",data:{code:e}});else{var t={code:e,state:n,redirect_uri:u,client_id:o,client_secret:a},r=new Headers({"Content-Type":"application/x-www-form-urlencoded","x-cors-grida-api-key":Yt});fetch("https://cors.bridged.cc/https://github.com/login/oauth/access_token",{method:"POST",headers:r,body:new URLSearchParams(t)}).then((function(e){return e.text()})).then((function(e){for(var t,n={},r=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Gt(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gt(e,void 0):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(new URLSearchParams(e));!(t=r()).done;){var i=t.value;n[i[0]]=i[1]}n.access_token?h?b({provider:"github",data:n}):w(n):y("no data")})).catch((function(e){y(e)}))}}),[n,y,w,b,o,u,a,v,h]),S=(0,c.useCallback)((function(e){var t=e.type,n=e.code,r=e.provider;try{return Promise.resolve("code"===t&&"github"===r&&n&&k(n))}catch(e){return Promise.reject(e)}}),[k]),j=(0,c.useCallback)((function(){window.removeEventListener("storage",j,!1);var e=localStorage.getItem("github");e&&(S({provider:"github",type:"code",code:e}),localStorage.removeItem("instagram"))}),[S]),C=(0,c.useCallback)((function(){x&&x(),window.addEventListener("storage",j,!1);var e=window.screen.width/2-225,t=window.screen.height/2-365;window.open("https://github.com/login/oauth/authorize?client_id="+o+"&scope="+i+"&state="+n+"_github&redirect_uri="+u+"&allow_signup="+f,"Github","menubar=no,location=no,resizable=no,scrollbars=no,status=no, width=450, height=730, top="+t+", left="+e)}),[i,n,o,u,f,x,j]);return c.createElement("div",{className:l,onClick:C},g)})),(0,c.memo)((function(e){var t=e.state,n=void 0===t?"":t,r=e.client_id,i=e.client_secret,o=e.className,a=e.redirect_uri,s=e.fields,l=void 0===s?"id,username,account_type,media_count":s,u=e.scope,d=void 0===u?"user_profile,user_media":u,f=e.response_type,p=void 0===f?"code":f,h=e.isOnlyGetCode,m=void 0!==h&&h,v=e.isOnlyGetToken,g=void 0!==v&&v,y=e.children,b=e.onReject,x=e.onResolve,w=e.onLoginStart;(0,c.useEffect)((function(){var e=new URL(window.location.href),t=e.searchParams.get("code"),n=e.searchParams.get("state");null!=n&&n.includes("_instagram")&&t&&(localStorage.setItem("instagram",t),window.close())}),[]);var k=(0,c.useCallback)((function(e){fetch("https://cors.bridged.cc/https://graph.instagram.com//me?fields="+l+"&access_token="+e.access_token,{method:"GET",headers:{"x-cors-grida-api-key":Yt}}).then((function(e){return e.json()})).then((function(t){x({provider:"instagram",data:Vt({},t,e)})})).catch((function(e){b(e)}))}),[l,b,x]),S=(0,c.useCallback)((function(e){if(m)x({provider:"instagram",data:{code:e}});else{var t={grant_type:"authorization_code",code:e,redirect_uri:a,client_id:r,client_secret:i},n=new Headers({"Content-Type":"application/x-www-form-urlencoded","x-cors-grida-api-key":Yt});fetch("https://cors.bridged.cc/https://api.instagram.com/oauth/access_token",{method:"POST",headers:n,body:new URLSearchParams(t)}).then((function(e){return e.json()})).then((function(e){e.access_token?g?x({provider:"instagram",data:e}):k(e):b("no data")})).catch((function(e){b(e)})).finally((function(){}))}}),[b,x,k,r,a,i,m,g]),j=(0,c.useCallback)((function(e){var t=e.type,n=e.code,r=e.provider;try{return Promise.resolve("code"===t&&"instagram"===r&&n&&S(n))}catch(e){return Promise.reject(e)}}),[S]),C=(0,c.useCallback)((function(){window.removeEventListener("storage",C,!1);var e=localStorage.getItem("instagram");e&&(j({provider:"instagram",type:"code",code:e}),localStorage.removeItem("instagram"))}),[j]),_=(0,c.useCallback)((function(){w&&w(),window.addEventListener("storage",C,!1);var e=window.screen.width/2-225,t=window.screen.height/2-365;window.open("https://api.instagram.com/oauth/authorize?response_type="+p+"&client_id="+r+"&scope="+d+"&state="+n+"_instagram&redirect_uri="+a,"Instagram","menubar=no,location=no,resizable=no,scrollbars=no,status=no, width=450, height=730, top="+t+", left="+e)}),[d,n,r,a,w,p,C]);return c.createElement("div",{className:o,onClick:_},y)})),(0,c.memo)((function(e){var t=e.tenant,n=void 0===t?"common":t,r=e.state,i=void 0===r?"":r,o=e.client_id,a=e.className,s=e.redirect_uri,l=e.scope,u=void 0===l?"profile openid email":l,d=e.response_type,f=void 0===d?"code":d,p=e.response_mode,h=void 0===p?"query":p,m=e.children,v=e.code_challenge,g=void 0===v?"19cfc47c216dacba8ca23eeee817603e2ba34fe0976378662ba31688ed302fa9":v,y=e.code_challenge_method,b=void 0===y?"plain":y,x=e.prompt,w=void 0===x?"select_account":x,k=e.isOnlyGetCode,S=void 0!==k&&k,j=e.isOnlyGetToken,C=void 0!==j&&j,_=e.onLoginStart,E=e.onReject,N=e.onResolve;(0,c.useEffect)((function(){var e=new URL(window.location.href),t=e.searchParams.get("code"),n=e.searchParams.get("state");null!=n&&n.includes("_microsoft")&&t&&(localStorage.setItem("microsoft",t),window.close())}),[]);var A=(0,c.useCallback)((function(e){fetch("https://graph.microsoft.com/v1.0/me",{method:"GET",headers:{Authorization:"Bearer "+e.access_token}}).then((function(e){return e.json()})).then((function(t){N({provider:"microsoft",data:Vt({},t,e)})})).catch((function(e){E(e)}))}),[E,N]),D=(0,c.useCallback)((function(e){if(S)N({provider:"microsoft",data:{code:e}});else{var t={code:e,scope:u,client_id:o,redirect_uri:s,code_verifier:g,grant_type:"authorization_code"},r=new Headers({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"});fetch("https://login.microsoftonline.com/"+n+"/oauth2/v2.0/token",{method:"POST",headers:r,body:new URLSearchParams(t)}).then((function(e){return e.json()})).then((function(e){e.access_token?C?N({provider:"microsoft",data:e}):A(e):E("no data")})).catch((function(e){E(e)}))}}),[u,n,E,A,o,N,s,g,S,C]),T=(0,c.useCallback)((function(e){var t=e.type,n=e.code,r=e.provider;try{return Promise.resolve("code"===t&&"microsoft"===r&&n&&D(n))}catch(e){return Promise.reject(e)}}),[D]),I=(0,c.useCallback)((function(){window.removeEventListener("storage",I,!1);var e=localStorage.getItem("microsoft");e&&(T({provider:"microsoft",type:"code",code:e}),localStorage.removeItem("microsoft"))}),[T]),P=(0,c.useCallback)((function(){_&&_(),window.addEventListener("storage",I,!1);var e=window.screen.width/2-225,t=window.screen.height/2-365;window.open("https://login.microsoftonline.com/"+n+"/oauth2/v2.0/authorize?client_id="+o+"\n        &response_type="+f+"\n        &redirect_uri="+s+"\n        &response_mode="+h+"\n        &scope="+u+"\n        &state="+i+"_microsoft\n        &prompt="+w+"\n        &code_challenge="+g+"\n        &code_challenge_method="+b,"Microsoft","menubar=no,location=no,resizable=no,scrollbars=no,status=no, width=450, height=730, top="+t+", left="+e)}),[u,i,w,n,o,_,s,h,f,g,I,b]);return c.createElement("div",{className:a,onClick:P},m)})),(0,c.memo)((function(e){var t=e.state,n=void 0===t?"":t,r=e.scope,i=void 0===r?"r_liteprofile":r,o=e.client_id,a=e.client_secret,s=e.className,l=void 0===s?"":s,u=e.redirect_uri,d=e.response_type,f=void 0===d?"code":d,p=e.isOnlyGetCode,h=void 0!==p&&p,m=e.isOnlyGetToken,v=void 0!==m&&m,g
2=e.children,y=e.onLoginStart,b=e.onReject,x=e.onResolve;(0,c.useEffect)((function(){var e=new URL(window.location.href),t=e.searchParams.get("code"),n=e.searchParams.get("state");null!=n&&n.includes("_linkedin")&&t&&(localStorage.setItem("linkedin",t),window.close())}),[]);var w=(0,c.useCallback)((function(e){fetch("https://api.allorigins.win/get?url="+encodeURIComponent("https://api.linkedin.com/v2/me?oauth2_access_token="+e.access_token+"&projection=(id,profilePicture(displayImage~digitalmediaAsset:playableStreams),localizedLastName, firstName,lastName,localizedFirstName)"),{method:"GET"}).then((function(e){return e.json()})).then((function(t){var n=Vt({},e);if(t.contents){var r=JSON.parse(t.contents);"object"==typeof e&&Object.entries(r).map((function(e){n[e[0]]=e[1]}))}x({provider:"linkedin",data:n})})).catch((function(e){b(e)}))}),[b,x]),k=(0,c.useCallback)((function(e){if(h)x({provider:"linkedin",data:{code:e}});else{var t={code:e,grant_type:"authorization_code",redirect_uri:u,client_id:o,client_secret:a},n=new Headers({"Content-Type":"application/x-www-form-urlencoded","x-cors-grida-api-key":Yt});fetch("https://cors.bridged.cc/https://www.linkedin.com/oauth/v2/accessToken",{method:"POST",headers:n,body:new URLSearchParams(t)}).then((function(e){return e.json()})).then((function(e){v?x({provider:"linkedin",data:e}):w(e)})).catch((function(e){b(e)}))}}),[b,x,o,w,u,a,h,v]),S=(0,c.useCallback)((function(e){var t=e.type,n=e.code,r=e.provider;try{return Promise.resolve("code"===t&&"linkedin"===r&&n&&k(n))}catch(e){return Promise.reject(e)}}),[k]),j=(0,c.useCallback)((function(){window.removeEventListener("storage",j,!1);var e=localStorage.getItem("linkedin");e&&(S({provider:"linkedin",type:"code",code:e}),localStorage.removeItem("linkedin"))}),[S]),C=(0,c.useCallback)((function(){y&&y(),window.addEventListener("storage",j,!1);var e=window.screen.width/2-225,t=window.screen.height/2-365;window.open("https://www.linkedin.com/oauth/v2/authorization?response_type="+f+"&client_id="+o+"&scope="+i+"&state="+n+"_linkedin&redirect_uri="+u,"Linkedin","menubar=no,location=no,resizable=no,scrollbars=no,status=no, width=450, height=730, top="+t+", left="+e)}),[y,j,f,o,i,n,u]);return c.createElement("div",{className:l,onClick:C},g)})),(0,c.memo)((function(e){var t=e.state,n=void 0===t?"":t,r=e.scope,i=void 0===r?"":r,o=e.client_id,a=e.client_secret,s=e.className,l=void 0===s?"":s,u=e.redirect_uri,d=e.isOnlyGetCode,f=void 0!==d&&d,p=e.isOnlyGetToken,h=void 0!==p&&p,m=e.children,v=e.onLoginStart,g=e.onReject,y=e.onResolve;(0,c.useEffect)((function(){var e=new URL(window.location.href),t=e.searchParams.get("code"),n=e.searchParams.get("state");null!=n&&n.includes("_pinterest")&&t&&(localStorage.setItem("pinterest",t),window.close())}),[]);var b=(0,c.useCallback)((function(e){fetch("https://cors.bridged.cc/https://api.pinterest.com/v5/user_account",{method:"GET",headers:{Authorization:"Bearer "+e.access_token,"x-cors-grida-api-key":Yt}}).then((function(e){return e.json()})).then((function(t){y({provider:"pinterest",data:Vt({},e,t)})})).catch((function(e){return g(e)}))}),[g,y]),x=(0,c.useCallback)((function(e){try{var t=function(){if(!f){var t={code:e,redirect_uri:u,grant_type:"authorization_code"},n=[];for(var r in t){var i=encodeURIComponent(r),s=encodeURIComponent(t[r]);n.push(i+"="+s)}return n=n.join("&"),Promise.resolve(fetch("https://cors.bridged.cc/https://api.pinterest.com/v5/oauth/token",{method:"POST",headers:{Authorization:"Basic "+btoa(o+":"+a),"Content-Type":"application/x-www-form-urlencoded","x-cors-grida-api-key":Yt},body:n}).then((function(e){return e.json()})).catch((function(e){return g(e)}))).then((function(e){e.access_token&&(h?y({provider:"pinterest",data:e}):b(e))}))}y({provider:"pinterest",data:{code:e}})}();return Promise.resolve(t&&t.then?t.then((function(){})):void 0)}catch(e){return Promise.reject(e)}}),[g,o,b,y,u,a,f,h]),w=(0,c.useCallback)((function(e){var t=e.type,n=e.code,r=e.provider;try{return Promise.resolve("code"===t&&"pinterest"===r&&n&&x(n))}catch(e){return Promise.reject(e)}}),[x]),k=(0,c.useCallback)((function(){window.removeEventListener("storage",k,!1);var e=localStorage.getItem("pinterest");e&&(w({provider:"pinterest",type:"code",code:e}),localStorage.removeItem("pinterest"))}),[w]),S=(0,c.useCallback)((function(){v&&v(),window.addEventListener("storage",k,!1);var e=window.screen.width/2-225,t=window.screen.height/2-365;window.open("https://www.pinterest.com/oauth/?client_id="+o+"&scope="+i+"&state="+n+"_pinterest&redirect_uri="+u+"&response_type=code&scope=boards:read,pins:read,user_accounts:read","Pinterest","menubar=no,location=no,resizable=no,scrollbars=no,status=no, width=450, height=730, top="+t+", left="+e)}),[i,n,o,u,v,k]);return c.createElement("div",{className:l,onClick:S},m)})),(0,c.memo)((function(e){var t=e.client_id,n=e.className,r=void 0===n?"":n,i=e.redirect_uri,o=e.children,a=e.fields,s=void 0===a?"created_at,description,entities,id,location,name,pinned_tweet_id,profile_image_url,protected,public_metrics,url,username,verified,withheld":a,l=e.state,u=void 0===l?"state":l,d=e.scope,f=void 0===d?"users.read%20tweet.read":d,p=e.isOnlyGetCode,h=void 0!==p&&p,m=e.isOnlyGetToken,v=void 0!==m&&m,g
2=e.onLoginStart,y=e.onReject,b=e.onResolve;(0,c.useEffect)((function(){var e=new URL(window.location.href),t=e.searchParams.get("code");e.searchParams.get("state")&&t&&(localStorage.setItem("twitter",""+t),window.close())}),[]);var x=(0,c.useCallback)((function(e){fetch("https://cors.bridged.cc/https://api.twitter.com/2/users/me?user.fields="+s,{method:"GET",headers:{Authorization:"Bearer "+e.access_token,"x-cors-grida-api-key":Yt}}).then((function(e){return e.json()})).then((function(t){b({provider:"twitter",data:Vt({},e,t.data)})})).catch((function(e){return y(e)}))}),[s,y,b]),w=(0,c.useCallback)((function(e){try{var n=function(){if(!h){var n=new URLSearchParams({code:e,redirect_uri:i,client_id:t,grant_type:"authorization_code",code_verifier:"challenge"});return Promise.resolve(fetch("https://cors.bridged.cc/https://api.twitter.com/2/oauth2/token",{method:"POST",body:n,headers:{"Content-Type":"application/x-www-form-urlencoded","x-cors-grida-api-key":Yt}}).then((function(e){return e.json()})).catch((function(e){return y(e)}))).then((function(e){e.access_token&&(v?b({provider:"twitter",data:e}):x(e))}))}b({provider:"twitter",data:{code:e}})}();return Promise.resolve(n&&n.then?n.then((function(){})):void 0)}catch(e){return Promise.reject(e)}}),[y,x,b,t,i,h,v]),k=(0,c.useCallback)((function(e){var t=e.type,n=e.code,r=e.provider;try{return Promise.resolve("code"===t&&"twitter"===r&&n&&w(n))}catch(e){return Promise.reject(e)}}),[w]),S=(0,c.useCallback)((function(){window.removeEventListener("storage",S,!1);var e=localStorage.getItem("twitter");e&&(k({provider:"twitter",type:"code",code:e}),localStorage.removeItem("twitter"))}),[k]),j=(0,c.useCallback)((function(){try{g&&g(),window.addEventListener("storage",S,!1);var e=window.screen.width/2-225,n=window.screen.height/2-365;return window.open("https://twitter.com/i/oauth2/authorize?response_type=code&client_id="+t+"&redirect_uri="+i+"&scope="+f+"&state="+u+"&code_challenge=challenge&code_challenge_method=plain","twitter","menubar=no,location=no,resizable=no,scrollbars=no,status=no, width=450, height=730, top="+n+", left="+e),Promise.resolve()}catch(e){return Promise.reject(e)}}),[f,u,t,g,i,S]);return c.createElement("div",{className:r,onClick:j},o)}));"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var Qt=window,en=((0,c.memo)((function(e){var t=e.client_id,n=e.scope,r=void 0===n?"name email":n,i=e.className,o=void 0===i?"":i,a=e.onLoginStart,s=e.onReject,l=e.onResolve,u=e.redirect_uri,d=void 0===u?"/":u,f=e.children,p=(0,c.useRef)(null),h=(0,c.useState)(!1),m=h[0],v=h[1];(0,c.useEffect)((function(){!m&&x()}),[m]),(0,c.useEffect)((function(){return function(){p.current&&p.current.remove()}}),[]);var g=(0,c.useCallback)((function(){return!!document.getElementById("apple-login")}),[]),y=(0,c.useCallback)((function(e,t,n,r,i){void 0===t&&(t="script");var o=e.createElement(t);o.id=n,o.src=r,o.async=!0,o.defer=!0;var a=document.getElementsByTagName("script")[0];p.current=o,a&&a.parentNode&&a.parentNode.insertBefore(o,a),o.onload=i}),[]),b=(0,c.useCallback)((function(e){l({provider:"apple",data:e})}),[l]),x=(0,c.useCallback)((function(){g()?v(!0):y(document,"script","apple-login","https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",(function(){Qt.AppleID.auth.init({clientId:t,scope:r,redirectURI:d,state:"origin:web",usePopup:!0}),v(!0)}))}),[r,t,d,y,g]),w=(0,c.useCallback)((function(){try{if(!m)return Promise.resolve();var e=function(){if(Qt.AppleID){a&&a();var e=function(e,t){try{var n=Promise.resolve(Qt.AppleID.auth.signIn()).then((function(e){b(e)}))}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}(0,(function(e){s({err:e})}));if(e&&e.then)return e.then((function(){}))}else x(),s("Apple SDK isn't loaded!")}();return Promise.resolve(e&&e.then?e.then((function(){})):void 0)}catch(e){return Promise.reject(e)}}),[b,m,x,a,s]);return c.createElement("div",{className:o,onClick:w},f)})),(0,c.memo)((function(e){var t=e.state,n=void 0===t?"":t,r=e.scope,i=void 0===r?"user.info.basic":r,o=e.client_key,a=e.className,s=void 0===a?"":a,l=e.redirect_uri,u=e.children,d=e.onResolve,f=e.onLoginStart;(0,c.useEffect)((function(){var e=new URL(window.location.href),t=e.searchParams.get("code"),n=e.searchParams.get("state");null!=n&&n.includes("_tiktok")&&t&&(localStorage.setItem("tiktok",t),window.close())}),[]);var p=(0,c.useCallback)((function(e){var t=e.type,n=e.code,r=e.provider;try{return Promise.resolve("code"===t&&"tiktok"===r&&n&&d({provider:"tiktok",data:{code:n}}))}catch(e){return Promise.reject(e)}}),[d]),h=(0,c.useCallback)((function(){window.removeEventListener("storage",h,!1);var e=localStorage.getItem("tiktok");e&&(p({provider:"tiktok",type:"code",code:e}),localStorage.removeItem("instagram"))}),[p]),m=(0,c.useCallback)((function(){f&&f(),window.addEventListener("storage",h,!1);var e=window.screen.width/2-225,t=window.screen.height/2-365;window.open("https://www.tiktok.com/auth/authorize?client_key="+o+"&scope="+i+"&state="+n+"_tiktok&redirect_uri="+l+"&response_type=code","Github","menubar=no,location=no,resizable=no,scrollbars=no,status=no, width=450, height=730, top="+t+", left="+e)}
2),[i,n,o,l,f,h]);return c.createElement("div",{className:s,onClick:m},u)})),n(5987)),tn=["flow","scope","onSuccess","onError","onNonOAuthError","overrideScope","state"];var nn=(0,c.createContext)(null);function rn(e){var t=e.clientId,n=e.nonce,r=e.locale,i=e.onScriptLoadSuccess,o=e.onScriptLoadError,a=e.children,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.nonce,n=e.locale,r=e.onScriptLoadSuccess,i=e.onScriptLoadError,o=(0,c.useState)(!1),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useRef)(r);u.current=r;var d=(0,c.useRef)(i);return d.current=i,(0,c.useEffect)((function(){var e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",n&&(e.src+="?hl=".concat(n)),e.async=!0,e.defer=!0,e.nonce=t,e.onload=function(){var e;l(!0),null===(e=u.current)||void 0===e||e.call(u)},e.onerror=function(){var e;l(!1),null===(e=d.current)||void 0===e||e.call(d)},document.body.appendChild(e),function(){document.body.removeChild(e)}}),[t]),s}({nonce:n,onScriptLoadSuccess:i,onScriptLoadError:o,locale:r}),l=(0,c.useMemo)((function(){return{locale:r,clientId:t,scriptLoadedSuccessfully:s}}),[t,s]);return c.createElement(nn.Provider,{value:l},a)}function on(){var e=(0,c.useContext)(nn);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}var an=n(5457),sn=n(8329),ln=n(7884),cn=function(e){var t=e.ReferralCode,n=(0,c.useState)(!1),r=(0,p.Z)(n,2),i=r[0],o=r[1],a=(0,c.useState)(!1),s=(0,p.Z)(a,2),l=s[0],u=s[1],m=(0,c.useState)(!1),v=(0,p.Z)(m,2),g=v[0],b=v[1],w=(0,c.useState)(!1),k=(0,p.Z)(w,2),S=k[0],j=k[1],C=(0,y.I0)(),_=(0,h.s0)(),E=(0,y.v9)((function(e){return e.Modal.PopupModalMessage})),N=(0,y.v9)((function(e){return e.SocialMedia.SocialMediaUserInfo})),D=(0,y.v9)((function(e){return e.Modal.SignInModalState})),T="We couldn't finish signing you in with Google. Please try again, or sign in with your email and password.",I=on().scriptLoadedSuccessfully,P=function(e){var t=e.flow,n=void 0===t?"implicit":t,r=e.scope,i=void 0===r?"":r,o=e.onSuccess,a=e.onError,s=e.onNonOAuthError,l=e.overrideScope,u=e.state,d=(0,en.Z)(e,tn),f=on(),p=f.clientId,h=f.scriptLoadedSuccessfully,m=(0,c.useRef)(),v=(0,c.useRef)(o);v.current=o;var g=(0,c.useRef)(a);g.current=a;var y=(0,c.useRef)(s);y.current=s,(0,c.useEffect)((function(){var e,t;if(h){var r="implicit"===n?"initTokenClient":"initCodeClient",o=null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.accounts)||void 0===t?void 0:t.oauth2[r]((0,A.Z)({client_id:p,scope:l?i:"openid profile email ".concat(i),callback:function(e){var t,n;if(e.error)return null===(t=g.current)||void 0===t?void 0:t.call(g,e);null===(n=v.current)||void 0===n||n.call(v,e)},error_callback:function(e){var t;null===(t=y.current)||void 0===t||t.call(y,e)},state:u},d));m.current=o}}),[p,h,n,i,u]);var b=(0,c.useCallback)((function(e){var t;return null===(t=m.current)||void 0===t?void 0:t.requestAccessToken(e)}),[]),x=(0,c.useCallback)((function(){var e;return null===(e=m.current)||void 0===e?void 0:e.requestCode()}),[]);return"implicit"===n?b:x}({flow:"implicit",scope:"profile email",onSuccess:function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Se.Z.get("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:"Bearer ".concat(t.access_token)}});case 3:n=e.sent,r=n.data,i=(i=r.picture||"").replace(/=s\d+(-c)?$/,"=s200$1"),j(!1),o=["google",r.email,r.name,i,"",t.access_token],C(Ht.getSocialMediaUserInfo(o)),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(0),u(!1),j(T);case 16:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(t){return e.apply(this,arguments)}}(),onError:function(){u(!1),j(T)},onNonOAuthError:function(e){u(!1),e&&"popup_closed"===e.type?j(!1):e&&"popup_failed_to_open"===e.type?j("Your browser blocked the Google sign-in window. Please allow pop-ups and try again, or sign in with your email and password."):j(T)}});return(0,c.useEffect)((function(){if(N[1]||N[4]){"google"==N[0]?u(!0):b(!0);var e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var n,r,i,a,s,l,c,f,p;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=sn.Z.get("batchId")||"",e.prev=1,r=N[0],i=N[5
2],e.next=6,(0,an.km)(N[1]||N[4],r,t,n,i);case 6:a=e.sent,a.data.data[0].user_type,(s=a.data.data[1].token)?(l={userid:a.data.data[0].id,useDisplay_name:a.data.data[0].name,user_email:a.data.data[0].email,user_type:a.data.data[0].user_type,token:s,Display_UserSocailPhoto:a.data.data[0].photo_url,CreatedAt:a.data.data[0].createdAt,isLoggedIn:!0,state:a.data.data[0].state},"siddiqui",c=we.AES.encrypt(JSON.stringify(l),"siddiqui").toString(),localStorage.setItem("Data",c),(0,it.vn)(s),C(qt.s.setIsLoggedIn(!0)),(0,ln.eT)({navigate:_,hasLegacyRedirect:!(!E.photoID&&!E.userID)})||(localStorage.getItem("source")||E.photoID?l.userid===E.userID||localStorage.getItem("source")?l.userid!=E.userID||localStorage.getItem("source")||(_("/profile",{replace:!0}),C(x.N.setPopupModalMessage({joinModalHeading:""}))):(f={PhotoID:E.photoID,UserID:E.userID},"siddiqui",p=we.AES.encrypt(JSON.stringify(f),"siddiqui").toString(),_("/otherusers-profile?userdata=".concat(encodeURIComponent(p)))):_("/",{replace:!0})),o(!1),u(!1),window.scrollTo(0,0),C(x.N.setSignInModalState(!1)),C(x.N.setJoinNowModalState(!1)),C(Ht.getSocialMediaUserInfo([])),n&&sn.Z.remove("batchId")):(j("Oops !Something went wrong. Please try again "),b(!1),u(!1)),e.next=18;break;case 12:e.prev=12,e.t0=e.catch(1),b(!1),u(!1),j(e.t0.response.data.message),"We don't recognize that username or password. Email us at"==e.t0.response.data.message&&(N[4]&&!N[1]?C(x.N.setFacebookEmailState(!0)):C(x.N.setJoinModalBackbtn(!0)),C(x.N.setSignInModalState(!1)),C(x.N.setJoinNowModalState(!0)),b(!1),u(!1));case 18:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(){return e.apply(this,arguments)}}();e()}}),[N]),(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{className:"log_reg_btn",children:[S&&(0,F.jsx)("p",{style:{textAlign:"center",color:"red"},children:S}),(0,F.jsx)(Kt,{className:"faceboook",appId:"1003491033977816",scope:"public_profile,email",onResolve:function(e){j(!1);var t=e.data.email,n=e.data.name,r=e.data.given_name,i=e.data.picture.data.url,o=e.data.id,a=e.data.accessToken,s=function(e){var t=e.match(/asid=(\d+)/);if(!t||t.length<2)return console.error("Invalid URL provided"),null;var n=t[1];return"https://graph.facebook.com/".concat(n,"/picture?type=large")}(i),l=["facebook",t,r||n,s,o,a];C(Ht.getSocialMediaUserInfo(l))},onReject:function(e){console.log(e)},children:i||g?(0,F.jsx)("a",{className:"button facebook",style:{marginBottom:"10px"},children:(0,F.jsx)("span",{className:"loader",style:{borderTop:"3px solid white"}})}):(0,F.jsxs)("a",{className:"button facebook",style:{marginBottom:"10px"},children:[(0,F.jsx)("img",{src:"/assets/img/icons/fb.svg",alt:"img"}),D?"Sign In with Facebook":"Sign up with Facebook"]})}),i||l?(0,F.jsx)("a",{className:"button google",style:{marginBottom:"10px"},children:(0,F.jsx)("span",{className:"loader",style:{borderTop:"3px solid black"}})}):(0,F.jsxs)("a",{className:"button google",style:{marginBottom:"10px"},onClick:function(){j(!1),I?(u(!0),P()):j(T)},children:[(0,F.jsx)("img",{src:"/assets/img/icons/google.svg",alt:"img"}),D?"Sign In with Google":"Sign up with Google"]})]})})},un={email:"",password:""},dn=function(e){var t=(0,c.useState)(!1),n=(0,p.Z)(t,2),r=n[0],i=n[1],o=(0,c.useState)(!1),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useState)(!1),m=(0,p.Z)(u,2),v=m[0],b=m[1],w=(0,c.useState)(!1),k=(0,p.Z)(w,2),S=k[0],j=k[1],C=(0,c.useState)(""),_=(0,p.Z)(C,2),E=_[0],N=_[1],A=(0,c.useState)(""),D=(0,p.Z)(A,2),T=D[0],I=D[1],P=(0,c.useRef)(null),O=(0,c.useRef)(null),M=(0,h.s0)(),Z=(0,y.I0)(),R=(0,y.v9)((function(e){return e.Modal.PopupModalMessage})),L=function(){(0,ln.$Y)(),Z(x.N.setSignInModalState(!1)),Z(Ht.getSocialMediaUserInfo([]))},B=(0,h.TH)(),z=new URLSearchParams(B.search).get("link")||"",U=(0,Lt.TA)({initialValues:un,validationSchema:Bt.SE,validateOnBlur:!1,onSubmit:function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t,n){var r,o,a,s,c,u,f,p,h,m,v,g;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=P.current?P.current.value:t.email,o=r.toLowerCase(),a=O.current?O.current.value:t.password,i(!0),s=sn.Z.get("batchId")||"",e.prev=5,e.next=8,(0,an.px)(o,a,s);
2case 8:c=e.sent,u=c.data.data[0].user_type,f=c.data.data[1].token,i(!1),f&&"email"==u?(p={userid:c.data.data[0].id,useDisplay_name:c.data.data[0].name,user_email:c.data.data[0].email,user_type:c.data.data[0].user_type,token:f,Display_UserSocailPhoto:c.data.data[0].photo_url,CreatedAt:c.data.data[0].createdAt,isLoggedIn:!0,state:c.data.data[0].state},"siddiqui",h=we.AES.encrypt(JSON.stringify(p),"siddiqui").toString(),localStorage.setItem("Data",h),(0,it.vn)(f),Z(qt.s.setIsLoggedIn(!0)),(0,ln.eT)({navigate:M,hasLegacyRedirect:!(!R.photoID&&!R.userID)})||(localStorage.getItem("source")||R.photoID?p.userid===R.userID||localStorage.getItem("source")?p.userid!=R.userID||localStorage.getItem("source")||(M("/profile",{replace:!0}),Z(x.N.setPopupModalMessage({joinModalHeading:""}))):(m={PhotoID:R.photoID,UserID:R.userID},"siddiqui",v=we.AES.encrypt(JSON.stringify(m),"siddiqui").toString(),M("/otherusers-profile?userdata=".concat(encodeURIComponent(v)))):M("/",{replace:!0})),window.scrollTo(0,0),Z(x.N.setSignInModalState(!1)),Z(Ht.getSocialMediaUserInfo([]))):(document.querySelector(".google").click(),Z(x.N.setSignInModalState(!1))),l(!1),n.resetForm(),s&&sn.Z.remove("batchId"),e.next=23;break;case 18:e.prev=18,e.t0=e.catch(5),g=e.t0.response.data.message,e.t0,l(g),i(!1);case 23:case"end":return e.stop()}}),e,null,[[5,18]])})));return function(t,n){return e.apply(this,arguments)}}()}),H=U.values,W=U.errors,q=U.touched,V=U.handleBlur,G=U.handleChange,$=U.handleSubmit,J=(U.setFieldTouched,U.setValues),K=(U.resetForm,function(){var e=P.current?P.current.value:"",t=O.current?O.current.value:"";e===H.email&&t===H.password||J({email:e,password:t})}),Y=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),i(!0),e.prev=2,n={email:E.trim().toLowerCase()},e.next=6,Se.Z.post("".concat("https://bigbesos.com","/auth/forgetPassword"),n,{});case 6:e.sent,j(!0),i(!1),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(2),r=e.t0.response.data.message,I(r),i(!1);case 16:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}(),X=(0,gt.Z)(L);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"backdrop"}),(0,F.jsx)("div",{className:"modal fade bph-modal show ",id:"signInModal",tabIndex:-1,"aria-labelledby":"signInModal","aria-hidden":"true",style:{display:"block"},children:(0,F.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,F.jsx)("div",{className:"modal-content",children:(0,F.jsx)("div",{className:"modal-body",children:(0,F.jsx)("div",{className:"onboarding_modal signIn_modal",children:(0,F.jsxs)("div",{className:"modal_inner",ref:X,children:[(0,F.jsx)("button",{type:"button",className:"btn-close signInModalClose","data-bs-dismiss":"modal","aria-label":"Close",onClick:L}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),v?(0,F.jsx)("div",{className:"modal_content",children:(0,F.jsx)("form",{onSubmit:Y,children:(0,F.jsxs)("div",{className:"modal_title",style:{display:"flex",flexDirection:"column",justifyContent:"center",gap:"20px"},children:[(0,F.jsx)("h3",{className:"title",children:"Reset Your Password"}),(0,F.jsxs)("p",{style:{color:"black",fontSize:"1rem",lineHeight:"20px"},className:"subtitle",children:[S?"Great! If that email address exists in our database we just sent password reset instructions.":"Please enter the email address that is associated with your account.We will send a link to recover your password."," "]}),S?(0,F.jsxs)("p",{style:{color:"black",fontSize:"1rem",lineHeight:"20px"},className:"subtitle",children:["If you do not receive an email please double check your email address and try again, look in your spam folder,or email us at ",(0,F.jsx)(g.rU,{style:{color:"blue"},to:"mailto:[email protected]",children:"[email protected]"})," "]}):(0,F.jsxs)("div",{className:"form_group",children:[T&&(0,F.jsxs)("p",{style:{marginBottom:"10px",textAlign:"center"},className:"eerror",children:[T," "]}
2),(0,F.jsx)("input",{type:"email",placeholder:"Email",name:"password",required:!0,onChange:function(e){var t=e.target.value;N(t),I("")}})]}),!S&&(r?(0,F.jsx)("button",{className:"btn",children:(0,F.jsx)("span",{className:"loader"})}):(0,F.jsx)("button",{className:"btn",type:"submit",children:" Submit "})),(0,F.jsx)("a",{onClick:function(){b(!1),j(!1)},style:{color:"blue",textDecoration:"underline"},children:"Back"})]})})}):(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsx)("div",{className:"modal_title",children:(0,F.jsx)("h4",{className:"title",children:"Sign In"})}),(0,F.jsx)(cn,{ReferralCode:z}),(0,F.jsx)("div",{className:"divider",children:(0,F.jsx)("span",{children:"or via email"})}),s&&(0,F.jsx)("p",{className:"eerror",style:{textAlign:"center"},children:(0,F.jsxs)(F.Fragment,{children:[s," ","Your account is blocked"!==s&&!s.startsWith("You previously")&&(0,F.jsx)(g.rU,{style:{color:"blue"},onClick:function(){b(!0)},children:"click here."})]})}),(0,F.jsx)("div",{className:"form",children:(0,F.jsxs)("form",{onSubmit:$,className:"sighIn_form",children:[(0,F.jsxs)("div",{className:"form_group",children:[(0,F.jsx)("input",{type:"email",placeholder:"Email",name:"email",onChange:G,ref:P,onKeyDown:function(e){"Enter"===e.key&&K()},onBlur:V}),(0,F.jsx)("div",{className:"form_error"})]}),W.email&&q.email?(0,F.jsxs)("p",{className:"eerror",children:[W.email," "]}):null,(0,F.jsxs)("div",{className:"form_group",children:[(0,F.jsx)("input",{type:"password",name:"password",placeholder:"Password",onChange:G,ref:O,onKeyDown:function(e){"Enter"===e.key&&K()},onBlur:V}),(0,F.jsx)("div",{className:"form_error"})]}),W.password&&q.password?(0,F.jsxs)("p",{className:"eerror",children:[W.password," "]}):null,(0,F.jsx)("div",{className:"buttons",children:r?(0,F.jsx)("button",{className:"btn",children:(0,F.jsx)("span",{className:"loader"})}):(0,F.jsx)("button",{className:"btn",type:"submit",onPointerDown:K,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||K()},children:" Sign In "})})]})}),(0,F.jsxs)("div",{className:"privacy_text",children:[(0,F.jsx)("a",{style:{color:"gray",textDecoration:"underline"},onClick:function(){b(!0)},children:"Forgot Password"}),(0,F.jsx)("p",{style:{marginTop:"10px"},children:"We will never post to any of your accounts without your permission"})]})]})]})})})})})})]})},fn=n(382),pn=n(4767),hn="bph_first_touch",mn=2048,vn=512;function gn(e){try{return window.localStorage.getItem(e)}catch(t){return null}}function yn(e,t){return"string"===typeof e?e.slice(0,t):""}function bn(){try{var e=gn(hn);if(!e)return{};var t=JSON.parse(e);if(!t||"object"!==typeof t)return{};var n={signup_referrer:yn(t.referrer,mn),signup_utm_source:yn(t.utm_source,vn),signup_utm_medium:yn(t.utm_medium,vn),signup_utm_campaign:yn(t.utm_campaign,vn),signup_landing_page:yn(t.landing_page,mn)};return"string"!==typeof t.first_seen_at||""===t.first_seen_at||isNaN(Date.parse(t.first_seen_at))||(n.signup_first_seen_at=t.first_seen_at),n}catch(r){return{}}}var xn=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/,wn=function(e){var t,n;if(null===e||void 0===e||!e.response)return"We couldn't reach Big Photo Hunt just then. Please check your connection and try again.";var r=null===e||void 0===e||null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.message,i=Array.isArray(r)?r.join(" "):r,o="string"===typeof i&&""!==i.trim();return o&&i.toLowerCase().includes("already exists")?"Looks like you already have an account with that email. Try signing in instead.":429===e.response.status?"That's a lot of tries in a row. Please wait a minute, then give it another go.":o&&i.toLowerCase().includes("email must be an email")?"That email address didn't go through. Please check it for typos.":o&&e.response.status<500?i:"Something went wrong on our end and your signup didn't go through. Please try again."},kn=function(e){var t=(0,c.useState)(""),n=(0,p.Z)(t,2),r=n[0],i=n[1],o=(0,c.useState)(!1),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useState)(!1),m=(0,p.Z)(u,2),b=m[0],w=m[1],k=(0,c.useState)(),S=(0,p.Z)(k,2),C=S[0],_=S[1],E=(0,c.useState)(""),N=(0,p.Z)(E,2),D=N[0],T=N[1],I=(0,c.useState)(""),P=(0,p.Z)(I,2),O=P[0],M=P[1],Z=(0,c.useState)(),R=(0,p.Z)(Z,2),L=R[0],B=R[1],z=(0,c.useState)(),U=(0,p.Z)(z,2),H=U[0],W=U[1],q=(0,c.useState)(""),V=(0,p.Z)(q,2),G=V[0],$=V[1],J=(0,c.useState)(!1),K=(0,p.Z)(J,2),Y=K[0],X=K[1],Q=(0,c.useState)(""),ee=(0,p.Z)(Q,2),te=ee[0],ne=ee[1],re=(0,c.useState)(""),ie=(0,p.Z)(re,2),oe=ie[0],ae=ie[1],se=(0,c.useState)(""),le=(0,p.Z)(se,2),ce=le[0],ue=le[1],de=(0,c.useState)([]),fe=(0,p.Z)(de,2),pe=fe[0],he=fe[1],me=(0,c.useState)(""),ve=(0,p.Z)(me,2),ge=ve[0],ye=ve[1],be=(0,c.useState)(""),xe=(0,p.Z)(be,2),ke=xe[0],je=xe[1],Ce=(0,c.useState)(!1),_e=(0,p.Z)(Ce,2),Ee=_e[0],Ne=_e[1],Ae=(0,c.useState)(!1),De=(0,p.Z)(Ae,2),Te=De[0],Ie=De[1],Pe=(0,
2c.useState)(!1),Fe=(0,p.Z)(Pe,2),Oe=Fe[0],Me=Fe[1],Ze=(0,c.useState)(!1),Re=(0,p.Z)(Ze,2),Be=Re[0],ze=Re[1],Ue=(0,c.useState)(""),He=(0,p.Z)(Ue,2),We=He[0],qe=He[1],Ve=(0,c.useState)(!1),Ge=(0,p.Z)(Ve,2),$e=Ge[0],Je=Ge[1],Ke=(0,c.useRef)(null),Ye=(0,c.useRef)(),Xe=(0,c.useRef)(Date.now()),Qe=(0,c.useRef)(""),et=(0,c.useRef)(null),tt=function(){var e=et.current?et.current.value:null;return((null===e?r:e)||"").toLowerCase().trim()},rt=(0,c.useState)(""),ot=(0,p.Z)(rt,2),at=ot[0],st=ot[1],lt=(0,c.useState)(!1),ct=(0,p.Z)(lt,2),ut=ct[0],dt=ct[1],ft=(0,h.s0)(),pt=(0,y.v9)((function(e){return e.Modal.JoinModalBackbtn})),ht=(0,y.v9)((function(e){return e.SocialMedia.SocialMediaUserInfo})),mt=(0,y.v9)((function(e){return e.Modal.PopupModalMessage.joinModalHeading})),vt=(0,y.v9)((function(e){return e.Modal.FacebookEmailState})),gt=(0,y.v9)((function(e){return e.Modal.closeModal})),yt=(0,y.I0)(),bt=(0,h.TH)(),xt=new URLSearchParams(bt.search).get("link")||"";function wt(e){var t=document.createElement("script");t.src=e,t.async=!0,document.body.appendChild(t)}var kt=function(){(0,ln.$Y)(),yt(x.N.setJoinNowModalState(!1)),yt(x.N.setJoinModalBackbtn(!1)),yt(Ht.getSocialMediaUserInfo([])),yt(x.N.setFacebookEmailState(!1))},St=function(e){var t=e.target.value;i(t),l(!1),w(!1)},jt=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return qe(t),e.prev=1,Je(!0),e.next=5,(0,fn.NU)(t);case 5:e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("Error while geocoding:",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),Ct=function(e){var t=e.target.value,n=e.target.checked;he(n?[].concat((0,v.Z)(pe),[t]):pe.filter((function(e){return e!==t})))},_t=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r,i,o,a,s,c,u,f,p,h,m;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),n=tt(),r=n,i=xn,n){e.next=9;break}return w(!0),e.abrupt("return");case 9:if(i.test(n)){e.next=12;break}return l(!0),e.abrupt("return");case 12:if(Me(!0),e.prev=13,o="email",a=null,!Ke.current){e.next=29;break}return e.prev=17,e.next=20,Promise.race([Ke.current.executeAsync(),new Promise((function(e){return setTimeout((function(){return e(null)}),8e3)}))]);case 20:a=e.sent,e.next=26;break;case 23:e.prev=23,e.t0=e.catch(17),a=null;case 26:e.prev=26;try{Ke.current.reset()}catch(d){}return e.finish(26);case 29:return e.next=31,(0,an.km)(r,o,xt,void 0,void 0,Ye.current?Ye.current.value:"",String(Date.now()-Xe.current),{captchaToken:a});case 31:e.sent,Me(!1),e.next=40;break;case 35:e.prev=35,e.t1=e.catch(13),Me(!1),"We don't recognize that username or password. Email us at"==(u=null===e.t1||void 0===e.t1||null===(s=e.t1.response)||void 0===s||null===(c=s.data)||void 0===c?void 0:c.message)?(Qe.current=r,vt?(f=document.querySelectorAll(".wizardStep"),p=document.querySelector(".step-1"),f.forEach((function(e){e.classList.remove("show")})),p.classList.add("show")):(h=document.querySelectorAll(".wizardStep"),m=document.querySelector(".join_step_modal"),h.forEach((function(e){e.classList.remove("show")})),m.classList.add("show"),ze(""))):ze(u||"We couldn't reach Big Photo Hunt just then. Please check your connection and try again.");case 40:case"end":return e.stop()}}),e,null,[[13,35],[17,23,26,29]])})));return function(t){return e.apply(this,arguments)}}(),Et=window.location.pathname,Nt=localStorage.getItem("OtherUserName")||"",At=sn.Z.get("batchId")||"",Dt=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r,i,o,a,s,l,c,u,f,p,h,m,v,g,y,b,w,k,S,_,E,N,D,T,I,P,F,M,Z,R;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),n=tt(),r=C,i=O.trim(),o=oe,a=ce,s=pe.join(","),l=ge,c=ke,u=ht[2]||r,f=ht[1]||Qe.current||n,p=f.toLowerCase(),h=ht[0]||"email",m=i||"",v=ht[3],g=o,y=a,b=s,w=l,k=c,S=ht[4]||"",_=localStorage.getItem("source"),st(""),xn.test(p)){e.next=27;break}return st("That email address doesn't look right: ".concat(p.slice(0,120),". Please check it and try again.")),e.abrupt("return");case 27:if(Me(!0),e.prev=28,E=Le(),N=bn(),D=(0,ln.of)(),T=Ee?(0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)({name:u.substring(0,25).trim(),email:p,photo_url:v||"",source:_||"",userName:p,password:m,userType:h,facebookUserId:S,photograperType:g,state:We,heard_us:te||G,facebookLink:"",twitterLink:"",instagramLink:"",referral_code:xt},At&&{batchId:At}),E),N),D?{signup_source:D}:{}):(0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)({name:u.substring(0,25).trim(),email:p,userName:p,password:m,photo_url:v||"",source:_||"",userType:h,facebookUserId:S,photograperType:g,photoDesireRatio:Number(y),genresList:b,cameraBrand:w,photo_assistance:k,heard_us:te||G,isEmailVerified:!1,isProvidedDetailedInfo:!1,isRegistered:!1,facebookLink:"",twitterLink:"",instagramLink:"",website:"",state:We,country:"",referral_code:xt},At&&{batchId:At}),E),N),D?{signup_source:D}:{}),I=null,!Ke.current){e.next=47;break}return e.prev=35,e.next=38,Promise.race([Ke.current.executeAsync(),new Promise((function(e){return setTimeout((function(){return e(null)}),8e3)}))]);case 38:I=e.sent,e.next=44;break;case 41:e.prev=41,e.t0=e.catch(35),I=null;case 44:e.prev=44;try{Ke.current.reset()}catch(d){}return e.finish(44);case 47:return T.captchaToken=I,e.next=50,Se.Z.post("".concat("https://bigbesos.com","/auth/registerUser"),T);
2case 50:P=e.sent,F=P.data.data[1].token,M=P.data.data[0].user_type,Me(!1),F&&(Z={userid:P.data.data[0].id,useDisplay_name:P.data.data[0].name,user_email:P.data.data[0].email,user_type:M,token:F,Display_UserSocailPhoto:P.data.data[0].photo_url,CreatedAt:P.data.data[0].createdAt,isLoggedIn:!0,state:P.data.data[0].state},"siddiqui",R=we.AES.encrypt(JSON.stringify(Z),"siddiqui").toString(),localStorage.setItem("Data",R),(0,it.vn)(F),yt(qt.s.setIsLoggedIn(!0)),yt(x.N.setPopupModalState(!0)),(0,ln.eT)({navigate:ft})||localStorage.getItem("source")||ft("/",{replace:!0}),window.scrollTo(0,0),yt(x.N.setJoinNowModalState(!1)),yt(Ht.getSocialMediaUserInfo([])),yt(x.N.setJoinModalBackbtn(!1)),j.Z.getInstance().setUserId(P.data.data[0].id),j.Z.getInstance().logEvent("".concat(xt?"Invited User Converted":_?"Shared User Convert":"New Registration"),{UserID:P.data.data[0].id,signup_source:D}),j.Z.getInstance().logEvent("".concat(M.charAt(0).toUpperCase()+M.slice(1)," Registration"),{UserID:P.data.data[0].id,signup_source:D}),At&&sn.Z.remove("batchId")),e.next=61;break;case 57:e.prev=57,e.t1=e.catch(28),st(wn(e.t1)),Me(!1);case 61:case"end":return e.stop()}}),e,null,[[28,57],[35,41,44,47]])})));return function(t){return e.apply(this,arguments)}}();return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"backdrop"}),(0,F.jsx)(Zt,{ref:Ke,size:"invisible",sitekey:"6LdsCVItAAAAAGdHsCkDrTyDAS6ixNlCC-SMIU_j"}),Te?(0,F.jsx)("div",{className:"modal fade bph-modal show ",id:"skipModal",tabIndex:-1,"aria-labelledby":"skipModal","aria-hidden":"true",style:{display:"block"},children:(0,F.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,F.jsx)("div",{className:"modal-content",children:(0,F.jsx)("div",{className:"modal-body",children:(0,F.jsx)("div",{className:"onboarding_modal skip_modal",children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close skipclose","data-bs-dismiss":"modal","aria-label":"Close",onClick:kt}),(0,F.jsx)("div",{className:"modal_logo",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png"})}),(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsx)("div",{className:"modal_title",children:(0,F.jsx)("h4",{className:"title",children:"Hi!"})}),(0,F.jsxs)("div",{className:"form",children:[(0,F.jsx)("div",{className:"form_title",children:(0,F.jsx)("p",{children:"Since you\u2019re just here to support our photographers, come right in and make yourself at home!"})}),at&&(0,F.jsx)("p",{style:{textAlign:"center",color:"red"},children:at}),(0,F.jsx)("div",{className:"buttons",children:Oe?(0,F.jsx)(g.rU,{className:"btn",children:(0,F.jsx)("span",{className:"loader"})}):(0,F.jsx)(g.rU,{className:"btn",to:"#",onClick:Dt,children:" Enter"})})]})]})]})})})})})}):(0,F.jsx)("form",{onSubmit:Dt,noValidate:!0,children:(0,F.jsx)("div",{className:"modal fade bph-modal show ",id:"joinModal",tabIndex:-1,"aria-labelledby":"joinModal","aria-hidden":"true",style:{display:"block"},children:(0,F.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,F.jsx)("div",{className:"modal-content",children:(0,F.jsxs)("div",{className:"modal-body",children:[!pt&&!vt&&(0,F.jsx)("div",{className:"onboarding_modal wizardStep show join_modal",children:(0,F.jsxs)("div",{className:"modal_inner",children:[gt&&(0,F.jsx)("button",{type:"button",className:"btn-close joinModalClose","data-bs-dismiss":"modal","aria-label":"Close",onClick:kt}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsxs)("div",{className:"modal_title",children:[(0,F.jsx)("h4",{className:"title",children:Nt&&"/otherusers-profile"==Et?"You're viewing ".concat(Nt,"'s profile"):"Join the club ".concat(mt||""," ")}),Nt&&"/otherusers-profile"==Et&&(0,F.jsx)("h6",{className:"title",style:{color:"black",fontSize:"16px"}
2,children:"Create a free account to support them"})]}),(0,F.jsx)(cn,{ReferralCode:xt}),(0,F.jsx)("div",{className:"divider",children:(0,F.jsx)("span",{children:"or via email"})}),Be&&(0,F.jsx)("p",{style:{textAlign:"center",color:"red"},children:Be}),(0,F.jsx)("div",{className:"form",children:(0,F.jsxs)("div",{action:"#",className:"join_form",children:[(0,F.jsx)("input",{type:"text",name:"contact_url",ref:Ye,tabIndex:-1,autoComplete:"off","aria-hidden":"true",style:{display:"none"}}),(0,F.jsxs)("div",{className:"form_group",children:[(0,F.jsx)("input",{type:"email",id:"join-email",placeholder:"Email",ref:et,onChange:St}),(0,F.jsx)("div",{className:"form_error"})]}),s?(0,F.jsx)("p",{className:"eerror",children:"Hmm, please enter a valid email ([email protected])"}):"",b?(0,F.jsx)("p",{className:"eerror",children:"Please enter your email"}):"",(0,F.jsx)("div",{className:"buttons",children:Oe?(0,F.jsx)("button",{className:"btn",type:"button",children:(0,F.jsx)("span",{className:"loader"})}):(0,F.jsx)("button",{className:"btn ",type:"button",onClick:_t,children:"Join"})})]})}),(0,F.jsx)("div",{className:"privacy_text",children:(0,F.jsx)("p",{children:"We will never post to any of your accounts without your permission"})}),(0,F.jsx)("div",{className:"have_account",children:(0,F.jsxs)("p",{children:["Have an account?",(0,F.jsx)("a",{onClick:function(){yt(x.N.setJoinNowModalState(!1)),yt(x.N.setSignInModalState(!0))},style:{marginLeft:"5px"},children:"Sign in"})]})})]})]})}),(0,F.jsx)("div",{className:"onboarding_modal wizardStep join_step_modal  ",children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:kt}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsx)("div",{className:"modal_title",children:(0,F.jsxs)("h4",{className:"title",children:["Join the club ",mt||""]})}),(0,F.jsx)("div",{className:"form",children:(0,F.jsxs)("div",{action:"#",className:"join_step_form",children:[(0,F.jsxs)("div",{className:"form_group",children:[(0,F.jsx)("label",{htmlFor:"fullname",children:"Full Name"}),(0,F.jsx)("input",{type:"text",id:"fullname",placeholder:"Enter first and last name",maxLength:25,value:C,onChange:function(e){var t=e.target.value;_(t);var n=t.split(" ");ut&&T(n.length>1&&!n.includes("")&&t.includes(" ")&&!t.includes("@")),W(n.length>1&&!n.includes("")&&t.includes(" ")&&!t.includes("@")&&O.length>7)}}),(0,F.jsx)("div",{className:"form_error"})]}),!1===D?(0,F.jsx)("p",{className:"eerror",children:"Please enter a first and last name (surname)."}):"",(0,F.jsxs)("div",{className:"form_group",children:[(0,F.jsx)("label",{htmlFor:"password",children:"Choose a Password"}),(0,F.jsx)("input",{onClick:function(){if(C){dt(!0);var e=C.split(" ");T(e.length>1&&!e.includes("")&&C.includes(" ")&&!C.includes("@"))}},type:"password",name:"password",id:"password",value:O,onChange:function(e){var t=e.target.value;M(t),B(t.length>7);var n=C||"";if(W(t.length>7&&n.length>1&&n.includes(" ")&&!n.includes("@")),C){dt(!0);var r=C.split(" ");T(r.length>1&&!r.includes("")&&C.includes(" ")&&!C.includes("@"))}}}),(0,F.jsx)("div",{className:"form_error"})]}),!1===L?(0,F.jsx)("p",{className:"eerror",children:"Password must be at least 8 characters"}):"",(0,F.jsxs)("div",{className:"buttons",children:[(0,F.jsx)("a",{className:"btn btn-edit previousStep",children:"Back"}),(0,F.jsx)("button",{type:"button",className:"btn nextStep",disabled:!H,children:"Get started"})]})]})}),(0,F.jsx)("div",{className:"privacy_text",children:(0,F.jsx)("p",{children:"We will never post to any of your accounts without your permission"})})]})]})}),(0,F.jsx)("div",{className:"onboarding_modal wizardStep ques_step_modal cool-step-modal ".concat(pt?"show":""),children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:kt}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:""})}),(0,F.jsxs)("div",{className:"modal_content text-start",children:[(0,F.jsx)("div",{className:"modal_title",children:(0,F.jsxs)("h4",{className:"title",children:["Before we",(0,F.jsx)("br",{})," push the go button..."]})}),(0,F.jsxs)("div",{className:"form show-box",children:[(0,F.jsx)("div",{className:"form_title",children:(0,F.jsx)("p",{children:"Mind telling us how you heard about the Big Photo Hunt?"})}),nt.u$.map((function(e,t){return(0,F.jsxs)("div",{className:"form_group radio",children:[(0,F.jsx)("input",{type:"radio",value:e.value,name:"photoType",id:e.id,onChange:function(){return function(e){var t=nt.u$[e].value;"Something Else"==t?(X(!0),$("")):($(t),X(!1),ne(""))}(t)}}),(0,F.jsx)("label",{htmlFor:e.id,children:e.value})]},t)})),(0,F.jsx)("div",{className:"else-box ",children:Y&&(0,F.jsx)("input",{maxLength:100,type:"text",name:"name",placeholder:"Oh, cool! What was it?",value:te,onChange:function(e){var t=e.target.value.trim();ne(t)}})}),(0,F.jsxs)("div",{className:"buttons",children:[(0,F.jsx)("button",{type:"button",className:"btn btn-edit previousStep",disabled:pt,children:"Back"}),(0,F.jsx)("button",{type:"button",className:"btn nextStep",disabled:G?!G:!te.length>0,children:"Next"})]})]})]})]})}
2),vt&&(0,F.jsx)("div",{className:"onboarding_modal wizardStep join_modal ".concat(vt?"show":""," }"),children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close joinModalClose","data-bs-dismiss":"modal","aria-label":"Close",onClick:kt}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsx)("div",{className:"modal_title",children:(0,F.jsxs)("h4",{className:"title",children:["Join the club ",mt||""," "]})}),(0,F.jsx)("p",{style:{color:"black",fontSize:"1rem"},children:"Welcome!"}),(0,F.jsx)("p",{style:{color:"black",fontSize:"1rem"},children:"Please add your email address to continue"}),Be&&(0,F.jsx)("p",{style:{textAlign:"center",color:"red"},children:Be}),(0,F.jsx)("div",{className:"form",children:(0,F.jsxs)("div",{action:"#",className:"join_form",children:[(0,F.jsx)("input",{type:"text",name:"contact_url",ref:Ye,tabIndex:-1,autoComplete:"off","aria-hidden":"true",style:{display:"none"}}),(0,F.jsxs)("div",{className:"form_group",children:[(0,F.jsx)("input",{type:"email",name:"email",id:"join-email",placeholder:"Email",ref:et,onChange:St,required:!0}),(0,F.jsx)("div",{className:"form_error"})]}),s?(0,F.jsx)("p",{className:"eerror",children:"Hmm, please enter a valid email ([email protected])"}):"",b?(0,F.jsx)("p",{className:"eerror",children:"Please enter your email"}):"",(0,F.jsx)("div",{className:"buttons",children:Oe?(0,F.jsx)("button",{className:"btn",type:"button",children:(0,F.jsx)("span",{className:"loader"})}):(0,F.jsx)("button",{className:"btn ",type:"button",onClick:_t,children:"Continue"})})]})}),(0,F.jsx)("div",{className:"have_account",children:(0,F.jsxs)("p",{style:{marginBottom:"30px"},children:["Have an account?",(0,F.jsx)(g.rU,{onClick:function(){kt(),yt(x.N.setSignInModalState(!0))},style:{marginLeft:"5px"},children:"Sign in"})]})})]})]})}),(0,F.jsx)("div",{className:"onboarding_modal wizardStep ques_step_modal step-1 ",children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close","data-bs-toggle":"modal",onClick:kt}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsxs)("div",{className:"modal_title",children:[(0,F.jsx)("h4",{className:"title",children:"Only 5 quick questions"}),(0,F.jsx)("p",{className:"subtitle",children:"So we can tailor your experience for you."}),(0,F.jsx)("div",{className:"count",children:(0,F.jsxs)("span",{children:[(0,F.jsx)("span",{className:"active",children:"1"})," / 5"]})})]}),(0,F.jsx)("div",{className:"form",children:(0,F.jsxs)("div",{className:"ques_step_form",children:[(0,F.jsx)("div",{className:"form_title",children:(0,F.jsx)("p",{children:"Which type of photographer do you consider yourself?"})}),nt.Kr.map((function(e,t){return(0,F.jsxs)("div",{className:"form_group radio",children:[(0,F.jsx)("input",{type:"radio",name:"photoType",id:e.value,value:e.value,onChange:function(){return function(e){var t=nt.Kr[e].value;ae(t),"I just like to look"===nt.Kr[e].value||"I'm only here supporting a friend"===nt.Kr[e].value?Ne(!0):Ne(!1)}(t)}}),(0,F.jsx)("label",{htmlFor:e.value,children:e.value})]},t)})),(0,F.jsxs)("div",{className:"buttons",children:[(0,F.jsx)("button",{className:"btn btn-edit previousStep",type:"button",children:"Back"}),(0,F.jsx)("button",{type:"button",className:"btn ".concat(Ee?"":"nextStep"),onClick:Ee?function(){document.querySelector(".step-2").classList.remove("show"),document.querySelector(".step-6").classList.add("show")}:void 0,disabled:!oe,children:"Next"})]})]})})]})]})}),(0,F.jsx)("div",{className:"onboarding_modal wizardStep ques_step_modal step-2",children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close","data-bs-dismiss":"modal",onClick:kt}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsxs)("div",{className:"modal_title",children:[(0,F.jsx)("h4",{className:"title",children:"Only 5 quick questions"}),(0,F.jsx)("p",{className:"subtitle",children:"So we can tailor your experience for you."}),(0,F.jsx)("div",{className:"count",children:(0,F.jsxs)("span",{children:[(0,F.jsx)("span",{className:"active",children:"2"})," / 5"]})})]}),(0,F.jsx)("div",{className:"form",children:(0,F.jsxs)("div",{action:"#",className:"ques_step_form step-2",children:[(0,F.jsxs)("div",{className:"form_title",children:[(0,F.jsx)("p",{children:"How often do you get that burning itch to take photos?"}),(0,F.jsx)("span",{children:"Not all often"})]}),(0,F.jsx)("div",{className:"radios",children:nt.PU.map((function(e,t){return(0,F.jsxs)("div",{className:"form_group radio",children:[(0,F.jsx)("input",{type:"radio",name:"take",id:e.value,value:e.value,onChange:function(){return function(e){var t=nt.PU[e].value;ue(t)}
2(t)}}),(0,F.jsx)("label",{htmlFor:e.value,children:e.value})]},t)}))}),(0,F.jsx)("div",{className:"form_title",children:(0,F.jsx)("span",{children:"Extremely often"})}),(0,F.jsxs)("div",{className:"buttons",children:[(0,F.jsx)("a",{className:"btn btn-edit previousStep",children:"Back"}),(0,F.jsx)("button",{type:"button",className:"btn nextStep",disabled:!ce,children:"Next"})]})]})})]})]})}),(0,F.jsx)("div",{className:"onboarding_modal wizardStep ques_step_modal step-3",children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close","data-bs-dismiss":"modal",onClick:kt}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsxs)("div",{className:"modal_title",children:[(0,F.jsx)("h4",{className:"title",children:"Only 5 quick questions"}),(0,F.jsx)("p",{className:"subtitle",children:"So we can tailor your experience for you."}),(0,F.jsx)("div",{className:"count",children:(0,F.jsxs)("span",{children:[(0,F.jsx)("span",{className:"active",children:"3"})," / 5"]})})]}),(0,F.jsx)("div",{className:"form",children:(0,F.jsxs)("div",{action:"#",className:"ques_step_form step-2",children:[(0,F.jsx)("div",{className:"form_title",children:(0,F.jsx)("p",{children:"What are your favorite genres to shoot?"})}),(0,F.jsx)("div",{className:"checkboxes",children:nt.CJ.map((function(e,t){return(0,F.jsx)("div",{className:"col-6",children:(0,F.jsxs)("div",{className:"form_group checkbox",children:[(0,F.jsx)("input",{className:"check",type:"checkbox",name:e.value,value:e.value,id:e.value,onChange:Ct}),(0,F.jsx)("label",{htmlFor:e.value,children:e.value})]})},t)}))}),(0,F.jsxs)("div",{className:"buttons",children:[(0,F.jsx)("a",{className:"btn btn-edit previousStep",children:"Back"}),(0,F.jsx)("button",{type:"button",className:"btn nextStep",disabled:!pe.length>0,children:"Next"})]})]})})]})]})}),(0,F.jsx)("div",{className:"onboarding_modal wizardStep ques_step_modal step-4",children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close","data-bs-dismiss":"modal",onClick:kt}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsxs)("div",{className:"modal_title",children:[(0,F.jsx)("h4",{className:"title",children:"Only 5 quick questions"}),(0,F.jsx)("p",{className:"subtitle",children:"Only one more after this one."}),(0,F.jsx)("div",{className:"count",children:(0,F.jsxs)("span",{children:[(0,F.jsx)("span",{className:"active",children:"4"})," / 5"]})})]}),(0,F.jsx)("div",{className:"form",children:(0,F.jsxs)("div",{action:"#",className:"ques_step_form step-4",children:[(0,F.jsx)("div",{className:"form_title",children:(0,F.jsx)("p",{children:"Which camera brand do you prefer?"})}),(0,F.jsx)("div",{className:"radios",children:nt.W8.map((function(e,t){return(0,F.jsxs)("div",{className:"form_group radio",children:[(0,F.jsx)("input",{type:"radio",name:"camera",id:e.value,value:e.value,onChange:function(){return function(e){var t=nt.W8[e].value;ye(t)}(t)}}),(0,F.jsx)("label",{htmlFor:e.value,children:e.displayText})]},t)}))}),(0,F.jsxs)("div",{className:"buttons",children:[(0,F.jsx)("a",{className:"btn btn-edit previousStep",children:"Back"}),(0,F.jsx)("button",{className:"btn nextStep",type:"button","data-bs-dismiss":"modalll",disabled:!ge,children:"Next"})]})]})})]})]})}),(0,F.jsx)("div",{className:"onboarding_modal wizardStep ques_step_modal step-5",children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close","data-bs-dismiss":"modal",onClick:kt}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsxs)("div",{className:"modal_title",children:[(0,F.jsx)("h4",{className:"title",children:"Only 5 quick questions"}),(0,F.jsx)("p",{className:"subtitle",children:"Last one, then you're in!"}),(0,F.jsx)("div",{className:"count",children:(0,F.jsxs)("span",{children:[(0,F.jsx)("span",{className:"active",children:"5"})," / 5"]})})]}),(0,F.jsx)("div",{className:"form",children:(0,F.jsxs)("div",{action:"#",className:"ques_step_form step-5",children:[(0,F.jsx)("div",{className:"form_title",children:(0,F.jsx)("p",{children:"Which of the following is the most important thing that the Big Photo Hunt could help with?"})}),(0,F.jsx)("div",{className:"radios",children:nt.bh.map((function(e,t){return(0,F.jsxs)("div",{className:"form_group radio",children:[(0,F.jsx)("input",{type:"radio",name:"help",id:e.value,value:e.value,onChange:function(){return function(e){var t=nt.bh[e].value;je(t)}(t)}}),(0,F.jsx)("label",{htmlFor:e.value,children:e.value})]},t)}))}),(0,F.jsxs)("div",{className:"buttons",children:[(0,F.jsx)("a",{className:"btn btn-edit previousStep",children:"Back"}),(0,F.jsx)("button",{className:"btn nextStep",type:"button",disabled:!ke,children:"Next"})]})]})})]})]})}),(0,F.jsx)("div",{className:"onboarding_modal wizardStep ques_step_modal step-6",children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","aria-label":"Close","data-bs-dismiss":"modal",onClick:kt}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsxs)("div",{className:"modal_title",children:[(0,F.jsx)("h4",{className:"title",children:"Oh, we need to know where you are!"}),(0,F.jsx)("p",{className:"subtitle",children:"Where in the world do you live?!"})]}),(0,F.jsxs)("div",{className:"form",children:[(0,F.jsxs)("div",{className:"form_group",children:[(0,F.jsx)("label",{htmlFor:"form",children:"From"}),(0,F.jsxs)("div",{className:"canvas",children:[(0,F.jsx)(fn.ZP,{value:We,onChange:function(e){qe(e),Je(!!e&&"")},onSelect:jt,children:function(e){var t=e.getInputProps,n=e.suggestions,r=e.getSuggestionItemProps,i=e.loading;return(0,F.jsxs)("div",{children:[(0,F.jsx)("input",(0,A.Z)({},t({placeholder:"City, Country...",className:"location-search-input"}))),(0,F.jsxs)("div",{className:"autocomplete-dropdown-container",children:[i&&(0,F.jsx)("div",{children:"Loading..."}),n.map((function(e){var t=e.description,n=e.active?{backgroundColor:"#f2f3f4",cursor:"pointer"}:{backgroundColor:"#ffffff",cursor:"pointer"};return(0,F.jsxs)("div",(0,A.Z)((0,A.Z)({className:"input-suggestion"},r(e,{style:n})),{},{children:[(0,F.jsx)("i",{className:"bi bi-geo-alt-fill"})," ",(0,F.jsx)("span",{children:t})]}))}))]})]})}}),!$e&&(0,F.jsx)("p",{style:{color:"red"},children:"Please select one of the suggested options"})]})]}),at&&(0,F.jsx)("p",{style:{textAlign:"center",color:"red"},children:at}),(0,F.jsxs)("div",{className:"buttons",children:[(0,F.jsx)("button",{type:"button",className:"btn btn-edit ".concat(Ee?"":"previousStep"),onClick:Ee?function(){document.querySelector(".step-5").classList.remove("show"),document.querySelector(".step-1").classList.add("show")}:void 0,children:"Back"}),Oe?(0,F.jsx)("button",{className:"btn",children:(0,F.jsx)("span",{className:"loader"})}):(0,F.jsx)("button",{className:"btn",type:"".concat(Ee?"button":"submit"),disabled:!$e,onClick:function(){st(""),Ie(!!Ee)},children:"Get started"})]})]})]})]})})]})})})})}),wt("/assets/js/magnific-popup.min.js"),wt("/assets/js/owl.carousel.min.js"),wt("/assets/js/main.js")]})},Sn=n(4942),jn=n(1476),Cn=n(7960),_n=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t,n,r){var i,o,a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={reminderDay:r[0]||""},n&&(i={queuedPhotos:4,isPaid:!0}),e.prev=2,o={Authorization:"Bearer ".concat(t)},e.next=6,Se.Z.post("".concat("https://bigbesos.com","/user/sendPhotoReminder"),i,{headers:o});case 6:return a=e.sent,e.abrupt("return",a);case 10:throw e.prev=10,e.t0=e.catch(2),e.t0;case 13:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t,n,r){return e.apply(this,arguments)}}(),En=n(8833),Nn=n(6672),An=function(){var e=(0,c.useState)(""),t=(0,p.Z)(e,2),n=t[0],r=t[1],i=(0,c.useState)(!1),o=(0,p.Z)(i,2),a=o[0],s=o[1],l=(0,c.useState)(""),u=(0,p.Z)(l,2),m=u[0],w=u[1],k=(0,c.useState)(""),S=(0,p.Z)(k,2),C=S[0],_=S[1],E=(0,c.useState)(""),N=(0,p.Z)(E,2),A=N[0],D=N[1],T=(0,c.useState)(!1),I=(0,p.Z)(T,2),P=I[0],O=I[1],M=(0,c.useState)(!0),Z=(0,p.Z)(M,2),R=Z[0],L=Z[1],B=(0,c.useState)(!1),z=(0,p.Z)(B,2),U=z[0],H=z[1],W=(0,c.useState)(!1),q=(0,p.Z)(W,2),V=q[0],G=q[1],$=(0,c.useState)(!1),J=(0,p.Z)($,2),K=J[0],Y=J[1],X=(0,c.useState)(null),Q=(0,p.Z)(X,2),ee=Q[0],te=Q[1],ne=(0,c.useState)(!1),re=(0,p.Z)(ne,2),ie=re[0],oe=re[1],ae=(0,c.useState)(!1),se=(0,p.Z)(ae,2),le=se[0],ce=se[1],ue=(0,c.useState)(""),de=(0,p.Z)(ue,2),fe=de[0],pe=de[1],he=(0,c.useState)([]),me=(0,p.Z)(he,2),ve=me[0],ge=me[1],ye=(0,c.useState)([]),be=(0,p.Z)(ye,2),xe=be[0],we=be[1],ke=xe.includes(nt.CE),je=(0,c.useState)(["Monday"]),Ce=(0,p.Z)(je,2),_e=Ce[0],Ee=Ce[1],Ne=(0,c.useState)(""),Ae=(0,p.Z)(Ne,2),De=Ae[0],Te=Ae[1],Ie=(0,c.useState)(""),Pe=(0,p.Z)(Ie,2),Fe=Pe[0],Oe=Pe[1],Me=(0,c.useState)(!1),Ze
2=(0,p.Z)(Me,2),Re=Ze[0],Le=Ze[1],ze=(0,c.useState)(!1),Ue=(0,p.Z)(ze,2),He=Ue[0],We=Ue[1],qe=(0,c.useState)(!1),Ve=(0,p.Z)(qe,2),Ge=Ve[0],$e=Ve[1],Je=(0,c.useState)(!1),Ke=(0,p.Z)(Je,2),Ye=Ke[0],Xe=Ke[1],Qe=(0,c.useState)(!1),et=(0,p.Z)(Qe,2),tt=et[0],rt=et[1],it=(0,c.useState)(!1),ot=(0,p.Z)(it,2),at=ot[0],st=ot[1],lt=(0,c.useState)(!1),ct=(0,p.Z)(lt,2),ut=ct[0],dt=ct[1],ft=(0,c.useState)(!1),pt=(0,p.Z)(ft,2),ht=pt[0],mt=pt[1],vt=(0,c.useState)(!1),gt=(0,p.Z)(vt,2),yt=(gt[0],gt[1]),bt=(0,c.useState)(!0),xt=(0,p.Z)(bt,2),wt=xt[0],kt=xt[1],St=(0,c.useState)(!1),jt=(0,p.Z)(St,2),Ct=jt[0],_t=jt[1],Et=(0,c.useState)(null),Nt=(0,p.Z)(Et,2),At=Nt[0],Dt=Nt[1],Tt=(0,c.useState)(!0),It=(0,p.Z)(Tt,2),Pt=It[0],Ft=It[1],Ot=(0,c.useState)(!1),Mt=(0,p.Z)(Ot,2),Zt=Mt[0],Rt=Mt[1],Lt=52428800,Bt=["image/jpeg","image/png","image/heic","image/heif"],zt=(0,h.s0)(),Ut=(0,y.I0)(),Ht=(0,y.v9)((function(e){return e.PayWall.UserPaymentStatus})),Wt=(0,y.v9)((function(e){return e.Modal.StateAfterUploadPhoto})),qt=((0,y.v9)((function(e){return e.Modal.PhotoUploadType})),(0,y.v9)((function(e){return e.Modal.isQueued}))),Vt=(0,y.v9)((function(e){return e.Modal.GalleryModalPhotoObject})),Gt=(0,y.v9)((function(e){return e.Modal.QueuePhotoObjectSelectedFromQueuePage})),$t=3+(null!==qt&&void 0!==qt&&qt.queue&&Ht?1:0)+(Be.w?1:0);(0,c.useEffect)((function(){Vt&&(fn(),Oe(Vt),w("https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_300,f_auto,q_auto/Resized_Photos/".concat(Vt.compressedImageId)),Ut(x.N.setGalleryModalPhotoObject(""))),Gt.selectedImage&&(fn(),Te(Gt.metadataString),r(Gt.selectedImage),w(Gt.imagePath),Ut(x.N.setQueuePhotoObjectSelectedFromQueuePage("")))}),[]);function Jt(e){var t;if(qt.firstWeekCreatedAtDate){var n=new Date(qt.firstWeekCreatedAtDate),r=n.getUTCDay(),i=new Date(n);0===r?i.setDate(n.getDate()-6):i.setDate(n.getDate()-r+1),t=new Date(i.getTime()+7*(e-1)*24*60*60*1e3)}else{var o=new Date,a=(8-o.getUTCDay())%7;0===a&&(a=7),t=new Date(o.getTime()+24*a*60*60*1e3)}return t}(0,c.useEffect)((function(){qt.weekDay&&Dt(Jt(Number(qt.weekDay)))}),[qt]);var Kt=localStorage.getItem("Data"),Yt=(0,b.a)(Kt),Xt=Yt.token,Qt=Yt.userid,en=240-fe.length,tn=function(e){var t=e.target.value.toString();e.target.checked?xe.length<1?we([].concat((0,v.Z)(xe),[t])):e.target.checked=!1:we(xe.filter((function(e){return e!==t})))},nn=function(e){var t=e.target.value.toString(),n=e.target.checked;if("I am not looking for feedback"==ve[0])return e.target.checked=!1,void("I am not looking for feedback"==e.target.value&&ge([]));if(n)if("I am not looking for feedback"==t&&n)for(var r=document.querySelectorAll(".uploadModalCheckBox"),i=0;i<r.length;i++)"I am not looking for feedback"==t&&(r[i].checked=!1,e.target.checked=!0,ge([t]));else ve.length<=2?ge([].concat((0,v.Z)(ve),[t])):e.target.checked=!1;else ge(ve.filter((function(e){return e!==t})))},rn=function(e){var t=e.target.value.toString(),n=e.target.checked;Ee(n?[t]:[])},on=function(){w(""),pe(""),ge([]),we([]),Ee(["Monday"]),L(!0),H(!1),G(!1),Y(!1),te(null),ce(!1)},an=function(){$e(!1),rt(!0),Le(!1),st(!1),Rt(!1),pn(),j.Z.getInstance().logEvent("Request Hunt Reminder")},sn=function(){$e(!1),Xe(!0),Le(!1),st(!1)},ln=function(){$e(!1),st(!0),Rt(!0)},cn=function(){Ut(x.N.setPhotoUploadModalState(!1)),zt("/queue",{replace:!0}),window.scrollTo(0,0)},un=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dn=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,jn.ZP.parse(t,{tiff:!0,xmp:!0,gps:!0});case 3:if(i=e.sent){e.next=6;break}return e.abrupt("return",null);case 6:return o={cameraName:i.Make,focalLength:i.FocalLength,lens:i.LensModel||i.Lens,aperture:i.FNumber,iso:i.ISO,shutterSpeed:i.ExposureTime,dateTaken:i.DateTimeOriginal,latitude:null!==(n=i.latitude)&&void 0!==n?n:null,longitude:null!==(r=i.longitude)&&void 0!==r?r:null},e.abrupt("return",JSON.stringify(o));case 10:return e.prev=10,e.t0=e.catch(0),console.error("Error extracting metadata:",e.t0),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),fn=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return kt(!1),e.prev=1,n={isQueued:qt.queue},e.next=5,(0,Cn.Sr)(n,Xt);case 5:r=e.sent,"Photo limit exceed"===(i=r.data.data).message?(Le(!0),We(!0)):"Photo is already in a queue"===i.message||"Four Photos already in a queue"===i.message?(st(!0),We(!0)):"Non Paid User Queued Photo Limit Exceed"==i.message&&_t(!0),(i.weekDay||i.createdAt)&&(Dt(Jt(Number(i.weekDay))),Ut(x.N.setisQueued({queue:!0,weekDay:i.weekDay,firstWeekCreatedAtDate:i.createdAt}))),kt(!0),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),console.log(e.t0);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t){return e.apply(this,arguments)}}(),pn=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t&&an(),e.prev=1,e.next=4,_n(Xt,t,_e);case 4:e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),console.error("Failed to send photo reminder:",e.t0);case 10:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}(),hn=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var r,i,o,a,l,c,u,f,p,h;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(""),r=!0===ee&&!ke,oe(!1),i={Monday:0,Tuesday:1,Wednesday:2,Thursday:3,Friday:4,Saturday:5,Sunday:6},o=function(e,t){var n=i[t]||0,r=new Date(e);return r.setDate(e.getDate()+n),r},n&&(a=(new Date).getTime(),l="image_".concat(a,".jpg"),(c=new FormData).append("photoUrl",n,l),n.name&&c.append("original_filename",n.name),c.append("description",fe.trim()),c.append("genres_list",xe.join(",")),c.append("feedback_type",ve.join(",")),c.append("metadata",De),c.append("isQueued",
2null===qt||void 0===qt?void 0:qt.queue),c.append("isGalleryPhoto",Pt),c.append("opt_in_free_review",r),null!==qt&&void 0!==qt&&qt.weekDay&&(u=o(At,_e),c.append("weekDay",qt.weekDay),c.append("uploadAt",u.toUTCString()),c.append("day",_e.length>0?_e:"Monday"))),Fe.photoID&&(c={description:fe.trim(),genres_list:xe.join(","),feedback_type:ve.join(","),isQueued:null!==qt&&void 0!==qt&&qt.queue?"true":"false",photoType:"hunted_photo",photoId:Fe.photoID,opt_in_free_review:r?"true":"false"},null!==qt&&void 0!==qt&&qt.weekDay&&(f=o(At,_e),c.weekDay=qt.weekDay,c.uploadAt=f.toUTCString(),c.day=_e.length>0?_e.join(","):"Monday")),s(!0),e.prev=8,p={Authorization:"Bearer ".concat(Xt)},e.next=12,Se.Z.post("".concat("https://bigbesos.com","/photo/add"),c,{headers:p,onUploadProgress:function(e){D(Math.round(e.loaded/e.total*100))}});case 12:h=e.sent,oe(!0===h.data.data.free_review_queued),0==h.data.data.isQueued?(dt(!0),We(!0),j.Z.getInstance().setUserId(Qt),j.Z.getInstance().logEvent("".concat(Fe.photoID?"Photo From Gallery":"Photo Upload"),{UserID:Qt})):(mt(!0),We(!0),j.Z.getInstance().logEvent("".concat(Gt.imagePath?"Photo Via Queue Manager":"Photo Queued"),{UserID:Qt})),Ut(x.N.setStateAfterUploadPhoto(!Wt)),s(!1),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(8),_(e.t0.response.data.message);case 22:case"end":return e.stop()}}),e,null,[[8,19]])})));return function(t){return e.apply(this,arguments)}}(),mn=function(e){null!==qt&&void 0!==qt&&qt.queue&&Ht?(e(),ce(!0)):(Ct?un:hn)()},vn=function(){zt("/14dfspecial",{replace:!0})};return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"backdrop"}),(0,F.jsx)("div",{className:"modal fade bph-modal show",id:"photoUploadModal",tabIndex:-1,"aria-labelledby":"photoUploadModal","aria-hidden":"true",style:{display:"block"},children:(0,F.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,F.jsx)("div",{className:"modal-content",children:(0,F.jsx)("div",{className:"modal-body",children:(0,F.jsx)("div",{className:"onboarding_modal photoUpload_modal photoUpload ".concat(!V&&!U||ht||ut?"":"feedback"),children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close close","data-bs-dismiss":"modal","aria-label":"Close",onClick:function(){Ut(x.N.setPhotoUploadModalState(!1))}}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png"})}),He?(0,F.jsxs)("div",{className:"modal_content",children:[P&&(0,F.jsxs)("div",{className:"modal_title",style:{maxWidth:"100%"},children:[(0,F.jsx)("h3",{className:"title",children:"One photo for each weekly hunt."}),(0,F.jsx)("p",{className:"subtitle",style:{maxWidth:"100%"},children:"Everyone gets one photo per weekly photo hunt. Each week starts on Monday at 12:00am EST (New York City time)."}),(0,F.jsxs)("p",{style:{marginTop:"15px",maxWidth:"100%"},className:"subtitle",children:["You can also add photos to your ",(0,F.jsx)(g.rU,{to:"/profile?tab=gallery",style:{color:"blue"},onClick:function(){Ut(x.N.setPhotoUploadModalState(!1))},children:"profile\u2019s gallery"}),"  if you\u2019d like to share your style with Club Members."]}),(0,F.jsx)("button",{style:{marginTop:"20px",padding:"10px 40px "},className:"btn",onClick:function(){O(!1),We(!1)},children:"Back"})]}),Re&&(0,F.jsxs)("div",{className:"modal_title",style:{maxWidth:"100%"},children:[(0,F.jsx)("h3",{className:"title",children:"Just one photo for each weekly hunt."}),(0,F.jsx)("p",{className:"subtitle",style:{marginBottom:"0px"},children:"Oh! It looks like you\u2019ve already posted a photo to this week\u2019s hunt."}),(0,F.jsx)("div",{className:"drag_image_inner",children:(0,F.jsx)("img",{className:"profile-upload-image",id:"upload-img",src:m,alt:"your image"})}),(0,F.jsx)("p",{style:{marginTop:"15px"},className:"subtitle",children:"Would you like us to queue this photo for you so it automatically posts to next week's Big Photo Hunt?"}),(0,F.jsxs)("div",{style:{display:"flex",justifyContent:"space-evenly",flexWrap:"wrap"},children:[(0,F.jsx)("button",{className:"btn PhotoUploadYesBtn",onClick:function(){Le(!1),We(!1),Ut(Ht?x.N.setisQueued({queue:!1}):x.N.setisQueued({queue:!0,weekDay:1}))},children:"Yes, Please"}),(0,F.jsx)("button",{className:"btn PhotoUploadNoBtn",onClick:function(){Le(!1),$e(!0)},children:"No, Thanks"})]})]}),Ge&&(0,F.jsxs)("div",{className:"modal_title",style:{maxWidth:"100%",padding:"95px 0px"},children:[(0,F.jsx)("h3",{className:"title",children:"OK. We won't touch it."}),(0,F.jsx)("p",{className:"subtitle",style:{maxWidth:"100%"},children:"Would you like us to send you an email reminder to let you know 
2when you can submit your next photo?"}),(0,F.jsxs)("div",{style:{display:"flex",justifyContent:"space-evenly",flexWrap:"wrap"},children:[(0,F.jsx)("button",{className:"btn PhotoUploadYesBtn",onClick:function(){return Ht?an():ln()},children:"Yes, Please"}),(0,F.jsx)("button",{className:"btn PhotoUploadNoBtn",onClick:sn,children:"No, Thanks"})]})]}),Ye&&(0,F.jsxs)("div",{className:"modal_title",style:{maxWidth:"100%",padding:"60px 0px"},children:[(0,F.jsx)("h3",{className:"title",children:"OK. We won't remind you."}),(0,F.jsx)("p",{className:"subtitle",style:{margin:"20px auto",maxWidth:"100%"},children:"Enjoy your Big Photo Hunting in the meantime!"}),(0,F.jsxs)("p",{className:"subtitle",style:{margin:"20px auto",maxWidth:"100%"},children:["Big Photo Hunts start on Monday at 12:00am EST. Post your photo to next week's hunt after that. Or, queue up multiple photos now with this ",(0,F.jsx)("a",{style:{color:"blue"},onClick:vn,children:"free 14 day trial"})," to our paid membership."]}),(0,F.jsx)("button",{onClick:cn,style:{marginTop:"20px"},className:"btn PhotoUploadYesBtn",children:"Go to My Queue"})]}),tt&&(0,F.jsxs)("div",{className:"modal_title",style:{maxWidth:"100%",padding:"60px 0px"},children:[(0,F.jsx)("h3",{className:"title",children:"Consider yourself reminded."}),(0,F.jsx)("p",{className:"subtitle",style:{margin:"20px auto",maxWidth:"100%"},children:"We\u2019ll email you next week at 12:15am (EST), on the day that you selected to remind you to queue your next photo."}),(0,F.jsx)("p",{className:"subtitle",style:{margin:"20px auto",maxWidth:"100%"},children:Ht?"(This depends on when your next photo is scheduled in your Queue Manager to be Hunted. Either way, you'll hear from us shortly after it is.)\u200c":(0,F.jsxs)(F.Fragment,{children:["(To queue multiple photos at once, here's a ",(0,F.jsx)("a",{style:{color:"blue"},onClick:vn,children:"free 14 day trial"})," to our paid membership.)"]})}),(0,F.jsx)("button",{onClick:cn,style:{marginTop:"20px"},className:"btn PhotoUploadYesBtn",children:"Go to My Queue"})]}),at&&(0,F.jsx)(F.Fragment,{children:Zt?(0,F.jsxs)("div",{className:"edit_field_content",children:[(0,F.jsx)("h3",{className:"title",children:"Which day of the week would you like to be reminded? "}),(0,F.jsx)("div",{className:"post_date",children:"Reminder emails go out 12:15 am EST."}),(0,F.jsx)("div",{className:"row g-md-3",children:nt.dn.map((function(e,t){return(0,F.jsx)("div",{className:"col-6",children:(0,F.jsxs)("div",{className:"form_group checkbox",children:[(0,F.jsx)("input",{type:"checkbox",name:e.value,id:e.id,value:e.value,checked:_e.includes(e.value),onChange:rn}),(0,F.jsx)("label",{htmlFor:e.id,children:e.lable})]})},t)}))}),(0,F.jsx)("div",{className:"profile-image-title-wrap",children:(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:(0,F.jsx)("button",{type:"button",onClick:an,className:" btn",style:{maxWidth:"180px"},children:" Continue"})})})]}):(0,F.jsxs)("div",{className:"modal_title",style:{maxWidth:"100%",padding:"40px 0px"},children:[(0,F.jsx)("h3",{className:"title",children:"".concat(Ht?"Oops.":"Your photos are already being hunted.")}),(0,F.jsx)("p",{className:"subtitle",style:{margin:"20px auto",maxWidth:"100%"},children:"".concat(Ht?"It looks like you have a photo in this week\u2019s Hunt and have photos queued up for the next four weeks. That's the limit.":Ct?"It looks like you\u2019ve got a photo in this week\u2019s Hunt already and you\u2019ve already used up your 2 free photo queues. If you want to give unlimited queuing a test, ":"It looks like you have a photo in this week's hunt and another one queued to post for next week. You can only load this photo once the next one posts.")}),(0,F.jsx)("p",{className:"subtitle",style:{margin:"20px auto",maxWidth:"100%"},children:"".concat(Ht?"You can manage and remove photos in your queue.":Ct?"In the meantime, we\u2019ll hold this photo for you for 12 hours.":"Would you like us to send you a reminder email when you can add your next photo to the weekly queue?")}),Ht?(0,F.jsxs)("div",{style:(0,Sn.Z)({display:"flex",flexDirection:"column",gap:"10px"},"display","inline-flex"),children:[(0,F.jsx)("button",{className:"btn ",style:{padding:"10px 60px",marginTop:"20px"},onClick:function(){zt("/queue",{replace:!0}),Ut(x.N.setPhotoUploadModalState(!1))},children:"Ok"}),(0,F.jsx)("a",{onClick:function(){pn(!0)},style:{color:"blue",marginTop:"20px",fontSize:"13px"},children:"Remind me when I can"})]}):(0,F.jsx)("div",{style:{display:"flex",justifyContent:"space-evenly",flexWrap:"wrap"},children:Ct?(0,F.jsx)("button",{className:"btn PhotoUploadYesBtn",onClick:vn,children:"Tell Me More"}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("button",{className:"btn PhotoUploadYesBtn",onClick:function(){Ht?an():ln()},children:"Yes, Please"}),(0,F.jsx)("button",{className:"btn PhotoUploadNoBtn",onClick:sn,children:"No, Thanks"})]})})]})}),ut&&(0,F.jsxs)("div",{className:"modal_title",style:{maxWidth:"100%",padding:"50px 0px"},children:[(0,F.jsx)("h3",{className:"title",children:"Great! Your photo's posted."}),(0,F.jsx)("h4",{className:"title",style:{margin:"20px auto",maxWidth:"85%"},children:"Do you want to queue your next photo while you're here?"}),(0,F.jsx)("p",{className:"subtitle",style:{margin:"20px auto"},children:"We can load up your next photo to automatically post to next week's Big Photo Hunt for you."}),(0,F.jsxs)("div",{style:{display:"flex",justifyContent:"space-evenly",flexWrap:"wrap"},children:[(0,F.jsx)("button",{className:"btn PhotoUploadYesBtn",onClick:function(){dt(!1),yt(!0),Ut(Ht?x.N.setisQueued({queue:!1}):x.N.setisQueued({queue:!1,weekDay:1})),pe(""),w(""),ge([]),we([]),L(!0),H(!1),G(!1),Y(!1),te(null),oe(!1),We(!1)},children:"Yes, Please"}),(0,F.jsx)("button",{className:"btn PhotoUploadNoBtn",onClick:function(){H(!1),G(!1),Y(!1),te(null),oe(!1),dt(!1),$e(!0)},children:"No, Thanks"})]}),ie&&(0,F.jsx)("p",{style:{marginTop:"24px",marginBottom:0,fontFamily:"Jost",fontWeight:400,fontSize:"14px",lineHeight:"20px",color:"#696B78"},children:"We'll email you when your free Ken-Bot review is ready."})]}),ht&&(0,F.jsxs)("div",{className:"modal_title",style:{maxWidth:"100%",padding:"60px 0px"},children:[(0,F.jsx)("h3",{className:"title",children:"Your photo is queued"}),(0,F.jsx)("p",{className:"subtitle",style:{margin:"20px auto",maxWidth:"100%"},children:"".concat(Ht?"You can manage it on your Queue Manger Page ":"Your photo has been added to the queue manager. It will post on Monday at 12:05 am EST. We'll send you an email to notify you when this photo posts.")}),(0,F.jsx)("p",{className:"subtitle",style:{margin:"20px auto",maxWidth:"100%"},children:Ht?"We\u2019ll send you an email to notify you when this photo posts.":(0,F.jsxs)(F.Fragment,{children:["(To queue multiple photos at once, here's a ",(0,F.jsx)("a",{style:{color:"blue"},onClick:vn,children:"free 14 day trial"})," to our paid membership.)"]})}),ie&&(0,F.jsx)("p",{style:{margin:"16px auto",fontFamily:"Jost",fontWeight:400,fontSize:"14px",lineHeight:"20px",color:"#696B78"},children:"We'll email you when your free Ken-Bot review is ready."}),(0,F.jsx)("button",{onClick:function(){zt("/queue",{replace:!0}),Ut(x.N.setPhotoUploadModalState(!1))},className:"btn PhotoUploadYesBtn",children:Ht?"Show Me":"OK"})]})]}):(0,F.jsxs)("div",{className:"modal_content".concat(m?"":" dropzone_step"),children:[wt&&(0,F.jsxs)("div",{className:"modal_title",children:[(0,F.jsxs)("h2",{className:"title",children:[(0,F.jsx)("img",{src:"/assets/img/icons/upload.svg",alt:"img"}),"Upload"]}),!V&&!U&&!K&&(0,F.jsx)("p",{className:"subtitle",children:m?le?"And, last thing... What day of the week would you like this photo to automatically post?":"Great! Please share something about this photo to help members engage with it.":null!==qt&&void 0!==qt&&qt.queue?"Load your photo to the queue to automatically post to a future Photo Hunt.":(0,F.jsxs)(F.Fragment,{children:["Upload your best photo for this week!"," ",(0,F.jsx)("a",{style:{textDecoration:"underline"},onClick:function(){O(!0),We(!0)},children:"One photo each week,"})," ","to be hunted by your peers."]})}),U&&(0,F.jsx)("p",{className:"subtitle",children:"So that we can put your photo in the right place... "}),V&&(0,F.jsx)("p",{className:"subtitle",children:"OK, and what type of feedback could be helpful to you on this photo?"}),Be.w&&K&&!ke&&(0,F.jsx)("p",{className:"subtitle",children:"One more question. Ken-Bot, our AI photo coach, reads your photo and scores it against the whole community. It is free."})]}
2),(0,F.jsxs)("div",{className:"file-upload",children:[C&&(0,F.jsxs)("p",{className:"eerror",style:{textAlign:"center"},children:[C," "]}),!m&&(0,F.jsxs)("div",{className:"profile-image-upload-wrap",children:[(0,F.jsx)("input",{className:"profile-upload-input",onChange:function(e){var t=e.target.files[0];if(_(""),Bt.includes(t.type)||(0,Nn.zr)(t)){var n=new Image;n.src=URL.createObjectURL(t),n.onload=(0,f.Z)((0,d.Z)().mark((function e(){var i,o,a,s;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.decode();case 2:if(i=n.width,o=n.height,!(t.size>Lt)){e.next=8;break}return _("Please ensure that your file is less than 50MB."),e.abrupt("return");case 8:if(!(i>6500||o>6500)){e.next=13;break}return _("Please ensure the edges of your photo are less than 6500 pixels."),e.abrupt("return");case 13:return fn(),e.next=16,dn(t);case 16:(a=e.sent)&&Te(a),r(t),Oe(""),(s=new FileReader).onload=function(){w(s.result)},s.readAsDataURL(t);case 23:case 24:case"end":return e.stop()}}),e)}))),n.onerror=(0,f.Z)((0,d.Z)().mark((function e(){var n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,Nn.zr)(t)){e.next=3;break}return _("Sorry, we could not read that image file. Please try a different photo."),e.abrupt("return");case 3:if(!(t.size>Lt)){e.next=6;break}return _("Please ensure that your file is less than 50MB."),e.abrupt("return");case 6:return fn(),e.next=9,dn(t);case 9:(n=e.sent)&&Te(n),r(t),Oe(""),w(Nn.Bk);case 14:case"end":return e.stop()}}),e)})))}else _("Please upload only JPG, PNG, or HEIC files")},type:"file"}),(0,F.jsxs)("div",{className:"drag-text",style:{maxWidth:"390px",width:"100%"},children:[(0,F.jsx)("h4",{className:"title",children:"Drag and drop your photo here"}),(0,F.jsx)("span",{className:"or",children:"or"}),(0,F.jsxs)("div",{className:"buttons",style:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"12px"},children:[(0,F.jsx)("button",{className:"file-upload-btn btn",type:"button",onClick:function(){document.querySelector(".profile-upload-input").click()},style:{maxWidth:"188px"},children:"Upload from device"}),(0,F.jsx)("button",{className:"file-upload-btn btn",type:"button",style:{maxWidth:"188px"},onClick:function(){Ut(x.N.setUploadPhotoFromGalleryModalState(!0)),Ut(x.N.setPhotoUploadModalState(!1))},children:"Upload from Gallery"})]}),(0,F.jsxs)("span",{className:"support_note",style:{maxWidth:"300px"},children:["Max. 6500 x 6500 px., 50 MB",(0,F.jsx)("br",{}),"JPG, PNG, or HEIC only. No text, logos or borders."]})]})]}),m&&R&&(0,F.jsx)(F.Fragment,{children:wt?(0,F.jsxs)("div",{className:"profile-upload-content",children:[(0,F.jsx)("div",{className:"drag_image",children:(0,F.jsx)("div",{className:"drag_image_inner",children:(0,F.jsx)("img",{className:"profile-upload-image",id:"upload-img",src:m,alt:"your image"})})}),(0,F.jsx)("div",{className:"question_part",children:(0,F.jsxs)("p",{children:["Question ",(0,F.jsx)("span",{children:"1"}),"/".concat($t)]})}),(0,F.jsxs)("div",{className:"description",children:[(0,F.jsx)("h6",{className:"title",style:{fontSize:"16px",fontWeight:"500"},children:"Tell us about your photo."}),(0,F.jsx)("textarea",{name:"description",id:"description",placeholder:"Tell club members what we are looking at here, or something else about this photo",value:fe,onChange:function(e){var t=e.target.value.slice(0,240);pe(t)}}),(0,F.jsxs)("span",{className:"characters_limit",children:[" (",en," characters) "]})]}),!Fe.photoID&&!(null!==qt&&void 0!==qt&&qt.queue)&&(0,F.jsxs)("div",{className:"My-form_group form_group checkbox",children:[(0,F.jsx)("input",{type:"checkbox",name:"gallery",id:"gallery",checked:Pt,onChange:function(e){Ft(e.target.checked)}}),(0,F.jsx)("label",{htmlFor:"gallery",style:{backgroundColor:"white"},children:"Also add this photo to my personal profile gallery"})]}),(0,F.jsxs)("div",{className:"profile-image-title-wrap",children:[(0,F.jsx)("button",{type:"button",className:"btn ",onClick:function(){L(!1),H(!0)},children:"Continue"}),(0,F.jsx)("label",{className:"remove-profile-image",onClick:on,children:"Select a different photo"})]})]}):(0,F.jsxs)("div",{className:"d-flex justify-content-center flex-column align-items-center gap-3",style:{margin:"170px auto"},children:[(0,F.jsx)("span",{className:"FollowModalImgLoader",style:{display:"block"}}),(0,F.jsx)("p",{children:"Please Wait"})]})}),U&&(0,F.jsx)("div",{className:"file-upload",children:(0,F.jsxs)("div",{className:"profile-upload-content",children:[(0,F.jsx)("div",{className:"drag_image",children:(0,F.jsx)("div",{className:"drag_image_inner",children:(0,F.jsx)("img",{className:"profile-upload-image",id:"upload-img",src:m,alt:"your image"})})}),(0,F.jsx)("div",{className:"question_part",children:(0,F.jsxs)("p",{children:["Question ",(0,F.jsx)("span",{children:"2"}),"/".concat($t)]})}),(0,F.jsxs)("div",{className:"feedbacks",children:[(0,F.jsx)("h6",{className:"title",children:"What genre is this photo?"}),(0,F.jsx)("div",{className:"row g-md-3",children:nt.oe.map((function(e,t){return(0,F.jsx)("div",{className:"col-xl-4 col-6",children:(0,F.jsxs)("div",{className:"form_group checkbox",children:[(0,F.jsx)("input",{className:"uploadModalCheckBox",type:"checkbox",name:e.id,value:e.value,id:e.id,onChange:tn}),(0,F.jsx)("label",{htmlFor:e.id,children:e.value})]})},t)}))})]}),(0,F.jsxs)("div",{className:"profile-image-title-wrap",children:[(0,F.jsx)("button",{type:"button",className:"btn ",onClick:function(){H(!1),G(!0)},children:"Continue"}),(0,F.jsx)("label",{className:"remove-profile-image",onClick:on,children:"Select a different photo"})]})]})}),V&&(0,F.jsx)("div",{className:"file-upload",children:(0,F.jsxs)("div",{className:"profile-upload-content",children:[(0,F.jsx)("div",{className:"drag_image",children:(0,F.jsx)("div",{className:"drag_image_inner",children:(0,F.jsx)("img",{className:"profile-upload-image",id:"upload-img",src:m,alt:"your image"})})}),(0,F.jsx)("div",{className:"question_part",children:(0,F.jsxs)("p",{children:["Question ",(0,F.jsx)("span",{children:"3"}),"/".concat($t)]})}),(0,F.jsxs)("div",{className:"feedbacks",children:[(0,F.jsx)("h6",{className:"title",children:"What type of feedback are you looking for (3 max.)?"}),(0,F.jsx)("div",{className:"row g-md-3",children:nt.vY.map((function(e,t){return(0,F.jsx)("div",{className:"col-xl-4 col-6",children:(0,F.jsxs)("div",{className:"form_group checkbox",children:[(0,F.jsx)("input",{className:"uploadModalCheckBox",type:"checkbox",name:e.value,value:e.value,id:e.value,onChange:nn}),(0,F.jsx)("label",{htmlFor:e.value,children:e.value})]})},t)}))})]}),(0,F.jsx)("div",{className:"profile-image-title-wrap",children:a?(0,F.jsx)("div",{className:"progress",style:{width:"100%"},children:(0,F.jsx)("div",{className:"progress-bar bg-warning",role:"progressbar",style:{width:"".concat(A,"%"),color:"black"},"aria-valuenow":A,"aria-valuemin":0,"aria-valuemax":100,children:"".concat(A,"%")})}):(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,F.jsx)("button",{type:"button",onClick:function(){Be.w?(G(!1),Y(!0),H(!1),L(!1),ce(!1)):mn((function(){return G(!1)}))},className:" btn",children:" Continue"}),(0,F.jsx)("label",{className:"remove-profile-image",style:{marginTop:"10px"},onClick:on,children:"Select a different photo"})]})})]})}),Be.w&&K&&(0,F.jsx)("div",{className:"file-upload qreview_step",children:(0,F.jsxs)("div",{className:"profile-upload-content",children:[(0,F.jsx)("div",{className:"drag_image",children:(0,F.jsx)("div",{className:"drag_image_inner",children:(0,F.jsx)("img",{className:"profile-upload-image",id:"upload-img",src:m,alt:"your image"})})}),(0,F.jsx)("div",{className:"question_part",children:(0,F.jsxs)("p",{children:["Question ",(0,F.jsx)("span",{children:"4"}),"/".concat($t)]})}),(0,F.jsx)("div",{className:"feedbacks",children:ke?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("h6",{className:"title",children:"Ken-Bot review"}),(0,F.jsx)("p",{className:"subtitle",style:{maxWidth:"100%"},children:"Ken-Bot reviews are not available for this genre. Your photo will post as normal."})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("h6",{className:"title",children:"Want Ken-Bot to review this photo?"}),(0,F.jsxs)("div",{className:"row g-md-3",children:[(0,F.jsx)("div",{className:"col-6",children:(0,F.jsxs)("div",{className:"form_group checkbox",children:[(0,F.jsx)("input",{className:"uploadModalCheckBox",type:"checkbox",name:"reviewOptInYes",id:"reviewOptInYes",value:"yes",checked:!0===ee,onChange:function(){return te(!0)}}),(0,F.jsx)("label",{htmlFor:"reviewOptInYes",children:"Yes, review this photo"})]})}),(0,F.jsx)("div",{className:"col-6",children:(0,F.jsxs)("div",{className:"form_group checkbox",children:[(0,F.jsx)("input",{className:"uploadModalCheckBox",type:"checkbox",name:"reviewOptInNo",id:"reviewOptInNo",value:"no",checked:!1===ee,onChange:function(){return te(!1)}}),(0,F.jsx)("label",{htmlFor:"reviewOptInNo",children:"No thanks, not this one"})]})})]})]})}),(0,F.jsx)("div",{className:"profile-image-title-wrap",children:a?(0,F.jsx)("div",{className:"progress",style:{width:"100%"},children:(0,F.jsx)("div",{className:"progress-bar bg-warning",role:"progressbar",style:{width:"".concat(A,"%"),color:"black"},"aria-valuenow":A,"aria-valuemin":0,"aria-valuemax":100,children:"".concat(A,"%")})}):(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,F.jsx)("button",{type:"button",onClick:function(){null===ee&&te(!1),mn((function(){return Y(!1)}))},className:" btn",children:" Continue"}),(0,F.jsx)("label",{className:"remove-profile-image",style:{marginTop:"10px"},onClick:on,children:"Select a different photo"})]})})]})}),le&&Ht&&(0,F.jsxs)("div",{className:"edit_field_content",children:[(0,F.jsx)("img",{src:m,alt:"img"}),(0,F.jsx)("div",{className:"desc",children:"Question ".concat($t,"/").concat($t)}),(0,F.jsx)("div",{className:"post_date",children:"It will post at 12:00am EST on the day you pick."}),(0,F.jsx)("div",{className:"row g-md-3",children:nt.dn.map((function(e,t){return(0,F.jsx)("div",{className:"col-6",children:(0,F.jsxs)("div",{className:"form_group checkbox",children:[(0,F.jsx)("input",{type:"checkbox",name:e.value,id:e.id,value:e.value,checked:_e.includes(e.value),onChange:rn}),(0,F.jsx)("label",{htmlFor:e.id,children:e.lable})]})},t)}))}),(0,F.jsx)("div",{className:"profile-image-title-wrap",children:a?(0,F.jsx)("div",{className:"progress",style:{width:"100%",marginTop:"15p
2x"},children:(0,F.jsx)("div",{className:"progress-bar bg-warning",role:"progressbar",style:{width:"".concat(A,"%"),color:"black"},"aria-valuenow":A,"aria-valuemin":0,"aria-valuemax":100,children:"".concat(A,"%")})}):(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,F.jsx)("button",{type:"button",onClick:hn,className:" btn",style:{maxWidth:"180px"},children:" Continue"}),(0,F.jsx)("label",{className:"remove-profile-image",style:{marginTop:"10px"},onClick:on,children:"Select a different photo"})]})})]})]})]})]})})})})})})]})},Dn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tn=function(e){function t(t){var n=e.call(this,t)||this;return n.name="AssertionError",n}return Dn(t,e),t}(Error);function In(e,t){if(!e)throw new Tn(t)}function Pn(e){var t=Object.entries(e).filter((function(e){var t=e[1];return void 0!==t&&null!==t})).map((function(e){var t=e[0],n=e[1];return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(String(n)))}));return t.length>0?"?".concat(t.join("&")):""}var Fn=n(1694),On=n.n(Fn),Mn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zn=function(){return Zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Zn.apply(this,arguments)},Rn=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Ln=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Bn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};var zn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.openShareDialog=function(e){var n,r,i=t.props,o=i.onShareWindowClose,a=i.windowHeight,s=void 0===a?400:a,l=i.windowPosition,c=void 0===l?"windowCenter":l,u=i.windowWidth,d=void 0===u?550:u;!function(e,t,n){var r=t.height,i=t.width,o=Bn(t,["height","width"]),a=Zn({height:r,width:i,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},o),s=window.open(e,"",Object.keys(a).map((function(e){return"".concat(e,"=").concat(a[e])})).join(", "));if(n)var l=window.setInterval((function(){try{(null===s||s.closed)&&(window.clearInterval(l),n(s))}catch(e){console.error(e)}}),1e3)}(e,Zn({height:s,width:d},"windowCenter"===c?(n=d,r=s,{left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-n/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-r/2}):function(e,t){return{top:(window.screen.height-t)/2,left:(window.screen.width-e)/2}}
2(d,s)),o)},t.handleClick=function(e){return Rn(t,void 0,void 0,(function(){var t,n,r,i,o,a,s,l,c,u;return Ln(this,(function(d){switch(d.label){case 0:return t=this.props,n=t.beforeOnClick,r=t.disabled,i=t.networkLink,o=t.onClick,a=t.url,s=t.openShareDialogOnClick,l=t.opts,c=i(a,l),r?[2]:(e.preventDefault(),n?(u=n(),!(f=u)||"object"!==typeof f&&"function"!==typeof f||"function"!==typeof f.then?[3,2]:[4,u]):[3,2]);case 1:d.sent(),d.label=2;case 2:return s&&this.openShareDialog(c),o&&o(e,c),[2]}var f}))}))},t}return Mn(t,e),t.prototype.render=function(){var e=this.props,t=(e.beforeOnClick,e.children),n=e.className,r=e.disabled,i=e.disabledStyle,o=e.forwardedRef,a=(e.networkLink,e.networkName),s=(e.onShareWindowClose,e.openShareDialogOnClick,e.opts,e.resetButtonStyle),l=e.style,u=(e.url,e.windowHeight,e.windowPosition,e.windowWidth,Bn(e,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"])),d=On()("react-share__ShareButton",{"react-share__ShareButton--disabled":!!r,disabled:!!r},n),f=Zn(Zn(s?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"}:{},l),r&&i);return c.createElement("button",Zn({},u,{"aria-label":u["aria-label"]||a,className:d,onClick:this.handleClick,ref:o,style:f}),t)},t.defaultProps={disabledStyle:{opacity:.6},openShareDialogOnClick:!0,resetButtonStyle:!0},t}(c.Component),Un=zn,Hn=function(){return Hn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Hn.apply(this,arguments)};var Wn=function(e,t,n,r){function i(i,o){var a=n(i),s=Hn({},i);return Object.keys(a).forEach((function(e){delete s[e]})),c.createElement(Un,Hn({},r,s,{forwardedRef:o,networkName:e,networkLink:t,opts:n(i)}))}return i.displayName="ShareButton-".concat(e),(0,c.forwardRef)(i)};var qn=Wn("whatsapp",(function(e,t){var n=t.title,r=t.separator;return In(e,"whatsapp.url"),"https://"+(/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)?"api":"web")+".whatsapp.com/send"+Pn({text:n?n+r+e:e})}),(function(e){return{title:e.title,separator:e.separator||" "}}),{windowWidth:550,windowHeight:400}),Vn=qn;var Gn=Wn("twitter",(function(e,t){var n=t.title,r=t.via,i=t.hashtags,o=void 0===i?[]:i,a=t.related,s=void 0===a?[]:a;return In(e,"twitter.url"),In(Array.isArray(o),"twitter.hashtags is not an array"),In(Array.isArray(s),"twitter.related is not an array"),"https://twitter.com/share"+Pn({url:e,text:n,via:r,hashtags:o.length>0?o.join(","):void 0,related:s.length>0?s.join(","):void 0})}),(function(e){return{hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}}),{windowWidth:550,windowHeight:400}),$n=Gn;var Jn=Wn("facebook",(function(e,t){var n=t.quote,r=t.hashtag;return In(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+Pn({u:e,quote:n,hashtag:r})}),(function(e){return{quote:e.quote,hashtag:e.hashtag}}),{windowWidth:550,windowHeight:400}),Kn=Jn;var Yn=Wn("linkedin",(function(e,t){var n=t.title,r=t.summary,i=t.source;return In(e,"linkedin.url"),"https://linkedin.com/shareArticle"+Pn({url:e,mini:"true",title:n,summary:r,source:i})}),(function(e){return{title:e.title,summary:e.summary,source:e.source}}),{windowWidth:750,windowHeight:600}),Xn=Yn;var Qn=Wn("email",(function(e,t){var n=t.subject,r=t.body,i=t.separator;return"mailto:"+Pn({subject:n,body:r?r+i+e:e})}),(function(e){return{subject:e.subject,body:e.body,separator:e.separator||" "}}),{openShareDialogOnClick:!1,onClick:function(e,t){window.location.href=t}}),er=Qn,tr=function(){var e=(0,c.useState)(!1),t=(0,p.Z)(e,2),n=t[0],r=t[1],i=(0,y.I0)(),o=(0,y.v9)((function(e){return e.Modal.ShareModalPhotoInfo})),a=ke().AES.encrypt(o.id,"siddiqui").toString(),s="".concat("https://bigphotohunt.com","/Photo?id=").concat(a,"&Source=other"),l="".concat("https://bigphotohunt.com","/Photo?id=").concat(a,"&Source=whatsapp"),u="".concat("https://bigphotohunt.com","/Photo?id=").concat(a,"&Source=facebook"),h="".concat("https://bigphotohunt.com","/Photo?id=").concat(a,"&Source=twitter"),m="".concat("https://bigphotohunt.com","/Photo?id=").concat(a,"&Source=linkedin"),v="".concat("https://bigphotohunt.com","/Photo?id=").concat(a,"&Source=email"),g=o.shareType?"Check out this photo I hunted!":"I'm being Big Photo Hunted!",b=o.shareType?"Hi!\n\nI found this photo in the running to be a Big Photo Hunt top ten. I like it and thought you might too!":"Hi!\n\nMy photo is in the running to be a Big Photo Hunt top ten. It will help me get noticed, get more feedback, and get inspired. Please help me get there by giving me your Upvote!\n\n",w=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,k("Photo Share: Link"),!navigator.clipboard||!navigator.clipboard.writeText){e.next=7;break}return e.next=5,navigator.clipboard.writeText(s);case 5:e.next=13;break;case 7:(n=document.createElement("textarea")).value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n);case 13:r(!0),setTimeout((function(){r(!1)}),2e3),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(0),console.log("Failed to copy link .");case 20:case"end":return e.stop()}}),e,null,[[0,17]])})));return function(t){return e.apply(this,arguments)}}(),k=function(e){var t=o.shareType?"Share Other User Photo":"Share User Photo";j.Z.getInstance().logEvent(t),j.Z.getInstance().logEvent(e)};return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"backdrop"}),(0,F.jsx)("div",{className:"modal fade bph-modal show",id:"sharePhotoModal",tabIndex:-1,"aria-labelledby":"sharePhotoModal","aria-hidden":"true",style:{display:"block"},children:(0,F.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,F.jsx)("div",{className:"modal-content",children:(0,F.jsx)("div",{className:"modal-body",children:(0,F.jsx)("div",{className:"onboarding_modal sharePhoto_modal",children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:function(){i(x.N.setSharePhotoModalState(!1))}}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png"})}),(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsxs)("div",{className:"modal_title",children:[(0,F.jsx)("h2",{className:"title",children:o.shareType?"Share this photo!":"Get more upvotes!"}),(0,F.jsx)("p",{className:"subtitle",children:o.shareType?"Share this fellow Big Photo Hunter's photo for inspiration or just to show friends what you\u2019re seeing around here.":"Share your photo with friends. We\u2019ll show them a special page to give you upvotes for your photo."})]}),(0,F.jsx)("div",{className:"modal_image",children:(0,F.jsx)("img",{src:o.path})}),(0,F.jsxs)("div",{className:"share_content",children:[(0,F.jsx)("span",{className:"label",children:"Pick how you want to share this photo"}),(0,F.jsxs)("ul",{className:"social_share",children:[(0,F.jsx)("li",{children:(0,F.jsx)(Vn,{onClick:function(){return k("Photo Share: WhatsApp")},url:l,windowWidth:700,windowHeight:700,children:(0,F.jsxs)("a",{children:[(0,F.jsx)("img",{src:"/assets/img/icons/icons8-whatsapp.svg"}),(0,F.jsx)("span",{className:"name",children:"Whatsapp"})]})})}),(0,F.jsx)("li",{children:(0,F.jsx)($n,{onClick:function(){return k("Photo Share: X")},url:h,title:"My photo is being hunted on the Big Photo Hunt! Please help me get into the top ten by giving me your Upvote at the link below!",children:(0,F.jsxs)("a",{children:[(0,F.jsx)("img",{src:"/assets/img/icons/twitter.svg"}),(0,F.jsx)("span",{className:"name",children:"Twitter"})]})})}),(0,F.jsx)("li",{children:(0,F.jsx)(Kn,{onClick:function(){return k("Photo Share: Facebook")},url:u,quote:"Hi Everyone! My photo is being hunted on the Big Photo Hunt. Please help me get into the top ten by giving me your Upvote at the link below. Thanks!",appId:"1003491033977816",children:(0,F.jsxs)("a",{children:[(0,F.jsx)("img",{src:"/assets/img/icons/facebook.svg"}),(0,F.jsx)("span",{className:"name",children:"Facebook"})]})})}),(0,F.jsx)("li",{children:(0,F.jsx)(Xn,{onClick:function(){return k("Photo Share: LinkedIn")},url:m,summary:"sssss",children:(0,F.jsxs)("a",{children:[(0,F.jsx)("img",{src:"/assets/img/icons/linkedin.svg"}),(0,F.jsx)("span",{className:"name",children:"LinkedIn"})]})})}),(0,F.jsx)("li",{onClick:function(){return k("Photo Share: Email")},children:(0,F.jsx)(er,{url:v,subject:g,body:b,children:(0,F.jsxs)("a",{children:[(0,F.jsx)("img",{src:"/assets/img/icons/email.svg"}),(0,F.jsx)("span",{className:"name",children:"Email"})]})})})]}),(0,F.jsx)("div",{className:"copy_link",children:(0,F.jsxs)("a",{onClick:w,children:[(0,F.jsx)("img",{src:"/assets/img/icons/link.svg"}),(0,F.jsx)("span",{className:"name",children:n?"Copied":"Or copy link"})]})})]})]})]})})})})})})]})}
2,nr=n(3008),rr=function(e){var t=e.user,n=(0,A.Z)({api_base:"https://api-iam.intercom.io",app_id:"quto1rxu"},t);return(0,F.jsx)(nr.ZP,(0,A.Z)({appID:n.app_id},n))},ir=function(){var e=(0,y.I0)(),t=(0,h.s0)(),n=(0,y.v9)((function(e){return e.Modal.PopupModalMessage})),r=n.popupHeading||"You\u2019re Perfect for Us.",i=n.popupMessage||"You\u2019re in! Don\u2019t forget to check your email Tuesdays for each week's most upvoted photos.",o=n.popupMessage2||"",a=function(){if(e(x.N.setPopupModalState(!1)),"Oops! Upgrade to upload."!=r){if(n.photoID&&!localStorage.getItem("source")){var i={PhotoID:n.photoID,UserID:n.userID},o=we.AES.encrypt(JSON.stringify(i),"siddiqui").toString();t("/otherusers-profile?userdata=".concat(encodeURIComponent(o)))}}else e(x.N.setisPayWallOpen(!0))};return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"backdrop"}),(0,F.jsx)("div",{className:"modal fade bph-modal show",id:"generalLoginModal",tabIndex:-1,"aria-labelledby":"generalLoginModal","aria-hidden":"true",style:{display:"block"},children:(0,F.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,F.jsx)("div",{className:"modal-content",children:(0,F.jsx)("div",{className:"modal-body",children:(0,F.jsx)("div",{className:"onboarding_modal login_modal",children:(0,F.jsxs)("div",{className:"modal_inner",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:a}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,F.jsx)("div",{className:"modal_content",children:(0,F.jsxs)("div",{className:"modal_title",children:[(0,F.jsx)("h2",{className:"title",style:{fontSize:"38px"},children:r}),(0,F.jsx)("p",{className:"subtitle",children:i}),o&&(0,F.jsx)("p",{className:"subtitle",children:o}),(0,F.jsx)("button",{className:"btn",type:"submit",onClick:a,children:"Oops! Upgrade to upload."!==r?"Continue":"Learn More"})]})})]})})})})})})]})},or=n(2189),ar=n(4325),sr=function(e){var t=e.children,n=(0,h.TH)(),r=(0,c.useRef)(!1);if((0,b.a)(localStorage.getItem("Data")).isLoggedIn)return t;var i=n.pathname+n.search;if((0,ln.VB)({type:"deep-link",returnUrl:i}),("/board/new"===n.pathname||n.pathname.startsWith("/board/new/"))&&!r.current){r.current=!0;try{j.Z.getInstance().logEvent("Board Composer Auth Wall",{returnUrl:i,auth_state:"logged_out"})}catch(o){}}return(0,F.jsx)(h.Fg,{to:"/?join=true",replace:!0})},lr=function(e){var t=e.children;(0,h.UO)().photoId,(0,h.TH)();return(0,F.jsx)(sr,{children:t})},cr=n(262),ur=n(4218),dr=n(1003),fr=n(5175),pr=n(7580),hr=n(6054),mr=function(e){var t,n,r=e.onMyOtherWork,i=e.UserPaymentStatus,o=e.PersonalSiteData,a=(0,c.useState)(""),s=(0,p.Z)(a,2),l=s[0],u=s[1],m=(0,c.useState)(""),w=(0,p.Z)(m,2),k=w[0],S=w[1],C=(0,c.useState)(""),_=(0,p.Z)(C,2),E=_[0],N=_[1],A=(0,c.useState)(""),D=(0,p.Z)(A,2),T=D[0],I=D[1],P=(0,c.useState)(""),O=(0,p.Z)(P,2),M=O[0],Z=O[1],R=(0,c.useState)(""),L=(0,p.Z)(R,2),B=L[0],z=L[1],U=(0,c.useState)([]),H=(0,p.Z)(U,2),W=(H[0],H[1]),q=(0,c.useState)([1,2,3]),V=(0,p.Z)(q,2),G=V[0],$=(V[1],(0,h.s0)()),J=(0,y.v9)((function(e){return e.Modal.MeApiState})),K=(0,y.v9)((function(e){return e.Modal.CoverCropImg})),Y=function(e){ie(dr.A.setFollowState(e))};l.state&&(n=(0,ut.V)(l.state,21));var X=localStorage.getItem("Data"),Q=(0,b.a)(X).user_email,ee=(0,y.v9)((function(e){return e.Gallery.GalleryUploadComponentState})),te=(0,y.v9)((function(e){return e.Gallery.SuccessfullyUploadedGalleryPhotos})),ne=function(e){if(window.scrollTo({top:0,behavior:"smooth"}),"vault"!=e)return"review"==e?((0,hr.Z)("Review Door Click",{door:"profile_card"}),void $("/review",{state:{entry:"profile_card"}})):void("ppw"!=e||$(o.website_url?"/manage-p-website":o.template_name&&o.isWebsiteCompletelyCreated?"/waiting-page":"/template-options"));$("/upload-to-storage")},re=function(e){r(),(0,pr.B)(e,"#MygalleryComponent")},ie=(0,y.I0)(),oe=(0,cr.Q)("facebook",l.facebook_link),ae=(0,cr.Q)("instagram",l.instagram_link),se=(0,cr.Q)("twitter",l.twitter_link),le=(0,cr.Q)("website",l.website),ce=l.createdAt,ue=new Date(ce).toLocaleDateString("en-US",{day:"2-digit",month:"2-digit",year:"numeric"}),de=k?Object.values(k).join(", "):"",fe=E?Object.values(E).join(", "):"",pe=T?Object.values(T).join(", "):"";return(0,c.useEffect)((function(){ie(fr.v.setGalleryUploadComponentState({open:!1,BtnDisable:!1}));var e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,an.CS)(Q
2);case 3:t=e.sent,u(t.data.data[0]),S(t.data.data[0].genres_list),N(t.data.data[0].strengths),I(t.data.data[0].meet_for),Z(t.data.data[0].Followers),z(t.data.data[0].Following),W(t.data.data[0].gallery_photos||[]),ie(fr.v.setSuccessfullyUploadedGalleryPhotos(t.data.data[0].gallery_photos||[])),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(0);case 16:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(){return e.apply(this,arguments)}}();e()}),[J]),(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("main",{className:"site-content",id:"main",children:l?(0,F.jsxs)("section",{className:"profile-area",children:[(0,F.jsx)("div",{className:"profile_cover",style:{backgroundImage:"url(".concat(K.cropImgPath?K.cropImgPath:l.compressedCoverPhoto,")")}}),(0,F.jsx)("div",{className:"container",children:(0,F.jsx)("div",{className:"row",children:(0,F.jsxs)("div",{className:"col",children:[(0,F.jsx)("div",{className:"about_profile",children:(0,F.jsxs)("div",{className:"about_profile_inner",children:[(0,F.jsxs)("div",{className:"profile_user",children:[(0,F.jsx)("img",{src:l.photo_url?l.photo_url:"https://ui-avatars.com/api/?name=".concat(l.name,"&size=197&rounded=true&background=01655a&color=fff"),alt:"img",style:{width:"100%",height:"100%"}}),i&&(0,F.jsx)("div",{className:"profile_badge",children:(0,F.jsx)("img",{src:"/assets/img/profile/profile-badge.svg",alt:"badge"})}),(0,F.jsx)("div",{className:"change_img",onClick:function(){ie(x.N.setProfileUploadModalState(!0))},children:(0,F.jsx)("img",{src:"/assets/img/icons/Camera.svg",alt:"img"})})]}),(0,F.jsxs)("div",{className:"profile_details_warp",children:[(0,F.jsxs)("div",{className:"details_profile",children:[(0,F.jsxs)("div",{className:"information",children:[(0,F.jsx)("h4",{className:"name",children:l.name}),(0,F.jsx)("span",{className:"address",children:n}),oe||se||ae||le?(0,F.jsxs)("div",{className:"contact_info",children:[(0,F.jsxs)("ul",{className:"socials",children:[oe&&(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:oe,target:"_blank",children:(0,F.jsx)("img",{src:"/assets/img/icons/facebook.svg",alt:"img"})})}),ae&&(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:ae,target:"_blank",children:(0,F.jsx)("img",{src:"/assets/img/icons/instagram.svg",alt:"img"})})}),se&&(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:se,target:"_blank",children:(0,F.jsx)("img",{src:"/assets/img/icons/twitter.svg",alt:"img"})})})]}),le&&(0,F.jsx)("div",{className:"website",children:(0,F.jsx)(g.rU,{to:le,target:"_blank",children:l.website})})]}):(0,F.jsxs)(g.rU,{to:"/edit-profile",children:[" ",(0,F.jsx)("p",{style:{color:"#0000FF"},onClick:function(){return window.scrollTo(700,700)},children:"Add Your Socials So People Can Find You"})]})]}),(0,F.jsxs)("div",{className:"following_follower",children:[(0,F.jsxs)("span",{children:[(0,F.jsxs)("h6",{className:"title",style:{cursor:"pointer"},children:[(0,F.jsxs)(g.rU,{to:"/people",className:"fllowing",onClick:function(){Y("following")},children:[B.count," Following"]}),(0,F.jsxs)(g.rU,{to:"/people",className:"followers",onClick:function(){Y("follower")},children:[M.count," Followers"]})]}),(0,F.jsxs)("ul",{className:"users",children:[B.data&&B.data.map((function(e,t){return(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/people",onClick:function(){Y("following")},children:(0,F.jsx)("img",{src:e.photo_url?e.photo_url:"https://ui-avatars.com/api/?name=".concat(e.name,"&size=40&rounded=true&background=01655a&color=fff"),alt:"img",style:{borderRadius:"50%"}})})},t)})),M.data&&M.data.map((function(e,t){return(0,F.jsx)("li",{children:(0,F.jsx)(g.rU,{to:"/people",onClick:function(){Y("follower")},children:(0,F.jsx)("img",{src:e.photo_url?e.photo_url:"https://ui-avatars.com/api/?name=".concat(e.name,"&size=40&rounded=true&background=01655a&color=fff"),alt:"img",style:{borderRadius:"50%"}})})},t)}))]})]}),(0,F.jsxs)(g.rU,{to:"/hunt-score",className:"hunt-score",children:[(0,F.jsx)("span",{className:"icon",children:(0,F.jsx)("img",{src:"/assets/img/hunt-page/hunt-score.svg",alt:""})}),(0,F.jsxs)("span",{children:[(0,F.jsx)("span",{className:"label",children:"Hunt Score"}),(0,F.jsx)("span",{className:"score",children:l.total_hunt_scores})]})]})]})]}),(0,F.jsxs)("div",{className:"profile_buttons",children:[(0,F.jsx)(g.rU,{className:"btn btn-edit",to:"/edit-profile",children:"Edit Profile"}),(0,F.jsxs)("a",{onClick:function(){ie(x.N.setCoverPhotoUploadModalState(!0))},className:"btn btn-edit",children:[(0,F.jsx)("img",{src:"/assets/img/icons/Camera.svg",alt:"img"}),"Edit Cover"]})]})]})]})}),(0,F.jsxs)("div",{className:"about_profile_desc",children:[(0,F.jsxs)("div",{className:"profile_desc_text",children:[l.about_me&&"undefined"!==l.about_me&&(0,F.jsx)("p",{children:l.about_me}),Be.T&&(0,F.jsxs)("div",{className:"ryp-door-card",onClick:function(){return ne("review")},children:[(0,F.jsx)("div",{className:"ryp-door-icon","aria-hidden":"true",children:(0,F.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,F.jsx)("path",{d:"M12 3l1.9 4.8L19 9l-4 3.4L16.2 18 12 15.2 7.8 18 9 12.4 5 9l5.1-1.2L12 3z",fill:"none",stroke:"#8A7320",strokeWidth:"1.4",strokeLinejoin:"round"})})}),(0,F.jsxs)("div",{className:"ryp-door-text",children:[(0,F.jsx)("p",{className:"ryp-door-title",children:"Get your free photo review"}),(0,F.jsx)("p",{className:"ryp-door-sub",children:"An honest read from Ken-Bot on any of your photos \u2014 six scores, your percentile, and the one fix that moves you most."})]}),(0,F.jsxs)("button",{type:"button",className:"ryp-door-btn",children:[(0,F.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,F.jsx)("path",{d:"M12 3l1.9 4.8L19 9l-4 3.4L16.2 18 12 15.2 7.8 18 9 12.4 5 9l5.1-1.2L12 3z",fill:"none",stroke:"#05081E",strokeWidth:"1.5",strokeLinejoin:"round"})}),"Review Your Photo"]})]})]}),(0,F.jsxs)("div",{className:"profile_system_desc",style:{minHeight:null!==l&&void 0!==l&&l.about_me?"":"206px"},children:[(0,F.jsxs)("div",{className:"profile_system_desc_inner",children:[l.camera_brand&&"null"!==l.camera_brand&&(0,F.jsxs)("div",{className:"system_item",children:[(0,F.jsx)("span",{children:"Camera System:"}),(0,F.jsx)("p",{children:l.camera_brand.charAt(0).toUpperCase()+l.camera_brand.slice(1)})]}),(0,F.jsxs)("div",{className:"system_item",children:[(0,F.jsx)("span",{children:"Member since:"}),(0,F.jsx)("p",{children:ue})]}),(0,F.jsxs)("div",{className:"system_item",children:[(0,F.jsx)("span",{children:"I'm Good At:"}),fe?(0,F.jsx)("p",{children:fe}):(0,F.jsx)(g.rU,{to:"/edit-profile",style:{color:"blue"},children:"Answer this question"})]}),de&&(0,F.jsxs)("div",{className:"system_item",children:[(0,F.jsx)("span",{children:"Genres:"}),(0,F.jsx)("p",{children:de})]}),l.photo_assistance&&"null"!==l.photo_assistance&&(0,F.jsxs)("div",{className:"system_item",children:[(0,F.jsx)("span",{children:"Why I'm Here:"}),(0,F.jsx)("p",{children:l.photo_assistance})]}),(0,F.jsxs)("div",{className:"system_item",children:[(0,F.jsx)("span",{children:"Let\u2019s Meet For:"}),pe?(0,F.jsx)("p",{children:pe}):(0,F.jsx)(g.rU,{to:"/edit-profile",style:{color:"blue"},children:"Answer this question"})]})]}),(0,F.jsx)("div",{className:"others_work_content",children:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("p",{className:"title",children:(0,F.jsx)("span",{children:"Add photos to your Personal Gallery for members to 
2see:"})}),(0,F.jsxs)("ul",{className:"o_work_images",children:[(0,F.jsx)("button",{style:{border:"none",backgroundColor:"transparent",filter:ee.BtnDisable?"opacity(0.5)":"none"},disabled:ee.BtnDisable,children:(0,F.jsx)("li",{className:"work_img uploading",onClick:function(e){(0,pr.B)(e,"#MygalleryComponent"),r(),ie(fr.v.setGalleryUploadComponentState({open:!0,BtnDisable:!0})),ie(fr.v.setProfileInfoPlusBtnIsClick(!0)),ie(fr.v.setViewGallery({mainGallery:!1,manageGallery:!1})),j.Z.getInstance().logEvent("Photo Gallery Add Request")},style:{cursor:ee.BtnDisable?"default":"pointer"},children:(0,F.jsx)("span",{children:"+"})})}),null===(t=te.length>0?te.length<3?[].concat((0,v.Z)(te),(0,v.Z)(G)):te:G)||void 0===t?void 0:t.slice(0,3).map((function(e,t){return(0,F.jsx)("li",{onClick:re,className:"".concat(e.compressedImageId||e.url?"work_img uploaded":"work_img place"),children:(0,F.jsx)("img",{src:e.compressedImageId?"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_400,f_auto,q_auto/Resized_Photos/".concat(e.compressedImageId):e.url?e.url:"/assets/img/others-work/o-work-place.jpg",alt:"Image"})},t)}))]})]})})]})]})]})})})]}):(0,F.jsx)(ur.Z,{})})})},vr=function(e){var t=(0,y.I0)();return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("section",{className:"photo-feed-section profile-no-photo",children:(0,F.jsx)("div",{className:"container",children:(0,F.jsx)("div",{className:"row",children:(0,F.jsx)("div",{className:"col-md-12",children:(0,F.jsxs)("div",{className:"feed_content",children:[e.showMenu&&(0,F.jsxs)("ul",{className:"heading_tabs",role:"tablist",children:[(0,F.jsx)("li",{className:"active",role:"presentation","data-bs-toggle":"tab","data-bs-target":"#profile",children:"My Hunted Photos"}),(0,F.jsx)("li",{role:"presentation","data-bs-toggle":"tab","data-bs-target":"#upvotes",children:"My Upvotes"}),(0,F.jsx)("li",{role:"presentation","data-bs-toggle":"tab","data-bs-target":"#gallery",children:"My Personal Gallery"})]}),(0,F.jsxs)("div",{className:"tab-content",id:"profileTabContent",children:[(0,F.jsx)("div",{className:"tab-pane fade show ".concat(e.myphoto?"active":""," "),id:"profile",role:"tabpanel",children:(0,F.jsxs)("div",{className:"no_photo_content",children:[(0,F.jsx)("img",{src:"/assets/img/icons/no-photo.svg",alt:"img"}),(0,F.jsx)("h4",{className:"title",children:"Looks like you don\u2019t have any photos hunted yet"}),(0,F.jsx)("p",{children:"Post your first photo to start being a part of the community."}),(0,F.jsx)("div",{style:{marginTop:"20px"},children:(0,F.jsx)("button",{className:"btn",onClick:function(){t(x.N.setPhotoUploadModalState(!0)),t(x.N.setPhotoUploadType("hunted_photo")),t(x.N.setisQueued({queue:!1}))},children:"Hunt your first photo\u200c"})})]})}),(0,F.jsx)("div",{className:"tab-pane fade show ".concat(e.Upvotephoto?"active":""," "),id:"upvotes",role:"tabpanel",children:(0,F.jsxs)("div",{className:"no_photo_content",children:[(0,F.jsx)("img",{src:"/assets/img/icons/no-photo.svg",alt:"img"}),(0,F.jsx)("h4",{className:"title",children:"Looks like you haven\u2019t given anyone an upvote yet."}),(0,F.jsx)("p",{children:"Give an upvote to start celebrating your favorite photographers."}),(0,F.jsx)("div",{children:(0,F.jsx)(g.rU,{to:"/",className:"btn",children:"Give an upvote"})})]})})]})]})})})})})})},gr=n(2932),yr=n(1101),br=n(4610),xr=n(5471),wr=n(3956),kr=n(1854),Sr=0,jr=function(){var e,t,n,r=(0,h.TH)(),i=new URLSearchParams(r.
2search).get("tab"),o=(0,c.useState)("upvotes"!==i&&"gallery"!==i),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useState)("upvotes"===i),m=(0,p.Z)(u,2),C=m[0],_=m[1],E=(0,c.useState)("gallery"===i),N=(0,p.Z)(E,2),D=N[0],T=N[1],I=(0,c.useState)([]),P=(0,p.Z)(I,2),O=P[0],M=P[1],Z=(0,c.useState)([]),R=(0,p.Z)(Z,2),L=R[0],B=R[1],z=(0,c.useState)(!1),U=(0,p.Z)(z,2),H=U[0],W=U[1],q=(0,c.useState)(!0),V=(0,p.Z)(q,2),G=V[0],$=V[1],J=(0,c.useState)(""),K=(0,p.Z)(J,2),Y=K[0],X=K[1],Q=(0,c.useState)([]),ee=(0,p.Z)(Q,2),te=ee[0],ne=ee[1],re=(0,c.useState)(!1),ie=(0,p.Z)(re,2),oe=ie[0],ae=ie[1],se=(0,c.useState)(!1),le=(0,p.Z)(se,2),ce=le[0],ue=le[1],de=(0,c.useState)(""),fe=(0,p.Z)(de,2),pe=fe[0],he=fe[1],me=(0,c.useRef)(),ve=(0,c.useState)(br.m),ge=(0,p.Z)(ve,2),ye=ge[0],be=ge[1],we=(0,c.useRef)(!1),ke=(0,c.useRef)(0),je=(0,c.useState)(!1),Ce=(0,p.Z)(je,2),_e=Ce[0],Ee=Ce[1],Ne=(0,y.v9)((function(e){return e.Modal.StateAfterUploadPhoto})),Ae=(0,y.v9)((function(e){return e.PayWall.UserPaymentStatus})),De=(0,y.v9)((function(e){return e.PayWall.PersonalSite})),Te=(0,y.v9)((function(e){return e.Modal.lastGeneratedPhotoId})),Ie=(0,y.v9)((function(e){return e.Modal.generationStartedPhotoId})),Pe=(0,y.I0)(),Fe=function(){T(!1),l(!1),_(!0),Pe(fr.v.setGalleryUploadComponentState({open:!1,BtnDisable:!1})),Me("/profile?tab=upvotes")},Oe=function(){T(!0),l(!1),_(!1),Pe(fr.v.setViewGallery({mainGallery:!0,manageGallery:!1})),Pe(fr.v.setGalleryUploadComponentState({open:!1,BtnDisable:!1})),Ee(!_e),Me("/profile?tab=gallery")},Me=(0,h.s0)();(0,c.useLayoutEffect)((function(){window.scrollTo({top:0,left:0,behavior:"instant"})}),[]),(0,c.useEffect)((function(){"gallery"==i?Oe():"upvotes"==i&&Fe()}),[i]);var Ze=localStorage.getItem("Data"),Re=(0,b.a)(Ze),Le=Re.token,Be=Re.Display_UserSocailPhoto,ze=Re.useDisplay_name,Ue=Re.userid,He=Re.isLoggedIn;var We=function(){X("leader_board"),Sr=0,$(!0)},qe=function(){X("by_recent_photos"),Sr=0,$(!0)};(0,c.useEffect)((function(){xe.ZP.pageview(window.location.pathname+window.location.search),window.innerWidth<=500&&ue(!0)}),[]);var Ve=function(e){if(e[0].isIntersecting){if(we.current)return;we.current=!0,Sr+=10;var t=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return W(!0),e.prev=1,e.next=4,(0,k._b)("by_user",Y,Sr,Le,C);case 4:t=e.sent,n=t.data.data.results,B((function(e){return[].concat((0,v.Z)(e),(0,v.Z)(n))})),(0==n.length||n.length<10)&&$(!1),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(1);case 12:return e.prev=12,W(!1),we.current=!1,e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[1,10,12,16]])})));return function(){return e.apply(this,arguments)}}();t()}};(0,c.useEffect)((function(){var e=new IntersectionObserver(Ve,{root:null,threshold:0});return me.current&&e.observe(me.current),function(){me.current&&e.unobserve(me.current)}}),[Y,O]);var Ge,$e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=pe,he(""),M((function(e){return e.map((function(e){return e.id===t?(0,A.Z)((0,A.Z)({},e),{},{aiReportReadyReminder:!0}):e}))})),e.prev=3,n={photoId:t},e.next=7,(0,wr._I)(n);case 7:e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),console.error("AI Report reminder email failed:",e.t0),M((function(e){return e.map((function(e){return e.id===t?(0,A.Z)((0,A.Z)({},e),{},{aiReportReadyReminder:!1}):e}))}));case 13:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){we.current=!0,M([]),B([]),ae(!1);var e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $(!0),W(!0),e.prev=2,e.next=5,(0,k._b)("by_user",Y,0,Le,C);case 5:t=e.sent,M(t.data.data.results),t.data.data.results.length<10?$(!1):$(!0),0==t.data.data.results.length&&ae(!0),Sr=0,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(2);case 14:return e.prev=14,W(!1),we.current=!1,e.finish(14);case 18:case"end":return e.stop()}}),e,null,[[2,12,14,18]])})));return function(){return e.apply(this,arguments)}}();e()}),[Y,Ne,C,s]),(0,c.useEffect)((function(){var e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={method:"post",url:"".concat("https://bigbesos.com","/photo/get_photos_count"),headers:{Authorization:"Bearer ".concat(Le)}},Se.Z.request(t).then((function(e){var t=e.data.data;ne(t[0])})).catch((function(e){}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[Ne]),Ge=0===Sr?(0,v.Z)(O):[].concat((0,v.Z)(O),(0,v.Z)(L));var Je=pe?null===(e=Ge)||void 0===e?void 0:e.find((function(e){return e.id===pe})):null,Ke=null!==(t=null===Je||void 0===Je?void 0:Je.aiReportReadyReminder)&&void 0!==t&&t;(0,c.useEffect)((function(){Ge&&(s||C)&&Pe(S.H.setLightBoxState({PhotoArr:Ge,LoginUserPhotos:!!s}))}),[Ge]),(0,c.useEffect)((function(){if(Te){var e=function(e){return e.map((function(e){return e.id===Te?(0,A.Z)((0,A.Z)({},e),{},{aiReportGenerated:!0,aiReportOnItSeen:!0}):e}))};M((function(t){return e(t)})),B((function(t){return e(t)}))}}),[Te]),(0,c.useEffect)((function(){if(Ie){var e=function(e){return e.map((function(e){return e.id===Ie?(0,A.Z)((0,A.Z)({},e),{},{aiReportOnItSeen:!0}):e}))};M((function(t){return e(t)})),B((function(t){return e(t)}))}}),[Ie]);var Ye=function(e){e!==ye&&(be(e),(0,br.w)(e),j.Z.getInstance().logEvent("Profile Photo View Changed",{view:e,tab:C?"upvotes":"hunted",profile_type:"own"}))},Xe=function(e){var t;Pe(S.H.setLightBoxActiveImgId(null!==(t=e.photo_id)&&void 0!==t?t:e.id)),Pe(x.N.setisLightboxModalOpen(!0)),j.Z.getInstance().logEvent("Expand Photo")};return(0,c.useEffect)((function(){ke.current=0}),[ye,Y,s,C]),(0,c.useEffect)((function(){if("grid"===ye&&(s||C)&&G&&!H&&!we.current&&!(ke.current>=5)&&0!==Ge.length){document.documentElement.scrollHeight<=window.innerHeight+200&&(ke.current+=1,Ve([{isIntersecting:!0}]))}}),[Ge.length,ye,G,H,s,C]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(mr,{onMyOtherWork:function(e){Oe()},UserPaymentStatus:Ae,PersonalSiteData:De}),(0,F.jsx)("section",{className:"photo-feed-section my-profile",id:"MygalleryComponent",children:(0,F.jsx)("div",{className:"container",children:(0,F.jsx)("div",{className:"row",children:(0,F.jsx)("div",{className:"".concat(D?"col-12":"col-md-9 col-lg-8"),children:(0,F.jsxs)("div",{className:"feed_content",children:[(0,F.jsxs)("ul",{className:"heading_tabs",role:"tablist",children:[(0,F.jsx)("li",{className:"".concat(s?"active":""),role:"presentation","data-bs-toggle":"tab","data-bs-target":"#profile","aria-selected":"true",onClick:function(){T(!1),l(!0),_(!1),Pe(fr.v.setGalleryUploadComponentState({open:!1,BtnDisable:!1})),Me("/profile")},children:"My Hunted Photos"}),(0,F.jsx)("li",{className:"".concat(C?"active":""),role:"presentation","data-bs-toggle":"tab","data-bs-target":"#upvotes","aria-selected":"false",tabIndex:-1,onClick:Fe,children:"My Upvotes"}),(0,F.jsx)("li",{className:"".concat(D?"active":""),role:"presentation","data-bs-toggle":"tab","data-bs-target":"#otherWork",onClick:Oe,children:"My Personal Gallery"})]}),(0,F.jsxs)("div",{className:"tab-content",id:"profileTabContent",children:[s&&(0,F.jsxs)("div",{className:"",id:"profile",role:"tabpanel",children:[te.photo_count>0&&(0,F.jsxs)("div",{className:"feed_content_heading d-flex flex-column flex-lg-row align-items-center justify-content-center justify-content-lg-between flex-wrap",children:[(0,F.jsx)("h3",{className:"title",children:"My Hunted Photos"}),(0,F.jsxs)("div",{className:"feed_heading_actions d-flex align-items-center",children:[(0,F.jsx)(gr.Z,{view:ye,onChange:Ye}),(0,F.jsxs)("ul",{className:"feedFilter dropdown",children:[(0,F.jsx)("li",{className:"activated",children:"Most Recent "}),(0,F.jsx)("img",{src:"/assets/img/icons/arrow-down.svg",alt:"img"}),(0,F.jsxs)("ul",{className:"filter_lists",children:[(0,F.jsx)("li",{className:"".concat("leader_board"!==Y?"active":""),children:(0,F.jsx)(g.rU,{onClick:qe,children:"Most Recent "})}),(0,F.jsx)("li",{className:"".concat("leader_board"==Y?"active":""),children:(0,F.jsx)(g.rU,{onClick:We,children:"By Upvotes"})})]})]})]})]}),"feed"===ye?(0,F.jsx)("div",{className:"feed_items text-center text-md-start",children:Ge.map((function(e){return(0,F.jsx)(w.Z,{img:ce?"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_700,f_auto,q_auto/Resized_Photos/".concat(e.compressedImageId):e.photo_url,PostFullData:e,postId:e.id,isAdultContent:e.is_adult_content,TotalVotes:e.total_votes,voted:e.is_vote,Name:e.name,postedDate:e.photo_posted_date,Userid:e.user_id,TotalComments:e.total_comments,First5CommentsPhotoList:e.commenters_info,Userlocation:e.state,UserPhoto:e.user_photo_url,First1Comments:e.comments,usertoken:Le,description:e.description,feedback:e.feedback_type,metadata:e.metadata,loginUserid:Ue,isLoggedIn:He,show:!0,sharebtn:!0,displaySocailUserPhoto:Be,display_name:ze,UserPaymentStatus:Ae,boostedWeeklyPhoto:e.boostedWeeklyPhoto,setAiReportNotReadyPhotoID:he,currentWeekHunted:null===e||void 0===e?void 0:e.currentWeekHunted,weeklyStanding:e.weekly_standing},e.id)}))}):(0,F.jsx)(yr.Z,{photos:Ge,onThumbClick:Xe,isLoggedIn:He}),oe&&(0,F.jsx)(vr,{showMenu:!1,myphoto:!0,Upvotephoto:!1})]}),C&&(0,F.jsxs)("div",{className:"",id:"upvotes",role:"tabpanel",children:[te.upvote_count>0&&(0,F.jsxs)("div",{className:"feed_content_heading d-flex flex-column flex-lg-row align-items-center justify-content-center justify-content-lg-between flex-wrap",children:[(0,F.jsx)("h3",{className:"title",children:"My Upvotes"}),(0,F.jsxs)("div",{className:"feed_heading_actions d-flex align-items-center",children:[(0,F.jsx)(gr.Z,{view:ye,onChange:Ye}),(0,F.jsxs)("ul",{className:"feedFilter dropdown",children:[(0,F.jsx)("li",{className:"activated",children:"Most Recent "}),(0,F.jsx)("img",{src:"/assets/img/icons/arrow-down.svg",alt:"img"}),(0,F.jsxs)("ul",{className:"filter_lists",children:[(0,F.jsx)("li",{className:"".concat("leader_board"!==Y?"active":""),children:(0,F.jsx)(g.rU,{onClick:qe,children:"Most Recent "})}),(0,F.jsx)("li",{className:"".concat("leader_board"==Y?"active":""),children:(0,F.jsx)(g.rU,{onClick:We,children:"By Upvotes"})})]})]})]})]}),"feed"===ye?(0,F.jsx)("div",{className:"feed_items text-center text-md-start",children:null===(n=Ge)||void 0===n?void 0:n.map((function(e){return(0,F.jsx)(w.Z,{img:ce?"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_700,f_auto,q_auto/Resized_Photos/".concat(e.compressedImageId):e.photo_url,postId:e.photo_id,isAdultContent:e.is_adult_content,TotalVotes:e.total_votes,voted:e.is_vote,Name:e.name,postedDate:e.photo_posted_date,TotalComments:e.total_comments,Userlocation:e.state,UserPhoto:e.user_photo_url,Userid:e.user_id,usertoken:Le,First1Comments:e.comments,description:e.description,feedback:e.feedback_type,metadata:e.metadata,is_follow:e.is_follow,loginUserid:Ue,isLoggedIn:He,displaySocailUserPhoto:Be,display_name:ze,UserPaymentStatus:Ae,boostedWeeklyPhoto:e.boostedWeeklyPhoto},e.id)}))}):(0,F.jsx)(yr.Z,{photos:Ge,onThumbClick:Xe,isLoggedIn:He}),oe&&(0,F.jsx)(vr,{showMenu:!1,myphoto:!1,Upvotephoto:!0})]}),D&&(0,F.jsx)(xr.Z,{usertoken:Le,ReloadGalleryPhotolist:_e,UserPaymentStatus:Ae}),G&&H&&(s||C)&&(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,F.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,F.jsx)("span",{className:"sr-only"})})})]})]})})})})}),G&&Ge.length>0&&(s||C)&&(0,F.jsx)("div",{ref:me}),pe&&(0,F.jsx)(kr.Z,{reminderAlreadySet:Ke,onClose:function(){return he("")},onEmailReminder:$e}),function(e){var t=document.createElement("script");t.src=e,t.async=!0,document.body.appendChild(t)}("/assets/js/main.js")]})},Cr=n(8290),_r=function(){return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("div",{className:"pt-80 pb-40",style:{marginBottom:"40px"},children:(0,F.jsx)("div",{className:"container",children:(0,F.jsxs)("div",{className:"profile-wrapper my-profile",children:[(0,F.jsx)("div",{className:"profile-thumb",children:(0,F.jsx)(Cr.Z,{circle:!0,height:"100%",width:"100%"})}),(0,F.jsxs)("div",{className:"profile-content",children:[(0,F.jsx)("h4",{className:"title ",children:(0,F.jsx)(Cr.Z,{width:"50%"})}),(0,F.jsxs)("p",{className:"font--md ",children:[(0,F.jsx)(Cr.Z,{width:"20%"}),(0,F.jsx)(Cr.Z,{width:"10%"})]})]})]})})})})},Er=function(e){var t=(0,c.useState)(e.isfollow),n=(0,p.Z)(t,2),r=n[0],i=n[1];(0,c.useEffect)((function(){i(e.isfollow)}),[e.isfollow]);var o=e.UserName;o=e.UserName&&o.includes(" ")?o.split(" ")[0]:e.UserName;var a,s=e.genresList?Object.values(e.genresList).slice(0,3).join(", "):"";!e.myProfile&&e.UserLocation&&(a=(0,ut.V)(e.UserLocation,16));var l=(0,y.I0)(),u=(0,y.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),h=function(){l(Ke.$.setSocketReceiverUserID(e.UserId)),l(Ke.$.setReloadNotificationSenderFn(!u))},m=function(){var t=(0,f.Z)((0,d.Z)().mark((function t(n){return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i(!r),t.prev=1,t.next=4,(0,pt.P)(e.UserId,!r,e.usertoken,e.LoginUserId,h);case 4:t.next=8;break;case 6:t.prev=6,t.t0=t.catch(1);case 8:case"end":return t.stop()}}),t,null,[[1,6]])})));return function(e){return t.apply(this,arguments)}}();return(0,F.jsx)(F.Fragment,{children:e.myProfile?(0,F.jsx)("section",{className:"followers_page_header",children:(0,F.jsx)("div",{className:"container",children:(0,F.jsx)("div",{className:"row",children:(0,F.jsxs)("div",{className:"col",children:[(0,F.jsxs)("h4",{className:"title",children:["Your People, ",e.loginUserName.split(" ")[0]]}),(0,F.jsx)("div",{className:"desc",children:(0,F.jsxs)("p",{children:["Follow members you don\u2019t want to lose track of, you find inspiring or you just want to connect with as we grow. ",(0,F.jsx)(g.rU,{style:{color:"blue"},to:"/invite-friend",children:"Invite your friends"}),"  for more followers and Hunt Score points."]})})]})})})}):(0,F.jsx)("div",{className:"pt-80 pb-40",style:{paddingTop:"80px",paddingBottom:"40px"},children:o?(0,F.jsx)("div",{className:"container",children:(0,F.jsxs)("div",{className:"profile-wrapper",children:[(0,F.jsxs)("div",{className:"profile-left",children:[(0,F.jsx)("div",{className:"profile-thumb",style:{backgroundImage:"url(".concat(e.UserPhoto||"",")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:"50%",cursor:"pointer"},children:!e.UserPhoto&&(0,F.jsx)("img",{src:"https://ui-avatars.c
2om/api/?name=".concat(e.UserName,"&size=40&rounded=true&background=01655a&color=fff"),alt:"img"})}),(0,F.jsxs)("div",{className:"profile-content",children:[(0,F.jsxs)("h4",{className:"title ",children:["Who's Following ",o,"?"]}),(0,F.jsx)("p",{className:"font--md  text-title mb-0",children:e.UserName}),(0,F.jsx)("p",{className:"font--sm  text-body",children:a}),(0,F.jsxs)("ul",{className:"font--md ",children:[e.cameraBrand&&"null"!==e.cameraBrand&&(0,F.jsxs)("li",{children:[(0,F.jsx)("span",{className:"text-title",children:"Camera:"}),(0,F.jsx)("span",{className:"text-body",children:e.cameraBrand})]}),s&&(0,F.jsxs)("li",{children:[(0,F.jsx)("span",{className:"text-title",children:"Genres:"}),(0,F.jsx)("span",{className:"text-body",children:s})]})]}),(0,F.jsx)("button",{className:"btn btn--base btn--180 mt-3 d-md-none",children:"Follow"})]})]}),(0,F.jsx)("div",{className:"profile-right",children:r?(0,F.jsx)("button",{className:"btn btn--base btn--unfollow btn--180 ",onClick:m,style:{minWidth:"160px"},children:"Following"}):(0,F.jsx)("button",{className:"btn btn--base btn--180 ",onClick:m,style:{minWidth:"160px"},children:"Follow"})})]})}):(0,F.jsx)(_r,{})})})},Nr=function(e){var t,n,r=(0,c.useState)(e.isfollow),i=(0,p.Z)(r,2),o=i[0],a=i[1];(0,ft.p)(e.createdAt);e.FollowerLocation&&(n=(0,ut.V)(e.FollowerLocation,16));var s=(0,y.v9)((function(e){return e.Follow.ClickedFollowCardInfo}));(0,c.useEffect)((function(){s.id==e.FollowerId&&(a(s.is_follow),l(dr.A.setClickedFollowCardInfo({})))}),[s]);var l=(0,y.I0)(),u=(0,y.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),m=function(){l(Ke.$.setSocketReceiverUserID(e.FollowerId)),l(Ke.$.setReloadNotificationSenderFn(!u))},v=e.genresList?Object.values(e.genresList).slice(0,3).join(", "):"";(0,c.useEffect)((function(){a(e.isfollow)}),[e.isfollow]);var b=(0,h.s0)(),x=function(t){if(t.preventDefault(),e.LoginUserId==e.FollowerId)b("/profile");else{var n={PhotoID:"",UserID:e.FollowerId},r=we.AES.encrypt(JSON.stringify(n),"siddiqui").toString();b("/otherusers-profile?userdata=".concat(encodeURIComponent(r)))}window.scrollTo(0,0)},w=function(){var t=(0,f.Z)((0,d.Z)().mark((function t(n){var r;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a(!o),r={camera_brand:e.cameraBrand,createdAt:e.createdAt,genres_list:e.genresList,id:e.FollowerId,is_follow:!o,name:e.FollowerName,photo_url:e.FollowerPhoto,photos:e.photosArr,state:e.FollowerLocation,usertoken:e.usertoken,LoginUserId:e.LoginUserId},l(dr.A.setClickedFollowCardInfo(r)),o?e.GetFollowCardInfoFn(r,"remove",e.FollowingCard):e.GetFollowCardInfoFn(r,"add",e.FollowingCard),t.prev=4,t.next=7,(0,pt.P)(e.FollowerId,!o,e.usertoken,e.LoginUserId,m,e.isFollowBack?"Follow Back":"Follow");case 7:t.sent,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(4);case 12:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(e){return t.apply(this,arguments)}}();return(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{className:"user_profile fadeInDown wow",children:[(0,F.jsxs)("div",{className:"profile_top",children:[(0,F.jsx)("div",{className:"profile_img",children:(0,F.jsx)(g.rU,{onClick:x,className:"memberUser_img",style:{backgroundImage:"url(".concat(e.FollowerPhoto||"",")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:"50%",cursor:"pointer",display:"block",height:"60px",width:"60px"},children:!e.FollowerPhoto&&(0,F.jsx)("img",{src:"https://ui-avatars.com/api/?name=".concat(e.FollowerName,"&size=60&rounded=true&background=01655a&color=fff"),alt:"img"})})}),(0,F.jsxs)("ul",{className:"camera_infos",children:[e.cameraBrand&&"null"!==e.cameraBrand&&(0,F.jsxs)("li",{children:[(0,F.jsx)("span",{children:"Camera: "}),e.cameraBrand]}),v&&(0,F.jsxs)("li",{children:[(0,F.jsx)("span",{children:"Genres:"})," ",v]})]})]}),(0,F.jsxs)("div",{className:"profile_middle",children:[(0,F.jsxs)("ul",{className:"user_info",children:[(0,F.jsx)("li",{className:"name",style:{cursor:"pointer"},onClick:x,children:e.FollowerName}),(0,F.jsx)("li",{className:"tagline",children:n})]}),e.LoginUserId!==e.FollowerId&&(0,F.jsx)("div",{children:o?(0,F.jsx)("button",{className:"btn btn--base btn--unfollow follow-card-following-btn",onClick:w,children:"Following"}):(0,F.jsx)("button",{className:"btn btn--base  follow-card-follow-btn",onClick:w,children:e.isFollowBack?"Follow Back":"Follow"})})]}),e.photosArr&&e.photosArr.length>0?(0,F.jsx)("div",{className:"profile_bottom",children:(0,F.jsx)("ul",{className:"feature_images",children:null===(t=e.photosArr)||void 0===t?void 0:t.map((function(t,n){return(0,F.jsx)("div",{children:(0,F.jsx)("li",{onClick:function(){var n;n=t.id,l(dr.A.setFollowerImgmodalUserInfo({User_ID:e.FollowerId,usertoken:e.usertoken,photo_id:n,LoginUserId:e.LoginUserId})),l(dr.A.setFollowerimgModalOpen(!0))},children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_220,f_auto,q_auto/Resized_Photos/".concat(e.photosArr[n].c
2ompressedImageId),alt:"img",className:"img-fluid"})})},n)}))})}):(0,F.jsx)("div",{className:"profile_bottom",children:(0,F.jsx)("span",{className:"no_feature_images",children:"This Member hasn\u2019t posted a photo yet."})})]})})},Ar=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t,n){var r,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={user_id:t},i={Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},e.next=5,Se.Z.post("".concat("https://bigbesos.com","/follow/upvoted_Photos"),r,{headers:i});case 5:return o=e.sent,e.abrupt("return",o);case 9:throw e.prev=9,e.t0=e.catch(0),e.t0;case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}(),Dr=(n(4180),function(){var e=(0,c.useState)(null),t=(0,p.Z)(e,2),n=t[0],r=t[1],i=(0,c.useState)([]),o=(0,p.Z)(i,2),a=o[0],s=o[1],l=(0,c.useState)(""),u=(0,p.Z)(l,2),m=u[0],v=u[1],b=(0,c.useState)(""),x=(0,p.Z)(b,2),w=x[0],k=x[1],S=(0,c.useState)(""),j=(0,p.Z)(S,2),C=j[0],_=j[1],E=(0,c.useState)(!1),N=(0,p.Z)(E,2),A=N[0],D=N[1],T=(0,c.useState)(10),I=(0,p.Z)(T,2),P=I[0],O=I[1],M=(0,c.useState)(!0),Z=(0,p.Z)(M,2),R=Z[0],L=Z[1];(0,c.useEffect)((function(){window.innerWidth<=500&&D(!0)}),[]);var B=(0,h.s0)(),z=function(e){if(e.preventDefault(),q.LoginUserId==q.User_ID)B("/profile");else{var t={PhotoID:"",UserID:q.User_ID},n=we.AES.encrypt(JSON.stringify(t),"siddiqui").toString();B("/otherusers-profile?userdata=".concat(encodeURIComponent(n)))}W(dr.A.setFollowerimgModalOpen(!1)),window.scrollTo(0,0)},U=(0,y.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),H=function(){W(Ke.$.setSocketReceiverUserID(m.id)),W(Ke.$.setReloadNotificationSenderFn(!U))},W=(0,y.I0)(),q=(0,y.v9)((function(e){return e.Follow.FollowerImgmodalUserInfo})),V=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),_(!C),e.prev=3,e.next=6,(0,pt.P)(m.id,!C,q.usertoken,q.LoginUserId,H);case 6:e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){var e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ar(q.User_ID,q.usertoken);case 3:n=e.sent,s(n.data.data[0].photos),v(n.data.data[0]),k(n.data.data[0].genres_list?Object.values(n.data.data[0].genres_list).slice(0,3).join(", "):""),_(n.data.data[0].is_follow),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}();e()}),[q]);var G=(0,c.useRef)(null);(0,c.useEffect)((function(){if(G.current&&a){var e=a.findIndex((function(e){return e.id===q.photo_id}));-1!==e&&G.current.swiper.slideTo(e)}}),[q.photo_id,a]),(0,c.useEffect)((function(){var e=function(){var e=window.innerWidth<=767?5:10;O(e)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]);var $=function(){W(dr.A.setFollowerimgModalOpen(!1))},J=(0,gt.Z)($);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"backdrop"}),(0,F.jsx)("div",{className:"light-box",children:(0,F.jsx)("div",{className:"modal fade show",id:"exampleModalNew1",tabIndex:-1,"aria-labelledby":"exampleModalLabel","aria-hidden":"true",style:{display:"block"},children:(0,F.jsx)("div",{className:"modal-dialog modalAnimation",children:(0,F.jsxs)("div",{className:"modal-content",ref:J,children:[(0,F.jsx)("div",{className:"modal-header",style:{display:"flex",alignItems:"center",justifyContent:"flex-end",border:0,padding:"0px 0"},children:(0,F.jsx)("button",{type:"button",className:"btn-close opacity-100","data-bs-dismiss":"modal","aria-label":"Close",onClick:$})}),m?(0,F.jsxs)("div",{className:"modal-body",children:[m&&(0,F.jsx)("div",{className:"profile-card",children:(0,F.jsxs)("div",{className:"profile-card-inner",children:[(0,F.jsxs)("div",{className:"profile-card-top-content",children:[(0,F.jsx)("div",{className:"profile-card-thumb",children:(0,F.jsx)(g.rU,{onClick:z,className:"memberUser_img",style:{backgroundImage:"url(".concat(m.profile_pic||"",")"),backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:"50%",cursor:"pointer",display:"block",height:"60px",width:"60px"},children:!m.profile_pic&&(0,F.jsx)("img",{src:"https://ui-avatars.c
2om/api/?name=".concat(m.name,"&size=60&rounded=true&background=01655a&color=fff")})})}),(0,F.jsx)("a",{children:(0,F.jsx)("div",{className:"profile-card-content",children:(0,F.jsxs)("ul",{children:[m.camera_brand&&"null"!==m.camera_brand&&(0,F.jsxs)("li",{children:[(0,F.jsx)("span",{className:"title",children:"Camera: "}),(0,F.jsx)("span",{className:"value",children:m.camera_brand})]}),w&&(0,F.jsxs)("li",{children:[(0,F.jsx)("span",{className:"title",children:"Genres: "}),(0,F.jsx)("span",{className:"value",children:w})]}),m.photo_assistance&&"null"!==m.photo_assistance&&(0,F.jsxs)("li",{className:"d-sm-block d-none",children:[(0,F.jsx)("span",{className:"title",children:"Why I'm Here: "}),(0,F.jsx)("span",{className:"value",children:m.photo_assistance})]})]})})})]}),(0,F.jsxs)("div",{className:"profile-card-bottom-content",children:[(0,F.jsx)("a",{children:(0,F.jsxs)("div",{className:"left",children:[(0,F.jsx)("h6",{className:"name",onClick:z,children:m.name}),(0,F.jsx)("p",{className:"font--sm mb-0",children:[(0,ut.V)(null===m||void 0===m?void 0:m.state,16),(0,ft.p)(null===m||void 0===m?void 0:m.join_date)].filter(Boolean).join(" | ")})]})}),(0,F.jsx)("div",{className:"right",children:C?(0,F.jsx)("button",{className:"btn btn--base btn--unfollow follow--unfollow",onClick:V,children:"Following"}):(0,F.jsx)("button",{className:"btn btn--base  follow--unfollow",onClick:V,children:"Follow"})})]})]})}),(0,F.jsx)(lt.tq,{ref:G,style:{"--swiper-navigation-color":"#fff","--swiper-pagination-color":"#fff"},spaceBetween:10,navigation:a.length>1,thumbs:{swiper:n},modules:[ct.Rv,ct.W_,ct.o3],className:"mySwiper2",children:null===a||void 0===a?void 0:a.map((function(e,t){return(0,F.jsx)(lt.o5,{children:(0,F.jsxs)("div",{className:"slider-inner",children:[R&&(0,F.jsx)("span",{className:"FollowModalImgLoader"}),(0,F.jsx)("img",{src:A?"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_700,f_auto,q_auto/Resized_Photos/".concat(e.compressedImageId):"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_1200,f_auto,q_auto/Resized_Photos/".concat(e.compressedImageId),alt:"img",onLoad:function(){return L(!1)}})]})},t)}))}),(0,F.jsx)(lt.tq,{onSwiper:r,spaceBetween:10,slidesPerView:P,freeMode:!0,watchSlidesProgress:!0,modules:[ct.Rv,ct.W_,ct.o3],className:"swiper mySwiper",children:null===a||void 0===a?void 0:a.map((function(e,t){return(0,F.jsx)(lt.o5,{children:(0,F.jsx)("img",{style:{objectFit:"cover"},src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_220,f_auto,q_auto/Resized_Photos/".concat(e.compressedImageId),alt:"img"})},t)}))})]}):(0,F.jsx)(ar.Z,{})]})})})})]})}),Tr=(n(4277),0),Ir=function(e){var t,n,r,i,o=e.MarginTopNone,a=(0,c.useState)([]),s=(0,p.Z)(a,2),l=s[0],u=s[1],m=(0,c.useState)(!1),g=(0,p.Z)(m,2),x=g[0],w=g[1],k=(0,c.useState)(null),S=(0,p.Z)(k,2),j=S[0],C=S[1],_=(0,c.useState)(""),E=(0,p.Z)(_,2),N=E[0],A=E[1],D=(0,c.useState)(""),T=(0,p.Z)(D,2),I=T[0],P=T[1],O=(0,c.useState)([]),M=(0,p.Z)(O,2),Z=M[0],R=M[1],L=(0,c.useState)([]),B=(0,p.Z)(L,2),z=B[0],U=B[1],H=(0,c.useState)(!1),W=(0,p.Z)(H,2),q=W[0],V=W[1],G=(0,c.useState)(null),$=(0,p.Z)(G,2),J=($[0],$[1]),K=(0,y.v9)((function(e){return e.Follow.FollowState})),Y=(0,y.v9)((function(e){return e.Follow.FollowerimgModalOpen})),X=(0,c.useState)(K||"follower"),Q=(0,p.Z)(X,2),ee=Q[0],te=Q[1],ne=(0,c.useRef)(),re=(0,h.TH)(),ie=new URLSearchParams(re.search).get("userdata");ie&&(i=(0,b.a)(decodeURIComponent(ie)));var oe,ae=localStorage.getItem("Data"),se=(0,b.a)(ae),le=se.token,ce=se.userid,ue=se.Display_UserSocailPhoto,de=se.useDisplay_name,fe=function(e){te(e)},pe=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r,o,a,s;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[0].isIntersecting){e.next=15;break}return Tr+=12,e.prev=2,n=ie?{key:ee,user_id:i.UserID,offset:Tr}:{key:ee,offset:Tr},r={Authorization:"Bearer ".concat(le),"Content-Type":"application/json"},o="".concat("https://bigbesos.com","/follow/list"),e.next=8,Se.Z.post(o,n,{headers:r});case 8:a=e.sent,s=a.data.data[0].data,U((function(e){return[].concat((0,v.Z)(e),(0,v.Z)(s))})),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(2);case 15:case"end":return e.stop()}}),e,null,[[2,13]])})));return function(t){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){var e=new IntersectionObserver(pe,{root:null,threshold:0});return ne.current&&e.observe(ne.current),function(){ne.current&&e.unobserve(ne.current)}}),[l]),(0,c.useEffect)((function(){var e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,n,r,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u([]),U([]),Tr=0,V(!1),w(!0),e.prev=5,t=ie?{key:ee,user_id:i.UserID,offset:0}:{key:ee,offset:0},n={Authorization:"Bearer ".concat(le),"Content-Type":"application/json"},r="".concat("https://bigbesos.com","/follow/list"),e.next=11,Se.Z.post(r,t,{headers:n});case 11:o=e.sent,w(!1),u(o.data.data[0].data),A(o.data.data[0].follower_count),P(o.data.data[0].following_count),J(o.data.data[0].recommended_count),C(1*o.data.data[0]["".concat(ee,"_count")]),1*o.data.data[0]["".concat(ee,"_count")]<12&&V(!0),o.data.data[0].user&&R(o.data.data[0].user[0]),e.next=24;break;case 22:e.prev=22,e.t0=e.catch(5);case 24:case"end":return e.stop()}}),e,null,[[5,22]])})));return function(){return e.apply(this,arguments)}}();e()}),[ee]),oe=0===Tr?(0,v.Z)(l):[].concat((0,v.Z)(l),(0,v.Z)(z)),(0,c.useEffect)((function(){j===oe.length&&V(!0)}),[oe.length]);var he=function(e,t,n){if(i||"add"!=t)i||P(I-1);else{if("following"==ee&&!i&&"add"==t&&!n){var r=(0,v.Z)(oe).filter((function(t){return t.id===e.id})),o=[].concat([e],(0,v.Z)(oe));1!==r.length&&u(o)}P(I+1)}};return(0,F.jsxs)(F.Fragment,{children:[!ie&&(0,F.jsx)(Ce.Z,{}),(0,F.jsx)("main",{className:"site-content",id:"main",style:{paddingTop:"40px"},children:(0,F.jsxs)("div",{className:"tb-wrapper",children:[(0,F.jsx)(Er,{myProfile:!ie,UserName:Z.name,UserPhoto:Z.photo_url,createdAt:Z.createdAt,genresList:Z.genres_list,cameraBrand:Z.camera_brand,UserLocation:Z.state,UserId:Z.id,isfollow:Z.is_follow,usertoken:le,MarginTopNone:o,LoginUserId:ce,loginUserPhoto:ue,loginUserName:de}),(0,F.jsx)("section",{className:"pt-40 pb-120",style:{paddingTop:"40px",paddingBottom:"120px"},children:(0,F.jsxs)("div",{className:"container",children:[(0,F.jsxs)("ul",{className:"nav-tabs nav tab-style-one",children:[(0,F.jsx)("li",{children:(0,F.jsxs)("a",{onClick:function(){fe("follower")},className:"".concat("follower"==ee?"active":""),children:["Followers ",N>0&&(0,F.jsxs)("span",{children:["(",N,")"]})]})}),(0,F.jsx)("li",{children:(0,F.jsxs)("a",{onClick:function(){fe("following")},className:"".concat("following"==ee?"active":""),children:["Following ",I>0&&(0,F.jsxs)("span",{children:["(",I,")"]})]})}),!ie&&(0,F.jsx)("li",{children:(0,F.jsx)("a",{onClick:function(){fe("recommended")},className:"".concat("recommended"==ee?"active":""),children:"Recommended"})})]}),(0,F.jsxs)("div",{className:"followers_tab_content tab-content",id:"followersTabContent",children:["follower"==ee&&(0,F.jsxs)("div",{id:"followers",role:"tabpanel",children:[(0,F.jsxs)("h4",{className:"tab_content-title",children:["".concat(i?Z.name+" Followers":"My Followers")," ",N>0&&(0,F.jsxs)("span",{children:["(",N,")"]})]}),(0,F.jsx)("div",{className:"followers_users",children:null===(t=oe)||void 0===t?void 0:t.map((function(e){return(0,F.jsx)(Nr,{GetFollowCardInfoFn:he,cameraBrand:e.camera_brand,createdAt:e.createdAt,FollowerId:e.id,genresList:e.genres_list,Follower
2Name:e.name,FollowerPhoto:e.photo_url,FollowerLocation:e.state,usertoken:le,isfollow:e.is_follow,LoginUserId:ce,photosArr:e.photos,isFollowBack:e.is_follow_back},e.id)}))}),x&&(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,F.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,F.jsx)("span",{className:"sr-only"})})})]}),"following"==ee&&(0,F.jsxs)("div",{id:"following",role:"tabpanel",children:[(0,F.jsxs)("h4",{className:"tab_content-title",children:["".concat(i?Z.name+" Is Following":"I'm Following")," ",I>0&&(0,F.jsxs)("span",{children:["(",I,")"]})]}),(0,F.jsx)("div",{className:"followers_users",children:null===(n=oe)||void 0===n?void 0:n.map((function(e){return(0,F.jsx)(Nr,{GetFollowCardInfoFn:he,FollowingCard:!0,cameraBrand:e.camera_brand,createdAt:e.createdAt,FollowerId:e.id,genresList:e.genres_list,FollowerName:e.name,FollowerPhoto:e.photo_url,FollowerLocation:e.state,usertoken:le,isfollow:e.is_follow,LoginUserId:ce,photosArr:e.photos,isFollowBack:e.is_follow_back},e.id)}))}),x&&(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,F.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,F.jsx)("span",{className:"sr-only"})})})]}),"recommended"==ee&&(0,F.jsxs)("div",{id:"recommended",role:"tabpanel",children:[(0,F.jsx)("h4",{className:"tab_content-title",children:"People We Recommend"}),(0,F.jsx)("div",{className:"followers_users",children:null===(r=oe)||void 0===r?void 0:r.map((function(e){return(0,F.jsx)(Nr,{GetFollowCardInfoFn:he,cameraBrand:e.camera_brand,createdAt:e.createdAt,FollowerId:e.id,genresList:e.genres_list,Follower
2Name:e.name,FollowerPhoto:e.photo_url,FollowerLocation:e.state,usertoken:le,isfollow:e.is_follow,LoginUserId:ce,photosArr:e.photos,isFollowBack:e.is_follow_back},e.id)}))}),x&&(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,F.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,F.jsx)("span",{className:"sr-only"})})})]}),!q&&!x&&(0,F.jsx)("div",{className:"text-center pt-40 ",children:(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:"30px"},children:(0,F.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,F.jsx)("span",{className:"sr-only"})})})}),!q&&l.length>0&&(0,F.jsx)("div",{ref:ne})]})]})}),Y&&(0,F.jsx)(Dr,{})]})})]})},Pr=n(6250),Fr=function(e){e.MarginTopNone;return(0,Pr.Z)(),(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(Ir,{MarginTopNone:!0})})},Or=n(8067),Mr=function(e){var t=e.date,n=(0,Or.O)(t);return(0,F.jsx)("span",{className:"value time-indicator d-none d-md-inline",children:n})},Zr=function(e){var t=e.children,n=e.NotificationData,r=e.message,i=e.ChildAfterUl,o=e.is_seen,a=(0,h.s0)(),s=function(){var e={PhotoID:"",UserID:n.sender_id},t=we.AES.encrypt(JSON.stringify(e),"siddiqui").toString();a("/otherusers-profile?userdata=".concat(encodeURIComponent(t))),window.scrollTo(0,0)},l=(0,ut.V)(null===n||void 0===n?void 0:n.state,16),c=n.genres_list?Object.values(n.genres_list).slice(0,3).join(", "):"";return(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{className:"profile-card ".concat(o?"":"new-card"," style--two"),children:[(0,F.jsx)("div",{className:"profile-card-inner",children:(0,F.jsxs)("div",{className:"profile-card-top-content mb-0",children:[(0,F.jsx)("div",{className:"profile-card-thumb",children:(0,F.jsx)("span",{className:"PointerClass",onClick:s,children:(0,F.jsx)("img",{src:n.profile_pic?n.profile_pic:"https://ui-avatars.com/api/?name=".concat(n.name,"&size=40&rounded=true&background=01655a&color=fff"),alt:"profile"})})}),(0,F.jsxs)("div",{className:"profile-card-content",children:[(0,F.jsxs)("ul",{className:"profile-info-list",children:[(0,F.jsxs)("li",{className:"name_info",children:[(0,F.jsx)("span",{className:"title",children:(0,F.jsx)("a",{onClick:s,className:"PointerClass text-title",children:n.name})})," ",(0,F.jsx)("span",{className:"value font--sm text-title",children:r})," ",(0,F.jsx)(Mr,{date:n.notification_createdAt})]}),l&&(0,F.jsx)("li",{className:"mb-1 location_info",children:(0,F.jsx)("span",{className:"value font--sm ",children:l})}),(0,F.jsx)("p",{children:null===n||void 0===n?void 0:n.message}),n.camera_brand&&"null"!==n.camera_brand&&(0,F.jsxs)("li",{className:"d-none d-sm-block camera_info",children:[(0,F.jsx)("span",{className:"title ",children:"Camera: "})," ",(0,F.jsx)("span",{className:"value",children:n.camera_brand})]}),c&&(0,F.jsxs)("li",{className:"d-none d-sm-block genres_info",children:[(0,F.jsx)("span",{className:"title ",children:"Genres: "})," ",(0,F.jsx)("span",{className:"value",children:c})]})]}),(0,F.jsx)("div",{className:"desFollow-thank-btn",children:!i&&t})]})]})}),(0,F.jsxs)("ul",{className:"text-start profile-info-list d-sm-none",children:[n.camera_brand&&"null"!==n.camera_brand&&(0,F.jsxs)("li",{className:"camera_info",children:[(0,F.jsx)("span",{className:"title text-title",children:"Camera: "})," ",(0,F.jsx)("span",{className:"value",children:n.camera_brand})]}),c&&(0,F.jsxs)("li",{className:"genres_info",children:[(0,F.jsx)("span",{className:"title text-title",children:"Genres: "})," ",(0,F.jsx)("span",{className:"value",children:c})]})]}),(0,F.jsx)("div",{className:"d-sm-none mobileFollow-thank-btn",children:!i&&t}),i&&t]})})},Rr=function(e){var t=e.thanksBtnHidden,n=e.usertoken,r=e.NotificationData,i=e.BtnTextFollowBack,o=e.ThanksFor,a=e.loginUserid,s=(e.EmailBtn,e.NotificationID),l=(0,y.I0)(),u=(0,y.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),h=function(){l(Ke.$.setSocketReceiverUserID(r.sender_id)),l(Ke.$.setReloadNotificationSenderFn(!u))},m=(0,c.useState)(r&&r.is_follow),v=(0,p.Z)(m,2),g=v[0],b=v[1],x=(0,c.useState)(r&&r.is_thanked),w=(0,p.Z)(x,2),k=w[0],S=w[1],C=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),b(!g),e.prev=2,e.next=5,(0,pt.P)(r.id,!g,n,a,h,i);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[2,7]])})));return function(t){return e.apply(this,arguments)}}(),_=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var i,l;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),S(!k),e.prev=2,i={user_id:r.id,photo_id:r.photo_id,comment_id:r.comment_id,notification_type:o,is_thanked:!k,NotificationId:s},l={Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},e.next=7,Se.Z.post("".concat("https://bigbesos.com","/notify/sendthanks"),i,{headers:l});case 7:j.Z.getInstance().logEvent("Send Thanks",{UserID:a}),h(),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(2);case 13:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}();return(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{className:" d-flex flex-wrap flex-xl-nowrap justify-content-sm-end gap-2 gap-xl-3 btn--group",style:{margin:"auto 0px"},children:[!t&&(k?(0,F.jsx)("button",{className:"btn btn--light activee btn--116 ".concat(t?"both-btn":""),"data-normal":"Send Thanks!","data-active":"Sent Thanks",children:"Sent Thanks"}):(0,F.jsx)("button",{className:"btn btn--light btn--116 ".concat(t?"both-btn":""),"data-normal":"Send Thanks!","data-active":"Sent Thanks",onClick:_,children:"Send Thanks!"})),g?(0,F.jsx)("button",{className:"btn btn--base btn--unfollow follow--unfollow ".concat(t?"both-btn":""),onClick:C,children:"Following"}):(0,F.jsx)("button",{className:"btn btn--base  follow--unfollow ".concat(t?"both-btn":""),onClick:C,children:i?"Follow Back":"Follow"})]})})},Lr=function(e){var t=e.NotificationData,n=e.usertoken,r=e.loginUserid,i=e.is_seen,o=e.NotificationID;return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(Zr,{NotificationData:t,message:"started following you",is_seen:i,children:(0,F.jsx)(Rr,{thanksBtnHidden:!0,BtnTextFollowBack:!0,usertoken:n,NotificationData:t,loginUserid:r,NotificationID:o})})})},Br=function(e){var t=e.NotificationData,n=e.is_seen,r=(0,y.I0)();return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("div",{className:"profile-card ".concat(n?"":"new-card"," style--two"),children:(0,F.jsx)("div",{className:"profile-card-inner",children:(0,F.jsxs)("div",{className:"profile-card-top-content mb-0",children:[(0,F.jsx)("div",{className:"profile-card-thumb rounded-0",children:(0,F.jsx)("img",{src:"/assets/img/icons/congress.png",alt:"profile"})}),(0,F.jsxs)("div",{className:"profile-card-content",children:[(0,F.jsxs)("ul",{className:"profile-info-list",children:[(0,F.jsx)("li",{children:(0,F.jsx)("span",{className:"title mb-1",children:"Congratulations!"})}),(0,F.jsx)("li",{children:(0,F.jsx)("span",{className:"title mb-1",children:"Your photo is in the top ten this week!"})}),(0,F.jsxs)("li",{className:"Congratulations-Title ",children:[(0,F.jsx)("span",{className:"title fw-normal",children:"The community upvoted your photo to the top."})," ",(0,F.jsx)(Mr,{date:t.notification_createdAt})]})]}),(0,F.jsx)("div",{className:"Congratulations-Share-btn_Container",children:(0,F.jsx)("button",{onClick:function(){r(x.N.setSharePhotoModalState(!0)),r(
2x.N.setShareModalPhotoInfo({path:t.photo_url,id:t.photo_id}))},className:"btn btn--base btn--116 Congratulations-Share-btn","data-normal":"Share","data-active":"Shared",children:"Share"})})]})]})})})})},zr=function(e){var t=e.NotificationData,n=e.usertoken,r=e.loginUserid,i=e.is_seen,o=e.NotificationID,a=(0,h.s0)(),s=function(){var e={PhotoID:"",UserID:t.sender_id},n=we.AES.encrypt(JSON.stringify(e),"siddiqui").toString();a("/otherusers-profile?userdata=".concat(encodeURIComponent(n))),window.scrollTo(0,0)},l=function(e){if(e.preventDefault(),t.receiver_id===t.photo_owner_id)a("/profile");else{var n={PhotoID:t.photo_id,UserID:t.photo_owner_id},r=we.AES.encrypt(JSON.stringify(n),"siddiqui").toString();a("/otherusers-profile?userdata=".concat(encodeURIComponent(r)))}window.scrollTo(0,0)},c=(0,ut.V)(t.state,16),u=t.genres_list?Object.values(t.genres_list).slice(0,3).join(", "):"";return(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{className:"profile-card ".concat(i?"":"new-card"," style--two"),children:[(0,F.jsx)("div",{className:"profile-card-inner",children:(0,F.jsxs)("div",{className:"profile-card-top-content mb-0",children:[(0,F.jsx)("div",{className:"profile-card-thumb align-self-start align-self-xxl-center",children:(0,F.jsx)("a",{onClick:s,children:(0,F.jsx)("img",{src:t.profile_pic?t.profile_pic:"https://ui-avatars.com/api/?name=".concat(t.name,"&size=40&rounded=true&background=01655a&color=fff"),alt:"profile"})})}),(0,F.jsxs)("div",{className:"profile-card-content d-flex flex-wrap flex-xxl-nowrap justify-content-center justify-content-xxl-between flex-grow-1",children:[(0,F.jsxs)("ul",{className:"profile-info-list mt-2 mt-xxl-0 w-50",children:[(0,F.jsxs)("li",{className:"name_info",children:[(0,F.jsx)("span",{className:"title",children:(0,F.jsx)("a",{onClick:s,className:"PointerClass text-title",children:t.name})})," ",(0,F.jsx)("span",{className:"value font--sm text-title",children:"upvoted your photo"}),(0,F.jsx)(Mr,{date:t.notification_createdAt})]}),(0,F.jsx)("li",{className:"mb-1 location_info",children:(0,F.jsx)("span",{className:"value font--sm ",children:c})}),t.camera_brand&&"null"!==t.camera_brand&&(0,F.jsxs)("li",{className:"d-none d-sm-block camera_info",children:[(0,F.jsx)("span",{className:"title ",children:"Camera: "})," ",(0,F.jsx)("span",{className:"value",children:t.camera_brand})]}),u&&(0,F.jsxs)("li",{className:"d-none d-sm-block genres_info",children:[(0,F.jsx)("span",{className:"title ",children:"Genres: "})," ",(0,F.jsx)("span",{className:"value",children:u})]})]}),(0,F.jsx)("span",{className:"d-none d-sm-inline-flex",style:{margin:"auto 0px"},children:(0,F.jsx)(Rr,{usertoken:n,ThanksFor:"thanks_on_upvote",NotificationData:t,loginUserid:r,NotificationID:o})}),(0,F.jsx)("a",{className:"comment-photo d-none d-sm-inline-flex",onClick:l,children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_250,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId),alt:"thumb",className:"d-block"})})]})]})}),(0,F.jsxs)("ul",{className:"text-start profile-info-list d-sm-none",children:[t.camera_brand&&"null"!==t.camera_brand&&(0,F.jsxs)("li",{className:"camera_info",children:[(0,F.jsx)("span",{className:"title ",children:"Camera: "})," ",(0,F.jsx)("span",{className:"value",children:t.camera_brand})]}),u&&(0,F.jsxs)("li",{className:"genres_info",children:[(0,F.jsx)("span",{className:"title ",children:"Genres: "})," ",(0,F.jsx)("span",{className:"value",children:u})]})]}),(0,F.jsx)("div",{className:"d-flex d-sm-none flex-wrap flex-xl-nowrap justify-content-sm-end gap-2 gap-xl-3 btn--group",children:(0,F.jsx)(Rr,{usertoken:n,ThanksFor:"thanks_on_upvote",NotificationData:t,loginUserid:r,NotificationID:o})}),(0,F.jsx)("a",{className:"comment-photo d-inline-flex d-sm-none",onClick:l,children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_250,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId),alt:"thumb",className:"d-block",style:{marginTop:"10px"}})})]})})},Ur=function(e){var t=e.NotificationData,n=e.usertoken,r=e.loginUserid,i=e.is_seen,o=e.NotificationID,a=(0,h.s0)();return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(Zr,{NotificationData:t,message:"thanked you for your upvote :)",is_seen:i,children:(0,F.jsxs)("div",{style:{display:"flex",gap:"24px"},children:[(0,F.jsx)(Rr,{thanksBtnHidden:!0,usertoken:n,NotificationData:t,loginUserid:r,NotificationID:o}),(0,F.jsx)("a",{className:"comment-photo d-none d-sm-inline-flex",onClick:function(e){if(e.preventDefault(),t.receiver_id===t.photo_owner_id)a("/profile");else{var n={PhotoID:t.photo_id,UserID:t.photo_owner_id}
2,r=we.AES.encrypt(JSON.stringify(n),"siddiqui").toString();a("/otherusers-profile?userdata=".concat(encodeURIComponent(r)))}window.scrollTo(0,0)},children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_250,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId),alt:"thumb",className:"d-block"})})]})})})},Hr=function(e){var t=e.NotificationData,n=e.usertoken,r=e.loginUserid,i=e.is_seen,o=e.NotificationID;return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(Zr,{NotificationData:t,message:"just welcomed you!",is_seen:i,children:(0,F.jsx)(Rr,{thanksBtnHidden:!0,usertoken:n,NotificationData:t,loginUserid:r,NotificationID:o})})})},Wr=function(e){var t=e.NotificationData,n=e.usertoken,r=e.is_seen,i=(0,c.useState)(t.is_photo_upvoted),o=(0,p.Z)(i,2),a=o[0],s=o[1],l=(0,c.useState)(t.is_photo_upvoted),u=(0,p.Z)(l,2),h=u[0],m=u[1],v=(0,c.useState)(!1),g=(0,p.Z)(v,2),b=g[0],x=g[1],w=(0,c.useState)(!1),k=(0,p.Z)(w,2),j=k[0],_=k[1],E=(0,y.I0)(),N=(0,y.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),D=(0,y.v9)((function(e){return e.LightBox.UpdateTheMianFeedpage}));(0,c.useEffect)((function(){window.innerWidth<=500&&_(!0)}),[]);var T=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(r){var i,o,l,c,u,f;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.preventDefault(),i=!a,m(!h),s(!a),a?(o="remove",x(!1)):(o="add",x(!0),E(Ke.$.setSocketReceiverUserID(t.sender_id)),E(Ke.$.setReloadNotificationSenderFn(!N))),e.prev=5,e.next=8,(0,dt.T)(t.photo_id,o,n);case 8:u=e.sent,f=null===u||void 0===u||null===(l=u.data)||void 0===l||null===(c=l.data)||void 0===c?void 0:c.voteCount,(0,C.vX)(C.jT,t.photo_id,(0,A.Z)({is_vote:i},Number.isFinite(f)?{total_votes:f}:{})),D&&"object"===typeof D&&null!=t.photo_id&&String(D.photoID)===String(t.photo_id)&&E(S.H.setUpdateTheMianFeedpage("")),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(5);case 16:case"end":return e.stop()}}),e,null,[[5,14]])})));return function(t){return e.apply(this,arguments)}}();return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(Zr,{NotificationData:t,message:t.text,ChildAfterUl:!0,is_seen:r,children:(0,F.jsxs)("div",{className:"photo-wrapper overflow-hidden",children:[(0,F.jsx)("img",{src:j?"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_700,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId):t.photo_url,alt:"thumb",className:"w-100 rounded-1"}),(0,F.jsxs)("div",{className:"bubble-animation-wrapper",children:[(0,F.jsxs)("ul",{className:"bubbles ".concat(b?"active":""),children:[(0,F.jsx)("li",{children:(0,F.jsx)("img",{src:"assets/img/icons/heart-fill.svg",alt:"heart-fill"})}),(0,F.jsx)("li",{children:(0,F.jsx)("img",{src:"assets/img/icons/heart-fill.svg",alt:"heart-fill"})}),(0,F.jsx)("li",{children:(0,F.jsx)("img",{src:"assets/img/icons/heart-fill.svg",alt:"heart-fill"})}),(0,F.jsx)("li",{children:(0,F.jsx)("img",{src:"assets/img/icons/heart-fill.svg",alt:"heart-fill"})})]}),(0,F.jsxs)("button",{onClick:T,className:"btn upvote--downvote btn--116 animateBubble ".concat(h?"btn--success active":"btn--white"),"data-normal":"Upvote","data-active":"Upvoted",children:[(0,F.jsx)("svg",{width:13,height:8,viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,F.jsx)("path",{d:"M1 7L7 1L13 7",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),(0,F.jsx)("span",{className:"text",children:h?"Upvoted":"Upvote"})]})]})]})})})},qr=n(6617),Vr=function(e){var t=e.NotificationData,n=e.usertoken,r=e.CeatedAt,i=e.loginUserid,o=e.is_seen,a=(0,c.useState)(t.upvoted_count),s=(0,p.Z)(a,2),l=s[0],u=s[1],m=(0,c.useState)(t.is_vote),v=(0,p.Z)(m,2),b=v[0],x=v[1],w=(0,c.useState)(t.is_vote),k=(0,p.Z)(w,2),S=k[0],C=k[1],_=(0,c.useState)(""),E=(0,p.Z)(_,2),N=E[0],A=E[1],D=(0,c.useState)(!1),T=(0,p.Z)(D,2),I=T[0],P=T[1],O=(0,c.useState)(!1),M=(0,p.Z)(O,2),Z=M[0],R=M[1],L=(0,h.s0)(),B=(0,Or.O)(r),z=(0,qr.J)(l),U=(0,y.I0)(),H=(0,y.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),W=function(){U(Ke.$.setSocketReceiverUserID(t.sender_id)),U(Ke.$.setReloadNotificationSenderFn(!H))},q=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(r){var o,a,s,l;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.preventDefault(),C(!S),x(!b),b?o="remove":(o="add",W(),j.Z.getInstance().logEvent("Like A Comment",{UserID:i})),e.prev=4,a={commentID:t.comment_id,actionType:o},s={Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},e.next=9,Se.Z.post("".concat("https://bigbesos.com","/vote/comment"),a,{headers:s});case 9:l=e.sent,u(l.data.data.voteCount),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(4);case 15:case"end":return e.stop()}}
2),e,null,[[4,13]])})));return function(t){return e.apply(this,arguments)}}(),V=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(r){var i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.preventDefault(),P(!0),e.prev=2,i={photoID:t.photo_id,commentText:N,topcommentID:t.comment_id},o={Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},e.next=7,Se.Z.post("".concat("https://bigbesos.com","/comment/add"),i,{headers:o});case 7:R(!0),A(""),P(!1),W(),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),P(!1);case 16:case"end":return e.stop()}}),e,null,[[2,13]])})));return function(t){return e.apply(this,arguments)}}();return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("div",{className:"profile-card ".concat(o?"":"new-card"," style--two"),children:(0,F.jsxs)("div",{className:"profile-card-inner",children:[(0,F.jsxs)("div",{className:"profile-card-top-content mb-0",children:[(0,F.jsx)("div",{className:"profile-card-thumb",children:(0,F.jsx)("span",{className:"PointerClass",onClick:function(){var e={PhotoID:"",UserID:t.sender_id},n=we.AES.encrypt(JSON.stringify(e),"siddiqui").toString();L("/otherusers-profile?userdata=".concat(encodeURIComponent(n))),window.scrollTo(0,0)},children:(0,F.jsx)("img",{src:t.profile_pic?t.profile_pic:"https://ui-avatars.com/api/?name=".concat(t.name,"&size=40&rounded=true&background=01655a&color=fff"),alt:"profile"})})}),(0,F.jsxs)("div",{className:"profile-card-content d-flex flex-wrap flex-xl-nowrap justify-content-between flex-grow-1 gap-2",children:[(0,F.jsxs)("ul",{className:"profile-info-list",children:[(0,F.jsxs)("li",{className:"name_info",children:[(0,F.jsxs)("span",{className:"title",children:[(0,F.jsx)(g.rU,{className:"text-title ",children:t.name})," "]})," ",(0,F.jsx)("span",{className:"value font--sm text-title",children:"commented on your photo"})]}),(0,F.jsx)("li",{className:"d-none d-sm-block",children:(0,F.jsx)("span",{className:"text--black80 mb-1",children:"\u201c".concat(t.comment_text,"\u201d")})}),(0,F.jsx)("li",{className:"d-none d-sm-block",children:(0,F.jsxs)("ul",{className:"d-flex flex-wrap flex-xl-nowrap align-items-center font--sm",style:{gap:4},children:[(0,F.jsxs)("li",{className:"text--black80",children:[z," Like"]}),(0,F.jsx)("li",{className:"me-2",children:(0,F.jsx)("button",{onClick:q,className:"outline-none border-0 shadow-none bg-transparent like--btn",children:S?(0,F.jsx)("img",{src:"/assets/img/icons/thumb-fill.svg",alt:"img",className:"fill"}):(0,F.jsx)("img",{src:"/assets/img/icons/thumb.svg",alt:"img",className:"outline"})})}),(0,F.jsx)("li",{className:"text--black40",children:B})]})})]}),(0,F.jsx)(g.rU,{to:"/profile",onClick:function(){window.scrollTo(0,0)},children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_250,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId),alt:"thumb",className:"comment-photo d-none d-sm-block"})})]})]}),(0,F.jsxs)("ul",{className:"profile-info-list d-sm-none mt-3",children:[(0,F.jsxs)("li",{className:"d-flex gap-3 mb-3",children:[(0,F.jsx)("span",{className:"text--black80 mb-1",children:"\u201c".concat(t.comment_text,"\u201d")}),(0,F.jsx)(g.rU,{to:"/profile",onClick:function(){window.scrollTo(0,0)},children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_250,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId),alt:"thumb",className:"comment-photo",style:{width:44,height:44,objectFit:"cover"}})})]}),(0,F.jsx)("li",{children:(0,F.jsxs)("ul",{className:"d-flex flex-wrap flex-xl-nowrap align-items-center font--sm",style:{gap:4},children:[(0,F.jsxs)("li",{className:"text--black80",children:[z," Like"]}),(0,F.jsx)("li",{className:"me-2",children:(0,F.jsx)("button",{onClick:q,className:"outline-none border-0 shadow-none bg-transparent like--btn",children:S?(0,F.jsx)("img",{src:"/assets/img/icons/thumb-fill.svg",alt:"img",className:"fill"}):(0,F.jsx)("img",{src:"/assets/img/icons/thumb.svg",alt:"img",className:"outline"})})}),(0,F.jsx)("li",{className:"text--black40",children:B})]})})]}),(0,F.jsxs)("div",{className:"write-comment mt-2 mt-sm-4",children:[(0,F.jsx)("img",{src:t.login_photo_url?t.login_photo_url:"https://ui-avatars.c
2om/api/?name=".concat(t.login_username,"&size=40&rounded=true&background=01655a&color=fff"),alt:"user",className:"comment-user"}),(0,F.jsxs)("form",{onSubmit:V,className:"comment-form",children:[(0,F.jsx)("input",{type:"text",className:"form-control ".concat(N?"typed":""),value:N,onChange:function(e){A(e.target.value)},placeholder:Z?"Thank you! Your comment has been successfully submitted.":"Reply to @".concat(t.name)}),I?(0,F.jsx)("span",{style:{fontSize:"4px",marginBottom:"14px"},className:"".concat(N?"Commentloader":"")}):(0,F.jsx)("button",{type:"submit",className:"outline-none border-0 shadow-none bg-transparent",children:(0,F.jsx)("img",{src:"/assets/img/icons/subtract.svg",alt:"submit"})})]})]})]})})})},Gr=function(e){var t=e.NotificationData,n=e.usertoken,r=e.CeatedAt,i=e.is_seen,o=(0,c.useState)(t.upvoted_count),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useState)(t.is_vote),m=(0,p.Z)(u,2),v=m[0],g=m[1],b=(0,c.useState)(t.is_vote),x=(0,p.Z)(b,2),w=x[0],k=x[1],S=(0,c.useState)(""),j=(0,p.Z)(S,2),C=j[0],_=j[1],E=(0,c.useState)(!1),N=(0,p.Z)(E,2),A=N[0],D=N[1],T=(0,c.useState)(!1),I=(0,p.Z)(T,2),P=I[0],O=I[1],M=(0,Or.O)(r),Z=(0,qr.J)(s),R=(0,y.I0)(),L=(0,y.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),B=function(){R(Ke.$.setSocketReceiverUserID(t.sender_id)),R(Ke.$.setReloadNotificationSenderFn(!L))},z=function(e){if(e.preventDefault(),t.receiver_id===t.photo_owner_id)U("/profile");else{var n={PhotoID:t.photo_id,UserID:t.photo_owner_id},r=we.AES.encrypt(JSON.stringify(n),"siddiqui").toString();U("/otherusers-profile?userdata=".concat(encodeURIComponent(r)))}window.scrollTo(0,0)},U=(0,h.s0)(),H=function(){var e={PhotoID:"",UserID:t.sender_id},n=we.AES.encrypt(JSON.stringify(e),"siddiqui").toString();U("/otherusers-profile?userdata=".concat(encodeURIComponent(n))),window.scrollTo(0,0)},W=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(r){var i,o,a,s;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.preventDefault(),k(!w),g(!v),v?i="remove":(i="add",B()),e.prev=4,o={commentID:t.comment_id,actionType:i},a={Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},e.next=9,Se.Z.post("".concat("https://bigbesos.com","/vote/comment"),o,{headers:a});case 9:s=e.sent,l(s.data.data.voteCount),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(4);case 15:case"end":return e.stop()}}
2),e,null,[[4,13]])})));return function(t){return e.apply(this,arguments)}}(),q=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(r){var i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.preventDefault(),D(!0),e.prev=2,i={photoID:t.photo_id,commentText:C,topcommentID:t.top_comment_id,subcommentID:t.sub_comment_id},o={Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},e.next=7,Se.Z.post("".concat("https://bigbesos.com","/comment/add"),i,{headers:o});case 7:_(""),D(!1),O(!0),B(),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),D(!1);case 16:case"end":return e.stop()}}),e,null,[[2,13]])})));return function(t){return e.apply(this,arguments)}}();return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("div",{className:"profile-card ".concat(i?"":"new-card"," style--two"),children:(0,F.jsxs)("div",{className:"profile-card-inner",children:[(0,F.jsxs)("div",{className:"profile-card-top-content mb-0",children:[(0,F.jsx)("div",{className:"profile-card-thumb",children:(0,F.jsx)("span",{className:"PointerClass",onClick:H,children:(0,F.jsx)("img",{src:t.profile_pic?t.profile_pic:"https://ui-avatars.com/api/?name=".concat(t.name,"&size=40&rounded=true&background=01655a&color=fff"),alt:"profile"})})}),(0,F.jsxs)("div",{className:"profile-card-content d-flex flex-wrap flex-xl-nowrap justify-content-between flex-grow-1 gap-2",children:[(0,F.jsxs)("ul",{className:"profile-info-list",children:[(0,F.jsxs)("li",{className:"name_info",children:[(0,F.jsx)("span",{className:"title",children:(0,F.jsx)("span",{onClick:H,className:"PointerClass text-title",children:t.name})}),(0,F.jsx)("span",{className:"value font--sm text-title",style:{marginLeft:"5px"},children:"replied to your comment"})]}),(0,F.jsx)("li",{className:"d-none d-sm-block",children:(0,F.jsx)("span",{className:"text--black80 mb-1",children:"\u201c".concat(t.comment_text,"\u201d")})}),(0,F.jsx)("li",{className:"d-none d-sm-block",children:(0,F.jsxs)("ul",{className:"d-flex flex-wrap flex-xl-nowrap align-items-center font--sm",style:{gap:4},children:[(0,F.jsxs)("li",{className:"text--black80",children:[Z," Like"]}),(0,F.jsx)("li",{className:"me-2",children:(0,F.jsx)("button",{onClick:W,className:"outline-none border-0 shadow-none bg-transparent like--btn",children:w?(0,F.jsx)("img",{src:"/assets/img/icons/thumb-fill.svg",alt:"img",className:"fill"}):(0,F.jsx)("img",{src:"/assets/img/icons/thumb.svg",alt:"img",className:"outline"})})}),(0,F.jsx)("li",{className:"text--black40",children:M})]})})]}),(0,F.jsx)("span",{className:"PointerClass",onClick:z,children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_250,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId),alt:"thumb",className:"comment-photo d-none d-sm-block"})})]})]}),(0,F.jsxs)("ul",{className:"profile-info-list d-sm-none mt-3",children:[(0,F.jsxs)("li",{className:"d-flex gap-3 mb-3",children:[(0,F.jsx)("span",{className:"text--black80 mb-1",children:"\u201c".concat(t.comment_text,"\u201d")}),(0,F.jsx)("a",{onClick:z,children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_250,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId),alt:"thumb",className:"comment-photo",style:{width:44,height:44,objectFit:"cover"}})})]}),(0,F.jsx)("li",{children:(0,F.jsxs)("ul",{className:"d-flex flex-wrap flex-xl-nowrap align-items-center font--sm",style:{gap:4},children:[(0,F.jsxs)("li",{className:"text--black80",children:[Z," Like"]}),(0,F.jsx)("li",{className:"me-2",children:(0,F.jsx)("button",{onClick:W,className:"outline-none border-0 shadow-none bg-transparent like--btn",children:w?(0,F.jsx)("img",{src:"/assets/img/icons/thumb-fill.svg",alt:"img",className:"fill"}):(0,F.jsx)("img",{src:"/assets/img/icons/thumb.svg",alt:"img",className:"outline"})})}),(0,F.jsx)("li",{className:"text--black40",children:M})]})})]}),(0,F.jsxs)("div",{className:"write-comment mt-2 mt-sm-4",children:[(0,F.jsx)("img",{src:t.login_photo_url?t.login_photo_url:"https://ui-avatars.com/api/?name=".concat(t.login_username,"&size=40&rounded=true&background=01655a&color=fff"),alt:"user",className:"comment-user"}),(0,F.jsxs)("form",{onSubmit:q,className:"comment-form",children:[(0,F.jsx)("input",{type:"text",className:"form-control ".concat(C?"typed":""),value:C,onChange:function(e){_(e.target.value)},placeholder:P?"Thank you! Your reply has been successfully submitted.":"Reply to @".concat(t.name)}),A?(0,F.jsx)("span",{style:{fontSize:"4px",marginBottom:"14px"},className:"".concat(C?"Commentloader":"")}):(0,F.jsx)("button",{type:"submit",className:"outline-none border-0 shadow-none bg-transparent",children:(0,F.jsx)("img",{src:"/assets/img/icons/subtract.svg",alt:"submit"})})]})]})]})})})},$r=n(9837),Jr=function(e){var t=e.NotificationData,n=e.usertoken,r=e.loginUserid,i=e.is_seen,o=e.NotificationID,a=(0,c.useState)(t&&t.isCongratulateTopTenUser),s=(0,p.Z)(a,2),l=s[0],u=s[1],h=(0,y.I0)(),m=(0,y.v9)((function(e){return e.Socket.ReloadNotificationSenderFn})),v=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(i){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i.preventDefault(),u(!l),e.prev=2,e.next=5,(0,$r.Z)(n,t.id,t.photo_id,l,r,o);case 5:h(Ke.$.setSocketReceiverUserID(t.sender_id)),h(Ke.$.setReloadNotificationSenderFn(!m)),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}();return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(Zr,{NotificationData:t,message:"who you follow, is in this week's Top Ten",is_seen:i,children:l?(0,F.jsx)("button",{className:"btn btn--base btn--116 congratulated-btn Congratulations-moblie-btn",children:"Congratulated"}):(0,F.jsx)("button",{onClick:v,className:"btn btn--base btn--116 Congratulations-moblie-btn","data-normal":"Congratulations!","data-active":"Congratulated",children:"Congratulations!"})})})},Kr=function(e){var t=e.NotificationData,n=e.usertoken,r=e.loginUserid,i=e.is_seen,o=e.NotificationID;return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(Zr,{NotificationData:t,message:"congratulated you for making the Weekly Top Ten!",is_seen:i,children:(0,F.jsx)(Rr,{ThanksFor:"thanks_on_weeklytopten_congratulation",usertoken:n,NotificationData:t,loginUserid:r,NotificationID:o})})})},Yr=function(e){var t=e.NotificationData,n=e.usertoken,r=e.loginUserid,i=e.is_seen,o=e.NotificationID;return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(Zr,{NotificationData:t,message:"thanked you for your Weekly Top Ten congratulations!",is_seen:i,children:(0,F.jsx)(Rr,{thanksBtnHidden:!0,usertoken:n,NotificationData:t,loginUserid:r,NotificationID:o})})})},Xr=function(e){var t=e.NotificationData,n=e.usertoken,r=e.loginUserid,i=e.is_seen,o=e.NotificationID,a=(0,h.s0)(),s=function(){var e={PhotoID:"",UserID:t.sender_id}
2,n=we.AES.encrypt(JSON.stringify(e),"siddiqui").toString();a("/otherusers-profile?userdata=".concat(encodeURIComponent(n))),window.scrollTo(0,0)},l=function(e){if(e.preventDefault(),t.receiver_id===t.photo_owner_id)a("/profile");else{var n={PhotoID:t.photo_id,UserID:t.photo_owner_id},r=we.AES.encrypt(JSON.stringify(n),"siddiqui").toString();a("/otherusers-profile?userdata=".concat(encodeURIComponent(r)))}window.scrollTo(0,0)};return(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{className:"profile-card ".concat(i?"":"new-card"," style--two"),children:[(0,F.jsx)("div",{className:"profile-card-inner",children:(0,F.jsxs)("div",{className:"profile-card-top-content mb-0",children:[(0,F.jsx)("div",{className:"profile-card-thumb",children:(0,F.jsx)("span",{className:"PointerClass",onClick:s,children:(0,F.jsx)("img",{src:t.profile_pic?t.profile_pic:"https://ui-avatars.com/api/?name=".concat(t.name,"&size=40&rounded=true&background=01655a&color=fff"),alt:"profile"})})}),(0,F.jsxs)("div",{className:"profile-card-content flex-column flex-md-row align-items-start align-items-xl-center",children:[(0,F.jsxs)("ul",{className:"profile-info-list",children:[(0,F.jsxs)("li",{className:"name_info",children:[(0,F.jsx)("span",{className:"title",children:(0,F.jsx)("span",{className:"text-title PointerClass",onClick:s,children:t.name})}),(0,F.jsx)("span",{className:"value font--sm text-title",children:" liked your comment"}),(0,F.jsx)(Mr,{date:t.notification_createdAt})]}),(0,F.jsx)("li",{className:"mt-1 d-none d-sm-block lh-20px",children:(0,F.jsx)("span",{className:"value",children:"\u201c".concat(t.comment_text,"\u201d")})})]}),(0,F.jsxs)("div",{className:"d-sm-flex d-none flex-column-reverse flex-md-row flex-xl-nowrap justify-content-xl-end align-items-start flex-grow-1 flex-shrink-0  gap-2 ",children:[(0,F.jsx)(Rr,{ThanksFor:"thanks_on_upvote_comment",usertoken:n,NotificationData:t,loginUserid:r,NotificationID:o}),(0,F.jsx)("span",{className:"PointerClass",onClick:l,children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_250,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId),alt:"thumb",className:"comment-photo"})})]})]})]})}),(0,F.jsxs)("div",{className:"d-flex mt-3 gap-3 d-sm-none justify-content-between",children:[(0,F.jsx)("p",{className:"text-start mb-0 lh-20px",children:"\u201c".concat(t.comment_text,"\u201d")}),(0,F.jsx)("span",{className:"PointerClass",onClick:l,children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_250,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId),alt:"thumb",className:"comment-photo",style:{width:44,height:44,objectFit:"cover"}})})]}),(0,F.jsx)("div",{className:"d-sm-none d-flex flex-wrap flex-xl-nowrap justify-content-center gap-2 gap-xl-3 mt-3 mobileFollow-thank-btn",children:(0,F.jsx)(Rr,{ThanksFor:"thanks_on_upvote_comment",usertoken:n,NotificationData:t,NotificationID:o})})]})})},Qr=function(e){var t=e.NotificationData,n=e.usertoken,r=e.loginUserid,i=e.is_seen,o=e.NotificationID,a=(0,h.s0)(),s=function(){var e={PhotoID:"",UserID:t.sender_id},n=we.AES.encrypt(JSON.stringify(e),"siddiqui").toString();a("/otherusers-profile?userdata=".concat(encodeURIComponent(n))),window.scrollTo(0,0)},l=function(e){if(e.preventDefault(),t.receiver_id==t.photo_owner_id)a("/profile");else{var n={PhotoID:t.photo_id,UserID:t.photo_owner_id},r=we.AES.encrypt(JSON.stringify(n),"siddiqui").toString();a("/otherusers-profile?userdata=".concat(encodeURIComponent(r)))}window.scrollTo(0,0)};return(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{className:"profile-card ".concat(i?"":"new-card"," style--two"),children:[(0,F.jsx)("div",{className:"profile-card-inner",children:(0,F.jsxs)("div",{className:"profile-card-top-content mb-0",children:[(0,F.jsx)("div",{className:"profile-card-thumb rounded-0",children:(0,F.jsx)("span",{className:"PointerClass",onClick:s,children:(0,F.jsx)("img",{src:t.profile_pic?t.profile_pic:"https://ui-avatars.com/api/?name=".concat(t.name,"&size=40&rounded=true&background=01655a&color=fff"),alt:"profile"})})}),(0,F.jsxs)("div",{className:"profile-card-content flex-column flex-md-row align-items-start align-items-xl-center",children:[(0,F.jsxs)("ul",{className:"profile-info-list",children:[(0,F.jsxs)("li",{className:"name_info",children:[(0,F.jsxs)("span",{className:"title",children:[(0,F.jsx)("span",{onClick:s,className:"text-title PointerClass",children:t.name})," "]})," ",(0,F.jsx)("span",{className:"value font--sm text-title",children:" Thanked you for liking their comment."})," ",(0,F.jsx)(Mr,{date:t.notification_createdAt})]}),(0,F.jsx)("li",{className:"mt-1 d-none d-sm-block lh-20px",children:(0,F.jsx)("span",{className:"value",children:"\u201c".concat(t.comment_text,"\u201d")})})]}),(0,F.jsxs)("div",{className:"d-sm-flex d-none flex-column-reverse flex-md-row flex-xl-nowrap justify-content-xl-end align-items-md-center flex-grow-1 flex-shrink-0 align-items-xl-center gap-2",children:[(0,F.jsx)(Rr,{ThanksFor:"thanks_on_upvote_comment",thanksBtnHidden:!0,usertoken:n,NotificationData:t,loginUserid:r,NotificationID:o}),(0,F.jsx)("span",{className:"PointerClass",onClick:l,children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_250,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId),alt:"thumb",className:"comment-photo"})})]})]})]})}),(0,F.jsxs)("div",{className:"d-flex mt-3 gap-3 d-sm-none justify-content-between",children:[(0,F.jsx)("p",{className:"text-start mb-0 lh-20px",children:"\u201c".concat(t.comment_text,"\u201d")}),(0,F.jsx)("span",{className:"PointerClass",onClick:l,children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_250,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId),alt:"thumb",className:"comment-photo",style:{width:44,height:44,objectFit:"cover"}})})]}),(0,F.jsx)("div",{className:"d-sm-none desFollow--btn",children:(0,F.jsx)(Rr,{ThanksFor:"thanks_on_upvote_comment",thanksBtnHidden:!0,usertoken:n,NotificationData:t,NotificationID:o})})]})})},ei=function(e){var t=e.NotificationData,n=e.is_seen;return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(Zr,{NotificationData:t,message:"from Big Photo Hunt is checking in to say hi. \ud83d\udc4b",is_seen:n,children:(0,F.jsx)("div",{className:"d-flex flex-wrap flex-xl-nowrap justify-content-sm-end gap-2 gap-xl-3 btn--group",style:{margin:"auto 0px"},children:(0,F.jsx)(g.rU,{to:"mailto:[email protected]?subject=".concat(encodeURIComponent("Thanks for checking in, Ken"),"&body=").concat(encodeURIComponent("I got your notification and am sending you an email.")),className:"btn btn--base btn--116","data-normal":"Follow","data-active":"Following",children:"Email"})})})})},ti=function(e){var t=e.NotificationData,n=(e.usertoken,e.loginUserid,e.is_seen);e.NotificationID;return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(Zr,{NotificationData:t,message:"has an announcement",is_seen:n,children:(0,F.jsxs)("div",{style:{display:"flex",gap:"24px"},children:[(null===t||void 0===t?void 0:t.photo_url)&&(0,F.jsx)("a",{className:"comment-photo ",children:(0,F.jsx)("img",{src:t.photo_url,alt:"thumb",className:"d-block"})}),t.btnLabel&&(0,F.jsx)(g.rU,{to:t.btnUrl,target:"_black",className:"btn btn--base  follow--unfollow both-btn",style:{height:"40px",margin:"auto"},children:t.btnLabel})]})})})},ni=n(216),ri=n(9021),ii='"Jost", system-ui, sans-serif',oi=function(e){var t=e.isMobile?11:12;return(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:5},children:[(0,F.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#7A4A2E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z"})}),(0,F.jsx)("span",{style:{fontFamily:ii,fontSize:10,fontWeight:600,letterSpacing:"0.07em",textTransform:"uppercase",lineHeight:"13px",color:"#7A4A2E"},children:"Big Photo Board"})]})},ai=function(e){var t=(0,ri.Z)(e);return"just now"===t?"now":"1d ago"===t?"Yest":t.replace(" ago","")},si=function(e){var t=e.message,n=e.isSeen,r=e.createdAt,i=(0,c.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),o=(0,p.Z)(i,2),a=o[0],s=o[1];if((0,c.useEffect)((function(){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return s(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}),[]),!t)return null;var l,u,d=t.actor||null,f=d&&d.name||"Someone",h=t.thread_title||"a Board thread",m=Math.max(0,(t.actor_count||1)-1);l=0===m?f:a?"".concat(f," +").concat(m):"".concat(f," and ").concat(m," ").concat(1===m?"other":"others"),u="reply_to_my_post"===t.event_type?"".concat(l," replied to your thread"):"reply_to_my_reply"===t.event_type?"".concat(l," replied to your reply"):"reply_to_followed_thread"===t.event_type?"".concat(l,a?" replied \xb7 following":" replied to a thread you follow"):"mention"===t.event_type?"".concat(l," mentioned you in"):"like"===t.event_type?"post"===t.source_type?"".concat(l," liked your post"):"reply"===t.source_type?"".concat(l," liked your reply"):"".concat(l," liked your activity in"):"".concat(l," posted in");var v=t.anchor_reply_id?"/board/post/".concat(t.thread_id,"?reply=").concat(t.anchor_reply_id):"/board/post/".concat(t.thread_id),y={display:"flex",alignItems:"flex-start",ga
2p:a?10:12,padding:a?"12px 12px 12px 10px":"14px 16px 14px 12px",marginBottom:a?8:10,backgroundColor:"#FFFCF0",borderTop:"1px solid #EEE5C4",borderRight:"1px solid #EEE5C4",borderBottom:"1px solid #EEE5C4",borderLeft:"4px solid #FFD621",borderRadius:6,fontFamily:ii},b={width:a?8:10,flexShrink:0,display:"flex",alignItems:"flex-start",paddingTop:a?6:8},x={width:a?7:8,height:a?7:8,borderRadius:"50%",backgroundColor:"#E54848",flexShrink:0,display:"block"},w={display:"flex",flexDirection:"column",flexGrow:1,minWidth:0,gap:a?3:4},k={display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:a?8:12},S={flex:"1 1 auto",minWidth:0,fontSize:a?13:14,fontWeight:400,color:"#1A1A1A",lineHeight:a?"18px":"20px"},j={flexShrink:0,fontSize:a?11:12,fontWeight:400,color:"#888888",lineHeight:a?"14px":"16px"},C={fontSize:a?13:14,fontWeight:500,color:"#2883D8",lineHeight:a?"18px":"20px",overflowWrap:"anywhere"};return(0,F.jsx)(g.rU,{to:v,state:{source:"notification"},style:{textDecoration:"none",color:"inherit",display:"block"},children:(0,F.jsxs)("div",{style:y,children:[(0,F.jsx)("div",{style:b,children:!n&&(0,F.jsx)("span",{style:x})}),(0,F.jsx)(ni.Z,{user:d,size:a?32:40,alt:f}),(0,F.jsxs)("div",{style:w,children:[(0,F.jsx)(oi,{isMobile:a}),(0,F.jsxs)("div",{style:k,children:[(0,F.jsx)("span",{style:S,children:u}),(0,F.jsx)("span",{style:j,children:a?ai(r):(0,ri.Z)(r)})]}),(0,F.jsx)("span",{style:C,children:h})]})]})})},li=function(){return(0,F.jsx)("div",{className:"cmn-avatar","aria-label":"Ken-Bot",children:(0,F.jsx)("img",{src:"/assets/img/logo/terry-logo.png",alt:""})})},ci=function(e){var t=e.NotificationData,n=e.is_seen,r=e.CeatedAt,i=(0,h.s0)();if(!t)return null;var o=!!t.commented_at,a=(0,Or.O)(r),s=function(){var e={PhotoID:t.photo_id,UserID:t.photo_author_id},n=we.AES.encrypt(JSON.stringify(e),"siddiqui").toString();i("/otherusers-profile?userdata=".concat(encodeURIComponent(n))),window.scrollTo(0,0)},l="https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_250,f_auto,q_auto/Resized_Photos/".concat(t.compressedImageId),c=o?"\u201c".concat(t.comment_text,"\u201d"):t.line;return(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{className:"profile-card ".concat(n||o?"":"new-card"," style--two cmn-row ").concat(o?"cmn-row--answered":""),children:[(0,F.jsx)(li,{}),(0,F.jsxs)("div",{className:"cmn-content",children:[(0,F.jsxs)("div",{className:"cmn-title",children:[(0,F.jsx)("span",{className:"cmn-label",children:"Ken-Bot has a photo for your comment"})," ",(0,F.jsx)("span",{className:"time-indicator",children:a})]}),(0,F.jsx)("div",{className:"cmn-sentence",children:c})]}),(0,F.jsx)("div",{className:"cmn-action",children:o?(0,F.jsx)("span",{className:"PointerClass cmn-link",onClick:s,children:"See your comment"}):(0,F.jsx)("button",{type:"button",className:"btn btn--116 cmn-cta",onClick:function(){if(t.invite_token)return i("/comment-invite/".concat(t.invite_token)),void window.scrollTo(0,0);s()},children:"Take a look"})}),(0,F.jsx)("img",{src:l,alt:"thumb",className:"comment-photo cmn-thumb",onClick:s})]})})},ui=n(7687),di=function(){return(0,F.jsx)("div",{className:"bin-avatar","aria-label":"Ken-Bot",children:(0,F.jsx)("img",{src:"/assets/img/logo/terry-logo.png",alt:""})})},fi=function(){return(0,F.jsxs)("div",{className:"bin-eyebrow",children:[(0,F.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#7A4A2E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z"})}),(0,F.jsx)("span",{className:"bin-eyebrow-label",children:"Big Photo Board"})]})},pi=function(e){var t=e.NotificationData,n=e.is_seen,r=e.CeatedAt;if(!t)return null;var i=t.reply_text||"",o=!!i,a=t.thread_title||"a Board thread",s=o?t.reply_id:t.anchor_reply_id,l=new URLSearchParams;s&&l.set("reply",s),t.invite_token&&(l.set("invite",t.invite_token),l.set("src","activity"));var c=l.toString(),u=c?"/board/post/".concat(t.post_id,"?").concat(c):"/board/post/".concat(t.post_id),d={source:"notification"},f=!o&&!!t.anchor_reply_id,p=o?"\u201c".concat((0,ui.L)(i),"\u201d"):t.line||"";return(0,F.jsxs)("div",{className:"bin-row ".concat(o?"bin-row--answered":""),children:[(0,F.jsx)("span",{className:"bin-dot-slot",children:!n&&!o&&
2(0,F.jsx)("span",{className:"bin-dot"})}),(0,F.jsxs)("div",{className:"bin-main",children:[(0,F.jsx)(di,{}),(0,F.jsxs)("div",{className:"bin-content",children:[(0,F.jsxs)("div",{className:"bin-eyebrow-row",children:[(0,F.jsx)(fi,{}),(0,F.jsx)("span",{className:"bin-time",children:(0,ri.Z)(r)})]}),(0,F.jsxs)("div",{className:"bin-headline ".concat(f?"bin-headline--reply":""),children:[f&&(0,F.jsx)("span",{className:"bin-news",children:"Someone replied in"}),(0,F.jsx)(g.rU,{to:u,state:d,className:"bin-title-link",children:(0,F.jsx)("span",{className:"bin-title",children:a})})]}),(0,F.jsx)("div",{className:"bin-sentence",children:p})]}),(0,F.jsx)("div",{className:"bin-action",children:o?(0,F.jsx)(g.rU,{to:u,state:d,className:"bin-link",children:"See your reply"}):(0,F.jsx)(g.rU,{to:u,state:d,className:"bin-cta",children:"Take a look"})})]})]})},hi=n(460),mi=n(1676),vi=function(){return(0,F.jsx)("div",{className:"wsn-avatar","aria-label":"Ken-Bot",children:(0,F.jsx)("img",{src:"/assets/img/logo/terry-logo.png",alt:""})})};var gi=function(e){var t=e.NotificationData,n=e.is_seen,r=e.CeatedAt,i=t||{},o=!n,a=function(e){return e?"string"===typeof e.tile_line&&""!==e.tile_line.trim()?{pre:e.tile_line.trim(),strong:null,post:""}:(0,hi.k)(e):null}(i),s=i.photo_id,l=s?"/review/photo/".concat(encodeURIComponent(s),"?src=activity"):null,c=i.compressedImageId?"https://res.cloudinary.com/duk09hrua/image/upload/c_fill,w_250,h_190,f_auto,q_auto/Resized_Photos/".concat(i.compressedImageId):null,u="weekly_overall"===i.hero_kind?{band:i.hero_band,value:i.hero_value}:null,d=r?(0,Or.O)(r):null;return(0,F.jsxs)("div",{className:"profile-card ".concat(o?"new-card":""," style--two wsn-row ").concat(o?"wsn-row--unread":"wsn-row--read"),children:[(0,F.jsx)(vi,{}),(0,F.jsxs)("div",{className:"wsn-content",children:[(0,F.jsxs)("div",{className:"wsn-head",children:[(0,F.jsxs)("div",{className:"wsn-eyebrow-row",children:[(0,F.jsx)("span",{className:"wsn-eyebrow",children:"Weekly standing"}),d&&(0,F.jsx)("span",{className:"wsn-time",children:d})]}),(0,F.jsx)("div",{className:"wsn-headline",children:"Your ranking from last week's Hunt is ready!"})]}),a&&(0,F.jsxs)("div",{className:"wsn-line",children:[a.pre,a.strong&&(0,F.jsx)("strong",{className:"wsn-strong",children:a.strong}),a.post]})]}),(0,F.jsx)("div",{className:"wsn-action",children:l&&(o?(0,F.jsx)(g.rU,{to:l,className:"wsn-cta",children:"See your review"}):(0,F.jsx)(g.rU,{to:l,className:"wsn-link",children:"See review"}))}),c&&(0,F.jsxs)("div",{className:"wsn-thumb",children:[(0,F.jsx)("img",{src:c,alt:""}),(0,F.jsx)(mi.Z,{size:"thumb",standing:u})]})]})},yi=function(e){var t=(0,c.useState)(e.NotificationsData),n=(0,p.Z)(t,2),r=n[0];n[1];return(0,F.jsxs)(F.Fragment,{children:["follow_user"==r.notification_type&&(0,F.jsx)(Lr,{NotificationData:r.message,NotificationID:r.id,is_seen:r.is_seen,usertoken:e.usertoken,loginUserid:e.loginUserid}),"weekly_top_ten"==r.notification_type&&(0,F.jsx)(Br,{NotificationData:r.message,is_seen:r.is_seen,loginUserid:e.loginUserid}),"upvote_photo"==r.notification_type&&(0,F.jsx)(zr,{NotificationData:r.message,NotificationID:r.id,is_seen:r.is_seen,usertoken:e.usertoken,loginUserid:e.loginUserid}),"thanks_on_upvote"==r.notification_type&&(0,F.jsx)(Ur,{NotificationData:r.message,NotificationID:r.id,is_seen:r.is_seen,usertoken:e.usertoken,loginUserid:e.loginUserid}),"welcome_user"==r.notification_type&&(0,F.jsx)(Hr,{NotificationData:r.message,NotificationID:r.id,is_seen:r.is_seen,usertoken:e.usertoken,loginUserid:e.loginUserid}),"posted_photo"==r.notification_type&&(0,F.jsx)(Wr,{NotificationData:r.message,is_seen:r.is_seen,usertoken:e.usertoken,loginUserid:e.loginUserid}),"comment_on_photo"==r.notification_type&&(0,F.jsx)(Vr,{NotificationData:r.message,is_seen:r.is_seen,usertoken:e.usertoken,CeatedAt:r.createdAt,loginUserid:e.loginUserid}),"reply_to_comment"==r.notification_type&&(0,F.jsx)(Gr,{NotificationData:r.message,is_seen:r.is_seen,usertoken:e.usertoken,CeatedAt:r.createdAt,loginUserid:e.loginUserid}),"follower_in_weekly_top_ten"==r.notification_type&&(0,F.jsx)(Jr,{NotificationData:r.message,NotificationID:r.id,is_seen:r.is_seen,usertoken:e.usertoken,loginUserid:e.loginUserid}),"congratulate_weekly_toptenuser"==r.notification_type&&(0,F.jsx)(Kr,{NotificationData:r.message,NotificationID:r.id,is_seen:r.is_seen,usertoken:e.usertoken,loginUserid:e.loginUserid}),"thanks_on_weeklytopten_congratulation"==r.notification_type&&(0,F.jsx)(Yr,{NotificationData:r.message,NotificationID:r.id,is_seen:r.is_seen,usertoken:e.usertoken,loginUserid:e.loginUserid}),"upvote_comment"==r.notification_type&&(0,F.jsx)(Xr,{NotificationData:r.message,is_seen:r.is_seen,usertoken:e.usertoken,loginUserid:e.loginUserid,NotificationID:r.id}),"thanks_on_upvote_comment"==r.notification_type&&(0,F.jsx)(Qr,{NotificationData:r.message,NotificationID:r.id,is_seen:r.is_seen,usertoken:e.usertoken,loginUserid:e.loginUserid}),"Inactive for 56 days"==r.notification_type&&(0,F.jsx)(ei,{NotificationData:r.message,is_seen:r.is_seen}),"admin_new"==r.notification_type&&(0,F.jsx)(ti,{NotificationData:r.message}),"admin_regular"==r.notification_type&&(0,F.jsx)(ti,{NotificationData:r.message}),["bpb_reply_to_post","bpb_reply_to_reply","bpb_followed_thread_reply","bpb_like","bpb_mention"].includes(r.notification_type)&&(0,F.jsx)(si,{message:r.message,isSeen:r.is_seen,createdAt:r.createdAt}),"comment_invitation"==r.notification_type&&(0,F.jsx)(ci,{NotificationData:r.message,is_seen:r.is_seen,CeatedAt:r.createdAt}
2),"board_invitation"==r.notification_type&&(0,F.jsx)(pi,{NotificationData:r.message,is_seen:r.is_seen,CeatedAt:r.createdAt}),"weekly_standing"==r.notification_type&&(0,F.jsx)(gi,{NotificationData:r.message,is_seen:r.is_seen,CeatedAt:r.createdAt}),"unviewed"==r.notification_type&&(0,F.jsx)("div",{className:"since_visit_last_time",children:(0,F.jsxs)("span",{className:"text",children:[(0,F.jsx)("img",{src:"/assets/img/icons/arrow-up-activity.svg",alt:"img"}),"Since your last visit",(0,F.jsx)("img",{src:"/assets/img/icons/arrow-up-activity.svg",alt:"img"})]})})]})},bi=n(8601),xi=n(3892),wi=n(7421),ki="after_row".concat(3),Si=function(){var e=(0,c.useState)(!1),t=(0,p.Z)(e,2),n=t[0],r=t[1],i=(0,c.useState)(!0),o=(0,p.Z)(i,2),a=o[0],s=o[1],l=(0,c.useState)([]),u=(0,p.Z)(l,2),h=u[0],m=u[1],x=(0,c.useState)([]),w=(0,p.Z)(x,2),k=w[0],S=w[1],C=(0,c.useState)(!1),_=(0,p.Z)(C,2),E=_[0],N=_[1],A=(0,c.useRef)(),D=(0,c.useRef)(null),I=(0,c.useRef)(!1),P=(0,y.I0)(),O=(0,c.useRef)(null),M=(0,c.useRef)(!1),Z=(0,c.useState)(!1),R=(0,p.Z)(Z,2),L=R[0],B=R[1],z=(0,bi.Z)(),U=localStorage.getItem("Data"),H=(0,b.a)(U),W=H.token,q=H.CreatedAt,V=H.userid,G=(0,y.v9)((function(e){return e.Socket.ReloadGetNorificationApi})),$=(0,y.v9)((function(e){return e.Common.activityCalloutData})),J=new Date(q).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),K=function(e){e[0].isIntersecting&&!I.current&&D.current&&(I.current=!0,function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,n,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),e.prev=1,e.next=4,Ye(D.current);case 4:t=e.sent,n=t.data.data,i=n.notifications||[],S((function(e){return[].concat((0,v.Z)(e),(0,v.Z)(i))})),D.current=n.cursor||null,D.current||s(!1),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(1);case 14:return e.prev=14,I.current=!1,r(!1),e.finish(14);case 18:case"end":return e.stop()}}),e,null,[[1,12,14,18]])})));return function(){return e.apply(this,arguments)}}()())};(0,c.useEffect)((function(){var e=new IntersectionObserver(K,{root:null,threshold:0});return A.current&&e.observe(A.current),function(){A.current&&e.unobserve(A.current)}}),[h]),(0,c.useEffect)((function(){m([]),S([]),r(!0),N(!1),s(!0),D.current=null,I.current=!1;var e=!M.current;M.current=!0;var t=function(){var t=(0,f.Z)((0,d.Z)().mark((function t(){var n,i,o,a;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ye(null);case 3:if(n=t.sent,i=n.data.data,e&&null===O.current&&(O.current=!1===i.had_unseen,B(O.current)),m(i.notifications||[]),D.current=i.cursor||null,i.notifications&&0!=i.notifications.length||(N(!0),s(!1)),D.current||s(!1),n.data.data.total_notifications>0)for(o=n.data.data.total_notifications,a=0;a<o;a++)j.Z.getInstance().logEvent("Activity Page Notification",{UserID:V});r(!1),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),r(!1);case 17:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(){return t.apply(this,arguments)}}();t()}),[G]);var Y=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!$){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,(0,xi.e5)();case 5:t=e.sent,P(wi.x.setActivityCalloutData(t.data.data.activityCallout)),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),console.error("Error fetching activity callout data:",e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){Y()}),[]);var X=new Set,Q=[].concat((0,v.Z)(h),(0,v.Z)(k)).filter((function(e){return!(!e||null==e.id||X.has(e.id))&&(X.add(e.id),!0)})),ee=Math.min(2,Q.length-1);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("div",{className:"left-content pb-120",style:{paddingBottom:"120px",width:"100%"},children:[(0,F.jsx)("h4",{className:"mb-4 text-center text-lg-start mb-lg-2",children:"Activity"}),(0,F.jsxs)("div",{className:"d-flex flex-column gap-3 gap-lg-4",children:[null===Q||void 0===Q?void 0:Q.map((function(e,t){return(0,F.jsxs)(c.Fragment,{children:[(0,F.jsx)(yi,{NotificationsData:e,usertoken:W,loginUserid:V}),t===ee&&L&&z&&(0,F.jsx)(T.Z,{post:z,placement:"activity_page",variant:ki,layout:"feed"})]},e.id)})),E&&(0,F.jsx)("h4",{children:"Record Not Found"}),E&&L&&z&&(0,F.jsx)(T.Z,{post:z,placement:"activity_page",variant:ki,layout:"feed"})]}),a&&n&&(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:"20px"},children:(0,F.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,F.jsx)("span",{className:"sr-only"})})}),a&&Q.length>0&&(0,F.jsx)("div",{ref:A})]}),(0,F.jsx)("hr",{style:{width:1}}),(0,F.jsxs)("div",{className:"right-content",children:[(0,F.jsxs)("span",{className:"btn member-since-btn",style:{backgroundColor:"transparent"},children:["Member since ",J]}),(0,F.jsxs)("div",{className:"activity-call_to_action",children:[(0,F.jsx)("div",{className:"icon",children:(0,F.jsx)("div",{style:{backgroundColor:"white",borderRadius:"50%",height:"48px",width:"48px",display:"flex",justifyItems:"center",padding:"10px"},children:(0,F.jsx)("img",{src:"/assets/img/hunt-page/star.svg",alt:""})})}),(0,F.jsx)("div",{className:"action_title",children:null===$||void 0===$?void 0:$.t
2itle}),(0,F.jsxs)("div",{className:"action_title",style:{fontSize:"12px",fontWeight:"400",marginTop:"8px"},children:[" ",null===$||void 0===$?void 0:$.subTitle]}),(0,F.jsx)("ul",{className:"action_links",children:(0,F.jsx)("li",{children:(0,F.jsxs)(g.rU,{to:"".concat(null===$||void 0===$?void 0:$.CTA_Url),target:"_blank",children:[null===$||void 0===$?void 0:$.CTA,(0,F.jsx)("img",{src:"/assets/img/icons/action-link.svg",alt:"img"})]})})})]})]})]})},ji=function(){return(0,Pr.Z)(),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ce.Z,{}),(0,F.jsx)("main",{className:"site-content",id:"main",style:{paddingTop:"40px"},children:(0,F.jsx)("div",{className:" ",children:(0,F.jsx)("div",{className:"container container-two",children:(0,F.jsx)("div",{className:"tab-content",children:(0,F.jsx)("div",{className:"activity-wrapper",children:(0,F.jsx)(Si,{})})})})})})]})},Ci=function(e){var t=e.to,n=e.isActive,r=e.label,i=e.count,o=e.children,a=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("span",{className:"bpb-tabs-label",children:[r,o]}),i&&(0,F.jsx)("span",{"aria-hidden":"true",className:"bpb-tabs-count",children:i})]});return n?(0,F.jsx)("span",{className:"bpb-tabs-tab bpb-tabs-tab--active","aria-current":"page",children:a}):(0,F.jsx)(g.rU,{to:t,className:"bpb-tabs-tab",children:a})},_i=function(e){var t=e.active,n=e.unseenThreadCount,r=void 0===n?null:n,i=e.hasUnseenFallback,o=void 0!==i&&i;if(!(0,me.I)())return null;var a,s="number"!==typeof(a=r)||a<=0?null:a>=100?"99+":String(a),l=!s&&o&&"my-threads"!==t;return(0,F.jsx)("div",{className:"bpb-tabs",children:(0,F.jsxs)("div",{className:"container bpb-tabs-inner",children:[(0,F.jsx)(Ci,{to:"/board",isActive:"feed"===t,label:"Feed"}),(0,F.jsxs)(Ci,{to:"/board/my-threads",isActive:"my-threads"===t,label:"My Threads",count:s,children:[s&&(0,F.jsx)("span",{className:"bpb-tabs-sr-only",children:1===r?"1 thread with new activity":"".concat(r," threads with new activity")}),l&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{"aria-hidden":"true",className:"bpb-tabs-dot"}),(0,F.jsx)("span",{className:"bpb-tabs-sr-only",children:"Replies waiting on your threads"})]})]})]})})},Ei=n(6808),Ni=function(){return(0,F.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#9B9CA5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:[(0,F.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,F.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})},Ai=function(){return(0,F.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#696B78",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,F.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})},Di=function(e){var t=e.initialQuery,n=void 0===t?"":t,r=e.onSearch,i=e.className,o=(0,c.useState)(n),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useRef)(null),d=(0,c.useRef)(null),f=(0,c.useRef)(n),h=function(e){var t=e.trim().slice(0,200),n=t.length>=2?t:"";f.current=n,r(n)};(0,c.useEffect)((function(){n!==f.current&&(d.current&&(clearTimeout(d.current),d.current=null),f.current=n,l(n))}),[n]),(0,c.useEffect)((function(){return function(){d.current&&clearTimeout(d.current)}}),[]);return(0,F.jsxs)("form",{role:"search",onSubmit:function(e){e.preventDefault(),d.current&&clearTimeout(d.current),h(s)},className:i,style:{display:"flex",flex:"1 1 0",alignItems:"center",gap:10,paddingTop:12,paddingBottom:12,paddingLeft:16,paddingRight:16,backgroundColor:"#FFFFFF",borderRadius:9999,borderWidth:1,borderStyle:"solid",borderColor:"#DDDDDD"},children:[(0,F.jsx)(Ni,{}),(0,F.jsx)("input",{ref:u,type:"text",value:s,onChange:function(e){var t=e.target.value;l(t),d.current&&clearTimeout(d.current),d.current=setTimeout((function(){d.current=null,h(t)}),300)},placeholder:"Search the board","aria-label":"Search the board",maxLength:200,style:{flex:"1 1 0",minWidth:0,border:"none",outline:"none",padding:0,backgroundColor:"transparent",color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:15,lineHeight:"18px"}}),s.length>0&&(0,F.jsx)("button",{type:"button",onClick:function(){d.current&&clearTimeout(d.current),l(""),h(""),u.current&&u.current.focus()},"aria-label":"Clear search",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:18,height:18,padding:0,border:"none",backgroundColor:"transparent",curs
2or:"pointer"},children:(0,F.jsx)(Ai,{})})]})},Ti=function(e){var t=e.value,n=e.onChange,r=e.following,i=e.onSelectFollowing,o=(0,c.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),a=(0,p.Z)(o,2),s=a[0],l=a[1];(0,c.useEffect)((function(){if("undefined"!==typeof window){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return l(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}}),[]);var u=(0,c.useRef)(null),d=(0,c.useState)(!1),f=(0,p.Z)(d,2),h=f[0],m=f[1],v=(0,c.useCallback)((function(){var e=u.current;m(!!e&&e.scrollWidth-e.clientWidth-e.scrollLeft>1)}),[]);(0,c.useEffect)((function(){var e=!1,t=function(){e||v()};return t(),window.addEventListener("resize",t),"undefined"!==typeof document&&document.fonts&&document.fonts.ready&&document.fonts.ready.then(t).catch((function(){})),function(){e=!0,window.removeEventListener("resize",t)}}),[v,s]);var g={display:"inline-flex",alignItems:"center",flexShrink:0,gap:s?4:5,paddingTop:5,paddingBottom:5,paddingLeft:s?11:12,paddingRight:s?11:12,borderRadius:9999,border:"none",cursor:"pointer",fontFamily:'"Jost", system-ui, sans-serif',fontSize:12,fontWeight:500,lineHeight:s?"14px":"16px"};return(0,F.jsxs)("div",{role:"tablist","aria-label":"Filter board by category",className:"bpb-topic-filter-row".concat(h?" bpb-topic-filter-row--more":""),ref:u,onScroll:v,style:{display:"flex",flexWrap:"nowrap",alignItems:"center",gap:s?8:10,paddingBottom:s?10:14,overflowX:"auto"},children:[Ei.EF.map((function(e){var i=Ei.pB[e],o=!r&&(t===e||!t&&"all"===e),a=s&&i.icon?c.cloneElement(i.icon,{size:11}):i.icon;return(0,F.jsxs)("button",{type:"button",role:"tab","aria-selected":o,onClick:function(){return n("all"===e?null:e)},style:(0,A.Z)((0,A.Z)({},g),{},{backgroundColor:i.bg,color:i.fg,opacity:o?1:.78,boxShadow:o?"inset 0 0 0 1.5px ".concat(i.fg):"none",transition:"opacity 120ms ease, box-shadow 120ms ease"}),children:[a,i.label]},e)})),(0,F.jsx)("button",{type:"button",role:"tab","aria-selected":r,onClick:i,style:(0,A.Z)((0,A.Z)({},g),{},{backgroundColor:r?"#FFFCF0":"#F2F3F4",color:"#05081E",boxShadow:r?"inset 0 0 0 2px #FFD621":"none",transition:"background-color 120ms ease, box-shadow 120ms ease"}),children:"Following"})]})},Ii={position:"relative",display:"inline-flex",alignItems:"center",gap:8,flexShrink:0,backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#CDCED2",borderRadius:8,boxSizing:"border-box",paddingTop:8,paddingBottom:8,paddingLeft:14,paddingRight:14,cursor:"pointer",fontFamily:'"Jost", system-ui, sans-serif'},Pi={color:"#696B78",fontSize:12,lineHeight:"16px"},Fi=function(e){var t=e.options,n=e.value,r=e.onChange,i=e.ariaLabel,o=t.find((function(e){return e.value===n}))||t[0];return(0,F.jsxs)("label",{className:"bpb-sort-dropdown",style:Ii,children:[(0,F.jsx)("span",{className:"bpb-sort-label bpb-sort-label-full",style:Pi,children:"Sort by:"}),(0,F.jsx)("span",{className:"bpb-sort-label bpb-sort-label-short",style:(0,A.Z)((0,A.Z)({},Pi),{},{display:"none"}),children:"Sort:"}),(0,F.jsx)("span",{className:"bpb-sort-value",style:{color:"#05081E",fontSize:13,fontWeight:500,lineHeight:"16px"},children:o.label}),(0,F.jsx)("svg",{className:"bpb-sort-caret",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#696B78",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0,pointerEvents:"none"},children:(0,F.jsx)("polyline",{points:"6 9 12 15 18 9"})}),(0,F.jsx)("select",{"aria-label":i,className:"bpb-skip-nice-select",value:n,onChange:function(e){return r(e.target.value)},style:{position:"absolute",inset:0,width:"100%",height:"100%",opacity:0,cursor:"pointer",fontFamily:"inherit"},children:t.map((function(e){return(0,F.jsx)("option",{value:e.value,children:e.label},e.value)}))})]})},Oi=function(){return(0,F.jsxs)(g.rU,{to:"/board/welcome",onClick:function(){window.scrollTo(0,0)},className:"d-lg-none","aria-label":"Tips and Rules for the Big Photo Board",style:{display:"inline-flex",alignItems:"center",gap:6,marginRight:"auto",position:"relative",top:5,left
2:2,textDecoration:"none",fontFamily:'"Jost", system-ui, sans-serif',fontSize:9.8,fontWeight:400,lineHeight:"12px",color:"#696B78",whiteSpace:"nowrap"},children:[(0,F.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"#FFD621",strokeWidth:"2"}),(0,F.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"16",stroke:"#FFD621",strokeWidth:"2",strokeLinecap:"round"}),(0,F.jsx)("circle",{cx:"12",cy:"8",r:"1.25",fill:"#FFD621"})]}),"Tips and Rules"]})},Mi=function(e){var t=e.sort,n=e.onSortChange;return(0,F.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",flexShrink:0},children:[(0,F.jsx)(Oi,{}),(0,F.jsx)(Fi,{options:Ei.aP,value:t,onChange:n,ariaLabel:"Sort the Board"})]})},Zi=n(7508),Ri={display:"inline-flex",alignItems:"center",gap:5,paddingTop:4,paddingBottom:4,paddingLeft:10,paddingRight:10,borderRadius:9999,fontFamily:'"Jost", system-ui, sans-serif',fontSize:11,fontWeight:500,lineHeight:"14px",flexShrink:0,whiteSpace:"nowrap"},Li=function(){var e=(0,c.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),t=(0,p.Z)(e,2),n=t[0],r=t[1];(0,c.useEffect)((function(){if("undefined"!==typeof window){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return r(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}}),[]);var i={display:"inline-flex",alignItems:"center",gap:n?4:5,paddingTop:n?2:3,paddingBottom:n?2:3,paddingLeft:n?7:8,paddingRight:n?7:8,borderRadius:9999,backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#FFD621",fontFamily:'"Jost", system-ui, sans-serif',fontWeight:700,fontSize:n?10:11,lineHeight:n?"12px":"14px",letterSpacing:"0.05em",textTransform:"uppercase",color:"#7C6940",flexShrink:0,whiteSpace:"nowrap"},o=n?9:10;return(0,F.jsxs)("span",{style:i,children:[(0,F.jsxs)("svg",{width:o,height:o,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0,overflow:"visible"},children:[(0,F.jsx)("path",{d:"M12 17v5",stroke:"#000000",strokeWidth:"2.2",fill:"none"}),(0,F.jsx)("path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",fill:"#FFD621"})]}),"Pinned Post"]})},Bi=function(){return(0,F.jsx)("span",{style:(0,A.Z)((0,A.Z)({},Ri),{},{backgroundColor:"#F2F3F4",color:"#696B78",letterSpacing:"0.08em",textTransform:"uppercase",fontWeight:600,paddingTop:2,paddingBottom:2}),children:"Auto-posted"})},zi=function(){return(0,F.jsx)("span",{style:{display:"inline-flex",alignItems:"center",backgroundColor:"#FFD621",borderRadius:4,paddingTop:1,paddingBottom:1,paddingLeft:6,paddingRight:6,color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:9,fontWeight:600,letterSpacing:"0.04em",lineHeight:"12px",flexShrink:0,whiteSpace:"nowrap"},children:"PRO"})},Ui=function(){return(0,F.jsx)("span",{style:{display:"inline-flex",alignItems:"center",backgroundColor:"#FFF8D6",borderRadius:4,borderWidth:1,borderStyle:"solid",borderColor:"#FFD621",paddingTop:1,paddingBottom:1,paddingLeft:6,paddingRight:6,color:"#5A4500",fontFamily:'"Jost", system-ui, sans-serif',fontSize:9,fontWeight:600,letterSpacing:"0.04em",lineHeight:"12px",textTransform:"uppercase",flexShrink:0,whiteSpace:"nowrap"},children:"Author"})},Hi=function(e){var t=e.compact,n=void 0!==t&&t;return(0,F.jsxs)("span",{style:(0,A.Z)((0,A.Z)((0,A.Z)({},Ri),n?{gap:4,paddingTop:3,paddingBottom:3,paddingLeft:9,paddingRight:9,fontSize:10,lineHeight:"12px"}:null),{},{backgroundColor:"#FFF8D6",borderWidth:1,borderStyle:"solid",borderColor:"#FFD621",color:"#5A4500"}),children:[(0,F.jsx)("svg",{width:n?10:11,height:n?10:11,viewBox:"0 0 24 24",fill:"#05081E",stroke:"#05081E",strokeWidth:"0.5",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:(0,F.jsx)("path",{d:"M12 2l1.5 4.5L18 8l-3.5 2.5L16 15l-4-2.5L8 15l1.5-4.5L6 8l4.5-1.5z",transform:"rotate(35 12 12)"})}),n?"Pinned reply":"Has pinned reply"]})},Wi=function(){return(0,F.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#696B78",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:[(0,F.jsx)("rect",{x:"5",y:"11",width:"14",height:"10",rx:"2"}),(0,F.jsx)("path",{d:"M8 11V8a4 4 0 0 1 8 0v3"})]})},qi=function(e,t,n){return e>9?"".concat(9,"+ ").concat(n):1===e?"1 ".concat(t):"".concat(e," ").concat(n)},Vi=function(e){var t=e.replyUnseen,n=e.mentionUnseen,r=e.viewerAuthored,i=Number.isFinite(t)&&t>0?t:0,o=Number.isFinite(n)&&n>0?n:0,a=!r&&o>0,s=a?o:i;return{show:s>0,useMentions:a,label:a?qi(s,"new mention","new mentions"):qi(s,"new reply","new replies")}},Gi=n(4164),$i=16,Ji=function(){return(0,F.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"
2currentColor",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:[(0,F.jsx)("circle",{cx:"12",cy:"5",r:"2"}),(0,F.jsx)("circle",{cx:"12",cy:"12",r:"2"}),(0,F.jsx)("circle",{cx:"12",cy:"19",r:"2"})]})},Ki=function(){return(0,F.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:[(0,F.jsx)("path",{d:"M18 8a6 6 0 0 0 -12 0c0 7 -3 9 -3 9h18s-3 -2 -3 -9"}),(0,F.jsx)("path",{d:"M13.73 21a2 2 0 0 1 -3.46 0"})]})},Yi=function(){return(0,F.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("path",{d:"M4 21v-7m0 0V4h13l-2.5 5L17 14H4z"})})},Xi=function(e){var t=e.following,n=e.onToggleFollow,r=e.onReport,i=e.inFlight,o=e.isMobile,a=e.triggerMarginRight,s=(0,c.useState)(!1),l=(0,p.Z)(s,2),u=l[0],d=l[1],f=(0,c.useState)({top:0,left:0,ready:!1}),h=(0,p.Z)(f,2),m=h[0],v=h[1],g=(0,c.useRef)(null),y=(0,c.useRef)(null),b=(0,c.useCallback)((function(){return d(!1)}),[]),x=(0,c.useCallback)((function(){var e=g.current,t=y.current;if(e&&t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.innerWidth,o=window.innerHeight,a=n.right-r.width,s=n.bottom+8;if(a<$i&&(a=$i),a+r.width>i-$i&&(a=i-$i-r.width),s+r.height>o-$i){var l=n.top-8-r.height;s=l>=$i?l:Math.max($i,o-$i-r.height)}v({top:s,left:a,ready:!0})}}),[]);(0,c.useLayoutEffect)((function(){if(u)return x(),window.addEventListener("resize",x),function(){return window.removeEventListener("resize",x)}}),[u,x]),(0,c.useEffect)((function(){if(u){var e=requestAnimationFrame((function(){var e=y.current&&y.current.querySelector('[role="menuitem"]');e&&e.focus()}));return function(){return cancelAnimationFrame(e)}}}),[u]),(0,c.useEffect)((function(){if(u){var e=function(e){"Escape"===e.key&&(b(),g.current&&g.current.focus())},t=function(e){y.current&&e.target&&1===e.target.nodeType&&y.current.contains(e.target)||b()},n=function(e){var t=y.current,n=g.current;t&&t.contains(e.target)||n&&n.contains(e.target)||b()},r=function(){return b()};return window.addEventListener("keydown",e),window.addEventListener("scroll",t,!0),window.addEventListener("pointerdown",n),window.addEventListener("popstate",r),function(){window.removeEventListener("keydown",e),window.removeEventListener("scroll",t,!0),window.removeEventListener("pointerdown",n),window.removeEventListener("popstate",r)}}}),[u,b]);var w=(0,A.Z)((0,A.Z)({},o?{padding:6,flexShrink:0}:{padding:4,marginRight:-4,flexShrink:0}),null!=a?{marginRight:a}:null),k=t?"Unfollow thread":"Follow thread";return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("button",{ref:g,type:"button",className:"bpb-card-overflow",style:w,onClick:function(e){e.preventDefault(),e.stopPropagation(),d((function(e){return!e}))},"aria-label":"Post actions","aria-haspopup":"menu","aria-expanded":u,children:(0,F.jsx)(Ji,{})}),u&&"undefined"!==typeof document&&(0,Gi.createPortal)((0,F.jsxs)("div",{ref:y,className:"bpb-reply-menu",role:"menu","aria-label":"Post actions",onKeyDown:function(e){if(["ArrowDown","ArrowUp","Home","End"].includes(e.key)){var t=y.current;if(t){var n=Array.from(t.querySelectorAll('[role="menuitem"]:not([disabled])'));if(n.length){e.preventDefault();var r=n.indexOf(document.activeElement);n["Home"===e.key?0:"End"===e.key?n.length-1:"ArrowDown"===e.key?r<0?0:(r+1)%n.length:r<0?n.length-1:(r-1+n.length)%n.length].focus()}}}},style:{position:"fixed",top:m.top,left:m.left,zIndex:9e3,visibility:m.ready?"visible":"hidden"},children:[(0,F.jsxs)("button",{type:"button",className:"bpb-reply-menu__item",role:"menuitem",onClick:function(e){e.preventDefault(),e.stopPropagation(),i||(d(!1),g.current&&g.current.focus(),n&&n())},disabled:i,children:[(0,F.jsx)(Ki,{}),(0,F.jsx)("span",{children:k})]}),(0,F.jsx)("div",{className:"bpb-reply-menu__divider",role:"separator"}),(0,F.jsxs)("button",{type:"button",className:"bpb-reply-menu__item",role:"menuitem",onClick:function(e){e.preventDefault(),e.stopPropagation(),d(!1),r&&r(g.current)},children:[(0,F.jsx)(Yi,{}),(0,F.jsx)("span",{children:"Report post"})]})]}),document.body)]})},Qi=[{value:"spam",label:"Spam or scam"},{value:"harassment",label:"Harassment or hate"},{value:"inappropriate",label:"Inappropriate content"},{value:"off_topic",label:"Wrong category or off-topic"},{value:"other",label:"Something else"}],eo=function(){return(0,F.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,F.jsx)("path",{d:"M5 12.5L10 17.5L19 7.5",fill:"none",stroke:"#FFFFFF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})},to=function(){return(0,F.jsxs)("svg",{className:"bpb-report-modal__error-icon",width:"18",height:"18",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,F.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"#D14747",strokeWidth:"2"}),(0,F.jsx)("path",{d:"M12 7V13",fill:"none",stroke:"#D14747",strokeWidth:"2",strokeLinecap:"round"}),(0,F.jsx)("circle",{cx:"12",cy:"16.5",r:"1.2",fill:"#D14747"})]})},no=function(e){var t=e.open,n=e.onClose,r=e.onSubmit,i=e.restoreFocusRef,o=(0,c.useState)(""),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useState)(""),d=(0,p.Z)(u,2),f=d[0],h=d[1],m=(0,c.useState)("form"),v=(0,p.Z)(m,2),g=v[0],y=v[1],b=(0,c.useState)(""),x=(0,p.Z)(b,2),w=x[0],k=x[1],S=(0,c.useRef)(null),j=(0,c.useRef)(null),C=(0,c.useRef)(null),_=(0,c.useId)(),E="".concat(_,"-note"),N="other"===s,A=f.trim(),D=(0,c.useMemo)((function(){return!!s&&!(N&&!A)}),[s,N,A]);(0,c.useEffect)((function(){return t&&(j.current="undefined"!==typeof document?document.activeElement:null,l(""),h(""),y("form"),k("")),function(){C.current&&(clearTimeout(C.current),C.current=null)}}),[t]),(0,c.useEffect)((function(){if(t){var e=requestAnimationFrame((function(){var e=S.current;if(e){var t=e.querySelector('input[type="radio"]')||e.querySelector("button:not([disabled]), textarea, input");t&&t.focus()}}));return function(){cancelAnimationFrame(e);var t=i&&i.current||j.current;
2t&&"function"===typeof t.focus&&t.focus()}}}),[t,i]),(0,c.useEffect)((function(){if(t){var e=function(e){if("Escape"===e.key)return e.stopPropagation(),void n();if("Tab"===e.key){var t=S.current;if(t){var r=t.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');if(r.length){var i=r[0],o=r[r.length-1];e.shiftKey&&document.activeElement===i?(e.preventDefault(),o.focus()):e.shiftKey||document.activeElement!==o||(e.preventDefault(),i.focus())}}}};return window.addEventListener("keydown",e,!0),function(){return window.removeEventListener("keydown",e,!0)}}}),[t,n]);if(!t||"undefined"===typeof document)return null;var T="submitting"===g,I="error"===g,P=f.length,O="bpb-report-modal__counter".concat(P>0?" is-typing":"").concat(P>=480?" is-near-limit":""),M=T?"Reporting\u2026":I?"Try again":"Report";return(0,Gi.createPortal)((0,F.jsx)("div",{className:"bpb-report-modal__backdrop",onMouseDown:function(e){e.target===e.currentTarget&&n()},children:(0,F.jsxs)("div",{ref:S,className:"bpb-report-modal",role:"dialog","aria-modal":"true","aria-labelledby":_,children:[(0,F.jsx)("div",{className:"bpb-report-modal__grab","aria-hidden":"true",children:(0,F.jsx)("span",{})}),"success"===g?(0,F.jsxs)("div",{className:"bpb-report-modal__success",role:"status",children:[(0,F.jsx)("div",{className:"bpb-report-modal__success-circle",children:(0,F.jsx)(eo,{})}),(0,F.jsx)("div",{className:"bpb-report-modal__success-text",children:"Thanks. We\u2019ll give it a look asap."})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("div",{className:"bpb-report-modal__header",children:[(0,F.jsx)("h2",{id:_,className:"bpb-report-modal__title",children:"Report this post"}),(0,F.jsx)("p",{className:"bpb-report-modal__subtitle",children:"What\u2019s wrong with this post? Your report stays private. The author won\u2019t see your name."})]}),(0,F.jsxs)("fieldset",{className:"bpb-report-modal__reasons",disabled:T,children:[(0,F.jsx)("legend",{className:"bpb-report-modal__legend",children:"Reason"}),Qi.map((function(e){return(0,F.jsxs)("label",{className:"bpb-report-modal__reason".concat(s===e.value?" is-selected":""),children:[(0,F.jsx)("input",{type:"radio",name:"bpb-report-reason",className:"bpb-report-modal__radio-input",value:e.value,checked:s===e.value,onChange:function(){return l(e.value)}}),(0,F.jsx)("span",{className:"bpb-report-modal__radio","aria-hidden":"true"}),(0,F.jsx)("span",{className:"bpb-report-modal__reason-label",children:e.label})]},e.value)}))]}),(0,F.jsxs)("div",{className:"bpb-report-modal__note".concat(N?" is-required":""),children:[(0,F.jsx)("label",{className:"bpb-report-modal__note-label",htmlFor:E,children:N?(0,F.jsxs)(F.Fragment,{children:["Tell us what\u2019s going on ",(0,F.jsx)("span",{className:"bpb-report-modal__note-required",children:"(required)"})]}):"Add any notes that will help us best understand the issue (optional)"}),(0,F.jsxs)("div",{className:"bpb-report-modal__note-box",children:[(0,F.jsx)("textarea",{id:E,className:"bpb-report-modal__textarea",value:f,maxLength:500,readOnly:T,placeholder:"Anything else we should know\u2026",onChange:function(e){return h(e.target.value)}}),(0,F.jsxs)("div",{className:O,children:[P," / ",500]})]})]}),I&&(0,F.jsxs)("div",{className:"bpb-report-modal__error",role:"alert",children:[(0,F.jsx)(to,{}),(0,F.jsxs)("div",{className:"bpb-report-modal__error-text",children:[(0,F.jsx)("div",{className:"bpb-report-modal__error-title",children:"Couldn\u2019t send your report"}),(0,F.jsx)("div",{className:"bpb-report-modal__error-body",children:w})]})]}),(0,F.jsxs)("div",{className:"bpb-report-modal__footer",children:[(0,F.jsx)("span",{className:"bpb-report-modal__privacy",children:"Reports are private."}),(0,F.jsxs)("div",{className:"bpb-report-modal__actions",children:[(0,F.jsx)("button",{type:"button",className:"bpb-report-modal__btn bpb-report-modal__btn--cancel",onClick:n,disabled:T,children:"Cancel"}),(0,F.jsxs)("button",{type:"button",className:"bpb-report-modal__btn bpb-report-modal__btn--primary".concat(T?" is-submitting":""),onClick:function(){D&&"submitting"!==g&&(y("submitting"),k(""),Promise.resolve(r({reason:s,comment:A})).then((function(){y("success"),C.current=setTimeout((function(){n()}),1500)})).catch((function(e){var t=e&&e.response&&e.response.data&&e.response.data.message;k("string"===typeof t&&t?t:"Check your connection and try again."),y("error")})))},disabled:!D||T,children:[T&&(0,F.jsx)("span",{className:"bpb-report-modal__spinner","aria-hidden":"true"}),M]})]})]})]})]})}),document.body)}
2,ro=n(9803),io={display:"inline-flex",alignItems:"center",gap:5,color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:500,lineHeight:"16px"},oo={display:"inline-block",minWidth:"2.25ch",textAlign:"left"},ao=(0,A.Z)((0,A.Z)({},io),{},{boxSizing:"border-box",background:"none",border:"none",cursor:"pointer",paddingTop:6,paddingBottom:6,paddingLeft:8,paddingRight:8,marginTop:-6,marginBottom:-6,marginLeft:-8,marginRight:-8}),so={display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",background:"none",border:"none",cursor:"pointer",color:"#696B78",padding:5,margin:-5},lo=function(e){var t=e.size,n=void 0===t?14:t;return(0,F.jsx)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"#696B78",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:(0,F.jsx)("path",{d:"M21 15a2 2 0 0 1 -2 2h-12l-4 4v-16a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2z"})})},co=function(e){var t=e.filled,n=e.size,r=void 0===n?14:n;return(0,F.jsx)("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:t?"#696B78":"none",stroke:"#696B78",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:(0,F.jsx)("path",{d:"M7 11v8a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1zM7 11v-5a2 2 0 0 1 4 0v5h3a3 3 0 0 1 3 3l-1 5a2 2 0 0 1 -2 1.5h-7"})})},uo=function(e){var t=e.size,n=void 0===t?14:t;return(0,F.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"#696B78",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:[(0,F.jsx)("circle",{cx:"18",cy:"5",r:"3"}),(0,F.jsx)("circle",{cx:"6",cy:"12",r:"3"}),(0,F.jsx)("circle",{cx:"18",cy:"19",r:"3"}),(0,F.jsx)("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),(0,F.jsx)("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]})},fo=function(e){var t=e.size,n=void 0===t?14:t;return(0,F.jsx)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"#696B78",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:(0,F.jsx)("polyline",{points:"20 6 9 17 4 12"})})},po=function(e){var t,n=e.post,r=e.pinned,i=void 0!==r&&r,o=(0,y.I0)(),a=function(e){return!(0,me.I)()&&(e&&(0,ln.VB)(e),o(x.N.setPo
2pupModalMessage({joinModalHeading:(0,ln.dO)(null===e||void 0===e?void 0:e.type)})),o(x.N.setJoinNowModalState(!0)),!0)},s=(0,c.useState)((function(){return!(!n||!n.viewer_has_liked)})),l=(0,p.Z)(s,2),u=l[0],h=l[1],m=(0,c.useState)((function(){return n&&"number"===typeof n.like_count?n.like_count:0})),v=(0,p.Z)(m,2),w=v[0],k=v[1],S=(0,c.useState)((function(){return!(!n||!n.viewer_is_following)})),_=(0,p.Z)(S,2),E=_[0],N=_[1],D=(0,c.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),T=(0,p.Z)(D,2),I=T[0],P=T[1];(0,c.useEffect)((function(){if("undefined"!==typeof window){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return P(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}}),[]);var O=(0,c.useRef)(!1),M=(0,c.useRef)(!1),Z=(0,c.useRef)(!0);(0,c.useEffect)((function(){return function(){Z.current=!1}}),[]);var R=(0,c.useState)(!1),L=(0,p.Z)(R,2),B=L[0],z=L[1],U=(0,c.useRef)(null);(0,c.useEffect)((function(){return function(){U.current&&clearTimeout(U.current)}}),[]),(0,c.useEffect)((function(){O.current||(h(!(!n||!n.viewer_has_liked)),k(n&&"number"===typeof n.like_count?n.like_count:0))}),[n]),(0,c.useEffect)((function(){M.current||N(!(!n||!n.viewer_is_following))}),[n]);var H=function(){if(!a({type:"follow-thread",postId:n&&n.id})&&!M.current&&n){M.current=!0;var e=E;N(!e);(0,he.Ns)({postId:n.id}).then((function(e){var t=e&&e.data&&e.data.data||{};Z.current&&N(!!t.following),(0,C.vX)(C.Nj,n.id,{viewer_is_following:!!t.following}),function(e){try{var t=(0,b.a)(localStorage.getItem("Data"))||{},r=t.userid||t.userId||null;j.Z.getInstance().logEvent("Follow Thread",{UserID:r,source:"board_card",auth_state:r?"logged_in":"logged_out",following:e,post_id:n.id})}catch(i){}}(!!t.following)})).catch((function(){Z.current&&N(e)})).finally((function(){M.current=!1}))}},W=(0,c.useState)(!1),q=(0,p.Z)(W,2),V=q[0],G=q[1],$=(0,c.useRef)(null),J=function(e){n&&(a({type:"report"})||($.current=e||null,G(!0)))},K=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var r,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),t.stopPropagation(),n){e.next=4;break}return e.abrupt("return");case 4:if(r="".concat(window.location.origin,"/board/post/").concat(n.id),i=function(){try{var e=(0,b.a)(localStorage.getItem("Data"))||{},t=e.userid||e.userId||null;j.Z.getInstance().logEvent("Share Post",{UserID:t,source:"board_card",auth_state:t?"logged_in":"logged_out"})}catch(n){}},!navigator.share){e.next=16;break}return e.prev=7,e.next=10,navigator.share({url:r});case 10:i(),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(7);case 15:return e.abrupt("return");case 16:if(!navigator.clipboard||!navigator.clipboard.writeText){e.next=28;break}return e.prev=17,e.next=20,navigator.clipboard.writeText(r);case 20:i(),z(!0),U.current&&clearTimeout(U.current),U.current=setTimeout((function(){return z(!1)}),1500),e.next=28;break;case 26:e.prev=26,e.t1=e.catch(17);case 28:case"end":return e.stop()}}),e,null,[[7,13],[17,26]])})));return function(t){return e.apply(this,arguments)}}();if(!n)return null;var Y=n.User||n.author||{},X=!!n.is_locked,Q=!!n.has_pinned_reply,ee=(0,ui.L)(n.body),te=Array.isArray(n.reply_authors)?n.reply_authors:[],ne=!I&&!i&&!Y.is_bot&&te.length>0,re=Vi({replyUnseen:n&&n.viewer_unseen_reply_count,mentionUnseen:n&&n.viewer_unseen_mention_count,viewerAuthored:!(!n||!n.viewer_authored)}),ie=re.show,oe=re.label,ae=ie?(0,F.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6,flexShrink:0,backgroundColor:"#E7F4EC",borderRadius:999,paddingTop:I?3:4,paddingBottom:I?3:4,paddingLeft:I?9:10,paddingRight:I?9:10},children:[(0,F.jsx)("span",{"aria-hidden":"true",style:{width:I?6:7,height:I?6:7,borderRadius:"50%",backgroundColor:"#1A9E6A",flexShrink:0}}),(0,F.jsx)("span",{style:{fontFamily:'"Jost", system-ui, sans-serif',fontWeight:500,fontSize:I?10:11,lineHeight:I?"12px":"14px",letterSpacing:"0.01em",color:"#0A6B4D",whiteSpace:"nowrap"},children:oe})]}
2):null,se=i?{display:"flex",flexDirection:"column",gap:8,paddingTop:I?12:16,paddingBottom:I?12:16,paddingLeft:I?14:16,paddingRight:I?14:16,borderRadius:10,backgroundColor:"#FFFDF0",borderWidth:1,borderStyle:"solid",borderColor:"#FFD621"}:{display:"flex",flexDirection:"column",gap:I?6:8,paddingTop:I?14:20,paddingBottom:I?16:20,paddingLeft:16,paddingRight:16,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#F2F3F4"},le=(0,A.Z)({margin:0,minWidth:0,color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:I?16:18,fontWeight:500,lineHeight:I?"22px":"26px",display:"flex",alignItems:"center",gap:8},I?null:{flex:"1 1 0"}),ce=I?{fontSize:12,gap:4}:null,ue=I?13:14,de=I?12:14,fe=(0,F.jsxs)("button",{type:"button",onClick:function(e){if(e.preventDefault(),e.stopPropagation(),!a({type:"like-post",postId:n&&n.id})&&!O.current&&n){O.current=!0;var t=u,r=w;h(!t),k(Math.max(0,r+(t?-1:1))),(0,he.uy)({targetType:"post",targetId:n.id}).then((function(e){var t=e&&e.data&&e.data.data||{};h(!!t.liked),"number"===typeof t.like_count&&k(t.like_count),(0,C.vX)(C.Nj,n.id,(0,A.Z)({viewer_has_liked:!!t.liked},"number"===typeof t.like_count?{like_count:t.like_count}:{}))})).catch((function(){h(t),k(r)})).finally((function(){O.current=!1}))}},style:(0,A.Z)((0,A.Z)({},ao),ce),"aria-label":u?"Unlike this post":"Like this post",children:[(0,F.jsx)(co,{filled:u,size:ue}),(0,F.jsx)("span",{style:oo,children:w})]}),pe=(0,F.jsxs)("span",{style:(0,A.Z)((0,A.Z)((0,A.Z)({},io),ce),I?{marginLeft:-8}:{marginRight:-10}),children:[(0,F.jsx)(lo,{size:ue}),(0,F.jsx)("span",{style:oo,children:null!==(t=n.reply_count)&&void 0!==t?t:0})]}),ve=(0,F.jsx)("button",{type:"button",onClick:K,style:so,"aria-label":"Share this post",children:B?(0,F.jsx)(fo,{size:de}):(0,F.jsx)(uo,{size:de})});return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(g.rU,{to:"/board/post/".concat(n.id),state:{source:"feed"},style:{textDecoration:"none",color:"inherit",display:"block"},children:(0,F.jsxs)("article",{style:se,children:[i&&(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:I?6:10},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:I?6:10,flexWrap:I?"wrap":"nowrap",minWidth:0},children:[(0,F.jsx)(Zi.Z,{category:n.category,compact:I}),(0,F.jsx)(Li,{})]}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:I?6:8,flexShrink:0},children:[ae,(0,F.jsx)(Xi,{following:E,onToggleFollow:H,onReport:J,inFlight:M.current,isMobile:I})]})]}),I?(0,F.jsxs)(F.Fragment,{children:[!i&&(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",minWidth:0},children:[(0,F.jsx)(Zi.Z,{category:n.category,compact:!0}),Q&&(0,F.jsx)(Hi,{compact:!0})]}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexShrink:0},children:[ae,(0,F.jsx)(Xi,{following:E,onToggleFollow:H,onReport:J,inFlight:M.current,isMobile:!0,triggerMarginRight:2})]})]}),(0,F.jsxs)("h3",{style:le,children:[X&&(0,F.jsx)(Wi,{}),n.title]})]}):(0,F.jsxs)("div",{style:{display:"flex",alignItems:ie&&!i?"center":"flex-start",justifyContent:"space-between",gap:12},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap",minWidth:0,flex:"1 1 auto"},children:[!i&&(0,F.jsx)(Zi.Z,{category:n.category}),(0,F.jsxs)("h3",{style:le,children:[X&&(0,F.jsx)(Wi,{}),n.title]}),Q&&!i&&(0,F.jsx)(Hi,{})]}),!i&&(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexShrink:0},children:[ae,(0,F.jsx)(Xi,{following:E,onToggleFollow:H,onReport:J,inFlight:M.current,isMobile:!1})]})]}),ee&&(0,F.jsx)("div",{style:{color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:I?13:14,lineHeight:I?"20px":"22px",display:"-webkit-box",WebkitLineClamp:I?1:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:ee}),(0,F.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:I?12:16,marginTop:I?2:4,flexWrap:"nowrap"},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:I?6:8,minWidth:0,flex:"1 1 auto"},children:[(0,F.jsx)(ni.Z,{user:Y,size:I?22:24}),(0,F.jsx)("span",{style:{color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:I?12:13,fontWeight:500,lineHeight:"16px",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Y.name||"Member"}),Y.is_bot&&(0,F.jsx)(Bi,{}),(0,F.jsx)("span",{style:{color:"#9B9CA5",fontSize:I?12:13,lineHeight:"16px",flexShrink:0},children:"\xb7"}),(0,F.jsx)("span",{style:{color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:I?12:13,lineHeight:"16px",flexShrink:0,whiteSpace:"nowrap"},children:(0,ri.Z)(n.createdAt)})]}),(0,F.jsxs)("div",{style:(0,A.Z)({display:"flex",alignItems:"center",gap:18,flexShrink:0},I?i?null:{marginRight:8}:{marginRight:24}),children:[ne&&(0,F.jsx)(ro.Z,{replyAuthors:te,distinctReplierCount:n.distinct_replier_count}),(0,F.jsx)("div",{style:{display:"flex",alignItems:"center",gap:24},children:I?(0,F.jsxs)(F.Fragment,{children:[fe,pe,ve]}):(0,F.jsxs)(F.Fragment,{children:[ve,pe,fe]})})]})]})]})}),(0,F.jsx)(no,{open:V,onClose:function(){return G(!1)},onSubmit:function(e){var t=e.reason,r=e.comment;return(0,he.pF)({targetType:"post",targetId:n.id,reason:t,comment:r}).then((function(e){try{var r=(0,b.a)(localStorage.getItem("Data"))||{},i=r.userid||r.userId||null;j.Z.getInstance().logEvent("Report Post",{UserID:i,source:"board_card",reason:t,post_id:n.id})}catch(o){}return e}))},restoreFocusRef:$})]})},ho=function(){return(0,F.jsxs)("div",{"aria-hidden":!0,style:{display:"flex",flexDirection:"column",gap:10,paddingTop:20,paddingBottom:20,paddingLeft:16,paddingRight:16,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#F2F3F4"},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,F.jsx)(Cr.Z,{width:60,height:22,borderRadius:9999}),(0,F.jsx)("div",{style:{flex:1},children:(0,F.jsx)(Cr.Z,{height:20,width:"60%"})})]}),(0,F.jsx)(Cr.Z,{height:14,width:"92%"}),(0,F.jsx)(Cr.Z,{height:14,width:"78%"}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:4},children:[(0,F.jsx)(Cr.Z,{circle:!0,width:24,height:24}),(0,F.jsx)(Cr.Z,{height:12,width:110})]})]})},mo=n(6266),vo=[{key:"posts_count",singular:"post",plural:"posts"},{key:"replies_count",singular:"reply",plural:"replies"},{key:"likes_count",singular:"like",plural:"likes"}],go=function(e){var t=1===e;return{width:28,height:28,borderRadius:"50%",backgroundColor:t?"#FFF8D6":"#F2F3F4",borderWidth:t?1:0,borderStyle:"solid",borderColor:"#FFD621",color:t?"#5A4500":"#696B78",dis
2play:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontFamily:'"Jost", system-ui, sans-serif',fontSize:12,fontWeight:t?600:500,lineHeight:"16px"}},yo={display:"flex",alignItems:"center",alignSelf:"stretch",gap:12,paddingBlock:9,paddingInline:11,marginInline:-12,borderWidth:1,borderStyle:"solid",borderRadius:8,textAlign:"left",font:"inherit",color:"inherit",cursor:"pointer"},bo={display:"flex",alignItems:"center",gap:12,paddingBlock:10},xo=function(){var e=(0,c.useRef)(null),t=(0,c.useRef)(null),n=(0,c.useRef)(null),r=(0,c.useState)(!1),i=(0,p.Z)(r,2),o=i[0],a=i[1],s=(0,c.useState)(!1),l=(0,p.Z)(s,2),u=l[0],d=l[1],f=(0,c.useId)(),h=(0,c.useCallback)((function(){t.current&&(clearTimeout(t.current),t.current=null),n.current&&(clearTimeout(n.current),n.current=null)}),[]);(0,c.useEffect)((function(){return function(){return h()}}),[h]),(0,c.useEffect)((function(){if(o){var t=function(e){"Escape"===e.key&&(h(),a(!1))},n=function(t){e.current&&!e.current.contains(t.target)&&(h(),a(!1))};return document.addEventListener("keydown",t),document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),function(){document.removeEventListener("keydown",t),document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}}),[o,h]);var m=(0,c.useCallback)((function(e){"touch"!==e.pointerType&&"pen"!==e.pointerType&&(d(!0),n.current&&(clearTimeout(n.current),n.current=null),t.current||o||(t.current=setTimeout((function(){t.current=null,a(!0)}),150)))}),[o]),v=(0,c.useCallback)((function(e){if("touch"!==e.pointerType&&"pen"!==e.pointerType){if(d(!1),t.current)return clearTimeout(t.current),void(t.current=null);o&&!n.current&&(n.current=setTimeout((function(){n.current=null,a(!1)}),120))}}),[o]),g=(0,c.useCallback)((function(e){e&&"function"===typeof e.stopPropagation&&e.stopPropagation(),h(),a((function(e){return!e}))}),[h]),y=o||u?"#696B78":"#9B9CA5";return(0,F.jsxs)("div",{ref:e,onPointerEnter:m,onPointerLeave:v,style:{position:"relative",flexShrink:0,marginLeft:8},children:[(0,F.jsx)("button",{type:"button",onClick:g,"aria-label":"How is this calculated?","aria-expanded":o,"aria-controls":f,style:{width:28,height:28,padding:0,border:"none",borderRadius:"50%",backgroundColor:o?"#F2F3F4":"transparent",color:y,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:0},children:(0,F.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("circle",{cx:"8",cy:"8",r:"6.75",stroke:"currentColor",strokeWidth:"1.5"}),(0,F.jsx)("circle",{cx:"8",cy:"5.1",r:"0.9",fill:"currentColor"}),(0,F.jsx)("rect",{x:"7.25",y:"7.1",width:"1.5",height:"4.4",rx:"0.75",fill:"currentColor"})]})}),o&&(0,F.jsxs)("div",{id:f,style:{position:"absolute",top:"calc(100% + 8px)",right:0,width:244,backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#E8E8EA",borderRadius:8,boxShadow:"0 6px 16px rgba(5, 8, 30, 0.10)",paddingTop:12,paddingBottom:12,paddingLeft:14,paddingRight:14,zIndex:20,color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:400,lineHeight:"18px"},children:[(0,F.jsx)("span",{"aria-hidden":"true",style:{position:"absolute",top:-6,right:9,width:10,height:10,backgroundColor:"#FFFFFF",borderTop:"1px solid #E8E8EA",borderLeft:"1px solid #E8E8EA",transform:"rotate(45deg)"}}),"Ranked by activity over the last 14 days. Posts earn 4 points, replies 2, likes 1. If there's a tie, the most recent activity wins."]})]})},wo=function(e){var t=e.rows,n=e.loading,r=(0,h.s0)(),i=(0,y.I0)(),o=!n&&(!t||0===t.length),a=(0,c.useCallback)((function(e){if(e.id){var t=(0,mo.ES)();if(t&&e.id===t)r("/profile");else{var n={PhotoID:"",UserID:e.id},o=we.AES.encrypt(JSON.stringify(n),"siddiqui").toString(),a="/otherusers-profile?userdata=".concat(encodeURIComponent(o));if(!(0,me.I)())return(0,ln.VB)({type:"view-profile",returnUrl:a}),i(x.N.setPopupModalMessage({joinModalHeading:(0,ln.dO)("view-profile")})),void i(x.N.setJoinNowModalState(!0));r(a)}}}),[r,i]);return(0,F.jsxs)("aside",{className:"bpb-top-contributors",style:{backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#E8E8EA",borderRadius:12,paddingTop:20,paddingRight:20,paddingBottom:16,paddingLeft:20,display:"flex",flexDirection:"column"},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",paddingBottom:16,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#F2F3F4"},children:[(0,F.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,F.jsx)("div",{style:{color:"#9B9CA5",fontFamily:'"Jost", system-ui, sans-serif',fontSize:11,fontWeight:600,letterSpacing:"0.08em",lineHeight:"14px",textTransform:"uppercase"},children:"Last 14 days"}),(0,F.jsx)("div",{style:{color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:17,fontWeight:500,lineHeight:"24px",marginTop:2},children:"Top Contributors"})]}),(0,F.jsx)(xo,{})]}),(0,F.jsxs)("div",{style:{paddingTop:4,display:"flex",flexDirection:"column"},children:[n&&[1,2,3,4,5].map((function(e){return(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,paddingBlock:10},children:[(0,F.jsx)("div",{style:{width:36,height:36,borderRadius:"50%",backgroundColor:"#F2F3F4",flexShrink:0}}),(0,F.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4},children:[(0,F.jsx)("div",{style:{height:12,backgroundColor:"#F2F3F4",borderRadius:4,width:"60%"}}),(0,F.jsx)("div",{style:{height:10,backgroundColor:"#F2F3F4",borderRadius:4,width:"40%"}})]})]},e)})),o&&(0,F.jsx)("div",{style:{paddingTop:16,color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,lineHeight:"20px"},children:"Top contributors will appear here once the board gets going. Start posting."}),!n&&t&&t.map((function(e){var t=e.User||e.user||{},n=function(e){return vo.map((function(t){var n,r=t.key,i=t.singular,o=t.plural,a=null!==(n=e[r])&&void 0!==n?n:0;return a>0?"".concat(a," ").concat(1===a?i:o):null}
2)).filter(Boolean).join(" \xb7 ")}(e),r=e.id||e.user_id,i=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ni.Z,{user:t,size:36}),(0,F.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:1},children:[(0,F.jsx)("div",{style:{color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:500,lineHeight:"18px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.name||"Member"}),n&&(0,F.jsx)("div",{style:{color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:12,lineHeight:"16px"},children:n})]}),(0,F.jsx)("div",{style:go(e.rank),children:e.rank})]});return t.id?(0,F.jsx)("button",{type:"button",className:"bpb-top-contributor-row",style:yo,onClick:function(){return a(t)},"aria-label":"".concat(t.name||"Member").concat(n?", ".concat(n):"",", rank ").concat(e.rank,". View profile."),children:i},r):(0,F.jsx)("div",{style:bo,children:i},r)}))]})]})},ko=function(){return(0,F.jsxs)("div",{style:{width:"100%",boxSizing:"border-box",backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#E8E8EA",borderRadius:12,paddingTop:20,paddingBottom:18,paddingLeft:20,paddingRight:20,display:"flex",flexDirection:"column",gap:2},children:[(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6,paddingBottom:14},children:[(0,F.jsx)("h3",{style:{margin:0,fontFamily:'"Jost", system-ui, sans-serif',fontSize:17,fontWeight:500,lineHeight:"24px",color:"#05081E"},children:"About this Board"}),(0,F.jsxs)("p",{style:{margin:0,fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:400,lineHeight:"20px",color:"#4A4A4F"},children:[(0,F.jsx)("strong",{style:{fontWeight:600},children:"A space for all of us:"})," Post meetups and photowalks. Ask questions, get advice, review each other's photos. Talk about gear. Whatever. Learn, connect and grow together. Have fun!"]})]}),(0,F.jsx)(g.rU,{to:"/board/welcome",onClick:function(){window.scrollTo(0,0)},style:{width:"fit-content",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:600,lineHeight:"18px",color:"#B38600",textDecoration:"none"},children:"Tips and Rules"})]})},So=function(e){var t=e.onDismiss,n=(0,h.s0)(),r=function(){window.scrollTo(0,0),n("/board/welcome")};return(0,F.jsxs)("div",{className:"bpb-welcome-banner",role:"button",tabIndex:0,onClick:r,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r())},children:[(0,F.jsx)("span",{className:"bpb-welcome-banner__icon","aria-hidden":"true",children:"\ud83d\udc4b"}),(0,F.jsxs)("div",{className:"bpb-welcome-banner__text",children:[(0,F.jsx)("p",{className:"bpb-welcome-banner__heading",children:"Welcome! Here's how the board works"}),(0,F.jsxs)("span",{className:"bpb-welcome-banner__cta",children:["Read the quick guide",(0,F.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"#8A7300",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,F.jsx)("polyline",{points:"12 5 19 12 12 19"})]})]})]}),(0,F.jsx)("button",{type:"button",className:"bpb-welcome-banner__dismiss",onClick:function(e){e.stopPropagation(),t&&t()},"aria-label":"Dismiss the welcome banner",children:(0,F.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}),(0,F.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"})]})})]})},jo="bph_board_welcome_banner_dismissed",Co=function(){return"true"===function(e){try{return"undefined"!==typeof window&&window.localStorage?window.localStorage.getItem(e):null}catch(t){return null}}(jo)},_o=function(){!function(e,t){try{return!("undefined"===typeof window||!window.localStorage)&&(window.localStorage.setItem(e,t),!0)}catch(n){return!1}}(jo,"true")},Eo="bph_board_visit_threshold",No=function(){return function(e){try{return"undefined"!==typeof window&&window.sessionStorage?window.sessionStorage.getItem(e):null}catch(t){return null}}(Eo)},Ao=function(e){!function(e,t){try{return!("undefined"===typeof window||!window.sessionStorage)&&(window.sessionStorage.setItem(e,t),!0)}catch(n){return!1}}(Eo,e?String(e):"none")},Do=n(2818),To={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",paddingTop:60,paddingBottom:60,paddingLeft:24,paddingRight:24,textAlign:"center",color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif'},Io={marginTop:16,display:"inline-flex",alignItems:"center",gap:8,paddingTop:10,paddingBottom:10,paddingLeft:20,paddingRight:20,backgroundColor:"#FFD621",color:"#05081E",borderRadius:9999,border:"none",cursor:"pointer",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:500},Po=function(){return(0,F.jsxs)("div",{style:To,children:[(0,F.jsx)("div",{style:{color:"#05081E",fontSize:18,fontWeight:500,lineHeight:"26px"},children:"No posts yet."}),(0,F.jsx)("div",{style:{marginTop:6,fontSize:14,lineHeight:"22px",maxWidth:360},children:"Be the first to start a thread \u2014 tap \u201cNew Post\u201d to share a hunt, a question, or a critique request."})]})},Fo=function(e){var t=e.onRetry;return(0,F.jsxs)("div",{style:To,children:[(0,F.jsx)("div",{style:{color:"#05081E",fontSize:18,fontWeight:500,lineHeight:"26px"},children:"Couldn\u2019t load the Board."}),(0,F.jsx)("div",{style:{marginTop:6,fontSize:14,lineHeight:"22px",maxWidth:360},children:"Check your connection and try again \u2014 your spot is saved."}),(0,F.jsx)("button",{type:"button",onClick:t,style:Io,children:"Try again"})]})},Oo=function(e){var t=e.onRetry;return(0,F.jsxs)("div",{role:"status","aria-live":"polite",style:{display:"flex",flexDirection:"column",alignItems:"center",paddingTop:24,paddingBottom:24,gap:8,color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13},children:["Something went wrong loading more posts.",(0,F.jsx)("button",{type:"button",onClick:t,style:(0,A.Z)((0,A.Z)({},Io),{},{marginTop:0,paddingTop:6,paddingBottom:6,paddingLeft:14,paddingRight:14,fontSize:13}),children:"Retry"})]})},Mo=function(e){var t=e.onRetry;return(0,F.jsxs)("div",{role:"status","aria-live":"polite",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:10,marginLeft:16,marginRight:16,marginBottom:16,paddingTop:10,paddingBottom:10,paddingLeft:16,paddingRight:16,borderRadius:10,backgroundColor:"#FAFAFA",borderWidth:1,borderStyle:"solid",borderColor:"#E0E0E4",color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,lineHeight:"18px"},children:["Couldn't update the board.",(0,F.jsx)("button",{type:"button",onClick:t,style:(0,A.Z)((0,A.Z)({},Io),{},{marginTop:0,paddingTop:6,paddingBottom:6,paddingLeft:14,paddingRight:14,fontSize:13}),children:"Retry"})]})},Zo=function(){return(0,F.jsx)("div",{role:"status","aria-live":"polite",style:{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:20,paddingBottom:20,color:"#9B9CA5",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13},children:"Loading more\u2026"})},Ro=["gear","critique","selling"].filter((function(e){return Ei.pB[e]})),Lo=function(e){return{display:"inline-flex",alignItems:"center",gap:5,paddingTop:5,paddingBottom:5,paddingLeft:12,paddingRight:12,borderRadius:9999,backgroundColor:e.bg,color:e.fg,textDecoration:"none",fontFamily:'"Jost", system-ui, sans-serif',fontSize:12,fontWeight:500,lineHeight:"16px"}},Bo=function(e){var t=e.query;return(0,F.jsx)("div",{style:{paddingLeft:16,paddingRight:16,paddingBottom:24},children:(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",borderRadius:12,paddingTop:56,paddingBottom:56,paddingLeft:48,paddingRight:48,gap:16,backgroundColor:"#FAFAFA",borderWidth:1,borderStyle:"solid",borderColor:"#E0E0E4",textAlign:"center"},children:[(0,F.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:64,height:64,borderRadius:9999,backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#E0E0E4"},children:(0,F.jsxs)("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",stroke:"#9B9CA5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,F.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})}),(0,F.jsxs)("div",{style:{color:"#05081E",fontSize:18,fontWeight:500,lineHeight:"26px"},children:['No threads match "',t,'"']}),(0,F.jsx)("div",{style:{color:"#696B78",fontSize:14,lineHeight:"22px",maxWidth:380},children:"Try a broader search, check your spelling, or browse threads by category."}),(0,F.jsx)("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"center",gap:10,marginTop:4},children:Ro.map((function(e){var t=Ei.pB[e];return(0,F.jsxs)(g.rU,{to:"/board?category=".concat(e),style:Lo(t),children:[t.icon,t.label]},e)}))})]})})},zo=function(){return(0,F.jsx)("div",{style:{paddingLeft:16,paddingRight:16,paddingBottom:24},children:(0,F.jsxs)("div",{className:"bpb-following-empty",style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",backgroundColor:"#FFFCF0",borderWidth:1,borderStyle:"solid",borderColor:"#EEE5C4",borderRadius:12,gap:18,paddingTop:64,paddingBottom:64,paddingLeft:48,paddingRight:48},children:[(0,F.jsx)("div",{className:"bpb-following-empty-icon",style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:72,height:72,backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#EEE5C4",borderRadius:"50%"},children:(0,F.jsxs)("svg",{className:"bpb-following-empty-bell",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"#7C6940",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:[(0,F.jsx)("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),(0,F.jsx)("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})]})}),(0,F.jsx)("div",{className:"bpb-following-empty-title",style:{color:"#1A1A1A",fontFamily:'"Jost", system-ui, sans-serif',fontSize:22,fontWeight:600,lineHeight:"28px",textAlign:"center"},children:"You're not following any threads yet"}),(0,F.jsx)("div",{className:"bpb-following-empty-text",style:{color:"#555555",fontFamily:'"Jost", system-ui, sans-serif',fontSize:15,lineHeight:"22px",maxWidth:480,textAlign:"center"},children:"Tap Follow thread on any board post to save it here. You'll get a notification when there's a new reply."}),(0,F.jsxs)(g.rU,{to:"/board",className:"bpb-following-empty-btn",style:{display:"flex",alignItems:"center",gap:8,paddingTop:11,paddingBottom:11,paddingLeft:22,paddingRight:22,backgroundColor:"#FFD621",borderRadius:9999,textDecoration:"none"},children:[(0,F.jsxs)("svg",{className:"bpb-following-empty-btn-icon",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:[(0,F.jsx)("polyline",{points:"9 11 12 14 22 4"}),(0,F.jsx)("path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"})]}),(0,F.jsx)("span",{className:"bpb-following-empty-btn-label",style:{color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:600,lineHeight:"18px",textAlign:"center"},children:"Browse the board"})]})]})})},Uo=function(e){var t=e.since,n=e.category,r=e.following,i=e.onShowNewest,o=(0,c.useState)(0),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useRef)(!1),h=(0,c.useCallback)((0,f.Z)((0,d.Z)().mark((function e(){var i,o,a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,(0,he.et)({since:t,category:n||void 0,following:r||void 0});case 5:if(i=e.sent,!u.current){e.next=8;break}return e.abrupt("return");case 8:o=i&&i.data&&i.data.data||{},a="number"===typeof o.count?o.count:0,l(a),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(2);case 15:case"end":return e.stop()}}),e,null,[[2,13]])}))),[t,n,r]);if((0,c.useEffect)((function(){u.current=!1,h();var e=function(){"visible"===document.visibilityState&&h()};return document.addEventListener("visibilitychange",e),function(){u.current=!0,document.removeEventListener("visibilitychange",e)}}),[h]),!t||s<=0)return null;var m=s>
299?"".concat(99,"+ new posts \u2014 tap to see"):"".concat(s," new post").concat(1===s?"":"s"," \u2014 tap to see");return(0,F.jsx)("div",{role:"status","aria-live":"polite",className:"bpb-new-posts-banner",onClick:function(){l(0),"function"===typeof i&&i()},children:m})},Ho=C.Nj,Wo=function(e){return"most_recent"===e||"latest_activity"===e},qo=new Set(Ei.aP.map((function(e){return e.value}))),Vo=new Set(Object.keys(Ei.pB).filter((function(e){return"all"!==e}))),Go=function(){var e=(0,g.lr)(),t=(0,p.Z)(e,2),n=t[0],r=t[1],i=(0,c.useMemo)((function(){return(n.get("q")||"").trim().slice(0,200)}),[n]),o=i.length>=2,a=(0,c.useMemo)((function(){var e=n.get("category");if(!e)return null;var t=Ei.ay.get(e)||e;return Vo.has(t)?t:null}),[n]);(0,c.useEffect)((function(){var e=n.get("category"),t=e&&Ei.ay.get(e);if(t){var i=new URLSearchParams(n);i.set("category",t),r(i,{replace:!0})}}),[n,r]);var s="1"===n.get("following"),l=(0,c.useMemo)((function(){var e=n.get("sort");return e&&qo.has(e)?e:Ei.bb}),[n]),u=(0,y.v9)((function(e){return e.Login.isLoggedIn})),d=(0,y.I0)(),f=function(e){return!(0,me.I)()&&(e&&(0,ln.VB)(e),d(x.N.setPo
2pupModalMessage({joinModalHeading:(0,ln.dO)(null===e||void 0===e?void 0:e.type)})),d(x.N.setJoinNowModalState(!0)),!0)},m=(0,c.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),w=(0,p.Z)(m,2),k=w[0],S=w[1];(0,c.useEffect)((function(){if("undefined"!==typeof window){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return S(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}}),[]);var j=(0,h.ur)(),_=(0,h.TH)(),E=(0,c.useState)((function(){return"PUSH"===j&&!(!_.state||!_.state.openAtTop)})),D=(0,p.Z)(E,1)[0];(0,c.useLayoutEffect)((function(){if(D)try{window.scrollTo({top:0,left:0,behavior:"instant"})}catch(e){}}),[D]);var T=(0,c.useMemo)((function(){try{var e=localStorage.getItem("Data"),t=(0,b.a)(e)||{};return t.userid||t.userId||"anon"}catch(n){return"anon"}}),[u]),I=(0,c.useMemo)((function(){return JSON.stringify({q:i,isSearchMode:o,category:a,sort:l,following:s,viewerId:T})}),[i,o,a,l,s,T]),P=(0,c.useState)((function(){if((0,C.SY)(Ho),!Wo(l))return null;var e=(0,C.ij)(Ho,{filterSig:I});return e&&Array.isArray(e.rows)&&0!==e.rows.length&&function(e,t){return"latest_activity"!==e||"number"===typeof t&&Date.now()-t<=3e5}(l,e.timestamp)?{rows:e.rows,cursor:e.cursor||null,timestamp:e.timestamp||null}:null})),O=(0,p.Z)(P,1)[0],M=(0,c.useRef)(Boolean(O)),Z=(0,c.useState)(O?O.rows:[]),R=(0,p.Z)(Z,2),L=R[0],B=R[1],z=(0,c.useState)([]),U=(0,p.Z)(z,2),H=U[0],W=U[1],q=(0,c.useState)((function(){var e=No();return e&&"none"!==e?Date.parse(e):null})),V=(0,p.Z)(q,2),G=V[0],$=V[1],J=(0,c.useState)(O?O.cursor:null),K=(0,p.Z)(J,2),Y=K[0],X=K[1],Q=(0,c.useState)(O?O.cursor?"idle":"endOfFeed":"loading"),ee=(0,p.Z)(Q,2),te=ee[0],ne=ee[1],re=(0,c.useState)(0),ie=(0,p.Z)(re,2),oe=ie[0],ae=ie[1],se=(0,c.useRef)(null),le=(0,c.useRef)(0),ce=(0,c.useRef)(null),ue=(0,c.useRef)(!0),de=(0,c.useState)(null),fe=(0,p.Z)(de,2),pe=fe[0],ve=fe[1],ge=(0,c.useState)(!0),ye=(0,p.Z)(ge,2),be=ye[0],xe=ye[1],we=(0,c.useState)(!0),ke=(0,p.Z)(we,2),Se=ke[0],je=ke[1],Ce=(0,c.useCallback)((function(e){var t=new URLSearchParams(n);e?(t.set("q",e),r(t,{replace:o})):(t.delete("q"),r(t,{replace:!0}))}),[n,r,o]),_e=(0,c.useCallback)((function(e){var t=new URLSearchParams(n);e?t.set("category",e):t.delete("category"),t.delete("q"),t.delete("following"),r(t,{replace:!0})}),[n,r]),Ee=(0,c.useCallback)((function(){if(!f({type:"following-filter"})){var e=new URLSearchParams(n);e.set("following","1"),e.delete("category"),e.delete("q"),r(e,{replace:!0})}}),[n,r]),Ne=(0,c.useRef)(!1);(0,c.useEffect)((function(){if(!Ne.current&&(0,me.I)()){var e=(0,ln._7)();if(e&&e.postId&&("like-post"===e.type||"follow-thread"===e.type)){Ne.current=!0,(0,ln.$Y)();var t=e.postId;"like-post"===e.type?(0,he.uy)({targetType:"post",targetId:t}).then((function(e){var n=e&&e.data&&e.data.data||{},r=(0,A.Z)({viewer_has_liked:!!n.liked},"number"===typeof n.like_count?{like_count:n.like_count}:{});B((function(e){return e.map((function(e){return String(e.id)===String(t)?(0,A.Z)((0,A.Z)({},e),r):e}))})),(0,C.vX)(C.Nj,t,r)})).catch((function(){})):(0,he.Ns)({postId:t}).then((function(e){var n={viewer_is_following:!!(e&&e.data&&e.data.data||{}).following};B((function(e){return e.map((function(e){return String(e.id)===String(t)?(0,A.Z)((0,A.Z)({},e),n):e}))})),(0,C.vX)(C.Nj,t,n)})).catch((function(){}))}}}),[u]);var Ae=(0,c.useCallback)((function(e){var t=new URLSearchParams(n);e&&e!==Ei.bb?t.set("sort",e):t.delete("sort"),r(t,{replace:!0})}),[n,r]);(0,c.useEffect)((function(){if(M.current)return M.current=!1,void(ue.current=!1);se.current&&se.current.abort(),ce.current&&(clearTimeout(ce.current),ce.current=null);var e=new AbortController;se.current=e,le.current=0;var t,n=!1;if(ue.current?(ne("loading"),B([]),W([])):ne("refetching"),X(null),o)t=(0,he.sC)({query:i,limit:20});else{var r={sort:l,limit:20};s?r.following=!0:a&&(r.category=a),t=(0,he.cn)(r)}return t.then((function(t){if(!n&&!e.signal.aborted){var r=t&&t.data&&t.data.data||{};B(Array.isArray(r.posts)?r.posts:[]);var i=null;o?(W([]),r.has_more&&(i={page:(r.page||1)+1,searched_at:r.searched_at||null})):(W(Array.isArray(r.pinned_posts)?r.pinned_posts:[]),i=r.next_cursor||null),X(i),ne(i?"idle":"endOfFeed"),ue.current=!1}})).catch((function(t){n||e.signal.aborted||t&&"CanceledError"===t.name||ne(ue.current?"error":"refetchError")})),function(){n=!0,e.abort()}}),[i,o,a,l,s,oe]),(0,c.useEffect)((function(){var e=!1;return xe(!0),(0,he.DZ)().then((function(t){if(!e){var n=t&&t.data&&t.data.data||[];ve(Array.isArray(n)?n:[])}})).catch((function(){e||ve([])})).finally((function(){e||xe(!1)})),function(){e=!0}}),[]),(0,c.useEffect)((function(){var e=!1;return(0,me.I)()?(Co()||(0,he.vq)().then((function(t){e||!1===(t&&t.data&&t.data.data||{}).welcomeBannerDismissed&&je(!1)})).catch((function(){})),function(){e=!0}):function(){e=!0}}),[]),(0,c.useEffect)((function(){if((0,me.I)()){var e=No();if(null===e){var t=!1;return(0,he.Pb)().then((function(e){if(!t){var n=(e&&e.data&&e.data.data||{}).previous_visit_at||null;Ao(n),$(n?Date.parse(n):null)}})).catch((function(){})),function(){t=!0}}
2$(e&&"none"!==e?Date.parse(e):null)}}),[]),(0,c.useEffect)((function(){(0,me.I)()&&(0,he.bE)().then((function(){return(0,Do.w)()})).catch((function(){}))}),[]);var De=(0,c.useCallback)((function(){je(!0),_o(),(0,he.H$)().catch((function(){}))}),[]),Te=(0,c.useCallback)((function(){if(Y&&"loadingMore"!==te&&"loading"!==te){var e;if(ne("loadingMore"),o)e=(0,he.sC)({query:i,limit:20,page:Y.page,searched_at:Y.searched_at||void 0});else{var t={sort:l,limit:20,cursor:Y};s?t.following=!0:a&&(t.category=a),e=(0,he.cn)(t)}e.then((function(e){var t=e&&e.data&&e.data.data||{},n=Array.isArray(t.posts)?t.posts:[];B((function(e){return[].concat((0,v.Z)(e),(0,v.Z)(n))}));var r=null;o?t.has_more&&(r={page:(t.page||Y.page)+1,searched_at:t.searched_at||Y.searched_at||null}):r=t.next_cursor||null,X(r),ne(r?"idle":"endOfFeed"),le.current=0})).catch((function(){var e=le.current;if(e<2){var t=1e3*(e+1);le.current=e+1,ce.current=setTimeout((function(){ce.current=null,ne("idle"),Te()}),t)}else ne("error")}))}}),[Y,te,l,a,s,i,o]),Ie=(0,c.useRef)(null);(0,c.useEffect)((function(){var e=Ie.current;if(e&&"endOfFeed"!==te&&"error"!==te){var t=new IntersectionObserver((function(e){var t=e[0];t&&t.isIntersecting&&Y&&"idle"===te&&Te()}),{rootMargin:"600px 0px"});return t.observe(e),function(){return t.disconnect()}}}),[Y,te,Te]);var Pe=function(){return ae((function(e){return e+1}))};(0,c.useEffect)((function(){Wo(l)&&(o||"loading"!==te&&"refetching"!==te&&"error"!==te&&Array.isArray(L)&&0!==L.length&&(0,C.Ff)(Ho,L.map(C.iP),{cursor:Y,filterSig:I}))}),[L,Y,te,l,o,I]);var Fe=(0,c.useCallback)((function(){(0,C.ZH)(Ho),ue.current=!0,ae((function(e){return e+1}));try{window.scrollTo(0,0)}catch(e){}}),[]),Oe=Boolean(O)&&"most_recent"===l&&!a&&!o&&!s,Me=Oe&&O.timestamp?new Date(O.timestamp).toISOString():null,Ze=(0,me.I)()&&"most_recent"===l&&!a&&!o&&!s&&"number"===typeof G?L.findIndex((function(e){return e&&Date.parse(e.createdAt)<=G})):-1,Re=Ze>0,Le="loading"===te,Be="refetching"===te,ze="refetchError"===te,Ue="error"===te&&0===L.length,He="error"===te&&L.length>0,We=!Le&&!Be&&!ze&&!Ue&&0===L.length&&0===H.length,qe=!Le&&!Ue&&L.length>0,Ve="".concat(L.length).concat(Y?"+":""," ").concat(1!==L.length||Y?"results":"result");return(0,F.jsxs)("div",{className:"container container-two",style:{paddingTop:k?16:24,paddingBottom:80},children:[(0,F.jsx)(N,{keyName:Ho,filterSig:I,restoreOnMount:!D}),(0,F.jsxs)("div",{className:"row justify-content-center",children:[(0,F.jsx)("div",{className:"col-12",style:{padding:0},children:(0,F.jsxs)("div",{className:"bpb-page-header",children:[(0,F.jsx)("h1",{className:"bpb-page-header-title",children:"Board"}),(0,F.jsx)("div",{className:"bpb-page-header-search-zone",children:(0,F.jsx)(Di,{className:"bpb-page-header-search",initialQuery:i,onSearch:Ce})}),(0,F.jsx)("div",{className:"bpb-page-header-cta",children:(0,F.jsxs)(g.rU,{to:"/board/new",className:"bpb-page-header-cta-btn",onClick:function(e){f({type:"new-post",returnUrl:"/board/new"})&&e.preventDefault()},style:{display:"inline-flex",alignItems:"center",gap:k?6:8,paddingTop:k?10:12,paddingBottom:k?10:12,paddingLeft:k?16:24,paddingRight:k?16:24,backgroundColor:"#FFD621",color:"#05081E",borderRadius:9999,textDecoration:"none",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:500,whiteSpace:"nowrap"},children:[(0,F.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,F.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"New Post"]})})]})}),(0,F.jsxs)("div",{className:"col-12 col-lg-8",style:{padding:0},children:[!o&&!Se&&(0,F.jsx)("div",{style:{paddingLeft:16,paddingRight:16},children:(0,F.jsx)(So,{onDismiss:De})}),(0,F.jsx)("div",{style:{paddingLeft:16,paddingRight:16},children:(0,F.jsx)(Ti,{value:a,onChange:_e,following:s,onSelectFollowing:Ee})}),o?(Be||qe)&&!ze&&(0,F.jsx)("div",{role:"status","aria-live":"polite",style:{paddingLeft:16,paddingRight:16,paddingTop:4,paddingBottom:12,fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,lineHeight:"20px"},children:Be?(0,F.jsx)("span",{style:{color:"#696B78"},children:"Searching\u2026"}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{style:{color:"#05081E",fontWeight:500},children:Ve}),(0,F.jsxs)("span",{style:{color:"#696B78"},children:[" ",'for "',i,'"']})]})}):(0,F.jsxs)("div",{className:"bpb-helper-toolbar-row",children:[function(){var e=s?"following":a||"all",t
2="following"===e;return(0,F.jsxs)("div",{role:"status","aria-live":"polite",className:"bpb-category-helper",style:{display:"flex",alignItems:"center",gap:6,fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:400,lineHeight:"18px",color:"#6B6C75"},children:[t&&(0,F.jsx)("span",{"aria-hidden":"true",style:{width:6,height:6,borderRadius:9999,backgroundColor:"#FFD621",flexShrink:0}}),(0,F.jsx)("span",{style:{fontStyle:t?"italic":"normal"},children:Ei.Z5[e]},e)]})}(),(0,F.jsx)(Mi,{sort:l,onSortChange:Ae})]}),Oe&&Me&&(0,F.jsx)(Uo,{since:Me,category:null,following:!1,onShowNewest:Fe}),Le&&(0,F.jsx)("div",{"aria-live":"polite",children:[1,2,3,4,5,6].map((function(e){return(0,F.jsx)(ho,{},e)}))}),Ue&&(0,F.jsx)(Fo,{onRetry:Pe}),ze&&(0,F.jsx)(Mo,{onRetry:Pe}),We&&(o?(0,F.jsx)(Bo,{query:i}):s?(0,F.jsx)(zo,{}):(0,F.jsx)(Po,{})),(0,F.jsxs)("div",{style:{opacity:Be?.5:1,pointerEvents:Be?"none":"auto",transition:"opacity 150ms ease"},children:[H.length>0&&(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:12,paddingLeft:16,paddingRight:16,paddingBottom:16},children:H.map((function(e){return(0,F.jsx)(po,{post:e,pinned:!0},"pin-".concat(e.id))}))}),L.map((function(e,t){return(0,F.jsxs)(c.Fragment,{children:[Re&&t===Ze&&(0,F.jsx)("div",{style:{paddingLeft:16,paddingRight:16,paddingTop:12,paddingBottom:12},children:(0,F.jsx)("div",{className:"since_visit_last_time",children:(0,F.jsxs)("span",{className:"text",children:[(0,F.jsx)("img",{src:"/assets/img/icons/arrow-up-activity.svg",alt:"","aria-hidden":"true"}),"Since your last visit",(0,F.jsx)("img",{src:"/assets/img/icons/arrow-up-activity.svg",alt:"","aria-hidden":"true"})]})})}),(0,F.jsx)(po,{post:e})]},e.id)}))]}),"loadingMore"===te&&(0,F.jsx)(Zo,{}),He&&(0,F.jsx)(Oo,{onRetry:Te}),(0,F.jsx)("div",{ref:Ie,style:{height:1},"aria-hidden":!0})]}),(0,F.jsx)("div",{className:"col-lg-4 d-none d-lg-block",style:{paddingLeft:40},children:(0,F.jsxs)("div",{style:{position:"sticky",top:24,display:"flex",flexDirection:"column",gap:24},children:[(0,F.jsx)(wo,{rows:pe,loading:be}),(0,F.jsx)(ko,{})]})})]})]})},$o=function(){var e=(0,me.I)(),t=(0,c.useState)(null),n=(0,p.Z)(t,2),r=n[0],i=n[1],o=(0,c.useState)(!1),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useRef)(0),d=(0,c.useCallback)((function(){if(e){var t=u.current+=1;(0,he.h8)().then((function(e){if(t===u.current){var n,r=e&&e.data&&e.data.data||{},o=r.unseen_thread_count;if("number"===typeof o&&Number.isFinite(o))i(Math.max(0,Math.trunc(o))),l(!1);else i(null),l(!!(null!==(n=r.has_unseen_replies)&&void 0!==n?n:r.has_unseen))}})).catch((function(){}))}}),[e]);return(0,c.useEffect)((function(){d()}),[d]),(0,c.useEffect)((function(){if(e)return(0,Do.K)((function(e){if(e.clearedAll)return i(0),void l(!1);d()}))}),[e,d]),{unseenThreadCount:r,hasUnseenFallback:s,refreshUnseenCount:d}},Jo=function(){var e=$o(),t=e.unseenThreadCount,n=e.hasUnseenFallback;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ce.Z,{}),(0,F.jsx)(_i,{active:"feed",unseenThreadCount:t,hasUnseenFallback:n}),(0,F.jsx)("main",{className:"site-content",id:"main",style:{paddingTop:0},children:(0,F.jsx)(Go,{})})]})},Ko='"Jost", system-ui, sans-serif',Yo={started:"You started",replied:"You replied",mentioned:"Mentioned you",following:"Following"},Xo=function(e){var t=e.relationship,n=e.isMobile,r=e.canShrink,i=e.label||Yo[t]||"You replied";return(0,F.jsx)("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:r?1:0,minWidth:r?0:void 0,overflow:r?"hidden":void 0,borderWidth:1,borderStyle:"solid",borderColor:"#E3E3E6",borderRadius:999,color:"#74767F",fontFamily:Ko,fontWeight:500,fontSize:n?10:11,lineHeight:n?"13px":"14px",paddingTop:n?2:3,paddingBottom:n?2:3,paddingLeft:n?8:9,paddingRight:n?8:9,whiteSpace:"nowrap"},children:r?(0,F.jsx)("span",{style:{display:"block",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i}):i})},Qo=function(e){var t=e.thread,n=e.isMobile,r=e.isLast,i=!(!t||!t.viewer_was_mentioned)&&"mentioned"!==t.relationship,o=Vi({replyUnseen:t&&t.viewer_unseen_reply_count,mentionUnseen:t&&t.viewer_unseen_mention_count,viewerAuthored:!(!t||!t.viewer_authored)}),a=o.show,s=o.useMentions,l=o.label,c=s?t.first_unseen_mention_reply_id:t.first_unseen_reply_id,u=a&&c?"/board/post/".concat(t.thread_id,"?reply=").concat(c):"/board/post/".concat(t.thread_id),d=t&&"number"===typeof t.reply_count?t.reply_count:0,f=1===d?"1 reply":"".concat(d," replies");return(0,F.jsxs)(g.rU,{to:u,className:"bpb-mt-row",style:{display:"block",textDecoration:"none",color:"inherit",paddingTop:n?15:18,paddingBottom:n?15:18,borderBottom:r?"none":"1px solid #F2F3F4"},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,F.jsx)(Zi.Z,{category:t.category,compact:n}),(0,F.jsx)(Xo,{relationship:t.relationship,isMobile:n,canShrink:i}),i&&(0,F.jsx)(Xo,{relationship:"mentioned",isMobile:n,canShrink:!1,label:n?"Mentioned":"Mentioned you"}),!n&&(0,F.jsxs)("span",{style:{color:"#9B9CA5",fontFamily:Ko,fontWeight:400,fontSize:13,lineHeight:"16px",whiteSpace:"nowrap"},children:["\xb7 ",f]}),(0,F.jsx)("span",{style:{marginLeft:"auto",flexShrink:0,color:"#9B9CA5",fontFamily:Ko,fontWeight:400,fontSize:n?12:13,lineHeight:n?"15px":"16px",whiteSpace:"nowrap",paddingLeft:8},children:(0,ri.Z)(t.last_activity_at)})]}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginTop:n?6:7},children:[(0,F.jsx)("span",{style:{flex:"1 1 auto",minWidth:0,color:"#05081E",fontFamily:Ko,fontWeight:500,fontSize:n?16:17,lineHeight:n?"22px":"24px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.title}),a&&(0,F.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6,flexShrink:0,backgroundColor:"#E7F4EC",borderRadius:999,paddingTop:n?3:4,paddingBottom:n?3:4,paddingLeft:n?9:11,paddingRight:n?9:11},children:[(0,F.jsx)("span",{"aria-hidden":"true",style:{width:6,height:6,borderRadius:"50%",backgroundColor:"#1A9E6A",flexShrink:0}}),(0,F.jsx)("span",{style:{fontFamily:Ko,fontWeight:500,fontSize:n?10:11,lineHeight:n?"12px":"14px",letterSpacing:"0.01em",color:"#0A6B4D",whiteSpace:"nowrap"},children:l})]})]})]})},ea='"Jost", system-ui, sans-serif',ta=[{value:"all",label:"All"},{value:"started",label:"Started"},{value:"replied",label:"Replied"},{value:"mentioned",label:"Mentioned"},{value:"following",label:"Following"}],na=function(e){var t=e.color;return(0,F.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("path",{d:"M20 6L9 17l-5-5"})})},ra=function(e){var t=e.to,n=e.children;return(0,F.jsx)(g.rU,{to:t,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",backgroundColor:"#FFD621",color:"#05081E",fontFamily:ea,fontWeight:600,fontSize:14,lineHeight:"18px",borderRadius:999,paddingTop:11,paddingBottom:11,paddingLeft:22,paddingRight:22},children:n})},ia=function(e){var t=e.to,n=e.children;return(0,F.jsx)(g.rU,{to:t,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",backgroundColor:"#FFFFFF",color:"#05081E",borderWidth:1,borderStyle:"solid",borderColor:"#D6D7DC",fontFamily:ea,fontWeight:600,fontSize:14,lineHeight:"18px",borderRadius:999,paddingTop:11,paddingBottom:11,paddingLeft:22,paddingRight:22},children:n})},oa=function(e){var t=e.post,n=e.isMobile,r=t&&"number"===typeof t.reply_count?t.reply_count:0;return(0,F.jsxs)(g.rU,{to:"/board/post/".concat(t.id),style:{display:"block",textDecoration:"none",color:"inherit",backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#E8E8EA",borderRadius:12,padding:n?"14px 16px":"16px 18px"},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,F.jsx)(Zi.Z,{category:t.category,compact:n}),(0,F.jsxs)("span",{style:{color:"#9B9CA5",fontFamily:ea,fontWeight:400,fontSize:13,lineHeight:"16px",whiteSpace:"nowrap"},children:["\xb7 ",1===r?"1 reply":"".concat(r," replies")]})]}),(0,F.jsx)("div",{style:{marginTop:7,color:"#05081E",fontFamily:ea,fontWeight:500,fontSize:n?16:17,lineHeight:n?"22px":"24px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.title})]})},aa=function(e){var t=e.heading,n=e.body,r=e.cta;return(0,F.jsxs)("div",{style:{paddingTop:48,paddingBottom:24,textAlign:"center"},children:[(0,F.jsx)("h2",{style:{margin:0,color:"#05081E",fontFamily:ea,fontWeight:600,fontSize:18,lineHeight:"24px"},children:t}),(0,F.jsx)("p",{style:{margin:"8px auto 20px auto",maxWidth:420,color:"#696B78",fontFamily:ea,fontWeight:400,fontSize:15,lineHeight:"22px"},children:n}),r]})},sa=function(e){var t=e.launchpad,n=e.isMobile;return(0,F.jsxs)("div",{style:{paddingTop:32,paddingBottom:24},children:[(0,F.jsxs)("div",{style:{textAlign:"center"},children:[(0,F.jsx)("h2",{style:{margin:0,color:"#05081E",fontFamily:ea,fontWeight:600,fontSize:n?18:20,lineHeight:n?"24px":"26px"},children:"Your threads will show up here"}),(0,F.jsx)("p",{style:{margin:"8px auto 0 auto",maxWidth:460,color:"#696B78",fontFamily:ea,fontWeight:400,fontSize:15,lineHeight:"22px"},children:"This is your spot for every conversation you start or join. Here are a few that are active on the board right now:"})]}),Array.isArray(t)&&t.length>0&&(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:12,marginTop:20},children:t.map((function(e){return(0,F.jsx)(oa,{post:e,isMobile:n},e.id)}))}),(0,F.jsxs)("div",{style:{textAlign:"center",marginTop:24},children:[(0,F.jsx)("p",{style:{margin:"0 0 14px 0",color:"#696B78",fontFamily:ea,fontWeight:400,fontSize:15,lineHeight:"22px"},children:"Got a question or a photo to share?"}),(0,F.jsx)(ra,{to:"/board/new",children:"+ Start a thread"})]})]})},la=function(){var e=function(){var e=(0,c.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),t=(0,p.Z)(e,2),n=t[0],r=t[1];return(0,c.useEffect)((function(){if("undefined"!==typeof window){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return r(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}}),[]),n}(),t=(0,c.useState)("all"),n=(0,p.Z)(t,2),r=n[0],i=n[1],o=(0,c.useState)([]),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useState)(null),d=(0,p.Z)(u,2),f=d[0],h=d[1],m=(0,c.useState)(!0),v=(0,p.Z)(m,2),g=v[0],y=v[1],b=(0,c.useState)(!1),x=(0,p.Z)(b,2),w=x[0],k=x[1],S=(0,c.useState)(!1),j=(0,p.Z)(S,2),C=j[0],_=j[1],E=(0,c.useState)(!1),N=(0,p.Z)(E,2),D=N[0],T=N[1],I=(0,c.useState)(null),P=(0,p.Z)(I,2),O=P[0],M=P[1],Z=(0,c.useRef)(0),R=(0,c.useCallback)((function(e,t){var n=++Z.current,r=!t;r?(y(!0),_(!1)):k(!0);var i={filter:e};t&&(i.cursor=t),(0,he.Xc)(i).then((function(e){if(n===Z.current){var t=e&&e.data&&e.data.data||{},i=Array.isArray(t.threads)?t.threads:[];l((function(e){if(r)return i;var t=new Set(e.map((function(e){return e.thread_id})));return e.concat(i.filter((function(e){return!t.has(e.thread_id)}
2)))})),h(t.next_cursor||null)}})).catch((function(){n===Z.current&&r&&_(!0)})).finally((function(){n===Z.current&&(y(!1),k(!1))}))}),[]);(0,c.useEffect)((function(){R(r,null)}),[r,R]);var L=!g&&!C&&"all"===r&&0===s.length;(0,c.useEffect)((function(){if(L&&null===O){var e=!1;return(0,he.H)().then((function(t){if(!e){var n=t&&t.data&&t.data.data||{},r=Array.isArray(n.posts)?n.posts:[];M(r.slice(0,3))}})).catch((function(){e||M([])})),function(){e=!0}}}),[L,O]);var B=s.some((function(e){return e&&(e.viewer_unseen_reply_count>0||!!e.viewer_has_unseen_mention)})),z=!L,U=s.length>0;return(0,F.jsx)("div",{className:"container container-two",style:{paddingTop:e?16:24},children:(0,F.jsxs)("div",{style:{maxWidth:760,paddingBottom:48},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:16,flexWrap:"wrap"},children:[(0,F.jsxs)("div",{style:{minWidth:0},children:[(0,F.jsx)("h1",{style:{margin:0,color:"#05081E",fontFamily:ea,fontWeight:600,fontSize:e?24:30,lineHeight:e?"30px":"36px"},children:"My Threads"}),(0,F.jsx)("p",{style:{margin:"4px 0 0 0",color:"#696B78",fontFamily:ea,fontWeight:400,fontSize:e?14:15,lineHeight:e?"20px":"22px"},children:"Threads you started, replied to, were mentioned in, or follow"})]}),U&&(0,F.jsxs)("button",{type:"button",onClick:function(){D||g||!B||(T(!0),Z.current+=1,l((function(e){return e.map((function(e){return(0,A.Z)((0,A.Z)({},e),{},{viewer_unseen_reply_count:0,viewer_unseen_mention_count:0,viewer_has_unseen_mention:!1,first_unseen_reply_id:null,first_unseen_mention_reply_id:null})}))})),h(null),(0,Do.w)({clearedAll:!0}),(0,he.fR)().catch((function(){})).finally((function(){T(!1),(0,Do.w)()})))},disabled:!B||D||g,"aria-disabled":!B||D||g,style:{display:"inline-flex",alignItems:"center",gap:6,background:"none",border:"none",padding:0,cursor:!B||D||g?"default":"pointer",fontFamily:ea,fontWeight:500,fontSize:14,lineHeight:"18px",color:B?"#696B78":"#A9AAB2",flexShrink:0,marginTop:e?0:8},children:[(0,F.jsx)(na,{color:B?"#1A9E6A":"#C4C5CB"}),B?"Mark all read":"All caught up"]})]}),z&&(0,F.jsx)("div",{role:"tablist","aria-label":"Filter your threads",style:{display:"flex",flexWrap:"wrap",gap:8,marginTop:e?16:20},children:ta.map((function(t){var n=r===t.value;return(0,F.jsx)("button",{type:"button",role:"tab","aria-selected":n,onClick:function(){r!==t.value&&i(t.value)},style:{border:"none",cursor:"pointer",borderRadius:999,backgroundColor:n?"#05081E":"#F2F3F4",color:n?"#F
2FFFFF":"#5A5C66",fontFamily:ea,fontWeight:500,fontSize:e?13:14,lineHeight:"18px",paddingTop:e?7:8,paddingBottom:e?7:8,paddingLeft:e?15:18,paddingRight:e?15:18},children:t.label},t.value)}))}),(0,F.jsxs)("div",{style:{marginTop:e?8:12},children:[g&&(0,F.jsx)("p",{style:{color:"#9B9CA5",fontFamily:ea,fontSize:14,paddingTop:32,textAlign:"center"},children:"Loading your threads\u2026"}),!g&&C&&(0,F.jsxs)("div",{style:{paddingTop:40,textAlign:"center"},children:[(0,F.jsx)("p",{style:{color:"#696B78",fontFamily:ea,fontSize:15,lineHeight:"22px",margin:"0 0 16px 0"},children:"We couldn't load your threads. Please try again."}),(0,F.jsx)("button",{type:"button",onClick:function(){return R(r,null)},style:{border:"none",cursor:"pointer",borderRadius:999,backgroundColor:"#05081E",color:"#FFFFFF",fontFamily:ea,fontWeight:500,fontSize:14,lineHeight:"18px",paddingTop:9,paddingBottom:9,paddingLeft:20,paddingRight:20},children:"Retry"})]}),!g&&!C&&s.length>0&&(0,F.jsxs)(F.Fragment,{children:[s.map((function(t,n){return(0,F.jsx)(Qo,{thread:t,isMobile:e,isLast:n===s.length-1&&!f},t.thread_id)})),f&&(0,F.jsx)("div",{style:{textAlign:"center",paddingTop:20},children:(0,F.jsx)("button",{type:"button",onClick:function(){return R(r,f)},disabled:w,style:{border:"1px solid #D6D7DC",cursor:w?"default":"pointer",borderRadius:999,backgroundColor:"#FFFFFF",color:"#05081E",fontFamily:ea,fontWeight:500,fontSize:14,lineHeight:"18px",paddingTop:9,paddingBottom:9,paddingLeft:22,paddingRight:22},children:w?"Loading\u2026":"Show more"})})]}),!g&&!C&&0===s.length&&"all"===r&&(0,F.jsx)(sa,{launchpad:O,isMobile:e}),!g&&!C&&0===s.length&&"started"===r&&(0,F.jsx)(aa,{heading:"Nothing started yet",body:"You've jumped into other conversations. Got a question or a photo to share? Start one of your own.",cta:(0,F.jsx)(ra,{to:"/board/new",children:"+ Start a thread"})}),!g&&!C&&0===s.length&&"replied"===r&&(0,F.jsx)(aa,{heading:"You haven't replied yet",body:"Your threads are live. Jump into what others are talking about on the board.",cta:(0,F.jsx)(ia,{to:"/board",children:"Browse the board"})}),!g&&!C&&0===s.length&&"mentioned"===r&&(0,F.jsx)(aa,{heading:"No mentions yet",body:"When someone @mentions you on the board, the thread shows up here so you never miss it.",cta:(0,F.jsx)(ia,{to:"/board",children:"Browse the board"})}),!g&&!C&&0===s.length&&"following"===r&&(0,F.jsx)(aa,{heading:"You're not following any threads",body:"Follow a thread to keep up with it \u2014 it'll show up here whenever there's something new.",cta:(0,F.jsx)(ia,{to:"/board",children:"Browse the board"})})]})]})})},ca=function(){var e=$o(),t=e.unseenThreadCount,n=e.hasUnseenFallback;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ce.Z,{}),(0,F.jsx)(_i,{active:"my-threads",unseenThreadCount:t,hasUnseenFallback:n}),(0,F.jsx)("main",{className:"site-content",id:"main",style:{paddingTop:0},children:(0,F.jsx)(la,{})})]})},ua=n(7762),da=new Set,fa=/^[a-f0-9]{64}$/i,pa=function(e,t){try{if(!e||!fa.test(String(e)))return;if(da.has(e))return;da.add(e);var n={"Content-Type":"application/json"},r=function(){try{var e=(0,it.IS)();if(e)return e;var t=(0,b.a)(localStorage.getItem("Data"));return(null===t||void 0===t?void 0:t.token)||null}catch(n){return null}}();r&&(n.Authorization="Bearer ".concat(r)),fetch("".concat("https://bigbesos.com","/board-invitation/").concat(encodeURIComponent(e),"/click"),{method:"POST",headers:n,body:JSON.stringify({src:t||null}),keepalive:!0}).catch((function(){}))}catch(i){}},ha=n(5671),ma=n(3144),va=n(5586),ga=n(136),ya=n(9388),ba=n(8737);function xa(e){return e&&"object"===typeof e?"position"in e||"type"in e?ka(e.position):"start"in e||"end"in e?ka(e):"line"in e||"column"in e?wa(e):"":""}function wa(e){return Sa(e&&e.line)+":"+Sa(e&&e.column)}function ka(e){return wa(e&&e.start)+"-"+wa(e&&e.end)}function Sa(e){return e&&"number"===typeof e?e:1}var ja=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i){var o;(0,ha.Z)(this,n);var a=[null,null],s={start:{line:null,column:null},end:{line:null,column:null}};if(o=t.call(this),"string"===typeof r&&(i=r,r=void 0),"string"===typeof i){var l=i.indexOf(":");-1===l?a[1]=i:(a[0]=i.slice(0,l),a[1]=i.slice(l+1))}return r&&("type"in r||"position"in r?r.position&&(s=r.position):"start"in r||"end"in r?s=r:("line"in r||"column"in r)&&(s.start=r)),o.name=xa(r)||"1:1",o.message="object"===typeof e?e.message:e,o.stack="","object"===typeof e&&e.stack&&(o.stack=e.stack),o.reason=o.message,o.fatal,o.line=s.start.line,o.column=s.start.column,o.position=s,o.source=a[0],o.ruleId=a[1],o.file,o.actual,o.expected,o.url,o.note,o}return(0,ma.Z)(n)}((0,ba.Z)(Error));ja.prototype.file="",ja.prototype.name="",ja.prototype.reason="",ja.prototype.message="",ja.prototype.stack="",ja.prototype.fatal=null,ja.prototype.column=null,ja.prototype.line=null,ja.prototype.source=null,ja.prototype.ruleId=null,ja.prototype.position=null;var Ca={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');_a(e);var n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";var a=-1,s=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(i=o):(s=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(_a(e),0===e.length)return".";var t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){_a(e);var t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){var s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===a||1===a&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(){for(var e,t=-1,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++t<r.length;)_a(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){_a(e);var t=47===e.charCodeAt(0),n=function(e,t){var n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function _a(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var Ea={cwd:function(){return"/"}};function Na(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function Aa(e){if("string"===typeof e)e=new URL(e);else if(!Na(e)){var t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){var n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(e){if(""!==e.hostname){var t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}var n=e.pathname,r=-1;for(;++r<n.length;)if(37===n.charCodeAt(r)&&50===n.charCodeAt(r+1)){var i=n.charCodeAt(r+2);if(70===i||102===i){var o=new TypeError("File URL path must not include encoded / characters");
2throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)}(e)}var Da=["history","path","basename","stem","extname","dirname"],Ta=function(){function e(t){var n;(0,ha.Z)(this,e),n=t?"string"===typeof t||function(e){return va(e)}(t)?{value:t}:Na(t)?{path:t}:t:{},this.data={},this.messages=[],this.history=[],this.cwd=Ea.cwd(),this.value,this.stored,this.result,this.map;for(var r,i=-1;++i<Da.length;){var o=Da[i];o in n&&void 0!==n[o]&&null!==n[o]&&(this[o]="history"===o?(0,v.Z)(n[o]):n[o])}for(r in n)Da.includes(r)||(this[r]=n[r])}return(0,ma.Z)(e,[{key:"path",get:function(){return this.history[this.history.length-1]},set:function(e){Na(e)&&(e=Aa(e)),Pa(e,"path"),this.path!==e&&this.history.push(e)}},{key:"dirname",get:function(){return"string"===typeof this.path?Ca.dirname(this.path):void 0},set:function(e){Fa(this.basename,"dirname"),this.path=Ca.join(e||"",this.basename)}},{key:"basename",get:function(){return"string"===typeof this.path?Ca.basename(this.path):void 0},set:function(e){Pa(e,"basename"),Ia(e,"basename"),this.path=Ca.join(this.dirname||"",e)}},{key:"extname",get:function(){return"string"===typeof this.path?Ca.extname(this.path):void 0},set:function(e){if(Ia(e,"extname"),Fa(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ca.join(this.dirname,this.stem+(e||""))}},{key:"stem",get:function(){return"string"===typeof this.path?Ca.basename(this.path,this.extname):void 0},set:function(e){Pa(e,"stem"),Ia(e,"stem"),this.path=Ca.join(this.dirname||"",e+(this.extname||""))}},{key:"toString",value:function(e){return(this.value||"").toString(e||void 0)}},{key:"message",value:function(e,t,n){var r=new ja(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}},{key:"info",value:function(e,t,n){var r=this.message(e,t,n);return r.fatal=null,r}},{key:"fail",value:function(e,t,n){var r=this.message(e,t,n);throw r.fatal=!0,r}}]),e}();function Ia(e,t){if(e&&e.includes(Ca.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ca.sep+"`")}function Pa(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Fa(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var Oa=n(4506);function Ma(e){if(e)throw e}var Za=n(1132);function Ra(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function La(){var e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=-1,o=n.pop();if("function"!==typeof o)throw new TypeError("Expected function as last argument, not "+o);(function t(r){var a=e[++i],s=-1;if(r)o(r);else{for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(;++s<n.length;)null!==c[s]&&void 0!==c[s]||(c[s]=n[s]);n=c,a?function(e,t){var n;return i;function i(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];var l,c=e.length>i.length;c&&i.push(o);try{l=e.apply(this,i)}catch(r){if(c&&n)throw r;return o(r)}c||(l&&l.then&&"function"===typeof l.then?l.then(a,o):l instanceof Error?o(l):a(l))}function o(e){if(!n){n=!0;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t.apply(void 0,[e].concat(i))}}function a(e){o(null,e)}}(a,t).apply(void 0,c):o.apply(void 0,[null].concat(c))}}).apply(void 0,[null].concat((0,v.Z)(n)))},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}var Ba=function e(){var t,n=La(),r=[],i={},o=-1;return a.data=function(e,n){if("string"===typeof e)return 2===arguments.length?(qa("data",t),i[e]=n,a):za.call(i,e)&&i[e]||null;if(e)return qa("data",t),i=e,a;return i},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(t)return a;for(;++o<r.length;){var e=(0,Oa.Z)(r[o]),i=e[0],s=e.slice(1);if(!1!==s[0]){!0===s[0]&&(s[0]=void 0);var l=i.call.apply(i,[a].concat((0,v.Z)(s)));"function"===typeof l&&n.use(l)}}return t=!0,o=Number.POSITIVE_INFINITY,a},a.attachers=r,a.use=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];var l;if(qa("use",t),null===e||void 0===e);else if("function"===typeof e)f.apply(void 0,[e].concat(o));else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?d(e):u(e)}l&&(i.settings=Object.assign(i.settings||{},l));return a;function c(e){if("function"===typeof e)f(e);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){var t=(0,Oa.Z)(e),n=t[0],r=t.slice(1);f.apply(void 0,[n].concat((0,v.Z)(r)))}else u(e)}}function u(e){d(e.plugins),e.settings&&(l=Object.assign(l||{},e.settings))}function d(e){var t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){c(e[t])}}}function f(e,t){for(var n,i=-1;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(Ra(n[1])&&Ra(t)&&(t=Za(!0,n[1],t)),n[1]=t):r.push(Array.prototype.slice.call(arguments))}},a.parse=function(e){a.freeze();var t=$a(e),n=a.Parser;if(Ha("parse",n),Ua(n,"parse"))return new n(String(t),t).parse();return n(String(t),t)},a.stringify=function(e,t){a.freeze();var n=$a(t),r=a.Compiler;if(Wa("stringify",r),Va(e),Ua(r,"compile"))return new r(e,n).compile();return r(e,n)},a.run=function(e,t,r){Va(e),a.freeze(),r||"function"!==typeof t||(r=t,t=void 0);if(!r)return new Promise(i);function i(i,o){function a(t,n,a){n=n||e,t?o(t):i?i(n):r(null,n,a)}n.run(e,$a(t),a)}i(null,r)},a.runSync=function(e,t){var n,r;return a.run(e,t,i),Ga("runSync","run",r),n;function i(e,t){Ma(e),n=t,r=!0}},a.process=function(e,t){if(a.freeze(),Ha("process",a.Parser),Wa("process",a.Compiler),!t)return new Promise(n);function n(n,r){var i=$a(e);function o(e,i){e||!i?r(e):n?n(i):t(null,i)}a.run(a.parse(i),i,(function(e,t,n){if(!e&&t&&n){var r=a.stringify(t,n);void 0===r||null===r||(!function(e){return"string"===typeof e||va(e)}(r)?n.result=r:n.value=r),o(e,n)}else o(e)}))}n(null,t)},a.processSync=function(e){var t;a.freeze(),Ha("processSync",a.Parser),Wa("processSync",a.Compiler);var n=$a(e);return a.process(n,r),Ga("processSync","process",t),n;function r(e){t=!0,Ma(e)}},a;function a(){for(var t=e(),n=-1;++n<r.length;)t.use.apply(t,(0,v.Z)(r[n]));return t.data(Za(!0,{},i)),t}}().freeze(),za={}.hasOwnProperty;function Ua(e,t){return"function"===typeof e&&e.prototype&&(function(e){var t;for(t in e)if(za.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function Ha(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function Wa(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function qa(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Va(e){if(!Ra(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ga(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function $a(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new Ta(e)}var Ja={};function Ka(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ya(e.children,t,n)}return Array.isArray(e)?Ya(e,t,n):""}function Ya(e,t,n){for(var r=[],i=-1;++i<e.length;)r[i]=Ka(e[i],t,n);return r.join("")}function Xa(e,t,n,r){var i,o=e.length,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice.apply(e,(0,v.Z)(i));else for(n&&e.splice(t,n);a<r.length;)(i=r.slice(a,a+1e4)).unshift(t,0),e.splice.apply(e,(0,v.Z)(i)),a+=1e4,t+=1e4}function Qa(e,t){return e.length>0?(Xa(e,e.length,0,t),e):t}var es={}.hasOwnProperty;function ts(e,t){var n;
vendor: 10,826 bytes, line 2
2for(n in t){var r=(es.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],o=void 0;if(i)for(o in i){es.call(r,o)||(r[o]=[]);var a=i[o];ns(r[o],Array.isArray(a)?a:a?[a]:[])}}}function ns(e,t){for(var n=-1,r=[];++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Xa(e,0,0,r)}var rs=vs(/[A-Za-z]/),is=vs(/[\dA-Za-z]/),as=vs(/[#-'*+\--9=?A-Z^-~]/);function ss(e){return null!==e&&(e<32||127===e)}var ls=vs(/\d/),cs=vs(/[\dA-Fa-f]/),us=vs(/[!-/:-@[-`{-~]/);function ds(e){return null!==e&&e<-2}function fs(e){return null!==e&&(e<0||32===e)}function ps(e){return-2===e||-1===e||32===e}var hs=vs(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),ms=vs(/\s/);function vs(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function gs(e,t,n,r){var i=r?r-1:Number.POSITIVE_INFINITY,o=0;return function(r){if(ps(r))return e.enter(n),a(r);return t(r)};function a(r){return ps(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}var ys={tokenize:function(e){var t,n=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),gs(e,n,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));return n;function r(n){var r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,i(n)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):ds(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};var bs={tokenize:function(e){var t,n,r,i=this,o=[],a=0;return s;function s(t){if(a<o.length){var n=o[a];return i.containerState=n[1],e.attempt(n[0].continuation,l,c)(t)}return c(t)}function l(e){if(a++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,t&&y();for(var n,r=i.events.length,o=r;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}g(a);for(var l=r;l<i.events.length;)i.events[l][1].end=Object.assign({},n),l++;return Xa(i.events,o+1,0,i.events.slice(r)),i.events.length=l,c(e)}return s(e)}function c(n){if(a===o.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=Boolean(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(xs,u,d)(n)}function u(e){return t&&y(),g(a),f(e)}function d(e){return i.parser.lazy[i.now().line]=a!==o.length,r=i.now().offset,h(e)}function f(t){return i.containerState={},e.attempt(xs,p,h)(t)}function p(e){return a++,o.push([i.currentConstruct,i.containerState]),f(e)}function h(r){return null===r?(t&&y(),g(0),void e.consume(r)):(t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{contentType:"flow",previous:n,_tokenizer:t}),m(r))}function m(t){return null===t?(v(e.exit("chunkFlow"),!0),g(0),void e.consume(t)):ds(t)?(e.consume(t),v(e.exit("chunkFlow")),a=0,i.interrupt=void 0,s):(e.consume(t),m)}function v(e,o){var s=i.sliceStream(e);if(o&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){for(var l=t.events.length;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;for(var c,u,d=i.events.length,f=d;f--;)if("exit"===i.events[f][0]&&"chunkFlow"===i.events[f][1].type){if(c){u=i.events[f][1].end;break}c=!0}for(g(a),l=d;l<i.events.length;)i.events[l][1].end=Object.assign({},u),l++;Xa(i.events,f+1,0,i.events.slice(d)),i.events.length=l}}function g(t){for(var n=o.length;n-- >t;){var r=o[n];i.containerState=r[1],r[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},xs={tokenize:function(e,t,n){return gs(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var ws={tokenize:function(e,t,n){return function(t){return ps(t)?gs(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||ds(e)?t(e):n(e)}},partial:!0};function ks(e){for(var t,n,r,i,o,a,s,l={},c=-1;++c<e.length;){for(;c in l;)c=l[c];if(t=e[c],c&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[c-1][1].type&&((r=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,Ss(e,c)),c=l[c],s=!0);else if(t[1]._container){for(r=c,n=void 0;r--&&("lineEnding"===(i=e[r])[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(n&&(e[n][1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);n&&(t[1].end=Object.assign({},e[n][1].start),(o=e.slice(n,c)).unshift(t),Xa(e,n,c-n+1,o))}}return!s}function Ss(e,t){for(var n,r,i=e[t][1],o=e[t][2],a=t-1,s=[],l=i._tokenizer||o.parser[i.contentType](i.start),c=l.events,u=[],d={},f=-1,p=i,h=0,m=0,v=[m];p;){for(;e[++a][1]!==p;);s.push(a),p._tokenizer||(n=o.sliceStream(p),p.next||n.push(null),r&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++f<c.length;)"exit"===c[f][0]&&"enter"===c[f-1][0]&&c[f][1].type===c[f-1][1].type&&c[f][1].start.line!==c[f][1].end.line&&(m=f+1,v.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):v.pop(),f=v.length;f--;){var g=c.slice(v[f],v[f+1]),y=s.pop();u.unshift([y,y+g.length-1]),Xa(e,y,2,g)}for(f=-1;++f<u.length;)d[h+u[f][0]]=h+u[f][1],h+=u[f][1]-u[f][0]-1;return d}var js={tokenize:function(e,t){var n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):ds(t)?e.check(Cs,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return ks(e),e}},Cs={tokenize:function(e,t,n){var r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),gs(e,i,"linePrefix")};function i(i){if(null===i||ds(i))return n(i);var o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};var _s={tokenize:function(e){var t=this,n=e.attempt(ws,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,gs(e,e.attempt(this.parser.constructs.flow,r,e.attempt(js,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};var Es={resolveAll:Ts()},Ns=Ds("string"),As=Ds("text");function Ds(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;var t=r[e],i=-1;if(t)for(;++i<t.length;){var o=t[i];if(!o.previous||o.previous.call(n,n.previous))return!0}return!1}},resolveAll:Ts("text"===e?Is:void 0)}}function Ts(e){return function(t,n){var r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function Is(e,t){for(var n=0;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){for(var r=e[n-1][1],i=t.sliceStream(r),o=i.length,a=-1,s=0,l=void 0;o--;){var c=i[o];if("string"===typeof c){for(a=c.length;32===c.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===c)l=!0,s++;else if(-1!==c){o++;break}}if(s){var u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},u.start),r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}function Ps(e,t,n){for(var r=[],i=-1;++i<e.length;){var o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function Fs(e,t,n){var r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],a=[],s=[],l={consume:function(e){ds(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e,!0},enter:function(e,t){var n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){var t=s.pop();return t.end=f(),c.events.push(["exit",t,c]),t},attempt:g((function(e,t){y(e,t.from)})),check:g(m),interrupt:g(m,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:function(e,t){return function(e,t){var n,r=-1,i=[];for(;++r<e.length;){var o=e[r],a=void 0;if("string"===typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(o)}n=-2===o,i.push(a)}return i.join("")}(d(e),t)}
2,now:f,defineSkip:function(e){i[e.line]=e.column,b()},write:function(e){if(a=Qa(a,e),p(),null!==a[a.length-1])return[];return y(t,0),c.events=Ps(o,c.events,c),c.events}},u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){var n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,a)];else{if(n=e.slice(r,o),i>-1){var s=n[0];"string"===typeof s?n[0]=s.slice(i):n.shift()}a>0&&n.push(e[o].slice(0,a))}return n}(a,e)}function f(){var e=r;return{line:e.line,column:e.column,offset:e.offset,_index:e._index,_bufferIndex:e._bufferIndex}}function p(){for(var e;r._index<a.length;){var t=a[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){void 0,e,u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,i,o){var a,u,d,p;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){var n=null!==t&&e[t],r=null!==t&&e.null;return h([].concat((0,v.Z)(Array.isArray(n)?n:n?[n]:[]),(0,v.Z)(Array.isArray(r)?r:r?[r]:[])))(t)}}(n);function h(e){return a=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){p=function(){var e=f(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(s);return{restore:a,from:i};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=o,b()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y(n);return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,y)(n)}}function g(t){return!0,e(d,p),i}
2function y(e){return!0,p.restore(),++u<a.length?m(a[u]):o}}}function y(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&Xa(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}var Os={name:"thematicBreak",tokenize:function(e,t,n){var r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),a(o)):i>=3&&(null===o||ds(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),ps(t)?gs(e,o,"whitespace")(t):o(t))}}};var Ms={name:"list",tokenize:function(e,t,n){var r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){var i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:ls(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Os,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return ls(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(ws,r.interrupt?n:c,e.attempt(Zs,d,u))}
2function c(e){return r.containerState.initialBlankLine=!0,o++,d(e)}function u(t){return ps(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(ws,i,o);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,gs(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!ps(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Rs,t,a)(n))}function a(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,gs(e,e.attempt(Ms,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Zs={tokenize:function(e,t,n){var r=this;return gs(e,(function(e){var i=r.events[r.events.length-1];return!ps(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Rs={tokenize:function(e,t,n){var r=this;return gs(e,(function(e){var i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};var Ls={name:"blockQuote",tokenize:function(e,t,n){var r=this;return function(t){if(62===t){var o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return ps(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){var r=this;return function(t){if(ps(t))return gs(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(Ls,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Bs(e,t,n,r,i,o,a,s,l){var c=l||Number.POSITIVE_INFINITY,u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d;if(null===t||32===t||41===t||ss(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||ds(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(i){return u||null!==i&&41!==i&&!fs(i)?u<c&&40===i?(e.consume(i),u++,h):41===i?(e.consume(i),u--,h):null===i||32===i||40===i||ss(i)?n(i):(e.consume(i),92===i?m:h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function zs(e,t,n,r,i,o){var a,s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!a||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):ds(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||ds(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!ps(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Us(e,t,n,r,i,o){var a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):ds(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),gs(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||ds(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Hs(e,t){var n;return function r(i){if(ds(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(ps(i))return gs(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function Ws(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var qs={name:"definition",tokenize:function(e,t,n){var r,i=this;return function(t){return e.enter("definition"),function(t){return zs.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return r=Ws(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return fs(t)?Hs(e,s)(t):s(t)}function s(t){return Bs(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Vs,c,c)(t)}function c(t){return ps(t)?gs(e,u,"whitespace")(t):u(t)}function u(o){return null===o||ds(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}},Vs={tokenize:function(e,t,n){return function(t){return fs(t)?Hs(e,r)(t):n(t)};function r(t){return Us(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return ps(t)?gs(e,o,"whitespace")(t):o(t)}function o(e){return null===e||ds(e)?t(e):n(e)}},partial:!0};var Gs={name:"codeIndented",tokenize:function(e,t,n){var r=this;
2return function(t){return e.enter("codeIndented"),gs(e,i,"linePrefix",5)(t)};function i(e){var t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):ds(t)?e.attempt($s,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||ds(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},$s={tokenize:function(e,t,n){var r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):ds(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):gs(e,o,"linePrefix",5)(t)}function o(e){var o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):ds(e)?i(e):n(e)}},partial:!0};var Js={name:"headingAtx",tokenize:function(e,t,n){var r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||fs(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||ds(n)?(e.exit("atxHeading"),t(n)):ps(n)?gs(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||fs(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}},resolve:function(e,t){var n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&Xa(e,o,i-o+1,[["enter",n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},t],["enter",r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},t],["exit",r,t],["exit",n,t]]);return e}};var Ks={name:"setextUnderline",tokenize:function(e,t,n){var r,i=this;return function(t){var a,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){a="paragraph"===i.events[s][1].type;break}if(!i.parser.lazy[i.now().line]&&(i.interrupt||a))return e.enter("setextHeadingLine"),r=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===r?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),ps(t)?gs(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||ds(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){var n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);var a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};var Ys=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Xs=["pre","script","style","textarea"],Qs={name:"htmlFlow",tokenize:function(e,t,n){var r,i,o,a,s,l=this;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),i=!0,p):63===a?(e.consume(a),r=3,l.interrupt?t:F):rs(a)?(e.consume(a),o=String.fromCharCode(a),h):n(a)}function u(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,a=0,f):rs(i)?(e.consume(i),r=4,l.interrupt?t:F):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:F):n(r)}function f(r){var i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),6===a?l.interrupt?t:_:f):n(r)}function p(t){return rs(t)?(e.consume(t),o=String.fromCharCode(t),h):n(t)}
vendor: 4,205 bytes, line 2
2function h(a){if(null===a||47===a||62===a||fs(a)){var s=47===a,c=o.toLowerCase();return s||i||!Xs.includes(c)?Ys.includes(o.toLowerCase())?(r=6,s?(e.consume(a),m):l.interrupt?t(a):_(a)):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(a):i?v(a):g(a)):(r=1,l.interrupt?t(a):_(a))}return 45===a||is(a)?(e.consume(a),o+=String.fromCharCode(a),h):n(a)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:_):n(r)}function v(t){return ps(t)?(e.consume(t),v):j(t)}function g(t){return 47===t?(e.consume(t),j):58===t||95===t||rs(t)?(e.consume(t),y):ps(t)?(e.consume(t),g):j(t)}function y(t){return 45===t||46===t||58===t||95===t||is(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),x):ps(t)?(e.consume(t),b):g(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):ps(t)?(e.consume(t),x):k(t)}function w(t){return t===s?(e.consume(t),s=null,S):null===t||ds(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||fs(t)?b(t):(e.consume(t),k)}function S(e){return 47===e||62===e||ps(e)?g(e):n(e)}function j(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||ds(t)?_(t):ps(t)?(e.consume(t),C):n(t)}function _(t){return 45===t&&2===r?(e.consume(t),D):60===t&&1===r?(e.consume(t),T):62===t&&4===r?(e.consume(t),O):63===t&&3===r?(e.consume(t),F):93===t&&5===r?(e.consume(t),P):!ds(t)||6!==r&&7!==r?null===t||ds(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),_):(e.exit("htmlFlowData"),e.check(el,M,E)(t))}function E(t){return e.check(tl,N,M)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||ds(t)?E(t):(e.enter("htmlFlowData"),_(t))}function D(t){return 45===t?(e.consume(t),F):_(t)}function T(t){return 47===t?(e.consume(t),o="",I):_(t)}function I(t){if(62===t){var n=o.toLowerCase();return Xs.includes(n)?(e.consume(t),O):_(t)}return rs(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),I):_(t)}function P(t){return 93===t?(e.consume(t),F):_(t)}function F(t){return 62===t?(e.consume(t),O):45===t&&2===r?(e.consume(t),F):_(t)}function O(t){return null===t||ds(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),O)}function M(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},el={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ws,t,n)}},partial:!0},tl={tokenize:function(e,t,n){var r=this;return function(t){if(ds(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};var nl={tokenize:function(e,t,n){var r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},rl={name:"codeFenced",tokenize:function(e,t,n){var r,i=this,o={tokenize:function(e,t,n){var o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),ps(t)?gs(e,c,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===r?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===r?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),ps(t)?gs(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||ds(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},a=0,s=0;return function(t){return function(t){var n=i.events[i.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===r?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),ps(t)?gs(e,c,"whitespace")(t):c(t))}function c(n){return null===n||ds(n)?(e.exit("codeFencedFence"),i.interrupt?t(n):e.check(nl,p,y)(n)):(e.enter("co
2deFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||ds(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):ps(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),gs(e,d,"whitespace")(t)):96===t&&t===r?n(t):(e.consume(t),u)}function d(t){return null===t||ds(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||ds(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===r?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,y,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&ps(t)?gs(e,v,"linePrefix",a+1)(t):v(t)}function v(t){return null===t||ds(t)?e.check(nl,p,y)(t):(e.enter("codeFlowValue"),g(t))}function g(t){return null===t||ds(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),g)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var il=document.createElement("i");function ol(e){var t="&"+e+";";il.innerHTML=t;var n=il.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}var al={name:"characterReference",tokenize:function(e,t,n){var r,i,o=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=is,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=cs,c):(e.enter("characterReferenceValue"),r=7,i=ls,c(t))}function c(s){if(59===s&&a){var l=e.exit("characterReferenceValue");return i!==is||ol(o.sliceSerialize(l))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<r?(e.consume(s),c):n(s)}}};var sl={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return us(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};var ll={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),gs(e,t,"linePrefix")}}};var cl={name:"labelEnd",tokenize:function(e,t,n){var r,i,o=this,a=o.events.length;for(;a--;)if(("labelImage"===o.events[a][1].type||"labelLink"===o.events[a][1].type)&&!o.events[a][1]._balanced){r=o.events[a][1];break}return function(t){if(!r)return n(t);if(r._inactive)return u(t);return i=o.parser.defined.includes(Ws(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(ul,c,i?c:u)(t):91===t?e.attempt(dl,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(fl,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){var n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);var l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=Qa(o=[["enter",l,t],["enter",c,t]],e.slice(r+1,r+s+3)),o=Qa(o,[["enter",u,t]]),o=Qa(o,Ps(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=Qa(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=Qa(o,e.slice(i+1)),o=Qa(o,[["exit",l,t]]),Xa(e,r,e.length,o),e},resolveAll:function(e){var t=-1;for(;++t<e.length;){var n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},ul={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return fs(t)?Hs(e,i)(t):i(t)}function i(t){return 41===t?c(t):Bs(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return fs(t)?Hs(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?Us(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return fs(t)?Hs(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},dl={tokenize:function(e,t,n){var r=this;return function(t){return zs.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(Ws(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},fl={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};var pl={name:"labelStartImage",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:cl.resolveAll};function hl(e){return null===e||fs(e)||ms(e)?1:hs(e)?2:void 0}var ml={name:"attention",tokenize:function(e,t){var n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=hl(i);return function(t){return n=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===n)return e.consume(s),a;var l=e.exit("attentionSequence"),c=hl(s),u=!c||2===c&&o||r.includes(s),d=!o||2===o&&c||r.includes(i);return l._open=Boolean(42===n?u:u&&(o||!d)),l._close=Boolean(42===n?d:d&&(c||!u)),t(s)}},resolveAll:function(e,t){var n,r,i,o,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
vendor: 5,550 bytes, line 2
2n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;var d=Object.assign({},e[n][1].end),f=Object.assign({},e[u][1].start);vl(d,-s),vl(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Qa(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Qa(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=Qa(l,Ps(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=Qa(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=Qa(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Xa(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function vl(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var gl={name:"autolink",tokenize:function(e,t,n){var r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return rs(t)?(e.consume(t),o):l(t)}function o(e){return 43===e||45===e||46===e||is(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||is(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||ss(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):as(t)?(e.consume(t),l):n(t)}function c(e){return is(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||is(t))&&r++<63){var i=45===t?d:u;return e.consume(t),i}return n(t)}}};var yl={name:"htmlText",tokenize:function(e,t,n){var r,i,o,a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),y):rs(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):rs(t)?(e.consume(t),g):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):ds(t)?(o=u,I(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?T(e):45===e?d(e):u(e)}function p(t){var r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):ds(t)?(o=h,I(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),v):h(t)}function v(t){return 62===t?T(t):93===t?(e.consume(t),v):h(t)}function g(t){return null===t||62===t?T(t):ds(t)?(o=g,I(t)):(e.consume(t),g)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):ds(t)?(o=y,I(t)):(e.consume(t),y)}function b(e){return 62===e?T(e):y(e)}function x(t){return rs(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||is(t)?(e.consume(t),w):k(t)}function k(t){return ds(t)?(o=k,I(t)):ps(t)?(e.consume(t),k):T(t)}function S(t){return 45===t||is(t)?(e.consume(t),S):47===t||62===t||fs(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),T):58===t||95===t||rs(t)?(e.consume(t),C):ds(t)?(o=j,I(t)):ps(t)?(e.consume(t),j):T(t)}function C(t){return 45===t||46===t||58===t||95===t||is(t)?(e.consume(t),C):_(t)}function _(t){return 61===t?(e.consume(t),E):ds(t)?(o=_,I(t)):ps(t)?(e.consume(t),_):j(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,N):ds(t)?(o=E,I(t)):ps(t)?(e.consume(t),E):(e.consume(t),A)}function N(t){return t===r?(e.consume(t),r=void 0,D):null===t?n(t):ds(t)?(o=N,I(t)):(e.consume(t),N)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||fs(t)?j(t):(e.consume(t),A)}function D(e){return 47===e||62===e||fs(e)?j(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return ps(t)?gs(e,F,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):F(t)}function F(t){return e.enter("htmlTextData"),o(t)}}};var bl={name:"labelStartLink",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:cl.resolveAll};var xl={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return ds(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};var wl,kl,Sl,jl,Cl,_l={name:"codeText",tokenize:function(e,t,n){var r,i,o=0;
2return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):ds(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||ds(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}},resolve:function(e){var t,n,r=e.length-4,i=3;if(("lineEnding"===e[i][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};var El=(wl={},(0,Sn.Z)(wl,42,Ms),(0,Sn.Z)(wl,43,Ms),(0,Sn.Z)(wl,45,Ms),(0,Sn.Z)(wl,48,Ms),(0,Sn.Z)(wl,49,Ms),(0,Sn.Z)(wl,50,Ms),(0,Sn.Z)(wl,51,Ms),(0,Sn.Z)(wl,52,Ms),(0,Sn.Z)(wl,53,Ms),(0,Sn.Z)(wl,54,Ms),(0,Sn.Z)(wl,55,Ms),(0,Sn.Z)(wl,56,Ms),(0,Sn.Z)(wl,57,Ms),(0,Sn.Z)(wl,62,Ls),wl),Nl=(0,Sn.Z)({},91,qs),Al=(kl={},(0,Sn.Z)(kl,-2,Gs),(0,Sn.Z)(kl,-1,Gs),(0,Sn.Z)(kl,32,Gs),kl),Dl=(Sl={},(0,Sn.Z)(Sl,35,Js),(0,Sn.Z)(Sl,42,Os),(0,Sn.Z)(Sl,45,[Ks,Os]),(0,Sn.Z)(Sl,60,Qs),(0,Sn.Z)(Sl,61,Ks),(0,Sn.Z)(Sl,95,Os),(0,Sn.Z)(Sl,96,rl),(0,Sn.Z)(Sl,126,rl),Sl),Tl=(jl={},(0,Sn.Z)(jl,38,al),(0,Sn.Z)(jl,92,sl),jl),Il=(Cl={},(0,Sn.Z)(Cl,-5,ll),(0,Sn.Z)(Cl,-4,ll),(0,Sn.Z)(Cl,-3,ll),(0,Sn.Z)(Cl,33,pl),(0,Sn.Z)(Cl,38,al),(0,Sn.Z)(Cl,42,ml),(0,Sn.Z)(Cl,60,[gl,yl]),(0,Sn.Z)(Cl,91,bl),(0,Sn.Z)(Cl,92,[xl,sl]),(0,Sn.Z)(Cl,93,cl),(0,Sn.Z)(Cl,95,ml),(0,Sn.Z)(Cl,96,_l),Cl),Pl={null:[ml,Es]},Fl={null:[42,95]},Ol={null:[]};function Ml(t){var n=t||{},r=function(e){for(var t={},n=-1;++n<e.length;)ts(t,e[n]);return t}([e].concat((0,v.Z)(n.extensions||[]))),i={defined:[],lazy:{},constructs:r,content:o(ys),document:o(bs),flow:o(_s),string:o(Ns),text:o(As)};return i;function o(e){return function(t){return Fs(i,e,t)}}}var Zl=/[\0\t\n\r]/g;function Rl(e,t){var n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}var Ll=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Bl(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){var r=n.charCodeAt(1),i=120===r||88===r;return Rl(n.slice(i?2:1),i?16:10)}return ol(n)||e}var zl={}.hasOwnProperty,Ul=function(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){var t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ne),autolinkProtocol:E,autolinkEmail:E,atxHeading:s(X),blockQuote:s(G),characterEscape:E,characterReference:E,codeFenced:s($),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s($,l),codeText:s(J,l),codeTextData:E,data:E,codeFlowValue:E,definition:s(K),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(Y),hardBreakEscape:s(Q),hardBreakTrailing:s(Q),htmlFlow:s(ee,l),htmlFlowData:E,htmlText:s(ee,l),htmlTextData:E,image:s(te),label:l,link:s(ne),listItem:s(ie),listItemValue:h,listOrdered:s(re,p),listUnordered:s(re),paragraph:s(oe),reference:z,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(X),strong:s(ae),thematicBreak:s(le)},exit:{atxHeading:u(),atxHeadingSequence:S,autolink:u(),autolinkEmail:V,autolinkProtocol:q,blockQuote:u(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:W,codeFenced:u(y),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:v,codeFlowValue:N,codeIndented:u(b),codeText:u(P),codeTextData:N,data:N,definition:u(),definitionDestinationString:k,definitionLabelString:x,definitionTitleString:w,emphasis:u(),hardBreakEscape:u(D),hardBreakTrailing:u(D),htmlFlow:u(T),htmlFlowData:N,htmlText:u(I),htmlTextData:N,image:u(O),label:Z,labelText:M,lineEnding:A,link:u(F),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:U,resourceDestinationString:R,resourceTitleString:L,resource:B,setextHeading:u(_),setextHeadingLineSequence:C,setextHeadingText:j,strong:u(),thematicBreak:u()}};Wl(t,(e||{}).mdastExtensions||[]);var n={};return r;function r(e){for(var n={type:"root",children:[]},r={stack:[n],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:f,setData:o,getData:a},s=[],u=-1;++u<e.length;){if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])s.push(u);else u=i(e,s.pop(),u)}for(u=-1;++u<e.length;){var p=t[e[u][0]];zl.call(p,e[u][1].type)&&p[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},r),e[u][1])}if(r.tokenStack.length>0){var h=r.tokenStack[r.tokenStack.length-1];(h[1]||Vl).call(r,void 0,h[0])}for(n.position={start:Hl(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Hl(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)n=t.transforms[u](n)||n;return n}function i(e,t,n){for(var r,i,o,a,s=t-1,l=-1,c=!1;++s<=n;){var u=e[s];if("listUnordered"===u[1].type||"listOrdered"===u[1].type||"blockQuote"===u[1].type?("enter"===u[0]?l++:l--,a=void 0):"lineEndingBlank"===u[1].type?"enter"
2===u[0]&&(!r||a||l||o||(o=s),a=void 0):"linePrefix"===u[1].type||"listItemValue"===u[1].type||"listItemMarker"===u[1].type||"listItemPrefix"===u[1].type||"listItemPrefixWhitespace"===u[1].type||(a=void 0),!l&&"enter"===u[0]&&"listItemPrefix"===u[1].type||-1===l&&"exit"===u[0]&&("listUnordered"===u[1].type||"listOrdered"===u[1].type)){if(r){var d=s;for(i=void 0;d--;){var f=e[d];if("lineEnding"===f[1].type||"lineEndingBlank"===f[1].type){if("exit"===f[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),f[1].type="lineEnding",i=d}else if("linePrefix"!==f[1].type&&"blockQuotePrefix"!==f[1].type&&"blockQuotePrefixWhitespace"!==f[1].type&&"blockQuoteMarker"!==f[1].type&&"listItemIndent"!==f[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:u[1].end),e.splice(i||s,0,["exit",r,u[2]]),s++,n++}"listItemPrefix"===u[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},u[1].start),end:void 0},e.splice(s,0,["enter",r,u[2]]),s++,n++,o=void 0,a=!0)}}return e[t][1]._spread=c,n}function o(e,t){n[e]=t}function a(e){return n[e]}function s(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:Hl(t.start)},e}function u(e){return t;function t(t){e&&e.call(this,t),d.call(this,t)}}function d(e,t){var n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+xa({start:e.start,end:e.end})+"): it\u2019s not open");return r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Vl).call(this,e,r[0])),n.position.end=Hl(e.end),n}function f(){return function(e,t){var n=t||Ja;return Ka(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function p(){o("expectingFirstListItemValue",!0)}function h(e){a("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue"))}function m(){var e=this.resume();this.stack[this.stack.length-1].lang=e}function v(){var e=this.resume();this.stack[this.stack.length-1].meta=e}function g(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function y(){var e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function b(){var e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function x(e){var t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ws(this.sliceSerialize(e)).toLowerCase()}function w(){var e=this.resume();this.stack[this.stack.length-1].title=e}function k(){var e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){var t=this.stack[this.stack.length-1];if(!t.depth){var n=this.sliceSerialize(e).length;t.depth=n}}function j(){o("setextHeadingSlurpLineEnding",!0)}function C(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function _(){o("setextHeadingSlurpLineEnding")}function E(e){var t=this.stack[this.stack.length-1],n=t.children[t.children.length-1];n&&"text"===n.type||((n=se()).position={start:Hl(e.start)},t.children.push(n)),this.stack.push(n)}function N(e){var t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Hl(e.end)}function A(e){var n=this.stack[this.stack.length-1];if(a("atHardBreak"))return n.children[n.children.length-1].position.end=Hl(e.end),void o("atHardBreak");!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(E.call(this,e),N.call(this,e))}function D(){o("atHardBreak",!0)}function T(){var e=this.resume();this.stack[this.stack.length-1].value=e}function I(){var e=this.resume();this.stack[this.stack.length-1].value=e}function P(){var e=this.resume();this.stack[this.stack.length-1].value=e}function F(){var e=this.stack[this.stack.length-1];if(a("inReference")){var t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function O(){var e=this.stack[this.stack.length-1];if(a("inReference")){var t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;o("referenceType")}function M(e){var t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Ll,Bl)}(t),n.identifier=Ws(t).toLowerCase()}function Z(){var e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(o("inReference",!0),"link"===n.type){var r=e.children;n.children=r}else n.alt=t}function R(){var e=this.resume();this.stack[this.stack.length-1].url=e}function L(){var e=this.resume();this.stack[this.stack.length-1].title=e}function B(){o("inReference")}function z(){o("referenceType","collapsed")}function U(e){var t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ws(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")}function H(e){o("characterReferenceType",e.type)}function W(e){var t,n=this.sliceSerialize(e),r=a("characterReferenceType");r?(t=Rl(n,"characterReferenceMarkerNumeric"===r?10:16),o("characterReferenceType")):t=ol(n);var i=this.stack.pop();i.value+=t,i.position.end=Hl(e.end)}function q(e){N.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function V(e){N.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function G(){return{type:"blockquote",children:[]}}function $(){return{type:"code",lang:null,meta:null,value:""}}function J(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Y(){return{type:"emphasis",children:[]}}function X(){return{type:"heading",depth:void 0,children:[]}}function Q(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function re(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function ie(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(n)(function(e){for(;!ks(e););return e}(Ml(n).document().write(function(){var e,t=1,n="",r=!0;return function(i,o,a){var s,l,c,u,d,f=[];for(i=n+i.toString(o),c=0,n="",r&&(65279===i.charCodeAt(0)&&c++,r=void 0);c<i.length;
2){if(Zl.lastIndex=c,u=(s=Zl.exec(i))&&void 0!==s.index?s.index:i.length,d=i.charCodeAt(u),!s){n=i.slice(c);break}if(10===d&&c===u&&e)f.push(-3),e=void 0;else switch(e&&(f.push(-5),e=void 0),c<u&&(f.push(i.slice(c,u)),t+=u-c),d){case 0:f.push(65533),t++;break;case 9:for(l=4*Math.ceil(t/4),f.push(-2);t++<l;)f.push(-1);break;case 10:f.push(-4),t=1;break;default:e=!0,t=1}c=u+1}return a&&(e&&f.push(-5),n&&f.push(n),f.push(null)),f}}()(e,t,!0))))};function Hl(e){return{line:e.line,column:e.column,offset:e.offset}}function Wl(e,t){for(var n=-1;++n<t.length;){var r=t[n];Array.isArray(r)?Wl(e,r):ql(e,r)}}function ql(e,t){var n;for(n in t)if(zl.call(t,n))if("canContainEols"===n){var r,i=t[n];if(i)(r=e[n]).push.apply(r,(0,v.Z)(i))}else if("transforms"===n){var o,a=t[n];if(a)(o=e[n]).push.apply(o,(0,v.Z)(a))}else if("enter"===n||"exit"===n){var s=t[n];s&&Object.assign(e[n],s)}}function Vl(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+xa({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+xa({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+xa({start:t.start,end:t.end})+") is still open")}function Gl(e){var t=this;Object.assign(this,{Parser:function(n){var r=t.data("settings");return Ul(n,Object.assign({},r,e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}})}function $l(e){for(var t=[],n=-1,r=0,i=0;++n<e.length;){var o=e.charCodeAt(n),a="";if(37===o&&is(e.charCodeAt(n+1))&&is(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){var s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="\ufffd"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}var Jl=function(e){if(void 0===e||null===e)return Xl;if("string"===typeof e)return function(e){return Yl(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?Kl(e):function(e){return Yl(t);function t(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return Yl(e);throw new Error("Expected function, string, or object as test")};function Kl(e){for(var t=[],n=-1;++n<e.length;)t[n]=Jl(e[n]);return Yl((function(){for(var e=-1,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++e<t.length;){var o;if((o=t[e]).call.apply(o,[this].concat(r)))return!0}return!1}))}function Yl(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Boolean(t&&"object"===typeof t&&"type"in t&&Boolean(e.call.apply(e,[this,t].concat(r))))}}function Xl(){return!0}var Ql=function(e,t,n,r){"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null);var i=Jl(t),o=r?-1:1;!function e(a,s,l){var c=a&&"object"===typeof a?a:{};if("string"===typeof c.type){var u="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+a.type+(u?"<"+u+">":"")+")"})}return d;function d(){var c,u,d,f=[];if((!t||i(a,s,l[l.length-1]||null))&&(f=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(n(a,l)),false===f[0]))return f;if(a.children&&"skip"!==f[0])for(u=(r?a.children.length:-1)+o,d=l.concat(a);u>-1&&u<a.children.length;){if(false===(c=e(a.children[u],u,d)())[0])return c;u="number"===typeof c[1]?c[1]:u+o}return f}}(e,void 0,[])()};var ec=function(e,t,n,r){"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null),Ql(e,t,(function(e,t){var r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}
2),r)},tc=rc("start"),nc=rc("end");function rc(e){return function(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}var ic={}.hasOwnProperty;function oc(e){return String(e||"").toUpperCase()}function ac(e,t){var n,r=String(t.identifier).toUpperCase(),i=$l(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);-1===o?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=o+1);var a=e.footnoteCounts[r],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+i,id:e.clobberPrefix+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);var l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function sc(e,t){var n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};var i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});var a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function lc(e){var t=e.spread;return void 0===t||null===t?e.children.length>1:t}var cc=9,uc=32;function dc(e){for(var t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];r;)o.push(fc(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(fc(t.slice(i),i>0,!1)),o.join("")}function fc(e,t,n){var r=0,i=e.length;if(t)for(var o=e.codePointAt(r);o===cc||o===uc;)r++,o=e.codePointAt(r);if(n)for(var a=e.codePointAt(i-1);a===cc||a===uc;)i--,a=e.codePointAt(i-1);return i>r?e.slice(r,i):""}var pc={blockquote:function(e,t){var n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){var n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){var n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);var o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){var n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){var n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:ac,footnote:function(e,t){for(var n=e.footnoteById,r=1;r in n;)r++;var i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},ac(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){var n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){var n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){var n=e.definition(t.identifier);if(!n)return sc(e,t);var r={src:$l(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);var i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){var n={src:$l(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){var n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);var r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){var n=e.definition(t.identifier);if(!n)return sc(e,t);var r={href:$l(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);var i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){var n={href:$l(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){var r=e.all(t),i=n?function(e){var t=!1;if("list"===e.type){t=e.spread||!1;for(var n=e.children,r=-1;!t&&++r<n.length;)t=lc(n[r])}return t}(n):lc(t),o={},a=[];if("boolean"===typeof t.checked){var s,l=r[0];l&&"element"===l.type&&"p"===l.tagName?s=l:(s={type:"element",tagName:"p",properties:{},children:[]},r.unshift(s)),s.children.length>0&&s.children.unshift({type:"text",value:" "}),s.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}for(var c=-1;++c<r.length;){var u=r[c];(i||0!==c||"element"!==u.type||"p"!==u.tagName)&&a.push({type:"text",value:"\n"}),"element"!==u.type||"p"!==u.tagName||i?a.push(u):a.push.apply(a,(0,v.Z)(u.children))}var d=r[r.length-1];d&&(i||"element"!==d.type||"p"!==d.tagName)&&a.push({type:"text",value:"\n"});var f={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,f),e.applyData(t,f)},list:function(e,t){var n={},r=e.all(t),i=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){var o=r[i];if("element"===o.type&&"li"===o.tagName&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}var a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){var n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){var n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){var n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){var n=e.all(t),r=n.shift(),i=[];if(r){var o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){var a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=tc(t.children[1]),l=nc(t.children[t.children.length-1]);s.line&&l.line&&(a.position={start:s,end:l}),i.push(a)}var c={type:"element",tagName:"table",properties:{}
2,children:e.wrap(i,!0)};return e.patch(t,c),e.applyData(t,c)},tableCell:function(e,t){var n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){for(var r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length,s=-1,l=[];++s<a;){var c=t.children[s],u={},d=o?o[s]:void 0;d&&(u.align=d);var f={type:"element",tagName:i,properties:u,children:[]};c&&(f.children=e.all(c),e.patch(c,f),f=e.applyData(t,f)),l.push(f)}var p={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,p),e.applyData(t,p)},text:function(e,t){var n={type:"text",value:dc(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){var n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:hc,yaml:hc,definition:hc,footnoteDefinition:hc};function hc(){return null}var mc={}.hasOwnProperty;function vc(e,t){var n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers=(0,A.Z)((0,A.Z)({},pc),n.handlers),a.definition=function(e){var t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return ec(e,"definition",(function(e){var n=oc(e.identifier);n&&!ic.call(t,n)&&(t[n]=e)})),function(e){var n=oc(e);return n&&ic.call(t,n)?t[n]:null}}(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=gc,a.applyData=yc,a.one=function(e,t){return bc(a,e,t)},a.all=function(e){return xc(a,e)},a.wrap=wc,a.augment=o,ec(e,"footnoteDefinition",(function(e){var t=String(e.identifier).toUpperCase();mc.call(i,t)||(i[t]=e)})),a;function o(e,t){if(e&&"data"in e&&e.data){var n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=(0,A.Z)((0,A.Z)({},t.properties),n.hProperties)),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){var r="type"in e?e:{position:e};(function(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column})(r)||(t.position={start:tc(r),end:nc(r)})}return t}function a(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),o(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function gc(e,t){e.position&&(t.position=function(e){return{start:tc(e),end:nc(e)}}(e))}function yc(e,t){var n=t;if(e&&e.data){var r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;"string"===typeof r&&("element"===n.type?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),"element"===n.type&&o&&(n.properties=(0,A.Z)((0,A.Z)({},n.properties),o)),"children"in n&&n.children&&null!==i&&void 0!==i&&(n.children=i)}return n}function bc(e,t,n){var r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return mc.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?(0,A.Z)((0,A.Z)({},t),{},{children:xc(e,t)}):t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){var n=t.data||{},r=!("value"in t)||mc.call(n,"hProperties")||mc.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:xc(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function xc(e,t){var n=[];if("children"in t)for(var r=t.children,i=-1;++i<r.length;){var o=bc(e,r[i],t);if(o){if(i&&"break"===r[i-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&"element"===o.type)){var a=o.children[0];a&&"text"===a.type&&(a.value=a.value.replace(/^\s+/,""))}
2Array.isArray(o)?n.push.apply(n,(0,v.Z)(o)):n.push(o)}}return n}function wc(e,t){var n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function kc(e,t){var n=vc(e,t),r=n.one(e,null),i=function(e){for(var t=[],n=-1;++n<e.footnoteOrder.length;){var r=e.footnoteById[e.footnoteOrder[n]];if(r){for(var i=e.all(r),o=String(r.identifier).toUpperCase(),a=$l(o.toLowerCase()),s=0,l=[];++s<=e.footnoteCounts[o];){var c={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};s>1&&c.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(c)}var u=i[i.length-1];if(u&&"element"===u.type&&"p"===u.tagName){var d,f=u.children[u.children.length-1];f&&"text"===f.type?f.value+=" ":u.children.push({type:"text",value:" "}),(d=u.children).push.apply(d,l)}else i.push.apply(i,l);var p={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,p),t.push(p)}}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:(0,A.Z)((0,A.Z)({},JSON.parse(JSON.stringify(e.footnoteLabelProperties))),{},{id:"footnote-label"}),children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return i&&r.children.push({type:"text",value:"\n"},i),Array.isArray(r)?{type:"root",children:r}:r}var Sc=function(e,t){return e&&"run"in e?function(e,t){return function(n,r,i){e.run(kc(n,t),r,(function(e){i(e)}))}}(e,t):function(e){return function(t){return kc(t,e)}}(e||t)};var jc=(0,ma.Z)((function e(t,n,r){(0,ha.Z)(this,e),this.property=t,this.normal=n,r&&(this.space=r)}));function Cc(e,t){for(var n={},r={},i=-1;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new jc(n,r,t)}function _c(e){return e.toLowerCase()}jc.prototype.property={},jc.prototype.normal={},jc.prototype.space=null;var Ec=n(7326),Nc=(0,ma.Z)((function e(t,n){(0,ha.Z)(this,e),this.property=t,this.attribute=n}));Nc.prototype.space=null,Nc.prototype.boolean=!1,Nc.prototype.booleanish=!1,Nc.prototype.overloadedBoolean=!1,Nc.prototype.number=!1,Nc.prototype.commaSeparated=!1,Nc.prototype.spaceSeparated=!1,Nc.prototype.commaOrSpaceSeparated=!1,Nc.prototype.mustUseProperty=!1,Nc.prototype.defined=!1;var Ac=0,Dc=Zc(),Tc=Zc(),Ic=Zc(),Pc=Zc(),Fc=Zc(),Oc=Zc(),Mc=Zc();function Zc(){return Math.pow(2,++Ac)}var Rc=Object.keys(t),Lc=function(e){(0,ga.Z)(r,e);var n=(0,ya.Z)(r);function r(e,i,o,a){var s;(0,ha.Z)(this,r);var l=-1;if(s=n.call(this,e,i),Bc((0,Ec.Z)(s),"space",a),"number"===typeof o)for(;++l<Rc.length;){var c=Rc[l];Bc((0,Ec.Z)(s),Rc[l],(o&t[c])===t[c])}return s}return(0,ma.Z)(r)}(Nc);function Bc(e,t,n){n&&(e[t]=n)}Lc.prototype.defined=!0;var zc={}.hasOwnProperty;function Uc(e){var t,n={},r={};for(t in e.properties)if(zc.call(e.properties,t)){var i=e.properties[t],o=new Lc(t,e.transform(e.attributes||{},t),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(t)&&(o.mustUseProperty=!0),n[t]=o,r[_c(t)]=t,r[_c(o.attribute)]=t}return new jc(n,r,e.space)}var Hc=Uc({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Wc=Uc({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function qc(e,t){return t in e?e[t]:t}function Vc(e,t){return qc(e,t.toLowerCase())}var Gc=Uc({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Vc,properties:{xmlns:null,xmlnsXLink:null}}),$c=Uc({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Tc,ariaAutoComplete:null,ariaBusy:Tc,ariaChecked:Tc,ariaColCount:Pc,ariaColIndex:Pc,ariaColSpan:Pc,ariaControl
2s:Fc,ariaCurrent:null,ariaDescribedBy:Fc,ariaDetails:null,ariaDisabled:Tc,ariaDropEffect:Fc,ariaErrorMessage:null,ariaExpanded:Tc,ariaFlowTo:Fc,ariaGrabbed:Tc,ariaHasPopup:null,ariaHidden:Tc,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Fc,ariaLevel:Pc,ariaLive:null,ariaModal:Tc,ariaMultiLine:Tc,ariaMultiSelectable:Tc,ariaOrientation:null,ariaOwns:Fc,ariaPlaceholder:null,ariaPosInSet:Pc,ariaPressed:Tc,ariaReadOnly:Tc,ariaRelevant:null,ariaRequired:Tc,ariaRoleDescription:Fc,ariaRowCount:Pc,ariaRowIndex:Pc,ariaRowSpan:Pc,ariaSelected:Tc,ariaSetSize:Pc,ariaSort:null,ariaValueMax:Pc,ariaValueMin:Pc,ariaValueNow:Pc,ariaValueText:null,role:null}}),Jc=Uc({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Vc,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Oc,acceptCharset:Fc,accessKey:Fc,action:null,allow:null,allowFullScreen:Dc,allowPaymentRequest:Dc,allowUserMedia:Dc,alt:null,as:null,async:Dc,autoCapitalize:null,autoComplete:Fc,autoFocus:Dc,autoPlay:Dc,blocking:Fc,capture:null,charSet:null,checked:Dc,cite:null,className:Fc,cols:Pc,colSpan:null,content:null,contentEditable:Tc,controls:Dc,controlsList:Fc,coords:Pc|Oc,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Dc,defer:Dc,dir:null,dirName:null,disabled:Dc,download:Ic,draggable:Tc,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Dc,formTarget:null,headers:Fc,height:Pc,hidden:Dc,high:Pc,href:null,hrefLang:null,htmlFor:Fc,httpEquiv:Fc,id:null,imageSizes:null,imageSrcSet:null,inert:Dc,inputMode:null,integrity:null,is:null,isMap:Dc,itemId:null,itemProp:Fc,itemRef:Fc,itemScope:Dc,itemType:Fc,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Dc,low:Pc,manifest:null,max:null,maxLength:Pc,media:null,method:null,min:null,minLength:Pc,multiple:Dc,muted:Dc,name:null,nonce:null,noModule:Dc,noValidate:Dc,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Dc,optimum:Pc,pattern:null,ping:Fc,placeholder:null,playsInline:Dc,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Dc,referrerPolicy:null,rel:Fc,required:Dc,reversed:Dc,rows:Pc,rowSpan:Pc,sandbox:Fc,scope:null,scoped:Dc,seamless:Dc,selected:Dc,shadowRootClonable:Dc,shadowRootDelegatesFocus:Dc,shadowRootMode:null,shape:null,size:Pc,sizes:null,slot:null,span:Pc,spellCheck:Tc,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Pc,step:null,style:null,tabIndex:Pc,target:null,title:null,translate:null,type:null,typeMustMatch:Dc,useMap:null,value:Tc,width:Pc,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Fc,axis:null,background:null,bgColor:null,border:Pc,borderColor:null,bottomMargin:Pc,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Dc,declare:Dc,event:null,face:null,frame:null,frameBorder:null,hSpace:Pc,leftMargin:Pc,link:null,longDesc:null,lowSrc:null,marginHeight:Pc,marginWidth:Pc,noResize:Dc,noHref:Dc,noShade:Dc,noWrap:Dc,object:null,profile:null,prompt:null,rev:null,rightMargin:Pc,rules:null,scheme:null,scrolling:Tc,standby:null,summary:null,text:null,topMargin:Pc,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Pc,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Dc,disableRemotePlayback:Dc,prefix:null,property:null,results:Pc,security:null,unselectable:null}}),Kc=Uc({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
2dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:qc,properties:{about:Mc,accentHeight:Pc,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Pc,amplitude:Pc,arabicForm:null,ascent:Pc,attributeName:null,attributeType:null,azimuth:Pc,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Pc,by:null,calcMode:null,capHeight:Pc,className:Fc,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
2dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Pc,diffuseConstant:Pc,direction:null,display:null,dur:null,divisor:Pc,dominantBaseline:null,download:Dc,dx:null,dy:null,edgeMode:null,editable:null,elevation:Pc,enableBackground:null,end:null,event:null,exponent:Pc,externalResourcesRequired:null,fill:null,fillOpacity:Pc,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Oc,g2:Oc,glyphName:Oc,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Pc,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Pc,horizOriginX:Pc,horizOriginY:Pc,id:null,ideographic:Pc,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Pc,k:Pc,k1:Pc,k2:Pc,k3:Pc,k4:Pc,kernelMatrix:Mc,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Pc,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Pc,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Pc,overlineThickness:Pc,paintOrder:null,panose1:null,path:null,pathLength:Pc,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Fc,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Pc,pointsAtY:Pc,pointsAtZ:Pc,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Mc,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Mc,rev:Mc,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Mc,requiredFeatures:Mc,requiredFonts:Mc,requiredFormats:Mc,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Pc,specularExponent:Pc,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Pc,strikethroughThickness:Pc,string:null,stroke:null,strokeDashArray:Mc,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Pc,strokeOpacity:Pc,strokeWidth:null,style:null,surfaceScale:Pc,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Mc,tabIndex:Pc,tableValues:null,target:null,targetX:Pc,targetY:Pc,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Mc,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Pc,underlineThickness:Pc,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Pc,values:null,vAlphabetic:Pc,vMathematical:Pc,vectorEffect:null,vHanging:Pc,vIdeographic:Pc,version:null,vertAdvY:Pc,vertOriginX:Pc,vertOriginY:Pc,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Pc,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Yc=Cc([Wc,Hc,Gc,$c,Jc],"html"),Xc=Cc([Wc,Hc,Gc,$c,Kc],"svg");function Qc(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return function(t){ec(t,"element",(function(t,n,r){var i,o=r;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"===typeof n&&(i=!e.allowElement(t,n,o)),i&&"number"===typeof n){var a;if(e.unwrapDisallowed&&t.children)(a=o.children).splice.apply(a,[n,1].concat((0,v.Z)(t.children)));else o.children.splice(n,1);return n}}))}}var eu=n(8599);function tu(e){var t=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}var nu=/^data[-\w.:]+$/i,ru=/-[a-z]/g,iu=/[A-Z]/g;function ou(e){return"-"+e.toLowerCase()}function au(e){return e.charAt(1).toUpperCase()}var su={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var lu=n(6426),cu=["http","https","mailto","tel"];function uu(e){var t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;var r=t.indexOf(":");if(-1===r)return t;for(var i=-1;++i<cu.length;){var o=cu[i];if(r===o.length&&t.slice(0,o.length).toLowerCase()===o)return t}return-1!==(i=t.indexOf("?"))&&r>i||-1!==(i=t.indexOf("#"))&&r>i?t:"javascript:void(0)"}var du={}.hasOwnProperty,fu=new Set(["table","thead","tbody","tfoot","tr"]);function pu(e,t){for(var n,r=[],i=-1;++i<t.children.length;)"element"===(n=t.children[i]).type?r.push(hu(e,n,i,t)):"text"===n.type?"element"===t.type&&fu.has(t.tagName)&&tu(n)||r.push(n.value):"raw"!==n.type||e.options.skipHtml||r.push(n.value);return r}function hu(e,t,n,r){var i,o=e.options,a=void 0===o.transformLinkUri?uu:o.transformLinkUri,s=e.schema,l=t.tagName,u={},d=s;if("html"===s.space&&"svg"===l&&(d=Xc,e.schema=d),t.properties)for(i in t.properties)du.call(t.properties,i)&&vu(u,i,t.properties[i],e);"ol"!==l&&"ul"!==l||e.listDepth++;var f=pu(e,t);"ol"!==l&&"ul"!==l||e.listDepth--,e.schema=s;var p,h=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},m=o.components&&du.call(o.components,l)?o.components[l]:l,v="string"===typeof m||m===c.Fragment;if(!eu.isValidElementType(m))throw new TypeError("Component for name `".concat(l,"` not defined or is not renderable"));if(u.key=n,"a"===l&&o.linkTarget&&(u.target="function"===typeof o.linkTarget?o.linkTarget(String(u.href||""),t.children,"string"===typeof u.title?u.title:null):o.linkTarget),"a"===l&&a&&(u.href=a(String(u.href||""),t.children,"string"===typeof u.title?u.title:null)),v||"code"!==l||"element"!==r.type||"pre"===r.tagName||(u.inline=!0),v||"h1"!==l&&"h2"!==l&&"h3"!==l&&"h4"!==l&&"h5"!==l&&"h6"!==l||(u.level=Number.parseInt(l.charAt(1),10)),"img"===l&&o.transformImageUri&&(u.src=o.transformImageUri(String(u.src||""),String(u.alt||""),"string"===typeof u.title?u.title:null)),!v&&"li"===l&&"element"===r.type){var g=function(e){var t=-1;for(;++t<e.children.length;){var n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);u.checked=g&&g.properties?Boolean(g.properties.checked):null,u.index=mu(r,t),u.ordered="ol"===r.tagName}return v||"ol"!==l&&"ul"!==l||(u.ordered="ol"===l,u.depth=e.listDepth),"td"!==l&&"th"!==l||(u.align&&(u.style||(u.style={}),u.style.textAlign=u.align,delete u.align),v||(u.isHeader="th"===l)),v||"tr"!==l||"element"!==r.type||(u.isHeader=Boolean("thead"===r.tagName)),o.sourcePos&&(u["data-sourcepos"]=[(p=h).start.line,":",p.start.column,"-",p.end.line,":",p.end.column].map(String).join("")),!v&&o.rawSourcePos&&(u.sourcePosition=t.position),!v&&o.includeElementIndex&&(u.index=mu(r,t),u.siblingCount=mu(r)),v||(u.node=t),f.length>0?c.createElement(m,u,f):c.createElement(m,u)}function mu(e,t){for(var n=-1,r=0;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function vu(e,t,n,r){var i=function(e,t){var n=_c(t),r=t,i=Nc;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&nu.test(t)){if("-"===t.charAt(4)){var o=t.slice(5).replace(ru,au);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{var a=t.slice(4);if(!ru.test(a)){var s=a.replace(iu,ou);"-"!==s.charAt(0)&&(s="-"+s),t="data"+s}}i=Lc}return new i(r,t)}(r.schema,t),o=n;null!==o&&void 0!==o&&o===o&&(Array.isArray(o)&&(o=i.commaSeparated?function(e,t){var n=t||{};return(""===e[e.length-1]?[].concat((0,v.Z)(e),[""]):e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(o):o.join(" ").trim()),"style"===i.property&&"string"===typeof o&&(o=function(e){var t={};try{lu(e,n)}catch(r){}return t;function n(e,n){var r="-ms-"===e.slice(0,4)?"ms-".concat(e.slice(4)):e;t[r.replace(/-([a-z])/g,gu)]=n}}(o)),i.space&&i.property?e[du.call(su,i.property)?su[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function gu(e,t){return t.toUpperCase()}var yu={}.hasOwnProperty,bu={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function xu(e){for(var t in bu)if(yu.call(bu,t)&&yu.call(e,t)){var n=bu[t];console.warn("[react-markdown] Warning: please ".concat(n.to?"use `".concat(n.to,"` instead of"):"remove"," `").concat(t,"` (see <").concat("https://github.com/remarkjs/react-markdown/blob/main/changelog.md","#").concat(n.id,"> for more info)")),delete bu[t]}var r=Ba().use(Gl).use(e.remarkPlugins||[]).use(Sc,(0,A.Z)((0,A.Z)({},e.remarkRehypeOptions),{},{allowDangerousHtml:!0})).use(e.rehypePlugins||[]).use(Qc,e),i=new Ta;"string"===typeof e.children?i.value=e.children:void 0!==e.children&&null!==e.children&&console.warn("[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"));var o=r.runSync(r.parse(i),i);if("root"!==o.type)throw new TypeError("Expected a `root` node");var a=c.createElement(c.Fragment,{},pu({options:e,schema:Yc,listDepth:0},o));return e.className&&(a=c.createElement("div",{className:e.className},a)),a}
2xu.propTypes={children:kt.string,className:kt.string,allowElement:kt.func,allowedElements:kt.arrayOf(kt.string),disallowedElements:kt.arrayOf(kt.string),unwrapDisallowed:kt.bool,remarkPlugins:kt.arrayOf(kt.oneOfType([kt.object,kt.func,kt.arrayOf(kt.oneOfType([kt.bool,kt.string,kt.object,kt.func,kt.arrayOf(kt.any)]))])),rehypePlugins:kt.arrayOf(kt.oneOfType([kt.object,kt.func,kt.arrayOf(kt.oneOfType([kt.bool,kt.string,kt.object,kt.func,kt.arrayOf(kt.any)]))])),sourcePos:kt.bool,rawSourcePos:kt.bool,skipHtml:kt.bool,includeElementIndex:kt.bool,transformLinkUri:kt.oneOfType([kt.func,kt.bool]),linkTarget:kt.oneOfType([kt.func,kt.string]),transformImageUri:kt.func,components:kt.object};var wu=n(3763),ku=n(2848),Su={display:"inline-block",color:"#3D5A80",fontFamily:"inherit",fontWeight:400,fontSize:"inherit",lineHeight:"inherit",textDecoration:"underline dotted",textDecorationThickness:"1px",textUnderlineOffset:"2px",whiteSpace:"nowrap"},ju=(0,A.Z)((0,A.Z)({},Su),{},{appearance:"none",background:"transparent",border:"none",padding:0,margin:0,cursor:"pointer"}),Cu=function(e){var t=e.displayName,n=e.userId,r=(0,ku.Z)(n),i=r.open,o=r.anchorRef,a=r.handlers,s=r.popover;return n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("button",(0,A.Z)((0,A.Z)({ref:o,type:"button",className:"bpb-mention-chip",style:ju,"data-bpb-mention":"true","data-bpb-mention-id":n,"data-bpb-mention-name":t||"","aria-haspopup":"dialog","aria-expanded":i},a),{},{children:"@".concat(t)})),s]}):(0,F.jsx)("span",{className:"bpb-mention-chip",style:Su,"data-bpb-mention":"true","data-bpb-mention-name":t||"",children:"@".concat(t)})},_u=["node"],Eu=["node","children","href"],Nu=["node","ordered"],Au=["node","ordered"],Du=["node","ordered"],Tu=["node"],Iu=["node"],Pu=["node"],Fu=["node"],Ou=["node","inline"],Mu=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,Zu=function e(t){return t?"string"===typeof t.value?t.value:Array.isArray(t.children)?t.children.map(e).join(""):"":""},Ru=function(){return function(e){!function e(t){if(t&&Array.isArray(t.children)){for(var n=t.children,r=0;r<n.length-1;r+=1){var i=n[r],o=n[r+1];i&&"text"===i.type&&"string"===typeof i.value&&i.value.endsWith("@")&&o&&"link"===o.type&&"string"===typeof o.url&&Mu.test(o.url)&&(i.value=i.value.slice(0,-1),o.data=o.data||{},o.data.hProperties=(0,A.Z)((0,A.Z)({},o.data.hProperties||{}),{},{"data-bpb-mention":"true","data-bpb-mention-name":Zu(o)}))}n.forEach(e)}}(e)}},Lu={p:function(e){e.node;var t=(0,en.Z)(e,_u);return(0,F.jsx)("p",(0,A.Z)({style:{margin:"0 0 12px"}},t))},a:function(e){e.node;var t=e.children,n=e.href,r=(0,en.Z)(e,Eu);if("true"===r["data-bpb-mention"]){var i=r["data-bpb-mention-name"]||"";return(0,F.jsx)(Cu,{displayName:i,userId:n})}return(0,F.jsx)("a",(0,A.Z)((0,A.Z)({style:{color:"var(--bpb-link-color)"},href:n},r),{},{children:t}))},ul:function(e){e.node,e.ordered;var t=(0,en.Z)(e,Nu);return(0,F.jsx)("ul",(0,A.Z)({style:{margin:"0 0 12px",paddingLeft:40}},t))},ol:function(e){e.node,e.ordered;var t=(0,en.Z)(e,Au);return(0,F.jsx)("ol",(0,A.Z)({style:{margin:"0 0 12px",paddingLeft:40}},t))},li:function(e){e.node;var t=e.ordered,n=(0,en.Z)(e,Du);return(0,F.jsx)("li",(0,A.Z)({style:{marginBottom:4,listStyleType:t?"decimal":"disc"}},n))},h1:function(e){e.node;var t=(0,en.Z)(e,Tu);return(0,F.jsx)("h2",(0,A.Z)({style:{fontSize:22,fontWeight:600,lineHeight:"28px",margin:"0 0 10px"}},t))},h2:function(e){e.node;var t=(0,en.Z)(e,Iu);return(0,F.jsx)("h3",(0,A.Z)({style:{fontSize:19,fontWeight:600,lineHeight:"25px",margin:"0 0 10px"}},t))},h3:function(e){e.node;var t=(0,en.Z)(e,Pu);return(0,F.jsx)("h4",(0,A.Z)({style:{fontSize:17,fontWeight:600,lineHeight:"23px",margin:"0 0 8px"}},t))},blockquote:function(e){e.node;var t=(0,en.Z)(e,Fu);return(0,F.jsx)("blockquote",(0,A.Z)({style:{margin:"0 0 12px",padding:"0 0 0 12px",background:"none",textAlign:"left",borderRadius:0,borderLeftWidth:3,borderLeftStyle:"solid",borderLeftColor:"#E2E3E6",color:"#696B78"}},t))},code:function(e){e.node;var t=e.inline,n=(0,en.Z)(e,Ou);return t?(0,F.jsx)("code",(0,A.Z)({style:{backgroundColor:"#F2F3F4",borderRadius:4,padding:"1px 5px",fontSize:14}},n)):(0,F.jsx)("code",(0,A.Z)({style:{display:"block",backgroundColor:"#F2F3F4",borderRadius:8,padding:12,fontSize:14,overflowX:"auto"}},n))},img:function(){return null}},Bu=function(e){var t=e.filled,n=e.color,r=void 0===n?"#05081E":n;return(0,F.jsx)("svg",{className:"bpb-post-action-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:t?r:"none",stroke:r,strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("path",{d:"M7 11v8a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1zM7 11v-5a2 2 0 0 1 4 0v5h3a3 3 0 0 1 3 3l-1 5a2 2 0 0 1 -2 1.5h-7"})})},zu=function(){return(0,F.jsx)("svg",{className:"bpb-post-action-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("path",{d:"M21 15a2 2 0 0 1 -2 2h-12l-4 4v-16a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2z"})})},Uu=function(e){var t=e.size,n=void 0===t?16:t;return(0,F.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:[(0,F.jsx)("path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"}),(0,F.jsx)("path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0"})]})},Hu=function(){return(0,F.jsxs)("svg",{className:"bpb-post-action-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:[(0,F.jsx)("circle",{cx:"18",cy:"5",r:"3"}),(0,F.jsx)("circle",{cx:"6",cy:"12",r:"3"}),(0,F.jsx)("circle",{cx:"18",cy:"19",r:"3"}),(0,F.jsx)("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),(0,F.jsx)("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]})},Wu=function(){return(0,F.jsx)("svg",{className:"bpb-post-action-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("polyline",{points:"20 6 9 17 4 12"})})},qu={display:"flex",alignItems:"center",gap:6,boxSizing:"border-box",backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#CDCED2",borderRadius:999,paddingTop:8,paddingBottom:8,paddingLeft:14,paddingRight:14,cursor:"pointer"},Vu={display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:38,height:38,flexShrink:0,backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#CDCED2",borderRadius:"50%",cursor:"pointer"},Gu={color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:500,lineHeight:"16px"},$u=function(e){var t=e.post,n=e.onReplyClick,r=e.onToggleLike,i=!!t.viewer_has_liked,o=!!t.is_locked,a="number"===typeof t.like_count?t.like_count:0,s=(0,c.useState)(!1),l=(0,p.Z)(s,2),u=l[0],d=l[1],f=(0,c.useRef)(i);(0,c.useEffect)((function(){i&&!f.current&&d(!0),f.current=i}),[i]);
2var h=(i?a:a+1).toLocaleString();return(0,F.jsxs)("div",{className:"bpb-pd-row bpb-post-engagement-row",style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:10,paddingLeft:16,paddingRight:16,marginTop:20,marginBottom:4},children:[!o&&(0,F.jsxs)("button",{type:"button",className:"bpb-post-action-btn bpb-post-reply-btn",style:qu,onClick:n,children:[(0,F.jsx)(zu,{}),(0,F.jsx)("span",{className:"bpb-post-action-label",style:Gu,children:"Reply"})]}),(0,F.jsxs)("button",{type:"button",className:"bpb-post-action-btn bpb-post-like-btn".concat(u?" bpb-like-pop":""),style:(0,A.Z)((0,A.Z)({},qu),i?{backgroundColor:"#2CAE41",borderColor:"#2CAE41"}:null),onClick:r,onAnimationEnd:function(){return d(!1)},"aria-pressed":i,"aria-label":i?"Unlike this post":"Like this post",children:[(0,F.jsx)(Bu,{filled:i,color:i?"#FFFFFF":"#05081E"}),(0,F.jsx)("span",{className:"bpb-post-action-label",style:(0,A.Z)((0,A.Z)({},Gu),{},{color:i?"#FFFFFF":"#05081E",display:"inline-block",minWidth:31,textAlign:"left"}),children:i?"Liked":"Like"}),(0,F.jsxs)("span",{className:"bpb-post-action-label",style:(0,A.Z)((0,A.Z)({},Gu),{},{color:i?"#FFFFFF":"#696B78"}),children:["\xb7 ",(0,F.jsx)("span",{style:{display:"inline-block",minWidth:"".concat(h.length,"ch"),textAlign:"left"},children:a.toLocaleString()})]})]})]})},Ju=function(e){var t=e.post,n=e.currentUserId,r=(e.onReplyClick,e.onToggleLike,e.onToggleFollow),i=(0,c.useState)(!1),o=(0,p.Z)(i,2),a=o[0],s=o[1],l=(0,c.useState)(null),u=(0,p.Z)(l,2),h=u[0],m=u[1],v=(0,c.useState)(!1),y=(0,p.Z)(v,2),b=y[0],x=y[1],w=(0,c.useState)(!1),k=(0,p.Z)(w,2),S=k[0],j=k[1],C=(0,c.useState)(!1),_=(0,p.Z)(C,2),E=_[0],N=_[1],D=(0,c.useRef)(null);(0,c.useLayoutEffect)((function(){var e=D.current;if(e){var t=function(){N(e.scrollHeight>401)};return t(),window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}}),[null===t||void 0===t?void 0:t.body,null===t||void 0===t?void 0:t.id]);var T=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=window.location.href,!navigator.share){e.next=10;break}return e.prev=2,e.next=5,navigator.share({url:t});case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:return e.abrupt("return");case 10:if(!navigator.clipboard||!navigator.clipboard.writeText){e.next=20;break}return e.prev=11,e.next=14,navigator.clipboard.writeText(t);case 14:j(!0),setTimeout((function(){return j(!1)}),1500),e.next=20;break;case 18:e.prev=18,e.t1=e.catch(11);case 20:case"end":return e.stop()}}),e,null,[[2,7],[11,18]])})));return function(){return e.apply(this,arguments)}}(),I=t&&(t.User||t.author||{}).id||void 0,P=(0,ku.Z)(I);if(!t)return null;var O=t.User||t.author||{},M=!!t.is_locked,Z=!!t.is_pinned,R=!!n&&O.id===n&&!M,L=t.body||"",B=E,z=Array.isArray(t.post_photos)?t.post_photos:[],U={color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:16,lineHeight:"23px",wordBreak:"break-word"};return B&&!a&&(U.maxHeight=400,U.overflow="hidden"),(0,F.jsxs)("article",{className:"bpb-pd-row bpb-pd-article",style:{display:"flex",flexDirection:"column",gap:12,paddingTop:16,paddingBottom:24,paddingLeft:16,paddingRight:16,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#E8E8EA"},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,F.jsx)(Zi.Z,{category:t.category}),Z&&(0,F.jsx)(Li,{})]}),(0,F.jsxs)("h1",{style:{margin:0,color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:28,fontWeight:500,lineHeight:"36px",letterSpacing:"-0.005em",display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[M&&(0,F.jsx)(Wi,{}),t.title]}),(0,F.jsxs)("div",{className:"bpb-post-meta",style:{display:"flex",alignItems:"center",gap:10,flexWrap:"nowrap",marginTop:8,marginBottom:10},children:[(0,F.jsxs)("div",{ref:P.anchorRef,style:{display:"flex",alignItems:"center",gap:10,flexWrap:"nowrap",flex:"1 1 auto",minWidth:0},children:[(0,F.jsx)("span",(0,A.Z)((0,A.Z)({},P.handlers),{},{style:(0,A.Z)({display:"inline-flex",flexShrink:0,lineHeight:0},P.enabled?{cursor:"pointer"}:null),children:(0,F.jsx)(ni.Z,{user:O,size:32})})),P.popover,(0,F.jsxs)("div",{className:"bpb-post-author-text",style:{display:"flex",alignItems:"center",columnGap:10,minWidth:0},children:[(0,F.jsxs)("span",{className:"bpb-post-author-nameline",style:{display:"flex",alignItems:"center",gap:10,minWidth:0,maxWidth:"100%"},children:[(0,F.jsx)("span",(0,A.Z)((0,A.Z)({className:"bpb-post-author-name"},P.handlers),{},{style:(0,A.Z)({color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},P.enabled?{cursor:"pointer"}:null),children:O.name||"Member"})),O.is_bot&&(0,F.jsx)(Bi,{})]}),(0,F.jsxs)("span",{className:"bpb-post-author-subline",style:{display:"flex",alignItems:"center",gap:10,minWidth:0,maxWidth:"100%",overflow:"hidden"},children:[(0,F.jsx)("span",{className:"bpb-post-byline-dot",style:{color:"#9B9CA5",fontSize:14,lineHeight:"20px",flexShrink:0},children:"\xb7"}),(0,F.jsx)("span",{className:"bpb-post-author-time",style:{color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:(0,ri.Z)(t.createdAt)}),t.edited_at&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"bpb-post-author-time",style:{color:"#9B9CA5",fontSize:14,lineHeight:"20px",flexShrink:0},children:"\xb7"}),(0,F.jsx)("span",{className:"bpb-post-author-time",style:{color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,lineHeight:"20px",flexShrink:0},children:"Edited"})]})]})]})]}),(0,F.jsxs)("div",{className:"bpb-post-byline-cluster",style:{display:"flex",alignItems:"center",gap:8,marginLeft:"auto",flexShrink:0},children:[R?(0,F.jsx)(g.rU,{to:"/board/edit/".concat(t.id),className:"bpb-post-action-label",onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)},style:{color:b?"#05081E":"#696B78",textDecoration:"none",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:500,lineHeight:"16px",flexShrink:0},children:"Edit"}):(0,F.jsxs)("button",{type:"button",className:"bpb-post-follow-btn",style:{display:"none",alignItems:"center",gap:5,boxSizing:"border-box",backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#CDCED2",borderRadius:999,paddingTop:7,paddingBottom:7,paddingLeft:12,paddingRight:12,cursor:"pointer",flexShrink:0},onClick:r,"aria-pressed":!!t.viewer_is_following,"aria-label":t.viewer_is_following?"Unfollow this thread":"Follow this thread",children:[(0,F.jsx)(Uu,{size:14}),(0,F.jsx)("span",{className:"bpb-post-follow-label",style:{color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:12,fontWeight:500,lineHeight:"16px",textAlign:"left",minWidth:51},children:t.viewer_is_following?"Following":"Follow"})]}),(0,F.jsx)("button",{type:"button",className:"bpb-post-share-btn",style:Vu,onClick:T,"aria-label":"Share this thread",children:S?(0,F.jsx)(Wu,{}):(0,F.jsx)(Hu,{})})]})]}),L&&(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{ref:D,className:"bpb-post-body",style:U,children:(0,F.jsx)(xu,{components:Lu,remarkPlugins:[Ru],children:L})}),B&&(0,F.jsx)("button",{type:"button",onClick:function(){return s((function(e){return!e}))},style:{marginTop:8,background:"none",border:"none",padding:0,color:"#01655A",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:500,cursor:"pointer"},children:a?"Read less":"Read more"})]}),1===z.length&&(0,F.jsx)("div",{style:{display:"flex",marginTop:4},children:(0,F.jsx)("div",{onClick:function(){return m(0)},style:{display:"flex",maxWidth:"100%",justifyContent:"center",backgroundColor:"#F2F3F4",overflow:"hidden",cursor:"pointer"},children:(0,F.jsx)("img",{src:z[0].photo_url,alt:"",loading:"lazy",style:{maxHeight:"min(50vh, 340px)",maxWidth:"100%",width:"auto",height:"auto",objectFit:"contain",display:"block"}})})}),z.length>1&&(0,F.jsx)("div",{className:"bpb-photo-grid",style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:10,marginTop:4},children:z.map((function(e,t){return(0,F.jsx)("div",{onClick:function(){return m(t)},style:{height:150,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#F2F3F4",overflow:"hidden",cursor:"pointer"},children:(0,F.jsx)("img",{src:e.photo_url,alt:"",loading:"lazy",style:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto",objectFit:"contain",display:"block"}})},e.id)}))}),null!==h&&(0,F.jsx)(wu.Z,{photos:z,index:h,onClose:function(){return m(null)},onIndex:m})]})},Ku='"Jost", system-ui, sans-serif',Yu={backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#E8E8EA",borderRadius:12,display:"flex",flexDirection:"column"},Xu={color:"#9B9CA5",fontFamily:Ku,fontWeight:600,letterSpacing:"0.08em",textTransform:"uppercase"},Qu=function(e){var t=e.author,n=e.loading,r=e.currentUserId,i=e.compact,o=void 0!==i&&i,a=(0,h.s0)(),s=(0,y.I0)(),l=o?{padBlock:12,padInline:16,cardGap:10,eyebrowFs:10,eyebrowLh:"12px",avatar:44,authorGap:12,textGap:3,nameFs:14,nameLh:"18px",memberFs:11,memberLh:"14px",statsGap:16,statsPadTop:12,statColPadTop:0,statColGap:1,statNumFs:15,statNumLh:"18px",statLabelFs:10,statLabelLh:"12px",btnPadV:8,btnPadH:12,btnFs:12}:{padBlock:20,padInline:20,cardGap:16,eyebrowFs:11,eyebrowLh:"14px",avatar:56,authorGap:14,textGap:4,nameFs:16,nameLh:"20px",memberFs:12,memberLh:"16px",statsGap:24,statsPadTop:4,statColPadTop:12,statColGap:2,statNumFs:18,statNumLh:"22px",statLabelFs:11,statLabelLh:"14px",btnPadV:8,btnPadH:14,btnFs:13};if(n)return(0,F.jsxs)("div",{style:(0,A.Z)((0,A.Z)({},Yu),{},{paddingTop:l.padBlock,paddingBottom:l.padBlock,paddingLeft:l.padInline,paddingRight:l.padInline,gap:l.cardGap}),children:[(0,F.jsx)("div",{style:(0,A.Z)((0,A.Z)({},Xu),{},{fontSize:l.eyebrowFs,lineHeight:l.eyebrowLh}),children:"About the author"}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:l.authorGap},children:[(0,F.jsx)("div",{style:{width:l.avatar,height:l.avatar,borderRadius:"50%",backgroundColor:"#F2F3F4",flexShrink:0}}),(0,F.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[(0,F.jsx)("div",{style:{height:12,width:"55%",backgroundColor:"#F2F3F4",borderRadius:4}}),(0,F.jsx)("div",{style:{height:10,width:"40%",backgroundColor:"#F2F3F4",borderRadius:4}})]})]}),(0,F.jsx)("div",{style:{height:34,backgroundColor:"#F2F3F4",borderRadius:9999}})]});if(!t)return null;var c="";if(t.member_since){var u=new Date(t.member_since);isNaN(u.getTime())||(c=u.toLocaleDateString(void 0,{month:"long",year:"numeric"}))}var d=function(e,t){return(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:l.statColGap,paddingTop:l.statColPadTop},children:[(0,F.jsx)("div",{style:{color:"#05081E",fontFamily:Ku,fontSize:l.statNumFs,fontWeight:500,lineHeight:l.statNumLh}
2,children:(null!==e&&void 0!==e?e:0).toLocaleString()}),(0,F.jsx)("div",{style:{color:"#696B78",fontFamily:Ku,fontSize:l.statLabelFs,lineHeight:l.statLabelLh},children:t})]})};return(0,F.jsxs)("div",{style:(0,A.Z)((0,A.Z)({},Yu),{},{paddingTop:l.padBlock,paddingBottom:l.padBlock,paddingLeft:l.padInline,paddingRight:l.padInline,gap:l.cardGap}),children:[(0,F.jsx)("div",{style:(0,A.Z)((0,A.Z)({},Xu),{},{fontSize:l.eyebrowFs,lineHeight:l.eyebrowLh}),children:"About the author"}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:l.authorGap},children:[(0,F.jsx)(ni.Z,{user:t,size:l.avatar}),(0,F.jsxs)("div",{style:{flex:"1 1 0%",minWidth:0,display:"flex",flexDirection:"column",gap:l.textGap},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,F.jsx)("span",{style:{color:"#05081E",fontFamily:Ku,fontSize:l.nameFs,fontWeight:500,lineHeight:l.nameLh,flexShrink:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.name||"Member"}),t.is_pro&&(0,F.jsx)(zi,{})]}),c&&(0,F.jsxs)("div",{style:{color:"#696B78",fontFamily:Ku,fontSize:l.memberFs,lineHeight:l.memberLh},children:["Member since ",c]})]})]}),(0,F.jsxs)("div",{style:{display:"flex",gap:l.statsGap,paddingTop:l.statsPadTop,borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"#F2F3F4"},children:[d(t.board_posts,"Board posts"),d(t.replies_given,"Replies given"),d(t.likes_received,"Likes received")]}),(0,F.jsx)("button",{type:"button",onClick:function(){if(t.id)if(r&&t.id===r)a("/profile");else{var e={PhotoID:"",UserID:t.id},n=we.AES.encrypt(JSON.stringify(e),"siddiqui").toString(),i="/otherusers-profile?userdata=".concat(encodeURIComponent(n));if(!(0,me.I)())return(0,ln.VB)({type:"view-profile",returnUrl:i}),s(x.N.setPopupModalMessage({joinModalHeading:(0,ln.dO)("view-profile")})),void s(x.N.setJoinNowModalState(!0));a(i)}},style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#CDCED2",borderRadius:9999,paddingTop:l.btnPadV,paddingBottom:l.btnPadV,paddingLeft:l.btnPadH,paddingRight:l.btnPadH,color:"#05081E",fontFamily:Ku,fontSize:l.btnFs,fontWeight:500,lineHeight:"16px",cursor:"pointer"},children:"View profile"})]})},ed=function(){return(0,F.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#696B78",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:(0,F.jsx)("path",{d:"M21 15a2 2 0 0 1 -2 2h-12l-4 4v-16a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2z"})})},td=function(){return(0,F.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#696B78",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:(0,F.jsx)("path",{d:"M7 11v8a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1zM7 11v-5a2 2 0 0 1 4 0v5h3a3 3 0 0 1 3 3l-1 5a2 2 0 0 1 -2 1.5h-7"})})},nd=function(e,t,n){return(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e,(0,F.jsx)("span",{style:{color:"#696B78",fontFamily:Ku,fontSize:14,lineHeight:"18px"},children:t})]}),(0,F.jsx)("span",{style:{color:"#05081E",fontFamily:Ku,fontSize:14,fontWeight:500,lineHeight:"18px"},children:n})]})},rd=function(e){var t,n,r=e.post,i=e.threadActivity,o=e.loading,a=e.onToggleFollow;return o?(0,F.jsxs)("div",{style:(0,A.Z)((0,A.Z)({},Yu),{},{padding:20,gap:14}),children:[(0,F.jsx)("div",{style:(0,A.Z)((0,A.Z)({},Xu),{},{fontSize:11,lineHeight:"14px"}),children:"Thread activity"}),[1,2,3].map((function(e){return(0,F.jsx)("div",{style:{height:14,backgroundColor:"#F2F3F4",borderRadius:4}},e)})),(0,F.jsx)("div",{style:{height:36,backgroundColor:"#F2F3F4",borderRadius:9999,marginTop:4}})]}):i&&r?(0,F.jsxs)("div",{style:(0,A.Z)((0,A.Z)({},Yu),{},{padding:20,gap:14}),children:[(0,F.jsx)("div",{style:(0,A.Z)((0,A.Z)({},Xu),{},{fontSize:11,lineHeight:"14px"}),children:"Thread activity"}),(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[nd((0,F.jsx)(ed,{}),"Replies",(null!==(t=r.reply_count)&&void 0!==t?t:0).toLocaleStr
2ing()),nd((0,F.jsx)(td,{}),"Likes",(null!==(n=r.like_count)&&void 0!==n?n:0).toLocaleString()),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"#F2F3F4",paddingTop:8},children:[(0,F.jsx)("span",{style:{color:"#9B9CA5",fontFamily:Ku,fontSize:12,lineHeight:"16px"},children:"Last activity"}),(0,F.jsx)("span",{style:{color:"#696B78",fontFamily:Ku,fontSize:12,fontWeight:500,lineHeight:"16px"},children:(0,ri.Z)(i.last_activity_at)})]})]}),(0,F.jsxs)("button",{type:"button",onClick:a,"aria-label":r.viewer_is_following?"Unfollow this thread":"Follow this thread",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:"#FFD621",borderWidth:0,borderRadius:9999,paddingTop:10,paddingBottom:10,paddingLeft:14,paddingRight:14,marginTop:4,cursor:"pointer"},children:[(0,F.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:[(0,F.jsx)("path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"}),(0,F.jsx)("path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0"})]}),(0,F.jsx)("span",{style:{color:"#05081E",fontFamily:Ku,fontSize:13,fontWeight:500,lineHeight:"16px"},children:r.viewer_is_following?"Following":"Follow thread"})]})]}):null},id=function(){return(0,F.jsxs)("div",{style:{backgroundColor:"#FAFAFB",borderWidth:1,borderStyle:"dashed",borderColor:"#CDCED2",borderRadius:12,padding:20,display:"flex",flexDirection:"column",gap:10},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,F.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#9B9CA5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},children:[(0,F.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54 .54l3 -3a5 5 0 0 0 -7.07 -7.07l-1.72 1.71"}),(0,F.jsx)("path",{d:"M14 11a5 5 0 0 0 -7.54 -.54l-3 3a5 5 0 0 0 7.07 7.07l1.71 -1.71"})]}),(0,F.jsx)("div",{style:(0,A.Z)((0,A.Z)({},Xu),{},{fontSize:11,lineHeight:"14px"}),children:"Related discussions"})]}),(0,F.jsx)("div",{style:{color:"#696B78",fontFamily:Ku,fontSize:13,lineHeight:"20px"},children:"Coming soon \u2014 Ken-Bot will suggest related threads once the board has more discussions."})]})},od=function(e){var t=e.post,n=e.sidebar,r=e.sidebarLoading,i=e.contributors,o=e.contributorsLoading,a=e.currentUserId,s=e.onToggleFollow;return(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:20},children:[(0,F.jsx)(Qu,{author:n&&n.author,loading:r,currentUserId:a}),(0,F.jsx)(rd,{post:t,threadActivity:n&&n.thread_activity,loading:r,onToggleFollow:s}),(0,F.jsx)(wo,{rows:i,loading:o}),(0,F.jsx)(id,{})]})},ad="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",sd="\u03b5\u03bb1\u03c52\u0431\u04331\u0435\u043b3\u0434\u0435\u0442\u04384\u0435\u044e2\u043a\u0430\u0442\u043e\u043b\u0438\u043a6\u043e\u043c3\u043c\u043a\u04342\u043e\u043d1\u0441\u043a\u0432\u04306\u043e\u043d\u043b\u0430\u0439\u043d5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043a\u04403\u049b\u0430\u04373\u0570\u0561\u05753\u05d9\u05e9\u05e8\u05d0\u05dc5\u05e7\u05d5\u05dd3\u0627\u0628\u0648\u0638\u0628\u064a5\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062f\u06464\u0628\u062d\u0631\u064a\u06465\u062c\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062f\u064a\u06296\u0639\u0644\u064a\u0627\u06465\u0645\u063a\u0631\u06285\u0645\u0627\u0631\u0627\u062a5\u06cc\u0631\u0627\u06465\u0628\u0627\u0631\u062a2\u0632\u0627\u06314\u064a\u062a\u06433\u06be\u0627\u0631\u062a5\u062a\u0648\u0646\u06334\u0633\u0648\u062f\u0627\u06463\u0631\u064a\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064a\u06466\u0642\u0637\u06313\u0643\u0627\u062b\u0648\u0644\u064a\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064a\u0633\u064a\u06275\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067e\u0627\u06a9\u0633\u062a\u0627\u06467\u0680\u0627\u0631\u062a4\u0915\u0949\u092e3\u0928\u0947\u091f3\u092d\u093e\u0930\u09240\u092e\u094d3\u094b\u09245\u0938\u0902\u0917\u0920\u09285\u09ac\u09be\u0982\u09b2\u09be5\u09ad\u09be\u09b0\u09a42\u09f0\u09a44\u0a2d\u0a3e\u0a30\u0a244\u0aad\u0abe\u0ab0\u0aa44\u0b2d\u0b3e\u0b30\u0b244\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe6\u0bb2\u0b99\u0bcd\u0b95\u0bc86\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd11\u0c2d\u0c3e\u0c30\u0c24\u0c4d5\u0cad\u0cbe\u0cb0\u0ca44\u0d2d\u0d3e\u0d30\u0d24\u0d025\u0dbd\u0d82\u0d9a\u0dcf4\u0e04\u0e2d\u0e213\u0e44\u0e17\u0e223\u0ea5\u0eb2\u0ea73\u10d2\u10d42\u307f\u3093\u306a3\u30a2\u30de\u30be\u30f34\u30af\u30e9\u30a6\u30c94\u30b0\u30fc\u30b0\u30eb4\u30b3\u30e02\u30b9\u30c8\u30a23\u30bb\u30fc\u30eb3\u30d5\u30a1\u30c3\u30b7\u30e7\u30f36\u30dd\u30a4\u30f3\u30c84\u4e16\u754c2\u4e2d\u4fe11\u56fd1\u570b1\u6587\u7f513\u4e9a\u9a6c\u900a3\u4f01\u4e1a2\u4f5b\u5c712\u4fe1\u606f2\u5065\u5eb72\u516b\u53662\u516c\u53f81\u76ca2\u53f0\u6e7e1\u70632\u5546\u57ce1\u5e971\u68072\u5609\u91cc0\u5927\u9152\u5e975\u5728\u7ebf2\u5927\u62ff2\u5929\u4e3b\u65593\u5a31\u4e502\u5bb6\u96fb2\u5e7f\u4e1c2\u5fae\u535a2\u6148\u55842\u6211\u7231\u4f603\u624b\u673a2\u62db\u80582\u653f\u52a11\u5e9c2\u65b0\u52a0\u57612\u95fb2\u65f6\u5c1a2\u66f8\u7c4d2\u673a\u67842\u6de1\u9a6c\u95213\u6e38\u620f2\u6fb3\u95802\u70b9\u770b2\u79fb\u52a82\u7ec4\u7ec7\u673a\u67844\u7f51\u57401\u5e971\u7ad91\u7edc2\u8054\u901a2\u8c37\u6b4c2\u8d2d\u72692\u901a\u8ca92\u96c6\u56e22\u96fb\u8a0a\u76c8\u79d14\u98de\u5229\u6d663\u98df\u54c12\u9910\u53852\u9999\u683c\u91cc\u62c93\u6e2f2\ub2f7\ub1371\ucef42\uc0bc\uc1312\ud55c\uad6d2",ld="numeric",cd="ascii",ud="alph
2a",dd="asciinumeric",fd="alphanumeric",pd="domain",hd="emoji",md="scheme",vd="slashscheme",gd="whitespace";function yd(e,t){return e in t||(t[e]=[]),t[e]}function bd(e,t,n){for(var r in t[ld]&&(t[dd]=!0,t[fd]=!0),t[cd]&&(t[dd]=!0,t[ud]=!0),t[dd]&&(t[fd]=!0),t[ud]&&(t[fd]=!0),t[fd]&&(t[pd]=!0),t[hd]&&(t[pd]=!0),t){var i=yd(r,n);i.indexOf(e)<0&&i.push(e)}}function xd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.j={},this.jr=[],this.jd=null,this.t=e}xd.groups={},xd.prototype={accepts:function(){return!!this.t},go:function(e){var t=this,n=t.j[e];if(n)return n;for(var r=0;r<t.jr.length;r++){var i=t.jr[r][0],o=t.jr[r][1];if(o&&i.test(e))return o}return t.jd},has:function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e in this.j:!!this.go(e)},ta:function(e,t,n,r){for(var i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr:function(e,t,n,r){var i;return r=r||xd.groups,t&&t.j?i=t:(i=new xd(t),n&&r&&bd(t,n,r)),this.jr.push([e,i]),i},ts:function(e,t,n,r){var i=this,o=e.length;if(!o)return i;for(var a=0;a<o-1;a++)i=i.tt(e[a]);return i.tt(e[o-1],t,n,r)},tt:function(e,t,n,r){r=r||xd.groups;var i=this;if(t&&t.j)return i.j[e]=t,t;var o,a=t,s=i.go(e);if(s?(o=new xd,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new xd,a){if(r)if(o.t&&"string"===typeof o.t){var l=Object.assign(function(e,t){var n={};for(var r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(o.t,r),n);bd(a,l,r)}else n&&bd(a,n,r);o.t=a}return i.j[e]=o,o}};var wd=function(e,t,n,r,i){return e.ta(t,n,r,i)},kd=function(e,t,n,r,i){return e.tr(t,n,r,i)},Sd=function(e,t,n,r,i){return e.ts(t,n,r,i)},jd=function(e,t,n,r,i){return e.tt(t,n,r,i)},Cd="WORD",_d="UWORD",Ed="ASCIINUMERICAL",Nd="ALPHANUMERICAL",Ad="LOCALHOST",Dd="TLD",Td="UTLD",Id="SCHEME",Pd="SLASH_SCHEME",Fd="NUM",Od="WS",Md="NL",Zd="OPENBRACE",Rd="CLOSEBRACE",Ld="OPENBRACKET",Bd="CLOSEBRACKET",zd="OPENPAREN",Ud="CLOSEPAREN",Hd="OPENANGLEBRACKET",Wd="CLOSEANGLEBRACKET",qd="FULLWIDTHLEFTPAREN",Vd="FULLWIDTHRIGHTPAREN",Gd="LEFTCORNERBRACKET",$d="RIGHTCORNERBRACKET",Jd="LEFTWHITECORNERBRACKET",Kd="RIGHTWHITECORNERBRACKET",Yd="FULLWIDTHLESSTHAN",Xd="FULLWIDTHGREATERTHAN",Qd="AMPERSAND",ef="APOSTROPHE",tf="ASTERISK",nf="AT",rf="BACKSLASH",of="BACKTICK",af="CARET",sf="COLON",lf="COMMA",cf="DOLLAR",uf="DOT",df="EQUALS",ff="EXCLAMATION",pf="HYPHEN",hf="PERCENT",mf="PIPE",vf="PLUS",gf="POUND",yf="QUERY",bf="QUOTE",xf="FULLWIDTHMIDDLEDOT",wf="SEMI",kf="SLASH",Sf="TILDE",jf="UNDERSCORE",Cf="EMOJI",_f="SYM",Ef=Object.freeze({__proto__:null,ALPHANUMERICAL:Nd,AMPERSAND:Qd,APOSTROPHE:ef,ASCIINUMERICAL:Ed,ASTERISK:tf,AT:nf,BACKSLASH:rf,BACKTICK:of,CARET:af,CLOSEANGLEBRACKET:Wd,CLOSEBRACE:Rd,CLOSEBRACKET:Bd,CLOSEPAREN:Ud,COLON:sf,COMMA:lf,DOLLAR:cf,DOT:uf,EMOJI:Cf,EQUALS:df,EXCLAMATION:ff,FULLWIDTHGREATERTHAN:Xd,FULLWIDTHLEFTPAREN:qd,FULLWIDTHLESSTHAN:Yd,FULLWIDTHMIDDLEDOT:xf,FULLWIDTHRIGHTPAREN:Vd,HYPHEN:pf,LEFTCORNERBRACKET:Gd,LEFTWHITECORNERBRACKET:Jd,LOCALHOST:Ad,NL:Md,NUM:Fd,OPENANGLEBRACKET:Hd,OPENBRACE:Zd,OPENBRACKET:Ld,OPENPAREN:zd,PERCENT:hf,PIPE:mf,PLUS:vf,POUND:gf,QUERY:yf,QUOTE:bf,RIGHTCORNERBRACKET:$d,RIGHTWHITECORNERBRACKET:Kd,SCHEME:Id,SEMI:wf,SLASH:kf,SLASH_SCHEME:Pd,SYM:_f,TILDE:Sf,TLD:Dd,UNDERSCORE:jf,UTLD:Td,UWORD:_d,WORD:Cd,WS:Od}),Nf=/[a-z]/,Af=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
20EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/,Df=/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8])/,Tf=/\d/,If=/\s/,Pf="\r",Ff="\n",Of="\ufe0f",Mf="\u200d",Zf="\ufffc",Rf=null,Lf=null;function Bf(e,t){for(var n=function(e){var t=[],n=e.length,r=0;for(;r<n;){var i=e.charCodeAt(r),o=void 0,a=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,(function(e){return e.toLowerCase()}))),r=n.length,i=[],o=0,a=0;a<r;){for(var s=e,l=null,c=0,u=null,d=-1,f=-1;a<r&&(l=s.go(n[a]));)(s=l).accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[a].length,f++),c+=n[a].length,o+=n[a].length,a++;o-=d,a-=f,c-=d,i.push({t:u.t,v:t.slice(o-c,o),s:o-c,e:o})}return i}function zf(e,t,n,r,i){for(var o,a=t.length,s=0;s<a-1;s++){var l=t[s];e.j[l]?o=e.j[l]:((o=new xd(r)).jr=i.slice(),e.j[l]=o),e=o}return(o=new xd(n)).jr=i.slice(),e.j[t[a-1]]=o,o}function Uf(e){for(var t=[],n=[],r=0;r<e.length;){for(var i=0;"0123456789".indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(""));for(var o=parseInt(e.substring(r,r+i),10);o>0;o--)n.pop();r+=i}else n.push(e[r]),r++}return t}var Hf={defaultProtocol:"http",events:null,format:qf,formatHref:qf,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Wf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object.assign({},Hf);e&&(n=Object.assign(n,e instanceof Wf?e.o:e));for(var r=n.ignoreTags,i=[],o=0;o<r.length;o++)i.push(r[o].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}function qf(e){return e}Wf.prototype={o:Hf,ignoreTags:[],defaultRender:function(e){return e},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var r=null!=t,i=this.o[e];return i?("object"===typeof i?"function"===typeof(i=n.t in i?i[n.t]:Hf[e])&&r&&(i=i(t,n)):"function"===typeof i&&r&&(i=i(t,n.t,n)),i):i},getObj:function(e,t,n){var r=this.o[e];return"function"===typeof r&&null!=t&&(r=r(t,n.t,n)),r},render:function(e){var t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function Vf(e,t){this.t="token",this.v=e,this.tk=t}function Gf(e,t){var n=function(t){(0,ga.Z)(r,t);var n=(0,ya.Z)(r);function r(t,i){var o;return(0,ha.Z)(this,r),(o=n.call(this,t,i)).t=e,o}return(0,ma.Z)(r)}(Vf);for(var r in t)n.prototype[r]=t[r];return n.t=e,n}Vf.prototype={isLink:!1,toString:function(){return this.v},toHref:function(e){return this.toString()},toFormattedString:function(e){var t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"\u2026":r},toFormattedHref:function(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hf.defaultProtocol;return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject:function(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate:function(e){return e.get("validate",this.toString(),this)},render:function(e){var t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),a={}
2,s=e.get("className",n,t),l=e.get("target",n,t),c=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return a.href=r,s&&(a.class=s),l&&(a.target=l),c&&(a.rel=c),u&&Object.assign(a,u),{tagName:i,attributes:a,content:o,eventListeners:d}}};var $f=Gf("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),Jf=Gf("text"),Kf=Gf("nl"),Yf=Gf("url",{isLink:!0,toHref:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hf.defaultProtocol;return this.hasProtocol()?this.v:"".concat(e,"://").concat(this.v)},hasProtocol:function(){var e=this.tk;return e.length>=2&&e[0].t!==Ad&&e[1].t===sf}}),Xf=function(e){return new xd(e)};function Qf(e,t,n){var r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var ep="undefined"!==typeof console&&console&&console.warn||function(){},tp="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",np={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function rp(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(np.initialized&&ep('linkifyjs: already initialized - will not register custom scheme "'.concat(e,'" ').concat(tp)),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error('linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or "-"\n2. Cannot start or end with "-"\n3. "-" cannot repeat');np.customSchemes.push([e,t])}function ip(){np.scanner=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};xd.groups=t;var n=new xd;null==Rf&&(Rf=Uf(ad)),null==Lf&&(Lf=Uf(sd)),jd(n,"'",ef),jd(n,"{",Zd),jd(n,"}",Rd),jd(n,"[",Ld),jd(n,"]",Bd),jd(n,"(",zd),jd(n,")",Ud),jd(n,"<",Hd),jd(n,">",Wd),jd(n,"\uff08",qd),jd(n,"\uff09",Vd),jd(n,"\u300c",Gd),jd(n,"\u300d",$d),jd(n,"\u300e",Jd),jd(n,"\u300f",Kd),jd(n,"\uff1c",Yd),jd(n,"\uff1e",Xd),jd(n,"&",Qd),jd(n,"*",tf),jd(n,"@",nf),jd(n,"`",of),jd(n,"^",af),jd(n,":",sf),jd(n,",",lf),jd(n,"$",cf),jd(n,".",uf),jd(n,"=",df),jd(n,"!",ff),jd(n,"-",pf),jd(n,"%",hf),jd(n,"|",mf),jd(n,"+",vf),jd(n,"#",gf),jd(n,"?",yf),jd(n,'"',bf),jd(n,"/",kf),jd(n,";",wf),jd(n,"~",Sf),jd(n,"_",jf),jd(n,"\\",rf),jd(n,"\u30fb",xf);var r=kd(n,Tf,Fd,(0,Sn.Z)({},ld,!0));kd(r,Tf,r);var i=kd(r,Nf,Ed,(0,Sn.Z)({},dd,!0)),o=kd(r,Af,Nd,(0,Sn.Z)({},fd,!0)),a=kd(n,Nf,Cd,(0,Sn.Z)({},cd,!0));kd(a,Tf,i),kd(a,Nf,a),kd(i,Tf,i),kd(i,Nf,i);var s=kd(n,Af,_d,(0,Sn.Z)({},ud,!0));kd(s,Nf),kd(s,Tf,o),kd(s,Af,s),kd(o,Tf,o),kd(o,Nf),kd(o,Af,o);var l=jd(n,Ff,Md,(0,Sn.Z)({},gd,!0)),c=jd(n,Pf,Od,(0,Sn.Z)({},gd,!0)),u=kd(n,If,Od,(0,Sn.Z)({},gd,!0));jd(n,Zf,u),jd(c,Ff,l),jd(c,Zf,u),kd(c,If,u),jd(u,Pf),jd(u,Ff),kd(u,If,u),jd(u,Zf,u);var d=kd(n,Df,Cf,(0,Sn.Z)({},hd,!0));jd(d,"#"),kd(d,Df,d),jd(d,Of,d);var f=jd(d,Mf);jd(f,"#"),kd(f,Df,d);for(var p=[[Nf,a],[Tf,i]],h=[[Nf,null],[Af,s],[Tf,o]],m=0;m<Rf.length;m++)zf(n,Rf[m],Dd,Cd,p);for(var v=0;v<Lf.length;v++)zf(n,Lf[v],Td,_d,h);bd(Dd,{tld:!0,ascii:!0},t),bd(Td,{utld:!0,alpha:!0},t),zf(n,"file",Id,Cd,p),zf(n,"mailto",Id,Cd,p),zf(n,"http",Pd,Cd,p),zf(n,"https",Pd,Cd,p),zf(n,"ftp",Pd,Cd,p),zf(n,"ftps",Pd,Cd,p),bd(Id,{scheme:!0,ascii:!0},t),bd(Pd,{slashscheme:!0,ascii:!0},t),e=e.sort((function(e,t){return e[0]>t[0]?1:-1}));for(var g=0;g<e.length;g++){var y=e[g][0],b=e[g][1]?(0,Sn.Z)({},md,!0):(0,Sn.Z)({},vd,!0);y.indexOf("-")>=0?b[pd]=!0:Nf.test(y)?Tf.test(y)?b[dd]=!0:b[cd]=!0:b[ld]=!0,Sd(n,y,y,b)}return Sd(n,"localhost",Ad,{ascii:!0}),n.jd=new xd(_f),{start:n,tokens:Object.assign({groups:t},Ef)}}(np.customSchemes);for(var e=0;e<np.tokenQueue.length;e++)np.tokenQueue[e][1]({scanner:np.scanner});np.parser=function(e){var t=e.groups,n=t.domain.concat([Qd,tf,nf,rf,of,af,cf,df,pf,Fd,hf,mf,vf,gf,kf,_f,Sf,jf]),r=[ef,sf,lf,uf,ff,hf,yf,bf,wf,Hd,Wd,Zd,Rd,Bd,Ld,zd,Ud,qd,Vd,Gd,$d,Jd,Kd,Yd,Xd],i=[Qd,ef,tf,rf,of,af,cf,df,pf,Zd,Rd,hf,mf,vf,gf,yf,kf,_f,Sf,jf],o=Xf(),a=jd(o,Sf);wd(a,i,a),wd(a,t.domain,a);var s=Xf(),l=Xf(),c=Xf();wd(o,t.domain,s),wd(o,t.scheme,l),wd(o,t.slashscheme,c),wd(s,i,a),wd(s,t.domain,s);var u=jd(s,nf);jd(a,nf,u),jd(l,nf,u),jd(c,nf,u);var d=jd(a,uf);wd(d,i,a),wd(d,t.domain,a);var f=Xf();wd(u,t.domain,f),wd(f,t.domain,f);var h=jd(f,uf);wd(h,t.domain,f);var m=Xf($f);wd(h,t.tld,m),wd(h,t.utld,m),jd(u,Ad,m);var v=jd(f,pf);jd(v,pf,v),wd(v,t.domain,f),wd(m,t.domain,f),jd(m,uf,h),jd(m,pf,v);var g=jd(s,pf),y=jd(s,uf);jd(g,pf,g),wd(g,t.domain,s),wd(y,i,a),wd(y,t.domain,s);var b=Xf(Yf);wd(y,t.tld,b),wd(y,t.utld,b),wd(b,t.domain,s),wd(b,i,a),jd(b,uf,y),jd(b,pf,g),jd(b,nf,u);var x=jd(b,sf),w=Xf(Yf);wd(x,t.numeric,w);var k=Xf(Yf),S=Xf();wd(k,n,k),wd(k,r,S),wd(S,n,k),wd(S,r,S),jd(b,kf,k),jd(w,kf,k);var j=jd(l,sf),C=jd(c,sf),_=jd(C,kf),E=jd(_,kf);wd(l,t.domain,s),jd(l,uf,y),jd(l,pf,g),wd(c,t.domain,s),jd(c,uf,y),jd(c,pf,g),wd(j,t.domain,k),jd(j,kf,k),jd(j,yf,k),wd(E,t.domain,k),wd(E,n,k),jd(E,kf,k);for(var N=[[Zd,Rd],[Ld,Bd],[zd,Ud],[Hd,Wd],[qd,Vd],[Gd,$d],[Jd,Kd],[Yd,Xd]],A=0;A<N.length;A++){var D=(0,p.Z)(N[A],2),T=D[0],I=D[1],P=jd(k,T);jd(S,T,P);var F=Xf(Yf);wd(P,n,F);var O=Xf();wd(P,r,O),jd(P,I,k),wd(F,n,F),wd(F,r,O),wd(O,n,F),wd(O,r,O),jd(F,I,k),jd(O,I,k)}return jd(o,Ad,b),jd(o,Md,Kf),{start:o,tokens:Ef}}(np.scanner.tokens);for(var t=0;t<np.pluginQueue.length;t++)np.pluginQueue[t][1]({scanner:np.scanner,parser:np.parser});return np.initialized=!0,np}function op(e){return np.initialized||ip(),function(e,t,n){for(var r=n.length,i=0,o=[],a=[];i<r;){for(var s=e,l=null,c=null,u=0,d=null,f=-1;i<r&&!(l=s.go(n[i].t));)a.push(n[i++]);for(;i<r&&(c=l||s.go(n[i].t));)l=null,(s=c).accepts()?(f=0,d=s):f>=0&&f++,i++,u++;if(f<0)(i-=u)<r&&(a.push(n[i]),i++);else{a.length>0&&(o.push(Qf(Jf,t,a)),a=[]),i-=f,u-=f;var p=d.t,h=n.slice(i-u,i);o.push(Qf(p,t,h))}}return a.length>0&&o.push(Qf(Jf,t,a)),o}(np.parser.start,e,Bf(np.scanner.start,e))}function ap(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t&&"object"===typeof t){if(n)throw Error("linkifyjs: Invalid link type ".concat(t,"; must be a string"));n=t,t=null}for(var r=new Wf(n),i=op(e),o=[],a=0;a<i.length;a++){var s=i[a];!s.isLink||t&&s.t!==t||!r.check(s)||o.push(s.toFormattedObject(r))}return o}op.scan=Bf;var sp=/@\[([^\]\n]{1,200})\]\(([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\)/g,lp=function(e,t,n){if(t){var r;try{r=ap(t,{defaultProtocol:"https"})}catch(a){r=[]}var i=r.filter((function(e){return"url"===e.type&&e.isLink&&function(e){try{var t=new URL(e).protocol;return"http:"===t||"https:"===t}catch(n){return!1}}(e.href)}));if(0!==i.length){var o=0;
2i.forEach((function(r,i){r.start>o&&e.push(t.slice(o,r.start)),e.push((0,F.jsx)("a",{href:r.href,style:{color:"var(--bpb-link-color)"},children:t.slice(r.start,r.end)},"lnk-".concat(n,"-").concat(i))),o=r.end})),o<t.length&&e.push(t.slice(o))}else e.push(t)}},cp=function(e){if(!e||"string"!==typeof e)return null;var t,n=[],r=0;for(sp.lastIndex=0;null!==(t=sp.exec(e));)t.index>r&&lp(n,e.slice(r,t.index),r),n.push((0,F.jsx)(Cu,{displayName:t[1],userId:t[2]},"m-".concat(t.index,"-").concat(t[2]))),r=t.index+t[0].length;return r<e.length&&lp(n,e.slice(r),r),(0,F.jsx)(F.Fragment,{children:n.map((function(e,t){return"string"===typeof e?(0,F.jsx)(c.Fragment,{children:e},"t-".concat(t)):e}))})},up=16,dp=function(e){var t=e.pinned,n=e.onPin,r=e.onUnpin,i=e.inFlight,o=(0,c.useState)(!1),a=(0,p.Z)(o,2),s=a[0],l=a[1],u=(0,c.useState)({top:0,left:0,ready:!1}),d=(0,p.Z)(u,2),f=d[0],h=d[1],m=(0,c.useState)((function(){return"undefined"!==typeof window&&window.innerWidth<768})),v=(0,p.Z)(m,2),g=v[0],y=v[1],b=(0,c.useRef)(null),x=(0,c.useRef)(null);(0,c.useEffect)((function(){var e=function(){y(window.innerWidth<768)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]);var w=(0,c.useCallback)((function(){l(!1)}),[]),k=(0,c.useCallback)((function(){var e=b.current,t=x.current;if(e&&t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.innerWidth,o=window.innerHeight,a=n.right-r.width,s=g?n.bottom+8:n.top-8-r.height;if(a<up&&(a=up),a+r.width>i-up&&(a=i-up-r.width),g){if(s+r.height>o-up){var l=n.top-8-r.height;s=l>=up?l:Math.max(up,o-up-r.height)}}else if(s<up){var c=n.bottom+8;s=c+r.height<=o-up?c:up}h({top:s,left:a,ready:!0})}}),[g]);(0,c.useLayoutEffect)((function(){if(s)return k(),window.addEventListener("resize",k),function(){return window.removeEventListener("resize",k)}}),[s,k]),(0,c.useEffect)((function(){if(s){var e=requestAnimationFrame((function(){var e=x.current&&x.current.querySelector('[role="menuitem"]');e&&e.focus()}));return function(){return cancelAnimationFrame(e)}}}),[s]),(0,c.useEffect)((function(){if(s){var e=function(e){"Escape"===e.key&&(w(),b.current&&b.current.focus())},t=function(e){x.current&&e.target&&1===e.target.nodeType&&x.current.contains(e.target)||w()},n=function(e){var t=x.current,n=b.current;t&&t.contains(e.target)||n&&n.contains(e.target)||w()},r=function(){return w()};return window.addEventListener("keydown",e),window.addEventListener("scroll",t,!0),window.addEventListener("pointerdown",n),window.addEventListener("popstate",r),function(){window.removeEventListener("keydown",e),window.removeEventListener("scroll",t,!0),window.removeEventListener("pointerdown",n),window.removeEventListener("popstate",r)}}}),[s,w]);var S=t?"Unpin reply":"Pin reply";return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("button",{ref:b,type:"button",className:"bpb-reply-overflow",onClick:function(e){e.stopPropagation(),l((function(e){return!e}))},"aria-label":"Reply actions","aria-haspopup":"menu","aria-expanded":s,children:"\u22ef"}),s&&"undefined"!==typeof document&&(0,Gi.createPortal)((0,F.jsx)("div",{ref:x,className:"bpb-reply-menu",role:"menu","aria-label":"Reply actions",style:{position:"fixed",top:f.top,left:f.left,zIndex:9e3,visibility:f.ready?"visible":"hidden"},children:(0,F.jsxs)("button",{type:"button",className:"bpb-reply-menu__item",role:"menuitem",onClick:function(e){i||(l(!1),t?r&&r():n&&n(),b.current&&b.current.focus())},disabled:i,children:[(0,F.jsx)("span",{"aria-hidden":"true",children:"\ud83d\udccc"}),(0,F.jsx)("span",{children:S})]})}),document.body)]})};var fp=n(7248),pp=n(1752),hp=n(1120);function mp(e){this.content=e}mp.prototype={constructor:mp,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),o=r.content.slice();return-1==i?o.push(n||e,t):(o[i+1]=t,n&&(o[i]=n)),new mp(o)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new mp(n)},addToStart:function(e,t){return new mp([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new mp(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),o=r.find(e);return i.splice(-1==o?i.length:o,0,t,n),new mp(i)}
2,forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=mp.from(e)).size?new mp(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=mp.from(e)).size?new mp(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=mp.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach((function(t,n){e[t]=n})),e},get size(){return this.content.length>>1}},mp.from=function(e){if(e instanceof mp)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new mp(t)};var vp=mp;function gp(e,t,n){for(var r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;var i=e.child(r),o=t.child(r);if(i!=o){if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(var a=0;i.text[a]==o.text[a];a++)n++;return n}if(i.content.size||o.content.size){var s=gp(i.content,o.content,n+1);if(null!=s)return s}n+=i.nodeSize}else n+=i.nodeSize}}function yp(e,t,n,r){for(var i=e.childCount,o=t.childCount;;){if(0==i||0==o)return i==o?null:{a:n,b:r};var a=e.child(--i),s=t.child(--o),l=a.nodeSize;if(a!=s){if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){for(var c=0,u=Math.min(a.text.length,s.text.length);c<u&&a.text[a.text.length-c-1]==s.text[s.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(a.content.size||s.content.size){var d=yp(a.content,s.content,n-1,r-1);if(d)return d}n-=l,r-=l}else n-=l,r-=l}}var bp=function(){function e(t,n){if((0,ha.Z)(this,e),this.content=t,this.size=n||0,null==n)for(var r=0;r<t.length;r++)this.size+=t[r].nodeSize}return(0,ma.Z)(e,[{key:"nodesBetween",value:function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,o=0,a=0;a<t;o++){var s=this.content[o],l=a+s.nodeSize;if(l>e&&!1!==n(s,r+a,i||null,o)&&s.content.size){var c=a+1;s.nodesBetween(Math.max(0,e-c),Math.min(s.content.size,t-c),n,r+c)}a=l}}},{key:"descendants",value:function(e){this.nodesBetween(0,this.size,e)}},{key:"textBetween",value:function(e,t,n,r){var i="",o=!0;return this.nodesBetween(e,t,(function(a,s){var l=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?r?"function"===typeof r?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&n&&(o?o=!1:i+=n),i+=l}),0),i}},{key:"append",value:function(t){if(!t.size)return this;if(!this.size)return t;var n=this.lastChild,r=t.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o<t.content.length;o++)i.push(t.content[o]);return new e(i,this.size+t.size)}},{key:"cut",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size;if(0==t&&n==this.size)return this;var r=[],i=0;if(n>t)for(var o=0,a=0;a<n;o++){var s=this.content[o],l=a+s.nodeSize;l>t&&((a<t||l>n)&&(s=s.isText?s.cut(Math.max(0,t-a),Math.min(s.text.length,n-a)):s.cut(Math.max(0,t-a-1),Math.min(s.content.size,n-a-1))),r.push(s),i+=s.nodeSize),a=l}return new e(r,i)}},{key:"cutByIndex",value:function(t,n){return t==n?e.empty:0==t&&n==this.content.length?this:new e(this.content.slice(t,n))}},{key:"replaceChild",value:function(t,n){var r=this.content[t];if(r==n)return this;var i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,o)}},{key:"addToStart",value:function(t){return new e([t].concat(this.content),this.size+t.nodeSize)}},{key:"addToEnd",value:function(t){return new e(this.content.concat(t),this.size+t.nodeSize)}},{key:"eq",value:function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}},{key:"firstChild",get:function(){return this.content.length?this.content[0]:null}},{key:"lastChild",get:function(){return this.content.length?this.content[this.content.length-1]:null}},{key:"childCount",get:function(){return this.content.length}},{key:"child",value:function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}},{key:"maybeChild",value:function(e){return this.content[e]||null}}
2,{key:"forEach",value:function(e){for(var t=0,n=0;t<this.content.length;t++){var r=this.content[t];e(r,n,t),n+=r.nodeSize}}},{key:"findDiffStart",value:function(e){return gp(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}},{key:"findDiffEnd",value:function(e){return yp(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size,arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size)}},{key:"findIndex",value:function(e){if(0==e)return wp(0,e);if(e==this.size)return wp(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position ".concat(e," outside of fragment (").concat(this,")"));for(var t=0,n=0;;t++){var r=n+this.child(t).nodeSize;if(r>=e)return r==e?wp(t+1,r):wp(t,n);n=r}}},{key:"toString",value:function(){return"<"+this.toStringInner()+">"}},{key:"toStringInner",value:function(){return this.content.join(", ")}},{key:"toJSON",value:function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null}}],[{key:"fromJSON",value:function(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return e.fromArray(n.map(t.nodeFromJSON))}},{key:"fromArray",value:function(t){if(!t.length)return e.empty;for(var n,r=0,i=0;i<t.length;i++){var o=t[i];r+=o.nodeSize,i&&o.isText&&t[i-1].sameMarkup(o)?(n||(n=t.slice(0,i)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new e(n||t,r)}},{key:"from",value:function(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}]),e}();bp.empty=new bp([],0);var xp={index:0,offset:0};function wp(e,t){return xp.index=e,xp.offset=t,xp}function kp(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!kp(e[r],t[r]))return!1}else{for(var i in e)if(!(i in t)||!kp(e[i],t[i]))return!1;for(var o in t)if(!(o in e))return!1}return!0}var Sp=function(){function e(t,n){(0,ha.Z)(this,e),this.type=t,this.attrs=n}return(0,ma.Z)(e,[{key:"addToSet",value:function(e){for(var t,n=!1,r=0;r<e.length;r++){var i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}},{key:"removeFromSet",value:function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}},{key:"isInSet",value:function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}},{key:"eq",value:function(e){return this==e||this.type==e.type&&kp(this.attrs,e.attrs)}},{key:"toJSON",value:function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e}}],[{key:"fromJSON",value:function(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type ".concat(t.type," in this schema"));var r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}},{key:"sameSet",value:function(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}},{key:"setFrom",value:function(t){if(!t||Array.isArray(t)&&0==t.length)return e.none;if(t instanceof e)return[t];var n=t.slice();return n.sort((function(e,t){return e.type.rank-t.type.rank})),n}}]),e}();Sp.none=[];var jp=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(){return(0,ha.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n)}((0,ba.Z)(Error)),Cp=function(){function e(t,n,r){(0,ha.Z)(this,e),this.content=t,this.openStart=n,this.openEnd=r}return(0,ma.Z)(e,[{key:"size",get:function(){return this.content.size-this.openStart-this.openEnd}},{key:"insertAt",value:function(t,n){var r=Ep(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}},{key:"removeBetween",value:function(t,n){return new e(_p(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}},{key:"eq",value:function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}},{key:"toString",value:function(){return this.content+"("+this.openStart+","+this.openEnd+")"}},{key:"toJSON",value:function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}}],[{key:"fromJSON",value:function(t,n){if(!n)return e.empty;var r=n.openStart||0,i=n.openEnd||0;if("number"!=typeof r||"number"!=typeof i)throw new RangeError("Invalid input for Slice.fromJSON");return new e(bp.fromJSON(t,n.content),r,i)}},{key:"maxOpen",value:function(t){for(var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=0,i=0,o=t.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(var a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new e(t,r,i)}}]),e}();function _p(e,t,n){var r=e.findIndex(t),i=r.index,o=r.offset,a=e.maybeChild(i),s=e.findIndex(n),l=s.index,c=s.offset;if(o==t||a.isText){if(c!=n&&!e.child(l).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(i!=l)throw new RangeError("Removing non-flat range");return e.replaceChild(i,a.copy(_p(a.content,t-o-1,n-o-1)))}function Ep(e,t,n,r,i,o){var a=e.findIndex(t),s=a.index,l=a.offset,c=e.maybeChild(s);if(l==t||c.isText)return o&&r<=0&&i<=0&&!o.canReplace(s,s,n)?null:e.cut(0,t).append(n).append(e.cut(t));var u=Ep(c.content,t-l-1,n,0==s?r-1:0,s==e.childCount-1?i-1:0,c);return u&&e.replaceChild(s,c.copy(u))}
2function Np(e,t,n){if(n.openStart>e.depth)throw new jp("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new jp("Inconsistent open depths");return Ap(e,t,n,0)}function Ap(e,t,n,r){var i=e.index(r),o=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){var a=Ap(e,t,n,r+1);return o.copy(o.content.replaceChild(i,a))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){var s=function(e,t){for(var n=t.depth-e.openStart,r=t.node(n).copy(e.content),i=n-1;i>=0;i--)r=t.node(i).copy(bp.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return Fp(o,Op(e,s.start,s.end,t,r))}var l=e.parent,c=l.content;return Fp(l,c.cut(0,e.parentOffset).append(n.content).append(c.cut(t.parentOffset)))}return Fp(o,Mp(e,t,r))}function Dp(e,t){if(!t.type.compatibleContent(e.type))throw new jp("Cannot join "+t.type.name+" onto "+e.type.name)}function Tp(e,t,n){var r=e.node(n);return Dp(r,t.node(n)),r}function Ip(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Pp(e,t,n,r){var i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(Ip(e.nodeAfter,r),o++));for(var s=o;s<a;s++)Ip(i.child(s),r);t&&t.depth==n&&t.textOffset&&Ip(t.nodeBefore,r)}function Fp(e,t){return e.type.checkContent(t),e.copy(t)}function Op(e,t,n,r,i){var o=e.depth>i&&Tp(e,t,i+1),a=r.depth>i&&Tp(n,r,i+1),s=[];return Pp(null,e,i,s),o&&a&&t.index(i)==n.index(i)?(Dp(o,a),Ip(Fp(o,Op(e,t,n,r,i+1)),s)):(o&&Ip(Fp(o,Mp(e,t,i+1)),s),Pp(t,n,i,s),a&&Ip(Fp(a,Mp(n,r,i+1)),s)),Pp(r,null,i,s),new bp(s)}function Mp(e,t,n){var r=[];(Pp(null,e,n,r),e.depth>n)&&Ip(Fp(Tp(e,t,n+1),Mp(e,t,n+1)),r);return Pp(t,null,n,r),new bp(r)}Cp.empty=new Cp(bp.empty,0,0);var Zp=function(){function e(t,n,r){(0,ha.Z)(this,e),this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}return(0,ma.Z)(e,[{key:"resolveDepth",value:function(e){return null==e?this.depth:e<0?this.depth+e:e}},{key:"parent",get:function(){return this.node(this.depth)}},{key:"doc",get:function(){return this.node(0)}},{key:"node",value:function(e){return this.path[3*this.resolveDepth(e)]}},{key:"index",value:function(e){return this.path[3*this.resolveDepth(e)+1]}},{key:"indexAfter",value:function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}},{key:"start",value:function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}},{key:"end",value:function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}},{key:"before",value:function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}},{key:"after",value:function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}},{key:"textOffset",get:function(){return this.pos-this.path[this.path.length-1]}},{key:"nodeAfter",get:function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}},{key:"nodeBefore",get:function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}},{key:"posAtIndex",value:function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1,i=0;i<e;i++)r+=n.child(i).nodeSize;return r}},{key:"marks",value:function(){var e=this.parent,t=this.index();if(0==e.content.size)return Sp.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){var i=n;n=r,r=i}for(var o=n.marks,a=0;a<o.length;a++)!1!==o[a].type.spec.inclusive||r&&o[a].isInSet(r.marks)||(o=o[a--].removeFromSet(o));return o}},{key:"marksAcross",value:function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,r=e.parent.maybeChild(e.index()),i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}},{key:"sharedDepth",value:function(e){for(var t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}},{key:"blockRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this,t=arguments.length>1?arguments[1]:void 0;if(e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new zp(this,e,n);return null}},{key:"sameParent",value:function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}},{key:"max",value:function(e){return e.pos>this.pos?e:this}},{key:"min",value:function(e){return e.pos<this.pos?e:this}},{key:"toString",value:function(){for(var e="",t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}}],[{key:"resolve",value:function(t,n){if(!(n>=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");for(var r=[],i=0,o=n,a=t;;){var s=a.content.findIndex(o),l=s.index,c=s.offset,u=o-c;if(r.push(a,l,i+c),!u)break;if((a=a.child(l)).isText)break;o=u-1,i+=c+1}return new e(n,r,o)}},{key:"resolveCached",value:function(t,n){var r=Bp.get(t);if(r)for(var i=0;i<r.elts.length;i++){var o=r.elts[i];if(o.pos==n)return o}else Bp.set(t,r=new Rp);var a=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Lp,a}}]),e}(),Rp=(0,ma.Z)((function e(){(0,ha.Z)(this,e),this.elts=[],this.i=0})),Lp=12,Bp=new WeakMap,zp=function(){function e(t,n,r){(0,ha.Z)(this,e),this.$from=t,this.$to=n,this.depth=r}return(0,ma.Z)(e,[{key:"start",get:function(){return this.$from.before(this.depth+1)}},{key:"end",get:function(){return this.$to.after(this.depth+1)}},{key:"parent",get:function(){return this.$from.node(this.depth)}},{key:"startIndex",get:function(){return this.$from.index(this.depth)}},{key:"endIndex",get:function(){return this.$to.indexAfter(this.depth)}}]),e}(),Up=Object.create(null),Hp=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Sp.none;(0,ha.Z)(this,e),this.type=t,this.attrs=n,this.marks=i,this.content=r||bp.empty}return(0,ma.Z)(e,[{key:"children",get:function(){return this.content.content}},{key:"nodeSize",get:function(){return this.isLeaf?1:2+this.content.size}},{key:"childCount",get:function(){return this.content.childCount}},{key:"child",value:function(e){return this.content.child(e)}},{key:"maybeChild",value:function(e){return this.content.maybeChild(e)}}
2,{key:"forEach",value:function(e){this.content.forEach(e)}},{key:"nodesBetween",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.content.nodesBetween(e,t,n,r,this)}},{key:"descendants",value:function(e){this.nodesBetween(0,this.content.size,e)}},{key:"textContent",get:function(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}},{key:"textBetween",value:function(e,t,n,r){return this.content.textBetween(e,t,n,r)}},{key:"firstChild",get:function(){return this.content.firstChild}},{key:"lastChild",get:function(){return this.content.lastChild}},{key:"eq",value:function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}},{key:"sameMarkup",value:function(e){return this.hasMarkup(e.type,e.attrs,e.marks)}},{key:"hasMarkup",value:function(e,t,n){return this.type==e&&kp(this.attrs,t||e.defaultAttrs||Up)&&Sp.sameSet(this.marks,n||Sp.none)}},{key:"copy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}},{key:"mark",value:function(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}},{key:"cut",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size;return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}},{key:"slice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e==t)return Cp.empty;var r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),a=r.start(o),s=r.node(o).content.cut(r.pos-a,i.pos-a);return new Cp(s,r.depth-o,i.depth-o)}},{key:"replace",value:function(e,t,n){return Np(this.resolve(e),this.resolve(t),n)}},{key:"nodeAt",value:function(e){for(var t=this;;){var n=t.content.findIndex(e),r=n.index,i=n.offset;if(!(t=t.maybeChild(r)))return null;if(i==e||t.isText)return t;e-=i+1}}},{key:"childAfter",value:function(e){var t=this.content.findIndex(e),n=t.index,r=t.offset;return{node:this.content.maybeChild(n),index:n,offset:r}}},{key:"childBefore",value:function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,r=t.offset;if(r<e)return{node:this.content.child(n),index:n,offset:r};var i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}},{key:"resolve",value:function(e){return Zp.resolveCached(this,e)}},{key:"resolveNoCache",value:function(e){return Zp.resolve(this,e)}},{key:"rangeHasMark",value:function(e,t,n){var r=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(r=!0),!r})),r}},{key:"isBlock",get:function(){return this.type.isBlock}},{key:"isTextblock",get:function(){return this.type.isTextblock}},{key:"inlineContent",get:function(){return this.type.inlineContent}},{key:"isInline",get:function(){return this.type.isInline}},{key:"isText",get:function(){return this.type.isText}},{key:"isLeaf",get:function(){return this.type.isLeaf}},{key:"isAtom",get:function(){return this.type.isAtom}},{key:"toString",value:function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),qp(this.marks,e)}},{key:"contentMatchAt",value:function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}},{key:"canReplace",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bp.empty,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.childCount,o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var s=r;s<i;s++)if(!this.type.allowsMarks(n.child(s).marks))return!1;return!0}},{key:"canReplaceWith",value:function(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;var i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}},{key:"canAppend",value:function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}},{key:"check",value:function(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);for(var e=Sp.none,t=0;t<this.marks.length;t++){var n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!Sp.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node ".concat(this.t
2ype.name,": ").concat(this.marks.map((function(e){return e.type.name}))));this.content.forEach((function(e){return e.check()}))}},{key:"toJSON",value:function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((function(e){return e.toJSON()}))),e}}],[{key:"fromJSON",value:function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=void 0;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var r=bp.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}}]),e}();Hp.prototype.text=void 0;var Wp=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i,o){var a;if((0,ha.Z)(this,n),a=t.call(this,e,r,null,o),!i)throw new RangeError("Empty text nodes are not allowed");return a.text=i,a}return(0,ma.Z)(n,[{key:"toString",value:function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):qp(this.marks,JSON.stringify(this.text))}},{key:"textContent",get:function(){return this.text}},{key:"textBetween",value:function(e,t){return this.text.slice(e,t)}},{key:"nodeSize",get:function(){return this.text.length}},{key:"mark",value:function(e){return e==this.marks?this:new n(this.type,this.attrs,this.text,e)}},{key:"withText",value:function(e){return e==this.text?this:new n(this.type,this.attrs,e,this.marks)}},{key:"cut",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.text.length;return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}},{key:"eq",value:function(e){return this.sameMarkup(e)&&this.text==e.text}},{key:"toJSON",value:function(){var e=(0,pp.Z)((0,hp.Z)(n.prototype),"toJSON",this).call(this);return e.text=this.text,e}}]),n}(Hp);function qp(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var Vp=function(){function e(t){(0,ha.Z)(this,e),this.validEnd=t,this.next=[],this.wrapCache=[]}return(0,ma.Z)(e,[{key:"matchType",value:function(e){for(var t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}},{key:"matchFragment",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.childCount,r=this,i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}},{key:"inlineContent",get:function(){return 0!=this.next.length&&this.next[0].type.isInline}},{key:"defaultType",get:function(){for(var e=0;e<this.next.length;e++){var t=this.next[e].type;if(!t.isText&&!t.hasRequiredAttrs())return t}return null}},{key:"compatible",value:function(e){for(var t=0;t<this.next.length;t++)for(var n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}},{key:"fillBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[this];return function i(o,a){var s=o.matchFragment(e,n);if(s&&(!t||s.validEnd))return bp.from(a.map((function(e){return e.createAndFill()})));for(var l=0;l<o.next.length;l++){var c=o.next[l],u=c.type,d=c.next;if(!u.isText&&!u.hasRequiredAttrs()&&-1==r.indexOf(d)){r.push(d);var f=i(d,a.concat(u));if(f)return f}}return null}(this,[])}},{key:"findWrapping",value:function(e){for(var t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}},{key:"computeWrapping",value:function(e){for(var t=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var r=n.shift(),i=r.match;if(i.matchType(e)){for(var o=[],a=r;a.type;a=a.via)o.push(a.type);return o.reverse()}for(var s=0;s<i.next.length;s++){var l=i.next[s],c=l.type,u=l.next;c.isLeaf||c.hasRequiredAttrs()||c.name in t||r.type&&!u.validEnd||(n.push({match:c.contentMatch,type:c,via:r}),t[c.name]=!0)}}return null}},{key:"edgeCount",get:function(){return this.next.length}},{key:"edge",value:function(e){if(e>=this.next.length)throw new RangeError("There's no ".concat(e,"th edge in this content match"));return this.next[e]}},{key:"toString",value:function(){var e=[];return function t(n){e.push(n);for(var r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((function(t,n){for(var r=n+(t.validEnd?"*":" ")+" ",i=0;i<t.next.length;i++)r+=(i?", ":"")+t.next[i].type.name+"->"+e.indexOf(t.next[i].next);return r})).join("\n")}}],[{key:"parse",value:function(t,n){var r=new Gp(t,n);if(null==r.next)return e.empty;var i=$p(r);r.next&&r.err("Unexpected trailing text");var o=th(function(e){var t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){var i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach((function(e){return e.to=t}))}function o(e,t){if("choice"==e.type)return e.exprs.reduce((function(e,n){return e.concat(o(n,t))}),[]);if("seq"!=e.type){if("star"==e.type){var a=n();return r(t,a),i(o(e.expr,a),a),[r(a)]}if("plus"==e.type){var s=n();return i(o(e.expr,t),s),i(o(e.expr,s),s),[r(s)]}if("opt"==e.type)return[r(t)].concat(o(e.expr,t));if("range"==e.type){for(var l=t,c=0;c<e.min;c++){var u=n();i(o(e.expr,l),u),l=u}if(-1==e.max)i(o(e.expr,l),l);else for(var d=e.min;d<e.max;d++){var f=n();r(l,f),i(o(e.expr,l),f),l=f}return[r(l)]}if("name"==e.type)return[r(t,void 0,e.value)];throw new Error("Unknown expr type")}for(var p=0;;p++){var h=o(e.exprs[p],t);if(p==e.exprs.length-1)return h;i(h,t=n())}}}(i));return function(e,t){for(var n=0,r=[e];n<r.length;n++){for(var i=r[n],o=!i.validEnd,a=[],s=0;s<i.next.length;s++){var l=i.next[s],c=l.type,u=l.next;a.push(c.name),!o||c.isText||c.hasRequiredAttrs()||(o=!1),-1==r.indexOf(u)&&r.push(u)}o&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,r),o}}]),e}();Vp.empty=new Vp(!0);var Gp=function(){function e(t,n){(0,ha.Z)(this,e),this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?
2=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}return(0,ma.Z)(e,[{key:"next",get:function(){return this.tokens[this.pos]}},{key:"eat",value:function(e){return this.next==e&&(this.pos++||!0)}},{key:"err",value:function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}]),e}();function $p(e){var t=[];do{t.push(Jp(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function Jp(e){var t=[];do{t.push(Kp(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function Kp(e){for(var t=function(e){if(e.eat("(")){var t=$p(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=function(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var i=[];for(var o in n){var a=n[o];a.isInGroup(t)&&i.push(a)}0==i.length&&e.err("No node type or group '"+t+"' found");return i}(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=Xp(e,t)}return t}function Yp(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function Xp(e,t){var n=Yp(e),r=n;return e.eat(",")&&(r="}"!=e.next?Yp(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function Qp(e,t){return t-e}function eh(e,t){var n=[];return function t(r){var i=e[r];if(1==i.length&&!i[0].term)return t(i[0].to);n.push(r);for(var o=0;o<i.length;o++){var a=i[o],s=a.term,l=a.to;s||-1!=n.indexOf(l)||t(l)}}(t),n.sort(Qp)}function th(e){var t=Object.create(null);return function n(r){var i=[];r.forEach((function(t){e[t].forEach((function(t){var n=t.term,r=t.to;if(n){for(var o,a=0;a<i.length;a++)i[a][0]==n&&(o=i[a][1]);eh(e,r).forEach((function(e){o||i.push([n,o=[]]),-1==o.indexOf(e)&&o.push(e)}))}}))}));for(var o=t[r.join(",")]=new Vp(r.indexOf(e.length-1)>-1),a=0;a<i.length;a++){var s=i[a][1].sort(Qp);o.next.push({type:i[a][0],next:t[s.join(",")]||n(s)})}return o}(eh(e,0))}function nh(e){var t=Object.create(null);for(var n in e){var r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function rh(e,t){var n=Object.create(null);for(var r in e){var i=t&&t[r];if(void 0===i){var o=e[r];if(!o.hasDefault)throw new RangeError("No value supplied for attribute "+r);i=o.default}n[r]=i}return n}function ih(e,t,n,r){for(var i in t)if(!(i in e))throw new RangeError("Unsupported attribute ".concat(i," for ").concat(n," of type ").concat(i));for(var o in e){var a=e[o];a.validate&&a.validate(t[o])}}function oh(e,t){var n=Object.create(null);if(t)for(var r in t)n[r]=new sh(e,r,t[r]);return n}var ah=function(){function e(t,n,r){(0,ha.Z)(this,e),this.name=t,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=oh(t,r.attrs),this.defaultAttrs=nh(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==t),this.isText="text"==t}return(0,ma.Z)(e,[{key:"isInline",get:function(){return!this.isBlock}},{key:"isTextblock",get:function(){return this.isBlock&&this.inlineContent}},{key:"isLeaf",get:function(){return this.contentMatch==Vp.empty}},{key:"isAtom",get:function(){return this.isLeaf||!!this.spec.atom}},{key:"isInGroup",value:function(e){return this.groups.indexOf(e)>-1}},{key:"whitespace",get:function(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}},{key:"hasRequiredAttrs",value:function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}},{key:"compatibleContent",value:function(e){return this==e||this.contentMatch.compatible(e.contentMatch)}},{key:"computeAttrs",value:function(e){return!e&&this.defaultAttrs?this.defaultAttrs:rh(this.attrs,e)}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Hp(this,this.computeAttrs(e),bp.from(t),Sp.setFrom(n))}},{key:"createChecked",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return t=bp.from(t),this.checkContent(t),new Hp(this,this.computeAttrs(e),t,Sp.setFrom(n))}},{key:"createAndFill",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(e=this.computeAttrs(e),(t=bp.from(t)).size){var r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}var i=this.contentMatch.matchFragment(t),o=i&&i.fillBefore(bp.empty,!0);return o?new Hp(this,e,t.append(o),Sp.setFrom(n)):null}},{key:"validContent",value:function(e){var t=this.contentMatch.matchFragment(e);
2if(!t||!t.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}},{key:"checkContent",value:function(e){if(!this.validContent(e))throw new RangeError("Invalid content for node ".concat(this.name,": ").concat(e.toString().slice(0,50)))}},{key:"checkAttrs",value:function(e){ih(this.attrs,e,"node",this.name)}},{key:"allowsMarkType",value:function(e){return null==this.markSet||this.markSet.indexOf(e)>-1}},{key:"allowsMarks",value:function(e){if(null==this.markSet)return!0;for(var t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}},{key:"allowedMarks",value:function(e){if(null==this.markSet)return e;for(var t,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:Sp.none:e}}],[{key:"compile",value:function(t,n){var r=Object.create(null);t.forEach((function(t,i){return r[t]=new e(t,n,i)}));var i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(var o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}}]),e}();var sh=function(){function e(t,n,r){(0,ha.Z)(this,e),this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?function(e,t,n){var r=n.split("|");return function(n){var i=null===n?"null":typeof n;if(r.indexOf(i)<0)throw new RangeError("Expected value of type ".concat(r," for attribute ").
2concat(t," on type ").concat(e,", got ").concat(i))}}(t,n,r.validate):r.validate}return(0,ma.Z)(e,[{key:"isRequired",get:function(){return!this.hasDefault}}]),e}(),lh=function(){function e(t,n,r,i){(0,ha.Z)(this,e),this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=oh(t,i.attrs),this.excluded=null;var o=nh(this.attrs);this.instance=o?new Sp(this,o):null}return(0,ma.Z)(e,[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!e&&this.instance?this.instance:new Sp(this,rh(this.attrs,e))}},{key:"removeFromSet",value:function(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}},{key:"isInSet",value:function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]}},{key:"checkAttrs",value:function(e){ih(this.attrs,e,"mark",this.name)}},{key:"excludes",value:function(e){return this.excluded.indexOf(e)>-1}}],[{key:"compile",value:function(t,n){var r=Object.create(null),i=0;return t.forEach((function(t,o){return r[t]=new e(t,i++,n,o)})),r}}]),e}(),ch=function(){function e(t){var n=this;(0,ha.Z)(this,e),this.linebreakReplacement=null,this.cached=Object.create(null);var r=this.spec={};for(var i in t)r[i]=t[i];r.nodes=vp.from(t.nodes),r.marks=vp.from(t.marks||{}),this.nodes=ah.compile(this.spec.nodes,this),this.marks=lh.compile(this.spec.marks,this);var o=Object.create(null);for(var a in this.nodes){if(a in this.marks)throw new RangeError(a+" can not be both a node and a mark");var s=this.nodes[a],l=s.spec.content||"",c=s.spec.marks;if(s.contentMatch=o[l]||(o[l]=Vp.parse(l,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet="_"==c?null:c?uh(this,c.split(" ")):""!=c&&s.inlineContent?null:[]}for(var u in this.marks){var d=this.marks[u],f=d.spec.excludes;d.excluded=null==f?[d]:""==f?[]:uh(this,f.split(" "))}this.nodeFromJSON=function(e){return Hp.fromJSON(n,e)},this.markFromJSON=function(e){return Sp.fromJSON(n,e)},this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}return(0,ma.Z)(e,[{key:"node",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof ah))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}},{key:"text",value:function(e,t){var n=this.nodes.text;return new Wp(n,n.defaultAttrs,e,Sp.setFrom(t))}},{key:"mark",value:function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}},{key:"nodeType",value:function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}]),e}();function uh(e,t){for(var n=[],r=0;r<t.length;r++){var i=t[r],o=e.marks[i],a=o;if(o)n.push(o);else for(var s in e.marks){var l=e.marks[s];("_"==i||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}var dh=function(){function e(t,n){var r=this;(0,ha.Z)(this,e),this.schema=t,this.rules=n,this.tags=[],this.styles=[];var i=this.matchedStyles=[];n.forEach((function(e){if(function(e){return null!=e.tag}(e))r.tags.push(e);else if(function(e){return null!=e.style}(e)){var t=/[^=]*/.exec(e.style)[0];i.indexOf(t)<0&&i.push(t),r.styles.push(e)}})),this.normalizeLists=!this.tags.some((function(e){if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;var n=t.nodes[e.node];return n.contentMatch.matchType(n)}))}return(0,ma.Z)(e,[{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new gh(this,t,!1);return n.addAll(e,Sp.none,t.from,t.to),n.finish()}},{key:"parseSlice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new gh(this,t,!0);return n.addAll(e,Sp.none,t.from,t.to),Cp.maxOpen(n.finish())}},{key:"matchTag",value:function(e,t,n){for(var r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){var i=this.tags[r];if(yh(e,i.tag)&&(void 0===i.namespace||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs
2){var o=i.getAttrs(e);if(!1===o)continue;i.attrs=o||void 0}return i}}}},{key:"matchStyle",value:function(e,t,n,r){for(var i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){var o=this.styles[i],a=o.style;if(!(0!=a.indexOf(e)||o.context&&!n.matchesContext(o.context)||a.length>e.length&&(61!=a.charCodeAt(e.length)||a.slice(e.length+1)!=t))){if(o.getAttrs){var s=o.getAttrs(t);if(!1===s)continue;o.attrs=s||void 0}return o}}}}],[{key:"schemaRules",value:function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,r=0;r<t.length;r++){var i=t[r];if((null==i.priority?50:i.priority)<n)break}t.splice(r,0,e)}var r=function(t){var r=e.marks[t].spec.parseDOM;r&&r.forEach((function(e){n(e=bh(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)}))};for(var i in e.marks)r(i);var o=function(t){var r=e.nodes[t].spec.parseDOM;r&&r.forEach((function(e){n(e=bh(e)),e.node||e.ignore||e.mark||(e.node=t)}))};for(var a in e.nodes)o(a);return t}},{key:"fromSchema",value:function(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}}]),e}(),fh={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ph={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},hh={ol:!0,ul:!0};function mh(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}var vh=function(){function e(t,n,r,i,o,a){(0,ha.Z)(this,e),this.type=t,this.attrs=n,this.marks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=Sp.none,this.match=o||(4&a?null:t.contentMatch)}return(0,ma.Z)(e,[{key:"findWrapping",value:function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(bp.from(e));if(!t){var n,r=this.type.contentMatch;return(n=r.findWrapping(e.type))?(this.match=r,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}},{key:"finish",value:function(e){if(!(1&this.options)){var t,n=this.content[this.content.length-1];if(n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))){var r=n;n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-t[0].length))}}var i=bp.from(this.content);return!e&&this.match&&(i=i.append(this.match.fillBefore(bp.empty,!0))),this.type?this.type.create(this.attrs,i,this.marks):i}},{key:"inlineContext",value:function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!fh.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}]),e}(),gh=function(){function e(t,n,r){(0,ha.Z)(this,e),this.parser=t,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;var i,o=n.topNode,a=mh(null,n.preserveWhitespace,0)|(r?4:0);i=o?new vh(o.type,o.attrs,Sp.none,!0,n.topMatch||o.type.contentMatch,a):new vh(r?null:t.schema.topNodeType,null,Sp.none,!0,null,a),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}return(0,ma.Z)(e,[{key:"top",get:function(){return this.nodes[this.open]}},{key:"addDOM",value:function(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}},{key:"addTextNode",value:function(e,t){var n=e.nodeValue,r=this.top,i=2&r.options?"full":this.localPreserveWS||(1&r.options)>0,o=this.parser.schema;if("full"===i||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if("full"===i)n=n.replace(/\r\n?/g,"\n");else if(o.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(o.linebreakReplacement.create())){for(var a=n.split(/\r?\n|\r/),s=0;s<a.length;s++)s&&this.insertNode(o.linebreakReplacement.create(),t,!0),a[s]&&this.insertNode(o.text(a[s]),t,!/\S/.test(a[s]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){var l=r.content[r.content.length-1],c=e.previousSibling;(!l||c&&"BR"==c.nodeName||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(n=n.slice(1))}n&&this.insertNode(o.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}},{key:"addElement",value:function(e,t,n){var r=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);var o,a=e.nodeName.toLowerCase();hh.hasOwnProperty(a)&&this.parser.normalizeLists&&function(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var r=1==t.nodeType?t.nodeName.toLowerCase():null;r&&hh.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):"li"==r?n=t:r&&(n=null)}}(e);var s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));e:if(s?s.ignore:ph.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);var l,c=this.needsBlock;if(fh.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),l=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}var u=s&&s.skip?t:this.readStyles(e,t);u&&this.addAll(e,u),l&&this.sync(i),this.needsBlock=c}else{var d=this.readStyles(e,t);d&&this.addElementByRule(e,s,d,!1===s.consuming?o:void 0)}this.localPreserveWS=r}},{key:"leafFallback",value:function(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}},{key:"ignoreFallback",value:function(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}},{key:"readStyles",value:function(e,t){var n=this,r=e.style;if(r&&r.length)for(var i=0;i<this.parser.matchedStyles.length;i++){var o=this.parser.matchedStyles[i],a=r.getPropertyValue(o);if(a)for(var s,l=function(e){var r=n.parser.matchStyle(o,a,n,e);return r?r.ignore?{v:null}:(t=r.clearMark?t.filter((function(e){return!r.clearMark(e)})):t.concat(n.parser.schema.marks[r.mark].create(r.attrs)),!1!==r.consuming?(c=e,0):void(c=e=r)):(c=e,0)},c=void 0;0!==(s=l(c));)if(s)return s.v}return t}},{key:"addElementByRule",value:function(e,t,n,r){var i,o,a=this;
2if(t.node)if((o=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(o.create(t.attrs),n,"BR"==e.nodeName)||this.leafFallback(e,n);else{var s=this.enter(o,t.attrs||null,n,t.preserveWhitespace);s&&(i=!0,n=s)}else{var l=this.parser.schema.marks[t.mark];n=n.concat(l.create(t.attrs))}var c=this.top;if(o&&o.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((function(e){return a.insertNode(e,n,!1)}));else{var u=e;"string"==typeof t.contentElement?u=e.querySelector(t.contentElement):"function"==typeof t.contentElement?u=t.contentElement(e):t.contentElement&&(u=t.contentElement),this.findAround(e,u,!0),this.addAll(u,n),this.findAround(e,u,!1)}i&&this.sync(c)&&this.open--}},{key:"addAll",value:function(e,t,n,r){for(var i=n||0,o=n?e.childNodes[n]:e.firstChild,a=null==r?null:e.childNodes[r];o!=a;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}},{key:"findPlace",value:function(e,t,n){for(var r,i,o=this.open,a=0;o>=0;o--){var s=this.nodes[o],l=s.findWrapping(e);if(l&&(!r||r.length>l.length+a)&&(r=l,i=s,!l.length))break;if(s.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(var c=0;c<r.length;c++)t=this.enterInner(r[c],null,t,!1);return t}},{key:"insertNode",value:function(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){var r=this.textblockFromContext();r&&(t=this.enterInner(r,null,t))}var i=this.findPlace(e,t,n);if(i){this.closeExtra();var o=this.top;o.match&&(o.match=o.match.matchType(e.type));var a,s=Sp.none,l=(0,ua.Z)(i.concat(e.marks));try{for(l.s();!(a=l.n()).done;){var c=a.value;(o.type?o.type.allowsMarkType(c.type):xh(c.type,e.type))&&(s=c.addToSet(s))}}catch(u){l.e(u)}finally{l.f()}return o.content.push(e.mark(s)),!0}return!1}},{key:"enter",value:function(e,t,n,r){var i=this.findPlace(e.create(t),n,!1);return i&&(i=this.enterInner(e,t,n,!0,r)),i}},{key:"enterInner",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;this.closeExtra();var o=this.top;o.match=o.match&&o.match.matchType(e);var a=mh(e,i,o.options);4&o.options&&0==o.content.length&&(a|=4);var s=Sp.none;return n=n.filter((function(t){return!(o.type?o.type.allowsMarkType(t.type):xh(t.type,e))||(s=t.addToSet(s),!1)})),this.nodes.push(new vh(e,t,s,r,null,a)),this.open++,n}},{key:"closeExtra",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}},{key:"finish",value:function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}},{key:"sync",value:function(e){for(var t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=1)}return!1}},{key:"currentPos",get:function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e}},{key:"findAtPoint",value:function(e,t){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}},{key:"findInside",value:function(e){if(this.find)for(var t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}},{key:"findAround",value:function(e,t,n){if(e!=t&&this.find)for(var r=0;r<this.find.length;r++){if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node))t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}}},{key:"findInText",value:function(e){if(this.find)for(var t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}},{key:"matchesContext",value:function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1);return function e(a,s){for(;a>=0;a--){var l=n[a];if(""==l){if(a==n.length-1||0==a)continue;for(;s>=o;s--)if(e(a-1,s))return!0;return!1}var c=s>0||0==s&&i?t.nodes[s].type:r&&s>=o?r.node(s-o).type:null;if(!c||c.name!=l&&!c.isInGroup(l))return!1;s--}return!0}(n.length-1,this.open)}},{key:"textblockFromContext",value:function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;
2if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var i=this.parser.schema.nodes[r];if(i.isTextblock&&i.defaultAttrs)return i}}}]),e}();function yh(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function bh(e){var t={};for(var n in e)t[n]=e[n];return t}function xh(e,t){var n,r=t.schema.nodes,i=function(){var n=r[o];if(!n.allowsMarkType(e))return 0;var i=[];return function e(n){i.push(n);for(var r=0;r<n.edgeCount;r++){var o=n.edge(r),a=o.type,s=o.next;if(a==t)return!0;if(i.indexOf(s)<0&&e(s))return!0}}(n.contentMatch)?{v:!0}:void 0};for(var o in r)if(0!==(n=i())&&n)return n.v}var wh=function(){function e(t,n){(0,ha.Z)(this,e),this.nodes=t,this.marks=n}return(0,ma.Z)(e,[{key:"serializeFragment",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;r||(r=Sh(n).createDocumentFragment());var i=r,o=[];return e.forEach((function(e){if(o.length||e.marks.length){for(var r=0,a=0;r<o.length&&a<e.marks.length;){var s=e.marks[a];if(t.marks[s.type.name]){if(!s.eq(o[r][0])||!1===s.type.spec.spanning)break;r++,a++}else a++}for(;r<o.length;)i=o.pop()[1];for(;a<e.marks.length;){var l=e.marks[a++],c=t.serializeMark(l,e.isInline,n);c&&(o.push([l,i]),i.appendChild(c.dom),i=c.contentDOM||c.dom)}}i.appendChild(t.serializeNodeInner(e,n))})),r}},{key:"serializeNodeInner",value:function(e,t){if(e.isText)return Sh(t).createTextNode(e.text);var n=_h(Sh(t),this.nodes[e.type.name](e),null,e.attrs),r=n.dom,i=n.contentDOM;if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,i)}return r}},{key:"serializeNode",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serializeNodeInner(e,t),r=e.marks.length-1;r>=0;r--){var i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}},{key:"serializeMark",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.marks[e.type.name];return r&&_h(Sh(n),r(e,t),null,e.attrs)}}],[{key:"renderSpec",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return"string"==typeof t?{dom:e.createTextNode(t)}:_h(e,t,n,r)}},{key:"fromSchema",value:function(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}},{key:"nodesFromSchema",value:function(e){var t=kh(e.nodes);return t.text||(t.text=function(e){return e.text}),t}},{key:"marksFromSchema",value:function(e){return kh(e.marks)}}]),e}();function kh(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Sh(e){return e.document||window.document}var jh=new WeakMap;function Ch(e){var t=jh.get(e);return void 0===t&&jh.set(e,t=function(e){var t=null;function n(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(var r=0;r<e.length;r++)n(e[r]);else for(var i in e)n(e[i])}return n(e),t}(e)),t}function _h(e,t,n,r){if(1==t.nodeType)return{dom:t};if(t.dom&&1==t.dom.nodeType)return t;var i,o=t[0];if("string"!=typeof o)throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=Ch(r))&&i.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");var a,s=o.indexOf(" ");s>0&&(n=o.slice(0,s),o=o.slice(s+1));var l=n?e.createElementNS(n,o):e.createElement(o),c=t[1],u=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c))for(var d in u=2,c)if(null!=c[d]){var f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):"style"==d&&l.style?l.style.cssText=c[d]:l.setAttribute(d,c[d])}for(var p=u;p<t.length;p++){var h=t[p];if(0===h){if(p<t.length-1||p>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}if("string"==typeof h)l.appendChild(e.createTextNode(h));else{var m=_h(e,h,n,r),v=m.dom,g=m.contentDOM;if(l.appendChild(v),g){if(a)throw new RangeError("Multiple content holes");a=g}}}return{dom:l,contentDOM:a}}var Eh=Math.pow(2,16);function Nh(e,t){return e+t*Eh}function Ah(e){return 65535&e}var Dh=function(){function e(t,n,r){(0,ha.Z)(this,e),this.pos=t,this.delInfo=n,this.recover=r}return(0,ma.Z)(e,[{key:"deleted",get:function(){return(8&this.delInfo)>0}},{key:"deletedBefore",get:function(){return(5&this.delInfo)>0}},{key:"deletedAfter",get:function(){return(6&this.delInfo)>0}},{key:"deletedAcross",get:function(){return(4&this.delInfo)>0}}]),e}(),Th=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,ha.Z)(this,e),this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}return(0,ma.Z)(e,[{key:"recover",value:function(e){var t=0,n=Ah(e);if(!this.inverted)for(var r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/Eh}(e)}},{key:"mapResult",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!0)}},{key:"_map",value:function(e,t,n){for(var r=0,i=this.inverted?2:1,o=this.inverted?1:2,a=0;a<this.ranges.length;a+=3){var s=this.ranges[a]-(this.inverted?r:0);if(s>e)break;var l=this.ranges[a+i],c=this.ranges[a+o],u=s+l;if(e<=u){var d=s+r+((l?e==s?-1:e==u?1:t:t)<0?0:c);if(n)return d;
2var f=e==(t<0?s:u)?null:Nh(a/3,e-s),p=e==s?2:e==u?1:4;return(t<0?e!=s:e!=u)&&(p|=8),new Dh(d,p,f)}r+=c-l}return n?e+r:new Dh(e+r,0,null)}},{key:"touches",value:function(e,t){for(var n=0,r=Ah(t),i=this.inverted?2:1,o=this.inverted?1:2,a=0;a<this.ranges.length;a+=3){var s=this.ranges[a]-(this.inverted?n:0);if(s>e)break;var l=this.ranges[a+i];if(e<=s+l&&a==3*r)return!0;n+=this.ranges[a+o]-l}return!1}},{key:"forEach",value:function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,i=0;r<this.ranges.length;r+=3){var o=this.ranges[r],a=o-(this.inverted?i:0),s=o+(this.inverted?0:i),l=this.ranges[r+t],c=this.ranges[r+n];e(a,a+l,s,s+c),i+=c-l}}},{key:"invert",value:function(){return new e(this.ranges,!this.inverted)}},{key:"toString",value:function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}}],[{key:"offset",value:function(t){return 0==t?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}}]),e}();Th.empty=new Th([]);var Ih=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t?t.length:0;(0,ha.Z)(this,e),this.mirror=n,this.from=r,this.to=i,this._maps=t||[],this.ownData=!(t||n)}return(0,ma.Z)(e,[{key:"maps",get:function(){return this._maps}},{key:"slice",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.maps.length;return new e(this._maps,this.mirror,t,n)}},{key:"appendMap",value:function(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}},{key:"appendMapping",value:function(e){for(var t=0,n=this._maps.length;t<e._maps.length;t++){var r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}},{key:"getMirror",value:function(e){if(this.mirror)for(var t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}},{key:"setMirror",value:function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}},{key:"appendMappingInverted",value:function(e){for(var t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){var r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}},{key:"invert",value:function(){var t=new e;return t.appendMappingInverted(this),t}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this.mirror)return this._map(e,t,!0);for(var n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}},{key:"mapResult",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}},{key:"_map",value:function(e,t,n){for(var r=0,i=this.from;i<this.to;i++){var o=this._maps[i].mapResult(e,t);if(null!=o.recover){var a=this.getMirror(i);if(null!=a&&a>i&&a<this.to){i=a,e=this._maps[a].recover(o.recover);continue}}r|=o.delInfo,e=o.pos}return n?e:new Dh(e,r,null)}}]),e}(),Ph=Object.create(null),Fh=function(){function e(){(0,ha.Z)(this,e)}return(0,ma.Z)(e,[{key:"getMap",value:function(){return Th.empty}},{key:"merge",value:function(e){return null}}],[{key:"fromJSON",value:function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=Ph[t.stepType];if(!n)throw new RangeError("No step type ".concat(t.stepType," defined"));return n.fromJSON(e,t)}},{key:"jsonID",value:function(e,t){if(e in Ph)throw new RangeError("Duplicate use of step JSON ID "+e);return Ph[e]=t,t.prototype.jsonID=e,t}}]),e}(),Oh=function(){function e(t,n){(0,ha.Z)(this,e),this.doc=t,this.failed=n}return(0,ma.Z)(e,null,[{key:"ok",value:function(t){return new e(t,null)}},{key:"fail",value:function(t){return new e(null,t)}},{key:"fromReplace",value:function(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(o){if(o instanceof jp)return e.fail(o.message);throw o}}}]),e}();function Mh(e,t,n){for(var r=[],i=0;i<e.childCount;i++){var o=e.child(i);o.content.size&&(o=o.copy(Mh(o.content,t,o))),o.isInline&&(o=t(o,n,i)),r.push(o)}return bp.fromArray(r)}var Zh=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);
2function n(e,r,i){var o;return(0,ha.Z)(this,n),(o=t.call(this)).from=e,o.to=r,o.mark=i,o}return(0,ma.Z)(n,[{key:"apply",value:function(e){var t=this,n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),o=new Cp(Mh(n.content,(function(e,n){return e.isAtom&&n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e}),i),n.openStart,n.openEnd);return Oh.fromReplace(e,this.from,this.to,o)}},{key:"invert",value:function(){return new Rh(this.from,this.to,this.mark)}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new n(t.pos,r.pos,this.mark)}},{key:"merge",value:function(e){return e instanceof n&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new n(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}},{key:"toJSON",value:function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new n(t.from,t.to,e.markFromJSON(t.mark))}}]),n}(Fh);Fh.jsonID("addMark",Zh);var Rh=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i){var o;return(0,ha.Z)(this,n),(o=t.call(this)).from=e,o.to=r,o.mark=i,o}return(0,ma.Z)(n,[{key:"apply",value:function(e){var t=this,n=e.slice(this.from,this.to),r=new Cp(Mh(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))}),e),n.openStart,n.openEnd);return Oh.fromReplace(e,this.from,this.to,r)}},{key:"invert",value:function(){return new Zh(this.from,this.to,this.mark)}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new n(t.pos,r.pos,this.mark)}},{key:"merge",value:function(e){return e instanceof n&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new n(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}},{key:"toJSON",value:function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new n(t.from,t.to,e.markFromJSON(t.mark))}}]),n}(Fh);Fh.jsonID("removeMark",Rh);var Lh=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r){var i;return(0,ha.Z)(this,n),(i=t.call(this)).pos=e,i.mark=r,i}return(0,ma.Z)(n,[{key:"apply",value:function(e){var t=e.nodeAt(this.pos);if(!t)return Oh.fail("No node at mark step's position");var n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Oh.fromReplace(e,this.pos,this.pos+1,new Cp(bp.from(n),0,t.isLeaf?0:1))}},{key:"invert",value:function(e){var t=e.nodeAt(this.pos);if(t){var r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(var i=0;i<t.marks.length;i++)if(!t.marks[i].isInSet(r))return new n(this.pos,t.marks[i]);return new n(this.pos,this.mark)}}return new Bh(this.pos,this.mark)}},{key:"map",value:function(e){var t=e.mapResult(this.pos,1);return t.deletedAfter?null:new n(t.pos,this.mark)}},{key:"toJSON",value:function(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new n(t.pos,e.markFromJSON(t.mark))}}]),n}(Fh);Fh.jsonID("addNodeMark",Lh);var Bh=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r){var i;return(0,ha.Z)(this,n),(i=t.call(this)).pos=e,i.mark=r,i}return(0,ma.Z)(n,[{key:"apply",value:function(e){var t=e.nodeAt(this.pos);if(!t)return Oh.fail("No node at mark step's position");var n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Oh.fromReplace(e,this.pos,this.pos+1,new Cp(bp.from(n),0,t.isLeaf?0:1))}},{key:"invert",value:function(e){var t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new Lh(this.pos,this.mark):this}},{key:"map",value:function(e){var t=e.mapResult(this.pos,1);return t.deletedAfter?null:new n(t.pos,this.mark)}}
2,{key:"toJSON",value:function(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new n(t.pos,e.markFromJSON(t.mark))}}]),n}(Fh);Fh.jsonID("removeNodeMark",Bh);var zh=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i){var o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,ha.Z)(this,n),(o=t.call(this)).from=e,o.to=r,o.slice=i,o.structure=a,o}return(0,ma.Z)(n,[{key:"apply",value:function(e){return this.structure&&Hh(e,this.from,this.to)?Oh.fail("Structure replace would overwrite content"):Oh.fromReplace(e,this.from,this.to,this.slice)}},{key:"getMap",value:function(){return new Th([this.from,this.to-this.from,this.slice.size])}},{key:"invert",value:function(e){return new n(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}},{key:"map",value:function(e){var t=e.mapResult(this.to,-1),r=this.from==this.to&&n.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new n(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}},{key:"merge",value:function(e){if(!(e instanceof n)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var t=this.slice.size+e.slice.size==0?Cp.empty:new Cp(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new n(e.from,this.to,t,this.structure)}var r=this.slice.size+e.slice.size==0?Cp.empty:new Cp(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new n(this.from,this.to+(e.to-e.from),r,this.structure)}},{key:"toJSON",value:function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new n(t.from,t.to,Cp.fromJSON(e,t.slice),!!t.structure)}}]),n}(Fh);zh.MAP_BIAS=1,Fh.jsonID("replace",zh);var Uh=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i,o,a,s){var l,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,ha.Z)(this,n),(l=t.call(this)).from=e,l.to=r,l.gapFrom=i,l.gapTo=o,l.slice=a,l.insert=s,l.structure=c,l}return(0,ma.Z)(n,[{key:"apply",value:function(e){if(this.structure&&(Hh(e,this.from,this.gapFrom)||Hh(e,this.gapTo,this.to)))return Oh.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Oh.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?Oh.fromReplace(e,this.from,this.to,n):Oh.fail("Content does not fit in gap")}},{key:"getMap",value:function(){return new Th([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}},{key:"invert",value:function(e){var t=this.gapTo-this.gapFrom;return new n(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||i<t.pos||o>r.pos?null:new n(t.pos,r.pos,i,o,this.slice,this.insert,this.structure)}},{key:"toJSON",value:function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new n(t.from,t.to,t.gapFrom,t.gapTo,Cp.fromJSON(e,t.slice),t.insert,!!t.structure)}}]),n}(Fh);function Hh(e,t,n){for(var r=e.resolve(t),i=n-t,o=r.depth;i>0&&o>
20&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0)for(var a=r.node(o).maybeChild(r.indexAfter(o));i>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}return!1}function Wh(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.contentMatch,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=e.doc.nodeAt(t),a=[],s=t+1,l=0;l<o.childCount;l++){var c=o.child(l),u=s+c.nodeSize,d=r.matchType(c.type);if(d){r=d;for(var f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||e.step(new Rh(s,u,c.marks[f]));if(i&&c.isText&&"pre"!=n.whitespace)for(var p=void 0,h=/\r?\n|\r/g,m=void 0;p=h.exec(c.text);)m||(m=new Cp(bp.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),a.push(new zh(s+p.index,s+p.index+p[0].length,m))}else a.push(new zh(s,u,Cp.empty));s=u}if(!r.validEnd){var v=r.fillBefore(bp.empty,!0);e.replace(s,s,new Cp(v,0,0))}for(var g=a.length-1;g>=0;g--)e.step(a[g])}function qh(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Vh(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth,r=0,i=0;;--n){var o=e.$from.node(n),a=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&o.canReplace(a,s,t))return n;if(0==n||o.type.spec.isolating||!qh(o,a,s))break;a&&(r=1),s<o.childCount&&(i=1)}return null}function Gh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=function(e,t){var n=e.parent,r=e.startIndex,i=e.endIndex,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;var a=o.length?o[0]:t;return n.canReplaceWith(r,i,a)?o:null}(e,t),o=i&&function(e,t){var n=e.parent,r=e.startIndex,i=e.endIndex,o=n.child(r),a=t.contentMatch.findWrapping(o.type);if(!a)return null;for(var s=(a.length?a[a.length-1]:t).contentMatch,l=r;s&&l<i;l++)s=s.matchType(n.child(l).type);return s&&s.validEnd?a:null}(r,t);return o?i.map($h).concat({type:t,attrs:n}).concat(o.map($h)):null}function $h(e){return{type:e,attrs:null}}function Jh(e,t,n,r){t.forEach((function(i,o){if(i.isText)for(var a,s=/\r?\n|\r/g;a=s.exec(i.text);){var l=e.mapping.slice(r).map(n+1+o+a.index);e.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}}))}function Kh(e,t,n,r){t.forEach((function(i,o){if(i.type==i.type.schema.linebreakReplacement){var a=e.mapping.slice(r).map(n+1+o);e.replaceWith(a,a+1,t.type.schema.text("\n"))}}))}function Yh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(var s=i.depth-1,l=n-2;s>o;s--,l--){var c=i.node(s),u=i.index(s);if(c.type.spec.isolating)return!1;var d=c.content.cutByIndex(u,c.childCount),f=r&&r[l+1];f&&(d=d.replaceChild(0,f.type.create(f.attrs)));var p=r&&r[l]||c;if(!c.canReplace(u+1,c.childCount)||!p.type.validContent(d))return!1}var h=i.indexAfter(o),m=r&&r[0];return i.node(o).canReplaceWith(h,h,m?m.type:i.node(o+1).type)}function Xh(e,t){var n=e.resolve(t),r=n.index();return Qh(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function Qh(e,t){return!(!e||!t||e.isLeaf||!function(e,t){t.content.size||e.type.compatibleContent(t.type);for(var n=e.contentMatchAt(e.childCount),r=e.type.schema.linebreakReplacement,i=0;i<t.childCount;i++){var o=t.child(i),a=o.type==r?e.type.schema.nodes.text:o.type;if(!(n=n.matchType(a)))return!1;if(!e.type.allowsMarks(o.marks))return!1}return n.validEnd}(e,t))}function em(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=e.resolve(t),i=r.depth;;i--){var o=void 0,a=void 0,s=r.index(i);if(i==r.depth?(o=r.nodeBefore,a=r.nodeAfter):n>0?(o=r.node(i+1),s++,a=r.node(i).maybeChild(s)):(o=r.node(i).maybeChild(s-1),a=r.node(i+1)),o&&!o.isTextblock&&Qh(o,a)&&r.node(i).canReplace(s,s+1))return t;if(0==i)break;t=n<0?r.before(i):r.after(i)}}function tm(e,t,n){var r=e.resolve(t);if(!n.content.size)return t;for(var i=n.content,o=0;o<n.openStart;o++)i=i.firstChild.content;for(var a=1;a<=(0==n.openStart&&n.size?2:1);a++)for(var s=r.depth;s>=0;s--){var l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,c=r.index(s)+(l>0?1:0),u=r.node(s),d=!1;if(1==a)d=u.canReplace(c,c,i);else{var f=u.contentMatchAt(c).findWrapping(i.firstChild.type);d=f&&u.canReplaceWith(c,c,f[0])}if(d)return 0==l?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function nm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Cp.empty;if(t==n&&!r.size)return null;var i=e.resolve(t),o=e.resolve(n);return rm(i,o,r)?new zh(t,n,r):new im(i,o,r).fit()}function rm(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}Fh.jsonID("replaceAround",Uh);var im=function(){function e(t,n,r){(0,ha.Z)(this,e),this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=bp.empty;for(var i=0;i<=t.depth;i++){var o=t.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(i))})}for(var a=t.depth;a>0;a--)this.placed=bp.from(t.node(a).copy(this.placed))}return(0,ma.Z)(e,[{key:"depth",get:function(){return this.frontier.length-1}},{key:"fit",value:function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;for(var o=this.placed,a=r.depth,s=i.depth;a&&s&&1==o.childCount;)o=o.firstChild.content,a--,s--;var l=new Cp(o,a,s);return t>-1?new Uh(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new zh(r.pos,i.pos,l):null}},{key:"findFittable",value:function(){for(var e=this.unplaced.openStart,t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){var i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(var o=1;o<=2;o++)for(var a=1==o?e:this.unplaced.openStart;a>=0;a--)for(var s=null,l=(a?(s=sm(this.unplaced.content,a-1).firstChild).content:this.unplaced.content).firstChild,c=this.depth;c>=0;c--){var u=this.frontier[c],d=u.type,f=u.match,p=void 0,h=null;if(1==o&&(l?f.matchType(l.type)||(h=f.fillBefore(bp.from(l),!1)):s&&d.compatibleContent(s.type)))return{sliceDepth:a,frontierDepth:c,parent:s,inject:h};
2if(2==o&&l&&(p=f.findWrapping(l.type)))return{sliceDepth:a,frontierDepth:c,parent:s,wrap:p};if(s&&f.matchType(s.type))break}}},{key:"openMore",value:function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,i=sm(t,n);return!(!i.childCount||i.firstChild.isLeaf)&&(this.unplaced=new Cp(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}},{key:"dropNode",value:function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,i=sm(t,n);if(i.childCount<=1&&n>0){var o=t.size-n<=n+i.size;this.unplaced=new Cp(om(t,n-1,1),n-1,o?n-1:r)}else this.unplaced=new Cp(om(t,n,1),n,r)}},{key:"placeNodes",value:function(e){for(var t=e.sliceDepth,n=e.frontierDepth,r=e.parent,i=e.inject,o=e.wrap;this.depth>n;)this.closeFrontierNode();if(o)for(var a=0;a<o.length;a++)this.openFrontierNode(o[a]);var s=this.unplaced,l=r?r.content:s.content,c=s.openStart-t,u=0,d=[],f=this.frontier[n],p=f.match,h=f.type;if(i){for(var m=0;m<i.childCount;m++)d.push(i.child(m));p=p.matchFragment(i)}for(var v=l.size+t-(s.content.size-s.openEnd);u<l.childCount;){var g=l.child(u),y=p.matchType(g.type);if(!y)break;(++u>1||0==c||g.content.size)&&(p=y,d.push(lm(g.mark(h.allowedMarks(g.marks)),1==u?c:0,u==l.childCount?v:-1)))}var b=u==l.childCount;b||(v=-1),this.placed=am(this.placed,n,bp.from(d)),this.frontier[n].match=p,b&&v<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var x=0,w=l;x<v;x++){var k=w.lastChild;this.frontier.push({type:k.type,match:k.contentMatchAt(k.childCount)}),w=k.content}this.unplaced=b?0==t?Cp.empty:new Cp(om(s.content,t-1,1),t-1,v<0?s.openEnd:t-1):new Cp(om(s.content,t,u),s.openStart,s.openEnd)}},{key:"mustMoveInline",value:function(){if(!this.$to.parent.isTextblock)return-1;var e,t=this.frontier[this.depth];if(!t.type.isTextblock||!cm(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;for(var n=this.$to.depth,r=this.$to.after(n);n>1&&r==this.$to.end(--n);)++r;return r}},{key:"findCloseLevel",value:function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,i=n.type,o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=cm(e,t,i,r,o);if(a){for(var s=t-1;s>=0;s--){var l=this.frontier[s],c=l.match,u=cm(e,s,l.type,c,!0);if(!u||u.childCount)continue e}return{depth:t,fit:a,move:o?e.doc.resolve(e.after(t+1)):e}}}}},{key:"close",value:function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=am(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var r=e.node(n),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,i)}return e}},{key:"openFrontierNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=am(this.placed,this.depth,bp.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}},{key:"closeFrontierNode",value:function(){var e=this.frontier.pop().match.fillBefore(bp.empty,!0);e.childCount&&(this.placed=am(this.placed,this.frontier.length,e))}}]),e}();function om(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(om(e.firstChild.content,t-1,n)))}function am(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(am(e.lastChild.content,t-1,n)))}function sm(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function lm(e,t,n){if(t<=0)return e;var r=e.content;return t>1&&(r=r.replaceChild(0,lm(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(bp.empty,!0)))),e.copy(r)}function cm(e,t,n,r,i){var o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!n.compatibleContent(o.type))return null;var s=r.fillBefore(o.content,!0,a);return s&&!function(e,t,n){for(var r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,o.content,a)?s:null}function um(e,t,n,r,i){if(t<n){var o=e.firstChild;e=e.replaceChild(0,o.copy(um(o.content,t+1,n,r,o)))}if(t>r){var a=i.contentMatchAt(0),s=a.fillBefore(e).append(e);e=s.append(a.matchFragment(s).fillBefore(bp.empty,!0))}return e}function dm(e,t){for(var n=[],r=Math.min(e.depth,t.depth);r>=0;r--){var i=e.start(r);if(i<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(i==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==i-1)&&n.push(r)}return n}var fm=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);
2function n(e,r,i){var o;return(0,ha.Z)(this,n),(o=t.call(this)).pos=e,o.attr=r,o.value=i,o}return(0,ma.Z)(n,[{key:"apply",value:function(e){var t=e.nodeAt(this.pos);if(!t)return Oh.fail("No node at attribute step's position");var n=Object.create(null);for(var r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;var i=t.type.create(n,null,t.marks);return Oh.fromReplace(e,this.pos,this.pos+1,new Cp(bp.from(i),0,t.isLeaf?0:1))}},{key:"getMap",value:function(){return Th.empty}},{key:"invert",value:function(e){return new n(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}},{key:"map",value:function(e){var t=e.mapResult(this.pos,1);return t.deletedAfter?null:new n(t.pos,this.attr,this.value)}},{key:"toJSON",value:function(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new n(t.pos,t.attr,t.value)}}]),n}(Fh);Fh.jsonID("attr",fm);var pm=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r){var i;return(0,ha.Z)(this,n),(i=t.call(this)).attr=e,i.value=r,i}return(0,ma.Z)(n,[{key:"apply",value:function(e){var t=Object.create(null);for(var n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;var r=e.type.create(t,e.content,e.marks);return Oh.ok(r)}},{key:"getMap",value:function(){return Th.empty}},{key:"invert",value:function(e){return new n(this.attr,e.attrs[this.attr])}},{key:"map",value:function(e){return this}},{key:"toJSON",value:function(){return{stepType:"docAttr",attr:this.attr,value:this.value}}}],[{key:"fromJSON",value:function(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new n(t.attr,t.value)}}]),n}(Fh);Fh.jsonID("docAttr",pm);var hm=Error;((hm=function e(t){var n=Error.call(this,t);return n.__proto__=e.prototype,n}).prototype=Object.create(Error.prototype)).constructor=hm,hm.prototype.name="TransformError";var mm=function(){function e(t){(0,ha.Z)(this,e),this.doc=t,this.steps=[],this.docs=[],this.mapping=new Ih}return(0,ma.Z)(e,[{key:"before",get:function(){return this.docs.length?this.docs[0]:this.doc}},{key:"step",value:function(e){var t=this.maybeStep(e);if(t.failed)throw new hm(t.failed);return this}},{key:"maybeStep",value:function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}},{key:"docChanged",get:function(){return this.steps.length>0}},{key:"changedRange",value:function(){for(var e=1e9,t=-1e9,n=0;n<this.mapping.maps.length;n++){var r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((function(n,r,i,o){e=Math.min(e,i),t=Math.max(t,o)}))}return 1e9==e?null:{from:e,to:t}}},{key:"addStep",value:function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}},{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Cp.empty,r=nm(this.doc,e,t,n);return r&&this.step(r),this}},{key:"replaceWith",value:function(e,t,n){return this.replace(e,t,new Cp(bp.from(n),0,0))}},{key:"delete",value:function(e,t){return this.replace(e,t,Cp.empty)}},{key:"insert",value:function(e,t){return this.replaceWith(e,e,t)}},{key:"replaceRange",value:function(e,t,n){return function(e,t,n,r){if(!r.size)return e.deleteRange(t,n);var i=e.doc.resolve(t),o=e.doc.resolve(n);if(rm(i,o,r))return e.step(new zh(t,n,r));var a=dm(i,o);0==a[a.length-1]&&a.pop();var s=-(i.depth+1);a.unshift(s);for(var l=i.depth,c=i.pos-1;l>0;l--,c--){var u=i.node(l).type.spec;if(u.defining||u.definingAsContext||u.isolating)break;a.indexOf(l)>-1?s=l:i.before(l)==c&&a.splice(1,0,-l)}for(var d,f=a.indexOf(s),p=[],h=r.openStart,m=r.content,v=0;;v++){var g=m.firstChild;if(p.push(g),v==r.openStart)break;m=g.content}for(var y=h-1;y>=0;y--){var b=p[y],x=(d=b.type).spec.defining||d.spec.definingForContent;if(x&&!b.sameMarkup(i.node(Math.abs(s)-1)))h=y;else if(x||!b.type.isTextblock)break}for(var w=r.openStart;w>=0;w--){var k=(w+h+1)%(r.openStart+1),S=p[k];if(S)for(var j=0;j<a.length;j++){var C=a[(j+f)%a.length],_=!0;C<0&&(_=!1,C=-C);var E=i.node(C-1),N=i.index(C-1);if(E.canReplaceWith(N,N,S.type,S.marks))return e.replace(i.before(C),_?o.after(C):n,new Cp(um(r.content,0,r.openStart,k),k,r.openEnd))}}for(var A=e.steps.length,D=a.length-1;D>=0&&(e.replace(t,n,r),!(e.steps.length>A));D--){var T=a[D];T<0||(t=i.before(T),n=o.after(T))}}(this,e,t,n),this}},{key:"replaceRangeWith",value:function(e,t,n){return function(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){var i=function(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var i=r.depth-1;i>=0;i--){var o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(var a=r.depth-1;a>=0;a--){var s=r.indexAfter(a);if(r.node(a).canReplaceWith(s,s,n))return r.after(a+1);if(s<r.node(a).childCount)return null}return null}(e.doc,t,r.type);null!=i&&(t=n=i)}e.replaceRange(t,n,new Cp(bp.from(r),0,0))}(this,e,t,n),this}},{key:"deleteRange",value:function(e,t){return function(e,t,n){var r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&0==r.parentOffset&&0==i.parentOffset){for(var o=r.sharedDepth(n),a=!1,s=r.depth;s>o;
2s--)r.node(s).type.spec.isolating&&(a=!0);for(var l=i.depth;l>o;l--)i.node(l).type.spec.isolating&&(a=!0);if(!a){for(var c=r.depth;c>0&&t==r.start(c);c--)t=r.before(c);for(var u=i.depth;u>0&&n==i.start(u);u--)n=i.before(u);r=e.doc.resolve(t),i=e.doc.resolve(n)}}for(var d=dm(r,i),f=0;f<d.length;f++){var p=d[f],h=f==d.length-1;if(h&&0==p||r.node(p).type.contentMatch.validEnd)return e.delete(r.start(p),i.end(p));if(p>0&&(h||r.node(p-1).canReplace(r.index(p-1),i.indexAfter(p-1))))return e.delete(r.before(p),i.after(p))}for(var m=1;m<=r.depth&&m<=i.depth;m++)if(t-r.start(m)==r.depth-m&&n>r.end(m)&&i.end(m)-n!=i.depth-m&&r.start(m-1)==i.start(m-1)&&r.node(m-1).canReplace(r.index(m-1),i.index(m-1)))return e.delete(r.before(m),n);e.delete(t,n)}(this,e,t),this}},{key:"lift",value:function(e,t){return function(e,t,n){for(var r=t.$from,i=t.$to,o=t.depth,a=r.before(o+1),s=i.after(o+1),l=a,c=s,u=bp.empty,d=0,f=o,p=!1;f>n;f--)p||r.index(f)>0?(p=!0,u=bp.from(r.node(f).copy(u)),d++):l--;for(var h=bp.empty,m=0,v=o,g=!1;v>n;v--)g||i.after(v+1)<i.end(v)?(g=!0,h=bp.from(i.node(v).copy(h)),m++):c++;e.step(new Uh(l,c,a,s,new Cp(u.append(h),d,m),u.size-d,!0))}(this,e,t),this}},{key:"join",value:function(e){return function(e,t,n){var r=null,i=e.doc.type.schema.linebreakReplacement,o=e.doc.resolve(t-n),a=o.node().type;if(i&&a.inlineContent){var s="pre"==a.whitespace,l=!!a.contentMatch.matchType(i);s&&!l?r=!1:!s&&l&&(r=!0)}var c=e.steps.length;if(!1===r){var u=e.doc.resolve(t+n);Kh(e,u.node(),u.before(),c)}a.inlineContent&&Wh(e,t+n-1,a,o.node().contentMatchAt(o.index()),null==r);var d=e.mapping.slice(c),f=d.map(t-n);if(e.step(new zh(f,d.map(t+n,-1),Cp.empty,!0)),!0===r){var p=e.doc.resolve(f);Jh(e,p.node(),p.before(),e.steps.length)}}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),this}},{key:"wrap",value:function(e,t){return function(e,t,n){for(var r=bp.empty,i=n.length-1;i>=0;i--){if(r.size){var o=n[i].type.contentMatch.matchFragment(r);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=bp.from(n[i].type.create(n[i].attrs,r))}var a=t.start,s=t.end;e.step(new Uh(a,s,a,s,new Cp(r,0,0),n.length,!0))}(this,e,t),this}},{key:"setBlockType",value:function(e){return function(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var o=e.steps.length;e.doc.nodesBetween(t,n,(function(t,n){var a="function"==typeof i?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,a)&&function(e,t,n){var r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}(e.doc,e.mapping.slice(o).map(n),r)){var s=null;if(r.schema.linebreakReplacement){var l="pre"==r.whitespace,c=!!r.contentMatch.matchType(r.schema.linebreakReplacement);l&&!c?s=!1:!l&&c&&(s=!0)}!1===s&&Kh(e,t,n,o),Wh(e,e.mapping.slice(o).map(n,1),r,void 0,null===s);var u=e.mapping.slice(o),d=u.map(n,1),f=u.map(n+t.nodeSize,1);return e.step(new Uh(d,f,d+1,f-1,new Cp(bp.from(r.create(a,null,t.marks)),0,0),1,!0)),!0===s&&Jh(e,t,n,o),!1}}))}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,arguments.length>2?arguments[2]:void 0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null),this}},{key:"setNodeMarkup",value:function(e,t){return function(e,t,n,r,i){var o=e.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");n||(n=o.type);var a=n.create(r,null,i||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,a);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Uh(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new Cp(bp.from(a),0,0),1,!0))}(this,e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0),this}},{key:"setNodeAttribute",value:function(e,t,n){return this.step(new fm(e,t,n)),this}},{key:"setDocAttribute",value:function(e,t){return this.step(new pm(e,t)),this}},{key:"addNodeMark",value:function(e,t){return this.step(new Lh(e,t)),this}},{key:"removeNodeMark",value:function(e,t){var n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(t instanceof Sp)t.isInSet(n.marks)&&this.step(new Bh(e,t));else{for(var r,i=n.marks,o=[];r=t.isInSet(i);)o.push(new Bh(e,r)),i=r.removeFromSet(i);for(var a=o.length-1;a>=0;a--)this.step(o[a])}return this}},{key:"split",value:function(e){return function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=e.doc.resolve(t),o=bp.empty,a=bp.empty,s=i.depth,l=i.depth-n,c=n-1;s>l;s--,c--){o=bp.from(i.node(s).copy(o));var u=r&&r[c];a=bp.from(u?u.type.create(u.attrs,a):i.node(s).copy(a))}e.step(new zh(t,t,new Cp(o.append(a),n,n),!0))}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,arguments.length>2?arguments[2]:void 0),this}},{key:"addMark",value:function(e,t,n){return function(e,t,n,r){var i,o,a=[],s=[];e.doc.nodesBetween(t,n,(function(e,l,c){if(e.isInline){var u=e.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){for(var d=Math.max(l,t),f=Math.min(l+e.nodeSize,n),p=r.addToSet(u),h=0;h<u.length;h++)u[h].isInSet(p)||(i&&i.to==d&&i.mark.eq(u[h])?i.to=f:a.push(i=new Rh(d,f,u[h])));o&&o.to==d?o.to=f:s.push(o=new Zh(d,f,r))}}})),a.forEach((function(t){return e.step(t)}
2)),s.forEach((function(t){return e.step(t)}))}(this,e,t,n),this}},{key:"removeMark",value:function(e,t,n){return function(e,t,n,r){var i=[],o=0;e.doc.nodesBetween(t,n,(function(e,a){if(e.isInline){o++;var s=null;if(r instanceof lh)for(var l,c=e.marks;l=r.isInSet(c);)(s||(s=[])).push(l),c=l.removeFromSet(c);else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length)for(var u=Math.min(a+e.nodeSize,n),d=0;d<s.length;d++){for(var f=s[d],p=void 0,h=0;h<i.length;h++){var m=i[h];m.step==o-1&&f.eq(i[h].style)&&(p=m)}p?(p.to=u,p.step=o):i.push({style:f,from:Math.max(a,t),to:u,step:o})}}})),i.forEach((function(t){return e.step(new Rh(t.from,t.to,t.style))}))}(this,e,t,n),this}},{key:"clearIncompatible",value:function(e,t,n){return Wh(this,e,t,n),this}}]),e}(),vm=Object.create(null),gm=function(){function e(t,n,r){(0,ha.Z)(this,e),this.$anchor=t,this.$head=n,this.ranges=r||[new ym(t.min(n),t.max(n))]}return(0,ma.Z)(e,[{key:"anchor",get:function(){return this.$anchor.pos}},{key:"head",get:function(){return this.$head.pos}},{key:"from",get:function(){return this.$from.pos}},{key:"to",get:function(){return this.$to.pos}},{key:"$from",get:function(){return this.ranges[0].$from}},{key:"$to",get:function(){return this.ranges[0].$to}},{key:"empty",get:function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}},{key:"content",value:function(){return this.$from.doc.slice(this.from,this.to,!0)}},{key:"replace",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cp.empty,n=t.content.lastChild,r=null,i=0;i<t.openEnd;i++)r=n,n=n.lastChild;for(var o=e.steps.length,a=this.ranges,s=0;s<a.length;s++){var l=a[s],c=l.$from,u=l.$to,d=e.mapping.slice(o);e.replaceRange(d.map(c.pos),d.map(u.pos),s?Cp.empty:t),0==s&&Nm(e,o,(n?n.isInline:r&&r.isTextblock)?-1:1)}}},{key:"replaceWith",value:function(e,t){for(var n=e.steps.length,r=this.ranges,i=0;i<r.length;i++){var o=r[i],a=o.$from,s=o.$to,l=e.mapping.slice(n),c=l.map(a.pos),u=l.map(s.pos);i?e.deleteRange(c,u):(e.replaceRangeWith(c,u,t),Nm(e,n,t.isInline?-1:1))}}},{key:"getBookmark",value:function(){return wm.between(this.$anchor,this.$head).getBookmark()}}],[{key:"findFrom",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.parent.inlineContent?new wm(e):Em(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(var i=e.depth-1;i>=0;i--){var o=t<0?Em(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):Em(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(o)return o}return null}},{key:"near",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.findFrom(e,t)||this.findFrom(e,-t)||new Cm(e.node(0))}},{key:"atStart",value:function(e){return Em(e,e,0,0,1)||new Cm(e)}},{key:"atEnd",value:function(e){return Em(e,e,e.content.size,e.childCount,-1)||new Cm(e)}},{key:"fromJSON",value:function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=vm[t.type];if(!n)throw new RangeError("No selection type ".concat(t.type," defined"));return n.fromJSON(e,t)}},{key:"jsonID",value:function(e,t){if(e in vm)throw new RangeError("Duplicate use of selection JSON ID "+e);return vm[e]=t,t.prototype.jsonID=e,t}}]),e}();gm.prototype.visible=!0;var ym=(0,ma.Z)((function e(t,n){(0,ha.Z)(this,e),this.$from=t,this.$to=n})),bm=!1;function xm(e){bm||e.parent.inlineContent||(bm=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}var wm=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return(0,ha.Z)(this,n),xm(e),xm(r),t.call(this,e,r)}return(0,ma.Z)(n,[{key:"$cursor",get:function(){return this.$anchor.pos==this.$head.pos?this.$head:null}},{key:"map",value:function(e,t){var r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return gm.near(r);var i=e.resolve(t.map(this.anchor));return new n(i.parent.inlineContent?i:r,r)}},{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cp.empty;if((0,pp.Z)((0,hp.Z)(n.prototype),"replace",this).call(this,e,t),t==Cp.empty){var r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}},{key:"eq",value:function(e){return e instanceof n&&e.anchor==this.anchor&&e.head==this.head}},{key:"getBookmark",value:function(){return new km(this.anchor,this.head)}},{key:"toJSON",value:function(){return{type:"text",anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");
2return new n(e.resolve(t.anchor),e.resolve(t.head))}},{key:"create",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}},{key:"between",value:function(e,t,r){var i=e.pos-t.pos;if(r&&!i||(r=i>=0?1:-1),!t.parent.inlineContent){var o=gm.findFrom(t,r,!0)||gm.findFrom(t,-r,!0);if(!o)return gm.near(t,r);t=o.$head}return e.parent.inlineContent||(0==i||(e=(gm.findFrom(e,-r,!0)||gm.findFrom(e,r,!0)).$anchor).pos<t.pos!=i<0)&&(e=t),new n(e,t)}}]),n}(gm);gm.jsonID("text",wm);var km=function(){function e(t,n){(0,ha.Z)(this,e),this.anchor=t,this.head=n}return(0,ma.Z)(e,[{key:"map",value:function(t){return new e(t.map(this.anchor),t.map(this.head))}},{key:"resolve",value:function(e){return wm.between(e.resolve(this.anchor),e.resolve(this.head))}}]),e}(),Sm=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e){var r;(0,ha.Z)(this,n);var i=e.nodeAfter,o=e.node(0).resolve(e.pos+i.nodeSize);return(r=t.call(this,e,o)).node=i,r}return(0,ma.Z)(n,[{key:"map",value:function(e,t){var r=t.mapResult(this.anchor),i=r.deleted,o=r.pos,a=e.resolve(o);return i?gm.near(a):new n(a)}},{key:"content",value:function(){return new Cp(bp.from(this.node),0,0)}},{key:"eq",value:function(e){return e instanceof n&&e.anchor==this.anchor}},{key:"toJSON",value:function(){return{type:"node",anchor:this.anchor}}},{key:"getBookmark",value:function(){return new jm(this.anchor)}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new n(e.resolve(t.anchor))}},{key:"create",value:function(e,t){return new n(e.resolve(t))}},{key:"isSelectable",value:function(e){return!e.isText&&!1!==e.type.spec.selectable}}]),n}(gm);Sm.prototype.visible=!1,gm.jsonID("node",Sm);var jm=function(){function e(t){(0,ha.Z)(this,e),this.anchor=t}return(0,ma.Z)(e,[{key:"map",value:function(t){var n=t.mapResult(this.anchor),r=n.deleted,i=n.pos;return r?new km(i,i):new e(i)}},{key:"resolve",value:function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Sm.isSelectable(n)?new Sm(t):gm.near(t)}}]),e}(),Cm=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e){return(0,ha.Z)(this,n),t.call(this,e.resolve(0),e.resolve(e.content.size))}return(0,ma.Z)(n,[{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cp.empty;if(t==Cp.empty){e.delete(0,e.doc.content.size);var r=gm.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else(0,pp.Z)((0,hp.Z)(n.prototype),"replace",this).call(this,e,t)}},{key:"toJSON",value:function(){return{type:"all"}}},{key:"map",value:function(e){return new n(e)}},{key:"eq",value:function(e){return e instanceof n}},{key:"getBookmark",value:function(){return _m}}],[{key:"fromJSON",value:function(e){return new n(e)}}]),n}(gm);gm.jsonID("all",Cm);var _m={map:function(){return this},resolve:function(e){return new Cm(e)}};function Em(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t.inlineContent)return wm.create(e,n);for(var a=r-(i>0?0:1);i>0?a<t.childCount:a>=0;a+=i){var s=t.child(a);if(s.isAtom){if(!o&&Sm.isSelectable(s))return Sm.create(e,n-(i<0?s.nodeSize:0))}else{var l=Em(e,s,n+i,i<0?s.childCount:0,i,o);if(l)return l}n+=s.nodeSize*i}return null}function Nm(e,t,n){var r=e.steps.length-1;if(!(r<t)){var i,o=e.steps[r];if(o instanceof zh||o instanceof Uh)e.mapping.maps[r].forEach((function(e,t,n,r){null==i&&(i=r)})),e.setSelection(gm.near(e.doc.resolve(i),n))}}var Am=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e){var r;return(0,ha.Z)(this,n),(r=t.call(this,e.doc)).curSelectionFor=0,r.updated=0,r.meta=Object.create(null),r.time=Date.now(),r.curSelection=e.selection,r.storedMarks=e.storedMarks,r}return(0,ma.Z)(n,[{key:"selection",get:function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}},{key:"setSelection",value:function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this}},{key:"selectionSet",get:function(){return(1&this.updated)>0}},{key:"setStoredMarks",value:function(e){return this.storedMarks=e,this.updated|=2,this}},{key:"ensureMarks",value:function(e){return Sp.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}},{key:"addStoredMark",value:function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}},{key:"removeStoredMark",value:function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}},{key:"storedMarksSet",get:function(){return(2&this.updated)>0}},{key:"addStep",value:function(e,t){(0,pp.Z)((0,hp.Z)(n.prototype),"addStep",this).call(this,e,t),this.updated=-3&this.updated,this.storedMarks=null}},{key:"setTime",value:function(e){return this.time=e,this}},{key:"replaceSelection",value:function(e){return this.selection.replace(this,e),this}},{key:"replaceSelectionWith",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||Sp.none))),n.replaceWith(this,e),this}},{key:"deleteSelection",value:function(){return this.selection.replace(this),this}},{key:"insertText",value:function(e,t,n){var r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();if(null==n&&(n=t),!e)return this.deleteRange(t,n);var i=this.storedMarks;if(!i){var o=this.doc.resolve(t);i=n==t?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(gm.near(this.selection.$to)),this}},{key:"setMeta",value:function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}},{key:"getMeta",value:function(e){return this.meta["string"==typeof e?e:e.key]}},{key:"isGeneric",get:function(){for(var e in this.meta)return!1;return!0}},{key:"scrollIntoView",value:function(){return this.updated|=4,this}},{key:"scrolledIntoView",get:function(){return(4&this.updated)>0}}]),n}(mm);function Dm(e,t){return t&&e?e.bind(t):e}var Tm=(0,ma.Z)((function e(t,n,r){(0,ha.Z)(this,e),this.name=t,this.init=Dm(n.init,r),this.apply=Dm(n.apply,r)})),Im=[new Tm("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new Tm("selection",{init:function(e,t){return e.selection||gm.atStart(t.doc)},apply:function(e){return e.selection}}),new Tm("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new Tm("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],Pm=(0,ma.Z)((function e(t,n){var r=this;(0,ha.Z)(this,e),this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Im.slice(),n&&n.forEac
2h((function(e){if(r.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");r.plugins.push(e),r.pluginsByKey[e.key]=e,e.spec.state&&r.fields.push(new Tm(e.key,e.spec.state,e))}))})),Fm=function(){function e(t){(0,ha.Z)(this,e),this.config=t}return(0,ma.Z)(e,[{key:"schema",get:function(){return this.config.schema}},{key:"plugins",get:function(){return this.config.plugins}},{key:"apply",value:function(e){return this.applyTransaction(e).state}},{key:"filterTransaction",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=0;n<this.config.plugins.length;n++)if(n!=t){var r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}},{key:"applyTransaction",value:function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),r=null;;){for(var i=!1,o=0;o<this.config.plugins.length;o++){var a=this.config.plugins[o];if(a.spec.appendTransaction){var s=r?r[o].n:0,l=r?r[o].state:this,c=s<t.length&&a.spec.appendTransaction.call(a,s?t.slice(s):t,l,n);if(c&&n.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(var u=0;u<this.config.plugins.length;u++)r.push(u<o?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),i=!0}r&&(r[o]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}},{key:"applyInner",value:function(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var n=new e(this.config),r=this.config.fields,i=0;i<r.length;i++){var o=r[i];n[o.name]=o.apply(t,this[o.name],this,n)}return n}},{key:"tr",get:function(){return new Am(this)}},{key:"reconfigure",value:function(t){for(var n=new Pm(this.schema,t.plugins),r=n.fields,i=new e(n),o=0;o<r.length;o++){var a=r[o].name;i[a]=this.hasOwnProperty(a)?this[a]:r[o].init(t,i)}return i}},{key:"toJSON",value:function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((function(e){return e.toJSON()}))),e&&"object"==typeof e)for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}}],[{key:"create",value:function(t){for(var n=new Pm(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new e(n),i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(t,r);return r}},{key:"fromJSON",value:function(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");var i=new Pm(t.schema,t.plugins),o=new e(i);return i.fields.forEach((function(e){if("doc"==e.name)o.doc=Hp.fromJSON(t.schema,n.doc);else if("selection"==e.name)o.selection=gm.fromJSON(o.doc,n.selection);else if("storedMarks"==e.name)n.storedMarks&&(o.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(var i in r){var a=r[i],s=a.spec.state;if(a.key==e.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(n,i))return void(o[e.name]=s.fromJSON.call(a,t,n[i],o))}o[e.name]=e.init(t,o)}})),o}}]),e}();function Om(e,t,n){for(var r in e){var i=e[r];i instanceof Function?i=i.bind(t):"handleDOMEvents"==r&&(i=Om(i,t,{})),n[r]=i}return n}var Mm=function(){function e(t){(0,ha.Z)(this,e),this.spec=t,this.props={},t.props&&Om(t.props,this,this.props),this.key=t.key?t.key.key:Rm("plugin")}return(0,ma.Z)(e,[{key:"getState",value:function(e){return e[this.key]}}]),e}(),Zm=Object.create(null);function Rm(e){return e in Zm?e+"$"+ ++Zm[e]:(Zm[e]=0,e+"$")}var Lm=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"key";(0,ha.Z)(this,e),this.key=Rm(t)}return(0,ma.Z)(e,[{key:"get",value:function(e){return e.config.pluginsByKey[this.key]}},{key:"getState",value:function(e){return e[this.key]}}]),e}(),Bm=function(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)};function zm(e,t){var n=e.selection.$cursor;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}var Um=function(e,t,n){var r=zm(e,n);if(!r)return!1;var i=Vm(r);if(!i){var o=r.blockRange(),a=o&&Vh(o);return null!=a&&(t&&t(e.tr.lift(o,a).scrollIntoView()),!0)}var s=i.nodeBefore;if(iv(e,i,t,-1))return!0;
2if(0==r.parent.content.size&&(Wm(s,"end")||Sm.isSelectable(s)))for(var l=r.depth;;l--){var c=nm(e.doc,r.before(l),r.after(l),Cp.empty);if(c&&c.slice.size<c.to-c.from){if(t){var u=e.tr.step(c);u.setSelection(Wm(s,"end")?gm.findFrom(u.doc.resolve(u.mapping.map(i.pos,-1)),-1):Sm.create(u.doc,i.pos-s.nodeSize)),t(u.scrollIntoView())}return!0}if(1==l||r.node(l-1).childCount>1)break}return!(!s.isAtom||i.depth!=r.depth-1)&&(t&&t(e.tr.delete(i.pos-s.nodeSize,i.pos).scrollIntoView()),!0)};function Hm(e,t,n){for(var r=t.nodeBefore,i=t.pos-1;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;var o=r.lastChild;if(!o)return!1;r=o}for(var a=t.nodeAfter,s=t.pos+1;!a.isTextblock;s++){if(a.type.spec.isolating)return!1;var l=a.firstChild;if(!l)return!1;a=l}var c=nm(e.doc,i,s,Cp.empty);if(!c||c.from!=i||c instanceof zh&&c.slice.size>=s-i)return!1;if(n){var u=e.tr.step(c);u.setSelection(wm.create(u.doc,i)),n(u.scrollIntoView())}return!0}function Wm(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}var qm=function(e,t,n){var r=e.selection,i=r.$head,o=i;if(!r.empty)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;o=Vm(i)}var a=o&&o.nodeBefore;return!(!a||!Sm.isSelectable(a))&&(t&&t(e.tr.setSelection(Sm.create(e.doc,o.pos-a.nodeSize)).scrollIntoView()),!0)};function Vm(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Gm(e,t){var n=e.selection.$cursor;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}var $m=function(e,t,n){var r=Gm(e,n);if(!r)return!1;var i=Km(r);if(!i)return!1;var o=i.nodeAfter;if(iv(e,i,t,1))return!0;if(0==r.parent.content.size&&(Wm(o,"start")||Sm.isSelectable(o))){var a=nm(e.doc,r.before(),r.after(),Cp.empty);if(a&&a.slice.size<a.to-a.from){if(t){var s=e.tr.step(a);s.setSelection(Wm(o,"start")?gm.findFrom(s.doc.resolve(s.mapping.map(i.pos)),1):Sm.create(s.doc,s.mapping.map(i.pos))),t(s.scrollIntoView())}return!0}}return!(!o.isAtom||i.depth!=r.depth-1)&&(t&&t(e.tr.delete(i.pos,i.pos+o.nodeSize).scrollIntoView()),!0)},Jm=function(e,t,n){var r=e.selection,i=r.$head,o=i;if(!r.empty)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size)return!1;o=Km(i)}var a=o&&o.nodeAfter;return!(!a||!Sm.isSelectable(a))&&(t&&t(e.tr.setSelection(Sm.create(e.doc,o.pos)).scrollIntoView()),!0)};function Km(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){var n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}var Ym=function(e,t){var n=e.selection,r=n.$head,i=n.$anchor;return!(!r.parent.type.spec.code||!r.sameParent(i))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function Xm(e){for(var t=0;t<e.edgeCount;t++){var n=e.edge(t).type;if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var Qm=function(e,t){var n=e.selection,r=n.$head,i=n.$anchor;if(!r.parent.type.spec.code||!r.sameParent(i))return!1;var o=r.node(-1),a=r.indexAfter(-1),s=Xm(o.contentMatchAt(a));if(!s||!o.canReplaceWith(a,a,s))return!1;if(t){var l=r.after(),c=e.tr.replaceWith(l,l,s.createAndFill());c.setSelection(gm.near(c.doc.resolve(l),1)),t(c.scrollIntoView())}return!0},ev=function(e,t){var n=e.selection,r=n.$from,i=n.$to;if(n instanceof Cm||r.parent.inlineContent||i.parent.inlineContent)return!1;var o=Xm(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){var a=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,s=e.tr.insert(a,o.createAndFill());s.setSelection(wm.create(s.doc,a+1)),t(s.scrollIntoView())}return!0},tv=function(e,t){var n=e.selection.$cursor;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){var r=n.before();if(Yh(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}var i=n.blockRange(),o=i&&Vh(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)};var nv,rv=function(e,t){var n=e.selection,r=n.$from,i=n.$to;if(e.selection instanceof Sm&&e.selection.node.isBlock)return!(!r.parentOffset||!Yh(e.doc,r.pos))&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;for(var o,a,s=[],l=!1,c=!1,u=r.depth;;u--){if(r.node(u).isBlock){l=r.end(u)==r.pos+(r.depth-u),c=r.start(u)==r.pos-(r.depth-u),a=Xm(r.node(u-1).contentMatchAt(r.indexAfter(u-1)));var d=nv&&nv(i.parent,l,r);s.unshift(d||(l&&a?{type:a}:null)),o=u;break}if(1==u)return!1;s.unshift(null)}var f=e.tr;(e.selection instanceof wm||e.selection instanceof Cm)&&f.deleteSelection();var p=f.mapping.map(r.pos),h=Yh(f.doc,p,s.length,s);if(h||(s[0]=a?{type:a}:null,h=Yh(f.doc,p,s.length,s)),!h)return!1;if(f.split(p,s.length,s),!l&&c&&r.node(o).type!=a){var m=f.mapping.map(r.before(o)),v=f.doc.resolve(m);a&&r.node(o-1).canReplaceWith(v.index(),v.index()+1,a)&&f.setNodeMarkup(f.mapping.map(r.before(o)),a)}return t&&t(f.scrollIntoView()),!0};function iv(e,t,n,r){var i,o,a=t.nodeBefore,s=t.nodeAfter,l=a.type.spec.isolating||s.type.spec.isolating;
2if(!l&&function(e,t,n){var r=t.nodeBefore,i=t.nodeAfter,o=t.index();return!!(r&&i&&r.type.compatibleContent(i.type))&&(!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(o,o+1)||!i.isTextblock&&!Xh(e.doc,t.pos))&&(n&&n(e.tr.join(t.pos).scrollIntoView()),!0))}(e,t,n))return!0;var c=!l&&t.parent.canReplace(t.index(),t.index()+1);if(c&&(i=(o=a.contentMatchAt(a.childCount)).findWrapping(s.type))&&o.matchType(i[0]||s.type).validEnd){if(n){for(var u=t.pos+s.nodeSize,d=bp.empty,f=i.length-1;f>=0;f--)d=bp.from(i[f].create(null,d));d=bp.from(a.copy(d));var p=e.tr.step(new Uh(t.pos-1,u,t.pos,u,new Cp(d,1,0),i.length,!0)),h=p.doc.resolve(u+2*i.length);h.nodeAfter&&h.nodeAfter.type==a.type&&Xh(p.doc,h.pos)&&p.join(h.pos),n(p.scrollIntoView())}return!0}var m=s.type.spec.isolating||r>0&&l?null:gm.findFrom(t,1),v=m&&m.$from.blockRange(m.$to),g=v&&Vh(v);if(null!=g&&g>=t.depth)return n&&n(e.tr.lift(v,g).scrollIntoView()),!0;if(c&&Wm(s,"start",!0)&&Wm(a,"end")){for(var y=a,b=[];b.push(y),!y.isTextblock;)y=y.lastChild;for(var x=s,w=1;!x.isTextblock;x=x.firstChild)w++;if(y.canReplace(y.childCount,y.childCount,x.content)){if(n){for(var k=bp.empty,S=b.length-1;S>=0;S--)k=bp.from(b[S].copy(k));n(e.tr.step(new Uh(t.pos-b.length,t.pos+s.nodeSize,t.pos+w,t.pos+s.nodeSize-w,new Cp(k,b.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function ov(e){return function(t,n){for(var r=t.selection,i=e<0?r.$from:r.$to,o=i.depth;i.node(o).isInline;){if(!o)return!1;o--}return!!i.node(o).isTextblock&&(n&&n(t.tr.setSelection(wm.create(t.doc,e<0?i.start(o):i.end(o)))),!0)}}var av=ov(-1),sv=ov(1);function lv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){for(var i=!1,o=0;o<n.selection.ranges.length&&!i;o++){var a=n.selection.ranges[o],s=a.$from.pos,l=a.$to.pos;n.doc.nodesBetween(s,l,(function(r,o){if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)i=!0;else{var a=n.doc.resolve(o),s=a.index();i=a.parent.canReplaceWith(s,s+1,e)}}))}if(!i)return!1;if(r){for(var c=n.tr,u=0;u<n.selection.ranges.length;u++){var d=n.selection.ranges[u],f=d.$from.pos,p=d.$to.pos;c.setBlockType(f,p,e,t)}r(c.scrollIntoView())}return!0}}function cv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){for(var i=0;i<t.length;i++)if(t[i](e,n,r))return!0;return!1}}var uv=cv(Bm,Um,qm),dv=cv(Bm,$m,Jm),fv={Enter:cv(Ym,ev,tv,rv),"Mod-Enter":Qm,Backspace:uv,"Mod-Backspace":uv,"Shift-Backspace":uv,Delete:dv,"Mod-Delete":dv,"Mod-a":function(e,t){return t&&t(e.tr.setSelection(new Cm(e.doc))),!0}},pv={"Ctrl-h":fv.Backspace,"Alt-Backspace":fv["Mod-Backspace"],"Ctrl-d":fv.Delete,"Ctrl-Alt-Backspace":fv["Mod-Delete"],"Alt-Delete":fv["Mod-Delete"],"Alt-d":fv["Mod-Delete"],"Ctrl-a":av,"Ctrl-e":sv};for(var hv in fv)pv[hv]=fv[hv];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&os.platform();function mv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){var i=n.selection,o=i.$from,a=i.$to,s=o.blockRange(a);if(!s)return!1;var l=r?n.tr:null;return!!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=!1,o=t,a=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;var s=a.resolve(t.start-2);o=new zp(s,s,t.depth),t.endIndex<t.parent.childCount&&(t=new zp(t.$from,a.resolve(t.$to.end(t.depth)),t.depth)),i=!0}var l=Gh(o,n,r,t);if(!l)return!1;e&&function(e,t,n,r,i){for(var o=bp.empty,a=n.length-1;a>=0;a--)o=bp.from(n[a].type.create(n[a].attrs,o));e.step(new Uh(t.start-(r?2:0),t.end,t.start,t.end,new Cp(o,0,0),n.length,!0));for(var s=0,l=0;l<n.length;l++)n[l].type==i&&(s=l+1);for(var c=n.length-s,u=t.start+n.length-(r?2:0),d=t.parent,f=t.startIndex,p=t.endIndex,h=!0;f<p;f++,h=!1)!h&&Yh(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=d.child(f).nodeSize}(e,t,l,i,n);return!0}(l,s,e,t)&&(r&&r(l.scrollIntoView()),!0)}}function vv(e){return function(t,n){var r=t.selection,i=r.$from,o=r.$to,a=i.blockRange(o,(function(t){return t.childCount>0&&t.firstChild.type==e}));return!!a&&(!n||(i.node(a.depth-1).type==e?function(e,t,n,r){var i=e.tr,o=r.end,a=r.$to.end(r.depth);o<a&&(i.step(new Uh(o-1,a,o,a,new Cp(bp.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new zp(i.doc.resolve(r.$from.pos),i.doc.resolve(a),r.depth));var s=Vh(r);if(null==s)return!1;i.lift(r,s);var l=i.doc.resolve(i.mapping.map(o,-1)-1);Xh(i.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&i.join(l.pos);return t(i.scrollIntoView()),!0}(t,n,e,a):function(e,t,n){for(var r=e.tr,i=n.parent,o=n.end,a=n.endIndex-1,s=n.startIndex;a>s;a--)o-=i.child(a).nodeSize,r.delete(o-1,o+1);var l=r.doc.resolve(n.start),c=l.nodeAfter;if(r.mapping.map(n.end)!=n.start+l.nodeAfter.nodeSize)return!1;var u=0==n.startIndex,d=n.endIndex==i.childCount,f=l.node(-1),p=l.index(-1);if(!f.canReplace(p+(u?0:1),p+1,c.content.append(d?bp.empty:bp.from(i))))return!1;var h=l.pos,m=h+c.nodeSize;return r.step(new Uh(h-(u?1:0),m+(d?1:0),h+1,m-1,new Cp((u?bp.empty:bp.from(i.copy(bp.empty))).append(d?bp.empty:bp.from(i.copy(bp.empty))),u?0:1,d?0:1),u?0:1)),t(r.scrollIntoView()),!0}(t,n,a)))}}var gv=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},yv=function(e){var t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},bv=null,xv=function(e,t,n){var r=bv||(bv=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},wv=function(e,t,n,r){return n&&(Sv(e,t,n,r,-1)||Sv(e,t,n,r,1))},kv=/^(img|br|input|textarea|hr)$/i;function Sv(e,t,n,r,i){for(var o;;){if(e==n&&t==r)return!0;
2if(t==(i<0?0:jv(e))){var a=e.parentNode;if(!a||1!=a.nodeType||Cv(e)||kv.test(e.nodeName)||"false"==e.contentEditable)return!1;t=gv(e)+(i<0?0:1),e=a}else{if(1!=e.nodeType)return!1;var s=e.childNodes[t+(i<0?-1:0)];if(1==s.nodeType&&"false"==s.contentEditable){if(!(null===(o=s.pmViewDesc)||void 0===o?void 0:o.ignoreForSelection))return!1;t+=i}else e=s,t=i<0?jv(e):0}}}function jv(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Cv(e){for(var t,n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var _v=function(e){return e.focusNode&&wv(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Ev(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}var Nv="undefined"!=typeof navigator?navigator:null,Av="undefined"!=typeof document?document:null,Dv=Nv&&Nv.userAgent||"",Tv=/Edge\/(\d+)/.exec(Dv),Iv=/MSIE \d/.exec(Dv),Pv=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Dv),Fv=!!(Iv||Pv||Tv),Ov=Iv?document.documentMode:Pv?+Pv[1]:Tv?+Tv[1]:0,Mv=!Fv&&/gecko\/(\d+)/i.test(Dv);Mv&&(/Firefox\/(\d+)/.exec(Dv)||[0,0])[1];var Zv=!Fv&&/Chrome\/(\d+)/.exec(Dv),Rv=!!Zv,Lv=Zv?+Zv[1]:0,Bv=!Fv&&!!Nv&&/Apple Computer/.test(Nv.vendor),zv=Bv&&(/Mobile\/\w+/.test(Dv)||!!Nv&&Nv.maxTouchPoints>2),Uv=zv||!!Nv&&/Mac/.test(Nv.platform),Hv=!!Nv&&/Win/.test(Nv.platform),Wv=/Android \d/.test(Dv),qv=!!Av&&"webkitFontSmoothing"in Av.documentElement.style,Vv=qv?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Gv(e){var t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function $v(e,t){return"number"==typeof e?e:e[t]}function Jv(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function Kv(e,t,n){for(var r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument,a=n||e.dom;a;)if(1==a.nodeType){var s=a,l=s==o.body,c=l?Gv(o):Jv(s),u=0,d=0;if(t.top<c.top+$v(r,"top")?d=-(c.top-t.top+$v(i,"top")):t.bottom>c.bottom-$v(r,"bottom")&&(d=t.bottom-t.top>c.bottom-c.top?t.top+$v(i,"top")-c.top:t.bottom-c.bottom+$v(i,"bottom")),t.left<c.left+$v(r,"left")?u=-(c.left-t.left+$v(i,"left")):t.right>c.right-$v(r,"right")&&(u=t.right-c.right+$v(i,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{var f=s.scrollLeft,p=s.scrollTop;d&&(s.scrollTop+=d),u&&(s.scrollLeft+=u);var h=s.scrollLeft-f,m=s.scrollTop-p;t={left:t.left-h,top:t.top-m,right:t.right-h,bottom:t.bottom-m}}var v=l?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(v))break;a="absolute"==v?a.offsetParent:yv(a)}else a=yv(a)}function Yv(e){for(var t=[],n=e.ownerDocument,r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=yv(r));return t}function Xv(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=r.dom,o=r.top,a=r.left;i.scrollTop!=o+t&&(i.scrollTop=o+t),i.scrollLeft!=a&&(i.scrollLeft=a)}}var Qv=null;function eg(e,t){for(var n,r,i,o,a=2e8,s=0,l=t.top,c=t.top,u=e.firstChild,d=0;u;u=u.nextSibling,d++){var f=void 0;if(1==u.nodeType)f=u.getClientRects();else{if(3!=u.nodeType)continue;f=xv(u).getClientRects()}for(var p=0;p<f.length;p++){var h=f[p];if(h.top<=l&&h.bottom>=c){l=Math.max(h.bottom,l),c=Math.min(h.top,c);var m=h.left>t.left?h.left-t.left:h.right<t.left?t.left-h.right:0;if(m<a){n=u,a=m,r=m&&3==n.nodeType?{left:h.right<t.left?h.right:h.left,top:t.top}:t,1==u.nodeType&&m&&(s=d+(t.left>=(h.left+h.right)/2?1:0));continue}}else h.top>t.top&&!i&&h.left<=t.left&&h.right>=t.left&&(i=u,o={left:Math.max(h.left,Math.min(h.right,t.left)),top:h.top});!n&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(s=d+1)}}return!n&&i&&(n=i,r=o,a=0),n&&3==n.nodeType?function(e,t){for(var n,r=e.nodeValue.length,i=document.createRange(),o=0;o<r;o++){i.setEnd(e,o+1),i.setStart(e,o);var a=og(i,1);if(a.top!=a.bottom&&tg(t,a)){n={node:e,offset:o+(t.left>=(a.left+a.right)/2?1:0)};break}}return i.detach(),n||{node:e,offset:0}}(n,r):!n||a&&1==n.nodeType?{node:e,offset:s}:eg(n,r)}function tg(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>
2=t.top-1&&e.top<=t.bottom+1}function ng(e,t,n){var r=e.childNodes.length;if(r&&n.top<n.bottom)for(var i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),o=i;;){var a=e.childNodes[o];if(1==a.nodeType)for(var s=a.getClientRects(),l=0;l<s.length;l++){var c=s[l];if(tg(t,c))return ng(a,t,c)}if((o=(o+1)%r)==i)break}return e}function rg(e,t){var n,r=e.dom.ownerDocument,i=0,o=function(e,t,n){if(e.caretPositionFromPoint)try{var r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(jv(r.offsetNode),r.offset)}}catch(o){}if(e.caretRangeFromPoint){var i=e.caretRangeFromPoint(t,n);if(i)return{node:i.startContainer,offset:Math.min(jv(i.startContainer),i.startOffset)}}}(r,t.left,t.top);o&&(n=o.node,i=o.offset);var a,s=(e.root.elementFromPoint?e.root:r).elementFromPoint(t.left,t.top);if(!s||!e.dom.contains(1!=s.nodeType?s.parentNode:s)){var l=e.dom.getBoundingClientRect();if(!tg(t,l))return null;if(!(s=ng(e.dom,t,l)))return null}if(Bv)for(var c=s;n&&c;c=yv(c))c.draggable&&(n=void 0);if(s=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(s,t),n){if(Mv&&1==n.nodeType&&(i=Math.min(i,n.childNodes.length))<n.childNodes.length){var u,d=n.childNodes[i];"IMG"==d.nodeName&&(u=d.getBoundingClientRect()).right<=t.left&&u.bottom>t.top&&i++}var f;qv&&i&&1==n.nodeType&&1==(f=n.childNodes[i-1]).nodeType&&"false"==f.contentEditable&&f.getBoundingClientRect().top>=t.top&&i--,n==e.dom&&i==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?a=e.state.doc.content.size:0!=i&&1==n.nodeType&&"BR"==n.childNodes[i-1].nodeName||(a=function(e,t,n,r){for(var i=-1,o=t,a=!1;o!=e.dom;){var s=e.docView.nearestDesc(o,!0),l=void 0;if(!s)return null;if(1==s.dom.nodeType&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((l=s.dom.getBoundingClientRect()).width||l.height)&&(s.node.isBlock&&s.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(s.dom.nodeName)&&(!a&&l.left>r.left||l.top>r.top?i=s.posBefore:(!a&&l.right<r.left||l.bottom<r.top)&&(i=s.posAfter),a=!0),!s.contentDOM&&i<0&&!s.node.isText))return(s.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?s.posBefore:s.posAfter;o=s.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}(e,n,i,t))}null==a&&(a=function(e,t,n){var r=eg(t,n),i=r.node,o=r.offset,a=-1;if(1==i.nodeType&&!i.firstChild){var s=i.getBoundingClientRect();a=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(i,o,a)}(e,s,t));var p=e.docView.nearestDesc(s,!0);return{pos:a,inside:p?p.posAtStart-p.border:-1}}function ig(e){return e.top<e.bottom||e.left<e.right}function og(e,t){var n=e.getClientRects();if(n.length){var r=n[t<0?0:n.length-1];if(ig(r))return r}return Array.prototype.find.call(n,ig)||e.getBoundingClientRect()}var ag=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function sg(e,t,n){var r=e.docView.domFromPos(t,n<0?-1:1),i=r.node,o=r.offset,a=r.atom,s=qv||Mv;if(3==i.nodeType){if(!s||!ag.test(i.nodeValue)&&(n<0?o:o!=i.nodeValue.length)){var l=o,c=o,u=n<0?1:-1;return n<0&&!o?(c++,u=-1):n>=0&&o==i.nodeValue.length?(l--,u=1):n<0?l--:c++,lg(og(xv(i,l,c),u),u<0)}var d=og(xv(i,o,o),n);if(Mv&&o&&/\s/.test(i.nodeValue[o-1])&&o<i.nodeValue.length){var f=og(xv(i,o-1,o-1),-1);if(f.top==d.top){var p=og(xv(i,o,o+1),-1);if(p.top!=d.top)return lg(p,p.left<f.left)}}return d}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(null==a&&o&&(n<0||o==jv(i))){var h=i.childNodes[o-1];if(1==h.nodeType)return cg(h.getBoundingClientRect(),!1)}if(null==a&&o<jv(i)){var m=i.childNodes[o];if(1==m.nodeType)return cg(m.getBoundingClientRect(),!0)}return cg(i.getBoundingClientRect(),n>=0)}if(null==a&&o&&(n<0||o==jv(i))){var v=i.childNodes[o-1],g=3==v.nodeType?xv(v,jv(v)-(s?0:1)):1!=v.nodeType||"BR"==v.nodeName&&v.nextSibling?null:v;if(g)return lg(og(g,1),!1)}if(null==a&&o<jv(i)){for(var y=i.childNodes[o];y.pmViewDesc&&y.pmViewDesc.ignoreForCoords;)y=y.nextSibling;var b=y?3==y.nodeType?xv(y,0,s?0:1):1==y.nodeType?y:null:null;if(b)return lg(og(b,-1),!0)}return lg(og(3==i.nodeType?xv(i):i,-n),n>=0)}function lg(e,t){if(0==e.width)return e;var n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function cg(e,t){if(0==e.height)return e;var n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function ug(e,t,n){var r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}var dg=/[\u0590-\u08ac]/;var fg=null,pg=null,hg=!1;function mg(e,t,n){return fg==t&&pg==n?hg:(fg=t,pg=n,hg="up"==n||"down"==n?function(e,t,n){var r=t.selection,i="up"==n?r.$from:r.$to;return ug(e,t,(function(){for(var t=e.docView.domFromPos(i.pos,"up"==n?-1:1).node;;){var r=e.docView.nearestDesc(t,!0);if(!r)break;
2if(r.node.isBlock){t=r.contentDOM||r.dom;break}t=r.dom.parentNode}for(var o=sg(e,i.pos,1),a=t.firstChild;a;a=a.nextSibling){var s=void 0;if(1==a.nodeType)s=a.getClientRects();else{if(3!=a.nodeType)continue;s=xv(a,0,a.nodeValue.length).getClientRects()}for(var l=0;l<s.length;l++){var c=s[l];if(c.bottom>c.top+1&&("up"==n?o.top-c.top>2*(c.bottom-o.top):c.bottom-o.bottom>2*(o.bottom-c.top)))return!1}}return!0}))}(e,t,n):function(e,t,n){var r=t.selection.$head;if(!r.parent.isTextblock)return!1;var i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=e.domSelection();return s?dg.test(r.parent.textContent)&&s.modify?ug(e,t,(function(){var t=e.domSelectionRange(),i=t.focusNode,o=t.focusOffset,a=t.anchorNode,l=t.anchorOffset,c=s.caretBidiLevel;s.modify("move",n,"character");var u=r.depth?e.docView.domAfterPos(r.before()):e.dom,d=e.domSelectionRange(),f=d.focusNode,p=d.focusOffset,h=f&&!u.contains(1==f.nodeType?f:f.parentNode)||i==f&&o==p;try{s.collapse(a,l),i&&(i!=a||o!=l)&&s.extend&&s.extend(i,o)}catch(m){}return null!=c&&(s.caretBidiLevel=c),h})):"left"==n||"backward"==n?o:a:r.pos==r.start()||r.pos==r.end()}(e,t,n))}var vg=function(){function e(t,n,r,i){(0,ha.Z)(this,e),this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=0,r.pmViewDesc=this}return(0,ma.Z)(e,[{key:"matchesWidget",value:function(e){return!1}},{key:"matchesMark",value:function(e){return!1}},{key:"matchesNode",value:function(e,t,n){return!1}},{key:"matchesHack",value:function(e){return!1}},{key:"parseRule",value:function(){return null}},{key:"stopEvent",value:function(e){return!1}},{key:"size",get:function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e}},{key:"border",get:function(){return 0}},{key:"destroy",value:function(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(var e=0;e<this.children.length;e++)this.children[e].destroy()}},{key:"posBeforeChild",value:function(e){for(var t=0,n=this.posAtStart;;t++){var r=this.children[t];if(r==e)return n;n+=r.size}}},{key:"posBefore",get:function(){return this.parent.posBeforeChild(this)}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}},{key:"posAfter",get:function(){return this.posBefore+this.size}},{key:"posAtEnd",get:function(){return this.posAtStart+this.size-2*this.border}},{key:"localPosFromDOM",value:function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var r,i;if(e==this.contentDOM)r=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.previousSibling}for(;r&&(!(i=r.pmViewDesc)||i.parent!=this);)r=r.previousSibling;return r?this.posBeforeChild(i)+i.size:this.posAtStart}var o,a;if(e==this.contentDOM)o=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&(!(a=o.pmViewDesc)||a.parent!=this);)o=o.nextSibling;return o?this.posBeforeChild(a):this.posAtEnd}var s;if(e==this.dom&&this.contentDOM)s=t>gv(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))s=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var l=e;;l=l.parentNode){if(l==this.dom){s=!1;break}if(l.previousSibling)break}if(null==s&&t==e.childNodes.length)for(var c=e;;c=c.parentNode){if(c==this.dom){s=!0;break}if(c.nextSibling)break}}return(null==s?n>0:s)?this.posAtEnd:this.posAtStart}},{key:"nearestDesc",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!0,r=e;r;r=r.parentNode){var i=this.getDesc(r),o=void 0;if(i&&(!t||i.node)){if(!n||!(o=i.nodeDOM)||(1==o.nodeType?o.contains(1==e.nodeType?e:e.parentNode):o==e))return i;n=!1}}}},{key:"getDesc",value:function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t}},{key:"posFromDOM",value:function(e,t,n){for(var r=e;r;r=r.parentNode){var i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}},{key:"descAt",value:function(e){for(var t=0,n=0;t<this.children.length;t++){var r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(var o=0;o<r.children.length;o++){var a=r.children[o];if(a.size){r=a;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}},{key:"domFromPos",value:function(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};for(var n,r=0,i=0,o=0;r<this.children.length;r++){var a=this.children[r],s=o+a.size;if(s>e||a instanceof Sg){i=e-o;break}o=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,t);for(;r&&!(n=this.children[r-1]).size&&n instanceof gg&&n.side>=0;r--);if(t<=0){for(var l,c=!0;(l=r?this.children[r-1]:null)&&l.dom.parentNode!=this.contentDOM;r--,c=!1);return l&&t&&c&&!l.border&&!l.domAtom?l.domFromPos(l.size,t):{node:this.contentDOM,offset:l?gv(l.dom)+1:0}}for(var u,d=!0;(u=r<this.children.length?this.children[r]:null)&&u.dom.parentNode!=this.contentDOM;r++,d=!1);return u&&d&&!u.border&&!u.domAtom?u.domFromPos(0,t):{node:this.contentDOM,offset:u?gv(u.dom):this.contentDOM.childNodes.length}}},{key:"parseRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var r=-1,i=-1,o=n,a=0;;a++){var s=this.children[a],l=o+s.size;if(-1==r&&e<=l){var c=o+s.border;if(e>=c&&t<=l-s.border&&s.node&&s.contentDOM&&this.contentDOM.contains(s.contentDOM))return s.parseRange(e,t,c);e=o;for(var u=a;u>0;u--){var d=this.children[u-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){r=gv(d.dom)+1;break}e-=d.size}-1==r&&(r=0)}if(r>-1&&(l>t||a==this.children.length-1)){t=l;for(var f=a+1;f<this.children.length;f++){var p=this.children[f];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(-1)){i=gv(p.dom);break}t+=p.size}-1==i&&(i=this.contentDOM.childNodes.length);break}o=l}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}},{key:"emptyChildAt",value:function(e){if(this.border||!this.contentDOM||!this.children.length)return!1;var t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}},{key:"domAfterPos",value:function(e){var t=this.domFromPos(e,0),n=t.node,r=t.offset;if(1!=n.nodeType||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}},{key:"setSelection",value:function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=Math.min(e,t),o=Math.max(e,t),a=0,s=0;a<this.children.length;a++){var l=this.children[a],c=s+l.size;if(i>s&&o<c)return l.setSelection(e-s-l.border,t-s-l.border,n,r);s=c}var u=this.domFromPos(e,e?-1:1),d=t==e?u:this.domFromPos(t,t?-1:1),f=n.root.getSelection(),p=n.domSelectionRange(),h=!1;if((Mv||Bv)&&e==t){var m=u,v=m.node,g=m.offset;if(3==v.nodeType){if((h=!(!g||"\n"!=v.nodeValue[g-1]))&&g==v.nodeValue.length)for(var y,b=v;b;b=b.parentNode){if(y=b.nextSibling){"BR"==y.nodeName&&(u=d={node:y.parentNode,offset:gv(y)+1});break}
2var x=b.pmViewDesc;if(x&&x.node&&x.node.isBlock)break}}else{var w=v.childNodes[g-1];h=w&&("BR"==w.nodeName||"false"==w.contentEditable)}}if(Mv&&p.focusNode&&p.focusNode!=d.node&&1==p.focusNode.nodeType){var k=p.focusNode.childNodes[p.focusOffset];k&&"false"==k.contentEditable&&(r=!0)}if(r||h&&Bv||!wv(u.node,u.offset,p.anchorNode,p.anchorOffset)||!wv(d.node,d.offset,p.focusNode,p.focusOffset)){var S=!1;if((f.extend||e==t)&&(!h||!Mv)){f.collapse(u.node,u.offset);try{e!=t&&f.extend(d.node,d.offset),S=!0}catch(_){}}if(!S){if(e>t){var j=u;u=d,d=j}var C=document.createRange();C.setEnd(d.node,d.offset),C.setStart(u.node,u.offset),f.removeAllRanges(),f.addRange(C)}}}},{key:"ignoreMutation",value:function(e){return!this.contentDOM&&"selection"!=e.type}},{key:"contentLost",get:function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}},{key:"markDirty",value:function(e,t){for(var n=0,r=0;r<this.children.length;r++){var i=this.children[r],o=n+i.size;if(n==o?e<=o&&t>=n:e<o&&t>n){var a=n+i.border,s=o-i.border;if(e>=a&&t<=s)return this.dirty=e==n||t==o?2:1,void(e!=a||t!=s||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(e-a,t-a):i.dirty=3);i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?3:2}n=o}this.dirty=2}},{key:"markParentsDirty",value:function(){for(var e=1,t=this.parent;t;t=t.parent,e++){var n=1==e?2:1;t.dirty<n&&(t.dirty=n)}}},{key:"domAtom",get:function(){return!1}},{key:"ignoreForCoords",get:function(){return!1}},{key:"ignoreForSelection",get:function(){return!1}},{key:"isText",value:function(e){return!1}}]),e}(),gg=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i,o){var a;(0,ha.Z)(this,n);var s,l=r.type.toDOM;if("function"==typeof l&&(l=l(i,(function(){return s?s.parent?s.parent.posBeforeChild(s):void 0:o}))),!r.type.spec.raw){if(1!=l.nodeType){var c=document.createElement("span");c.appendChild(l),l=c}l.contentEditable="false",l.classList.add("ProseMirror-widget")}return(a=t.call(this,e,[],l,null)).widget=r,a.widget=r,s=(0,Ec.Z)(a),a}return(0,ma.Z)(n,[{key:"matchesWidget",value:function(e){return 0==this.dirty&&e.type.eq(this.widget.type)}},{key:"parseRule",value:function(){return{ignore:!0}}},{key:"stopEvent",value:function(e){var t=this.widget.spec.stopEvent;return!!t&&t(e)}},{key:"ignoreMutation",value:function(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}},{key:"destroy",value:function(){this.widget.type.destroy(this.dom),(0,pp.Z)((0,hp.Z)(n.prototype),"destroy",this).call(this)}},{key:"domAtom",get:function(){return!0}},{key:"ignoreForSelection",get:function(){return!!this.widget.type.spec.relaxedSide}},{key:"side",get:function(){return this.widget.type.side}}]),n}(vg),yg=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i,o){var a;return(0,ha.Z)(this,n),(a=t.call(this,e,[],r,null)).textDOM=i,a.text=o,a}return(0,ma.Z)(n,[{key:"size",get:function(){return this.text.length}},{key:"localPosFromDOM",value:function(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}},{key:"domFromPos",value:function(e){return{node:this.textDOM,offset:e}}},{key:"ignoreMutation",value:function(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}]),n}(vg),bg=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i,o,a){var s;return(0,ha.Z)(this,n),(s=t.call(this,e,[],i,o)).mark=r,s.spec=a,s}return(0,ma.Z)(n,[{key:"parseRule",value:function(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}},{key:"matchesMark",value:function(e){return 3!=this.dirty&&this.mark.eq(e)}},{key:"markDirty",value:function(e,t){if((0,pp.Z)((0,hp.Z)(n.prototype),"markDirty",this).call(this,e,t),0!=this.dirty){for(var r=this.parent;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=0}}},{key:"slice",value:function(e,t,r){var i=n.create(this.parent,this.mark,!0,r),o=this.children,a=this.size;t<a&&(o=Mg(o,t,a,r)),e>0&&(o=Mg(o,0,e,r));for(var s=0;s<o.length;s++)o[s].parent=i;return i.children=o,i}},{key:"ignoreMutation",value:function(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):(0,pp.Z)((0,hp.Z)(n.prototype),"ignoreMutation",this).call(this,e)}},{key:"destroy",value:function(){this.spec.destroy&&this.spec.destroy(),(0,pp.Z)((0,hp.Z)(n.prototype),"destroy",this).call(this)}}],[{key:"create",value:function(e,t,r,i){var o=i.nodeViews[t.type.n
2ame],a=o&&o(t,i,r);return a&&a.dom||(a=wh.renderSpec(document,t.type.spec.toDOM(t,r),null,t.attrs)),new n(e,t,a.dom,a.contentDOM||a.dom,a)}}]),n}(vg),xg=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i,o,a,s,l,c,u){var d;return(0,ha.Z)(this,n),(d=t.call(this,e,[],a,s)).node=r,d.outerDeco=i,d.innerDeco=o,d.nodeDOM=l,d}return(0,ma.Z)(n,[{key:"parseRule",value:function(){var e=this;if(this.node.type.spec.reparseInView)return null;var t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(var n=this.children.length-1;n>=0;n--){var r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=function(){return bp.empty})}else t.contentElement=this.contentDOM;else t.getContent=function(){return e.node.content};return t}},{key:"matchesNode",value:function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&Ig(t,this.outerDeco)&&n.eq(this.innerDeco)}},{key:"size",get:function(){return this.node.nodeSize}},{key:"border",get:function(){return this.node.isLeaf?0:1}},{key:"updateChildren",value:function(e,t){var n=this,r=this.node.inlineContent,i=t,o=e.composing?this.localCompositionInfo(e,t):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new Fg(this,a&&a.node,e);!function(e,t,n,r){var i=t.locals(e),o=0;if(0==i.length){for(var a=0;a<e.childCount;a++){var s=e.child(a);r(s,i,t.forChild(o,s),a),o+=s.nodeSize}return}for(var l=0,c=[],u=null,d=0;;){for(var f=void 0,p=void 0;l<i.length&&i[l].to==o;){var h=i[l++];h.widget&&(f?(p||(p=[f])).push(h):f=h)}if(f)if(p){p.sort(Og);for(var m=0;m<p.length;m++)n(p[m],d,!!u)}else n(f,d,!!u);var v=void 0,g=void 0;if(u)g=-1,v=u,u=null;else{if(!(d<e.childCount))break;g=d,v=e.child(d++)}for(var y=0;y<c.length;y++)c[y].to<=o&&c.splice(y--,1);for(;l<i.length&&i[l].from<=o&&i[l].to>o;)c.push(i[l++]);var b=o+v.nodeSize;if(v.isText){var x=b;l<i.length&&i[l].from<x&&(x=i[l].from);for(var w=0;w<c.length;w++)c[w].to<x&&(x=c[w].to);x<b&&(u=v.cut(x-o),v=v.cut(0,x-o),b=x,g=-1)}else for(;l<i.length&&i[l].to<b;)l++;var k=v.isInline&&!v.isLeaf?c.filter((function(e){return!e.inline})):c.slice();r(v,k,t.forChild(o,v),g),o=b}}(this.node,this.innerDeco,(function(t,o,a){t.spec.marks?l.syncToMarks(t.spec.marks,r,e,o):t.type.side>=0&&!a&&l.syncToMarks(o==n.node.childCount?Sp.none:n.node.child(o).marks,r,e,o),l.placeWidget(t,e,i)}),(function(t,n,a,c){var u;
2l.syncToMarks(t.marks,r,e,c),l.findNodeMatch(t,n,a,c)||s&&e.state.selection.from>i&&e.state.selection.to<i+t.nodeSize&&(u=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(t,n,a,u,e)||l.updateNextNode(t,n,a,e,c,i)||l.addNode(t,n,a,e,i),i+=t.nodeSize})),l.syncToMarks([],r,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(a&&this.protectLocalComposition(e,a),Cg(this.contentDOM,this.children,e),zv&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){var t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}},{key:"localCompositionInfo",value:function(e,t){var n=e.state.selection,r=n.from,i=n.to;if(!(e.state.selection instanceof wm)||r<t||i>t+this.node.content.size)return null;var o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){var a=o.nodeValue,s=function(e,t,n,r){for(var i=0,o=0;i<e.childCount&&o<=r;){var a=e.child(i++),s=o;if(o+=a.nodeSize,a.isText){for(var l=a.text;i<e.childCount;){var c=e.child(i++);if(o+=c.nodeSize,!c.isText)break;l+=c.text}if(o>=n){if(o>=r&&l.slice(r-t.length-s,r-s)==t)return r-t.length;var u=s<r?l.lastIndexOf(t,r-s-1):-1;if(u>=0&&u+t.length+s>=n)return s+u;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}}return-1}(this.node.content,a,r-t,i-t);return s<0?null:{node:o,pos:s,text:a}}return{node:o,pos:-1,text:""}}},{key:"protectLocalComposition",value:function(e,t){var n=t.node,r=t.pos,i=t.text;if(!this.getDesc(n)){for(var o=n;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}var a=new yg(this,o,n,i);e.input.compositionNodes.push(a),this.children=Mg(this.children,r,r+i.length,e,a)}}},{key:"update",value:function(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}},{key:"updateInner",value:function(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}},{key:"updateOuterDeco",value:function(e){if(!Ig(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=Ag(this.dom,this.nodeDOM,Ng(this.outerDeco,this.node,t),Ng(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}}},{key:"selectNode",value:function(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.nodeDOM.draggable=!0))}},{key:"deselectNode",value:function(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.nodeDOM.removeAttribute("draggable"))}},{key:"domAtom",get:function(){return this.node.isAtom}}],[{key:"create",value:function(e,t,r,i,o,a){var s,l=o.nodeViews[t.type.name],c=l&&l(t,o,(function(){return s?s.parent?s.parent.posBeforeChild(s):void 0:a}),r,i),u=c&&c.dom,d=c&&c.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else if(!u){var f=wh.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);u=f.dom,d=f.contentDOM}d||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));var p=u;return u=Tg(u,r,t),c?s=new jg(e,t,r,i,u,d||null,p,c,o,a+1):t.isText?new kg(e,t,r,i,u,p,o):new n(e,t,r,i,u,d||null,p,o,a+1)}}]),n}(vg);function wg(e,t,n,r,i){Tg(r,t,e);var o=new xg(void 0,e,t,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}var kg=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i,o,a,s,l){return(0,ha.Z)(this,n),t.call(this,e,r,i,o,a,null,s,l,0)}return(0,ma.Z)(n,[{key:"parseRule",value:function(){for(var e=this.nodeDOM.parentNode;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}},{key:"update",value:function(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,!0)}},{key:"inParent",value:function(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}},{key:"domFromPos",value:function(e){return{node:this.nodeDOM,offset:e}}},{key:"localPosFromDOM",value:function(e,t,r){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):(0,pp.Z)((0,hp.Z)(n.prototype),"localPosFromDOM",this).call(this,e,t,r)}},{key:"ignoreMutation",value:function(e){return"characterData"!=e.type&&"selection"!=e.type}},{key:"slice",value:function(e,t,r){var i=this.node.cut(e,t),o=document.createTextNode(i.text);return new n(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}},{key:"markDirty",value:function(e,t){(0,pp.Z)((0,hp.Z)(n.prototype),"markDirty",this).call(this,e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=3)}},{key:"domAtom",get:function(){return!1}},{key:"isText",value:function(e){return this.node.text==e}}]),n}(xg),Sg=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(){return(0,ha.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"parseRule",value:function(){return{ignore:!0}}},{key:"matchesHack",value:function(e){return 0==this.dirty&&this.dom.nodeName==e}},{key:"domAtom",get:function(){return!0}},{key:"ignoreForCoords",get:function(){return"IMG"==this.dom.nodeName}}]),n}(vg),jg=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i,o,a,s,l,c,u,d){var f;return(0,ha.Z)(this,n),(f=t.call(this,e,r,i,o,a,s,l,u,d)).spec=c,f}return(0,ma.Z)(n,[{key:"update",value:function(e,t,r,i){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){var o=this.spec.update(e,t,r);
2return o&&this.updateInner(e,t,r,i),o}return!(!this.contentDOM&&!e.isLeaf)&&(0,pp.Z)((0,hp.Z)(n.prototype),"update",this).call(this,e,t,r,i)}},{key:"selectNode",value:function(){this.spec.selectNode?this.spec.selectNode():(0,pp.Z)((0,hp.Z)(n.prototype),"selectNode",this).call(this)}},{key:"deselectNode",value:function(){this.spec.deselectNode?this.spec.deselectNode():(0,pp.Z)((0,hp.Z)(n.prototype),"deselectNode",this).call(this)}},{key:"setSelection",value:function(e,t,r,i){this.spec.setSelection?this.spec.setSelection(e,t,r.root):(0,pp.Z)((0,hp.Z)(n.prototype),"setSelection",this).call(this,e,t,r,i)}},{key:"destroy",value:function(){this.spec.destroy&&this.spec.destroy(),(0,pp.Z)((0,hp.Z)(n.prototype),"destroy",this).call(this)}},{key:"stopEvent",value:function(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}},{key:"ignoreMutation",value:function(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):(0,pp.Z)((0,hp.Z)(n.prototype),"ignoreMutation",this).call(this,e)}}]),n}(xg);function Cg(e,t,n){for(var r=e.firstChild,i=!1,o=0;o<t.length;o++){var a=t[o],s=a.dom;if(s.parentNode==e){for(;s!=r;)r=Pg(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(a instanceof bg){var l=r?r.previousSibling:e.lastChild;Cg(a.contentDOM,a.children,n),r=l?l.nextSibling:e.firstChild}}for(;r;)r=Pg(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var _g=function(e){e&&(this.nodeName=e)};_g.prototype=Object.create(null);var Eg=[new _g];function Ng(e,t,n){if(0==e.length)return Eg;for(var r=n?Eg[0]:new _g,i=[r],o=0;o<e.length;o++){var a=e[o].type.attrs;if(a)for(var s in a.nodeName&&i.push(r=new _g(a.nodeName)),a){var l=a[s];null!=l&&(n&&1==i.length&&i.push(r=new _g(t.isInline?"span":"div")),"class"==s?r.class=(r.class?r.class+" ":"")+l:"style"==s?r.style=(r.style?r.style+";":"")+l:"nodeName"!=s&&(r[s]=l))}}return i}function Ag(e,t,n,r){if(n==Eg&&r==Eg)return t;for(var i=t,o=0;o<r.length;o++){var a=r[o],s=n[o];if(o){var l=void 0;s&&s.nodeName==a.nodeName&&i!=e&&(l=i.parentNode)&&l.nodeName.toLowerCase()==a.nodeName||((l=document.createElement(a.nodeName)).pmIsDeco=!0,l.appendChild(i),s=Eg[0]),i=l}Dg(i,s||Eg[0],a)}return i}function Dg(e,t,n){for(var r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(var i in n)"class"!=i&&"style"!=i&&"nodeName"!=i&&n[i]!=t[i]&&e.setAttribute(i,n[i]);if(t.class!=n.class){for(var o=t.class?t.class.split(" ").filter(Boolean):[],a=n.class?n.class.split(" ").filter(Boolean):[],s=0;s<o.length;s++)-1==a.indexOf(o[s])&&e.classList.remove(o[s]);for(var l=0;l<a.length;l++)-1==o.indexOf(a[l])&&e.classList.add(a[l]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style)for(var c,u=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;c=u.exec(t.style);)e.style.removeProperty(c[1]);n.style&&(e.style.cssText+=n.style)}}function Tg(e,t,n){return Ag(e,e,Eg,Ng(t,n,1!=e.nodeType))}function Ig(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function Pg(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var Fg=function(){function e(t,n,r){(0,ha.Z)(this,e),this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=function(e,t){var n=t,r=n.children.length,i=e.childCount,o=new Map,a=[];e:for(;i>0;){for(var s=void 0;;)if(r){var l=n.children[r-1];if(!(l instanceof bg)){s=l,r--;break}n=l,r=l.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}var c=s.node;if(c){if(c!=e.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}(t.node.content,t)}return(0,ma.Z)(e,[{key:"destroyBetween",value:function(e,t){if(e!=t){for(var n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}},{key:"destroyRest",value:function(){this.destroyBetween(this.index,this.top.children.length)}},{key:"syncToMarks",value:function(e,t,n,r){for(var i=0,o=this.stack.length>>1,a=Math.min(o,e.length);i<a&&(i==o-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&!1!==e[i].type.spec.spanning;)i++;for(;i<o;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);var s=-1,l=this.top.children.length;r<this.preMatch.index&&(l=Math.min(this.index+3,l));for(var c=this.index;c<l;c++){var u=this.top.children[c];if(u.matchesMark(e[o])&&!this.isLocked(u.dom)){s=c;break}}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];
2else{var d=bg.create(this.top,e[o],t,n);this.top.children.splice(this.index,0,d),this.top=d,this.changed=!0}this.index=0,o++}}},{key:"findNodeMatch",value:function(e,t,n,r){var i,o=-1;if(r>=this.preMatch.index&&(i=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&i.matchesNode(e,t,n))o=this.top.children.indexOf(i,this.index);else for(var a=this.index,s=Math.min(this.top.children.length,a+5);a<s;a++){var l=this.top.children[a];if(l.matchesNode(e,t,n)&&!this.preMatch.matched.has(l)){o=a;break}}return!(o<0)&&(this.destroyBetween(this.index,o),this.index++,!0)}},{key:"updateNodeAt",value:function(e,t,n,r,i){var o=this.top.children[r];return 3==o.dirty&&o.dom==o.contentDOM&&(o.dirty=2),!!o.update(e,t,n,i)&&(this.destroyBetween(this.index,r),this.index++,!0)}},{key:"findIndexWithChild",value:function(e){for(;;){var t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){var n=e.pmViewDesc;if(n)for(var r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==n)return r;return-1}e=t}}},{key:"updateNextNode",value:function(e,t,n,r,i,o){for(var a=this.index;a<this.top.children.length;a++){var s=this.top.children[a];if(s instanceof xg){var l=this.preMatch.matched.get(s);if(null!=l&&l!=i)return!1;var c=s.dom,u=void 0,d=this.isLocked(c)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&Ig(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,a),s.dom!=c&&(this.changed=!0),this.index++,!0;if(!d&&(u=this.recreateWrapper(s,e,t,n,r,o)))return this.destroyBetween(this.index,a),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=2,u.updateChildren(r,o+1),u.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}},{key:"recreateWrapper",value:function(e,t,n,r,i,o){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!Ig(n,e.outerDeco)||!r.eq(e.innerDeco))return null;var a=xg.create(this.top,t,n,r,i,o);if(a.contentDOM){a.children=e.children,e.children=[];var s,l=(0,ua.Z)(a.children);try{for(l.s();!(s=l.n()).done;){s.value.parent=a}}catch(c){l.e(c)}finally{l.f()}}return e.destroy(),a}},{key:"addNode",value:function(e,t,n,r,i){var o=xg.create(this.top,e,t,n,r,i);o.contentDOM&&o.updateChildren(r,i+1),this.top.children.splice(this.index++,0,o),this.changed=!0}},{key:"placeWidget",value:function(e,t,n){var r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){var i=new gg(this.top,e,t,n);this.top.children.splice(this.index++,0,i),this.changed=!0}else this.index++}},{key:"addTextblockHacks",value:function(){for(var e=this.top.children[this.index-1],t=this.top;e instanceof bg;)e=(t=e).children[t.children.length-1];(!e||!(e instanceof kg)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Bv||Rv)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}},{key:"addHackNode",value:function(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{var n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");var r=new Sg(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}},{key:"isLocked",value:function(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}]),e}();function Og(e,t){return e.type.side-t.type.side}function Mg(e,t,n,r,i){for(var o=[],a=0,s=0;a<e.length;a++){var l=e[a],c=s,u=s+=l.size;c>=n||u<=t?o.push(l):(c<t&&o.push(l.slice(0,t-c,r)),i&&(o.push(i),i=void 0),u>n&&o.push(l.slice(n-c,l.size,r)))}return o}function Zg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;var i=e.docView.nearestDesc(n.focusNode),o=i&&0==i.size,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;var s,l,c=r.resolve(a);if(_v(n)){for(s=a;i&&!i.node;)i=i.parent;var u=i.node;if(i&&u.isAtom&&Sm.isSelectable(u)&&i.parent&&(!u.isInline||!function(e,t,n){for(var r=0==t,i=t==jv(e);r||i;){if(e==n)return!0;var o=gv(e);if(!(e=e.parentNode))return!1;r=r&&0==o,i=i&&o==jv(e)}}(n.focusNode,n.focusOffset,i.dom))){var d=i.posBefore;l=new Sm(a==d?c:r.resolve(d))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){for(var f=a,h=a,m=0;m<n.rangeCount;m++){var v=n.getRangeAt(m);f=Math.min(f,e.docView.posFromDOM(v.startContainer,v.startOffset,1)),h=Math.max(h,e.docView.posFromDOM(v.endContainer,v.endOffset,-1))}if(f<0)return null;var g=h==e.state.selection.anchor?[h,f]:[f,h],y=(0,p.Z)(g,2);s=y[0],a=y[1],c=r.resolve(a)}else s=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(s<0)return null}var b=r.resolve(s);l||(l=Vg(e,b,c,"pointer"==t||e.state.selection.head<c.pos&&!o?1:-1));return l}function Rg(e){return e.editable?e.hasFocus():$g(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Lg(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.state.selection;if(Wg(e,n),Rg(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&Rv){var r=e.domSelectionRange(),i=e.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&wv(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){var t=e.domSelection();if(!t)return;var n=e.cursorWrapper.dom,r="IMG"==n.nodeName;r?t.collapse(n.parentNode,gv(n)+1):t.collapse(n,0);!r&&!e.state.selection.visible&&Fv&&Ov<=11&&(n.disabled=!0,n.disabled=!1)}(e);else{var o,a,s=n.anchor,l=n.head;!Bg||n instanceof wm||(n.$from.parent.inlineContent||(o=zg(e,n.from)),n.empty||n.$from.parent.inlineContent||(a=zg(e,n.to))
2),e.docView.setSelection(s,l,e,t),Bg&&(o&&Hg(o),a&&Hg(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);var n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=function(){n.anchorNode==r&&n.anchorOffset==i||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout((function(){Rg(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}var Bg=Bv||Rv&&Lv<63;function zg(e,t){var n=e.docView.domFromPos(t,0),r=n.node,i=n.offset,o=i<r.childNodes.length?r.childNodes[i]:null,a=i?r.childNodes[i-1]:null;if(Bv&&o&&"false"==o.contentEditable)return Ug(o);if((!o||"false"==o.contentEditable)&&(!a||"false"==a.contentEditable)){if(o)return Ug(o);if(a)return Ug(a)}}function Ug(e){return e.contentEditable="true",Bv&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Hg(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Wg(e,t){if(t instanceof Sm){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(qg(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else qg(e)}function qg(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Vg(e,t,n,r){return e.someProp("createSelectionBetween",(function(r){return r(e,t,n)}))||wm.between(t,n,r)}function Gg(e){return!(e.editable&&!e.hasFocus())&&$g(e)}function $g(e){var t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(n){return!1}}function Jg(e,t){var n=e.selection,r=n.$anchor,i=n.$head,o=t>0?r.max(i):r.min(i),a=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return a&&gm.findFrom(a,t)}function Kg(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Yg(e,t,n){var r=e.state.selection;if(!(r instanceof wm)){if(r instanceof Sm&&r.node.isInline)return Kg(e,new wm(t>0?r.$to:r.$from));var i=Jg(e.state,t);return!!i&&Kg(e,i)}if(n.indexOf("s")>-1){var o=r.$head,a=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;var s=e.state.doc.resolve(o.pos+a.nodeSize*(t<0?-1:1));return Kg(e,new wm(r.$anchor,s))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){var l=Jg(e.state,t);return!!(l&&l instanceof Sm)&&Kg(e,l)}if(!(Uv&&n.indexOf("m")>-1)){var c,u=r.$head,d=u.textOffset?null:t<0?u.nodeBefore:u.nodeAfter;if(!d||d.isText)return!1;var f=t<0?u.pos-d.nodeSize:u.pos;return!!(d.isAtom||(c=e.docView.descAt(f))&&!c.contentDOM)&&(Sm.isSelectable(d)?Kg(e,new Sm(t<0?e.state.doc.resolve(u.pos-d.nodeSize):u)):!!qv&&Kg(e,new wm(e.state.doc.resolve(t<0?f:f+d.nodeSize))))}}function Xg(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Qg(e,t){var n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function ey(e,t){return t<0?function(e){var t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;var i,o,a=!1;Mv&&1==n.nodeType&&r<Xg(n)&&Qg(n.childNodes[r],-1)&&(a=!0);for(;;)if(r>0){if(1!=n.nodeType)break;var s=n.childNodes[r-1];if(Qg(s,-1))i=n,o=--r;else{if(3!=s.nodeType)break;r=(n=s).nodeValue.length}}else{if(ty(n))break;for(var l=n.previousSibling;l&&Qg(l,-1);)i=n.parentNode,o=gv(l),l=l.previousSibling;if(l)r=Xg(n=l);else{if((n=n.parentNode)==e.dom)break;r=0}}a?ny(e,n,r):i&&ny(e,i,o)}(e):function(e){var t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;for(var i,o,a=Xg(n);;)if(r<a){if(1!=n.nodeType)break;if(!Qg(n.childNodes[r],1))break;i=n,o=++r}else{if(ty(n))break;for(var s=n.nextSibling;s&&Qg(s,1);)i=s.parentNode,o=gv(s)+1,s=s.nextSibling;if(s)r=0,a=Xg(n=s);else{if((n=n.parentNode)==e.dom)break;r=a=0}}i&&ny(e,i,o)}(e)}function ty(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function ny(e,t,n){var r,i;3!=t.nodeType&&((i=function(e,t){for(;e&&t==e.childNodes.length&&!Cv(e);)t=gv(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){var n=e.childNodes[t];
2if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=i,n=0):(r=function(e,t){for(;e&&!t&&!Cv(e);)t=gv(e),e=e.parentNode;for(;e&&t;){var n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=r,n=r.nodeValue.length));var o=e.domSelection();if(o){if(_v(o)){var a=document.createRange();a.setEnd(t,n),a.setStart(t,n),o.removeAllRanges(),o.addRange(a)}else o.extend&&o.extend(t,n);e.domObserver.setCurSelection();var s=e.state;setTimeout((function(){e.state==s&&Lg(e)}),50)}}function ry(e,t){var n=e.state.doc.resolve(t);if(!Rv&&!Hv&&n.parent.inlineContent){var r=e.coordsAtPos(t);if(t>n.start()){var i=e.coordsAtPos(t-1),o=(i.top+i.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(t<n.end()){var a=e.coordsAtPos(t+1),s=(a.top+a.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(a.left-r.left)>1)return a.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function iy(e,t,n){var r=e.state.selection;if(r instanceof wm&&!r.empty||n.indexOf("s")>-1)return!1;if(Uv&&n.indexOf("m")>-1)return!1;var i=r.$from,o=r.$to;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var a=Jg(e.state,t);if(a&&a instanceof Sm)return Kg(e,a)}if(!i.parent.inlineContent){var s=t<0?i:o,l=r instanceof Cm?gm.near(s,t):gm.findFrom(s,t);return!!l&&Kg(e,l)}return!1}function oy(e,t){if(!(e.state.selection instanceof wm))return!0;var n=e.state.selection,r=n.$head,i=n.$anchor,o=n.empty;if(!r.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var a=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(a&&!a.isText){var s=e.state.tr;return t<0?s.delete(r.pos-a.nodeSize,r.pos):s.delete(r.pos,r.pos+a.nodeSize),e.dispatch(s),!0}return!1}function ay(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function sy(e,t){var n=t.keyCode,r=function(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==n||Uv&&72==n&&"c"==r)return oy(e,-1)||ey(e,-1);if(46==n&&!t.shiftKey||Uv&&68==n&&"c"==r)return oy(e,1)||ey(e,1);if(13==n||27==n)return!0;if(37==n||Uv&&66==n&&"c"==r){var i=37==n?"ltr"==ry(e,e.state.selection.from)?-1:1:-1;return Yg(e,i,r)||ey(e,i)}if(39==n||Uv&&70==n&&"c"==r){var o=39==n?"ltr"==ry(e,e.state.selection.from)?1:-1:1;return Yg(e,o,r)||ey(e,o)}return 38==n||Uv&&80==n&&"c"==r?iy(e,-1,r)||ey(e,-1):40==n||Uv&&78==n&&"c"==r?function(e){if(!Bv||e.state.selection.$head.parentOffset>0)return!1;var t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(n&&1==n.nodeType&&0==r&&n.firstChild&&"false"==n.firstChild.contentEditable){var i=n.firstChild;ay(e,i,"true"),setTimeout((function(){return ay(e,i,"false")}),20)}return!1}(e)||iy(e,1,r)||ey(e,1):r==(Uv?"m":"c")&&(66==n||73==n||89==n||90==n)}function ly(e,t){e.someProp("transformCopied",(function(n){t=n(t,e)}));for(var n=[],r=t,i=r.content,o=r.openStart,a=r.openEnd;o>1&&a>1&&1==i.childCount&&1==i.firstChild.childCount;){o--,a--;var s=i.firstChild;n.push(s.type.name,s.attrs!=s.type.defaultAttrs?s.attrs:null),i=s.content}var l=e.someProp("clipboardSerializer")||wh.fromSchema(e.state.schema),c=yy(),u=c.createElement("div");u.appendChild(l.serializeFragment(i,{document:c}));for(var d,f=u.firstChild,p=0;f&&1==f.nodeType&&(d=vy[f.nodeName.toLowerCase()]);){for(var h=d.length-1;h>=0;h--){for(var m=c.createElement(d[h]);u.firstChild;)m.appendChild(u.firstChild);u.appendChild(m),p++}f=u.firstChild}f&&1==f.nodeType&&f.setAttribute("data-pm-slice","".concat(o," ").concat(a).concat(p?" -".concat(p):""," ").concat(JSON.stringify(n)));var v=e.someProp("clipboardTextSerializer",(function(n){return n(t,e)}))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:u,text:v,slice:t}}function cy(e,t,n,r,i){var o,a,s=i.parent.type.spec.code;if(!n&&!t)return null;var l=!!t&&(r||s||!n);if(l){if(e.someProp("transformPastedText",(function(n){t=n(t,s||r,e)})),s)return a=new Cp(bp.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0),e.someProp("transformPasted",(function(t){a=t(a,e,!0)})),a;var c=e.someProp("clipboardTextParser",(function(n){return n(t,i,r,e)}));if(c)a=c;else{var u=i.marks(),d=e.state.schema,f=wh.fromSchema(d);
2o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((function(e){var t=o.appendChild(document.createElement("p"));e&&t.appendChild(f.serializeNode(d.text(e,u)))}))}}else e.someProp("transformPastedHTML",(function(t){n=t(n,e)})),o=function(e){var t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,r=yy().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e);(n=i&&vy[i[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join(""));if(r.innerHTML=function(e){var t=window.trustedTypes;if(!t)return e;by||(by=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:function(e){return e}}));return by.createHTML(e)}(e),n)for(var o=0;o<n.length;o++)r=r.querySelector(n[o])||r;return r}(n),qv&&function(e){for(var t=e.querySelectorAll(Rv?"span:not([class]):not([style])":"span.Apple-converted-space"),n=0;n<t.length;n++){var r=t[n];1==r.childNodes.length&&"\xa0"==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(o);var p=o&&o.querySelector("[data-pm-slice]"),h=p&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(p.getAttribute("data-pm-slice")||"");
2if(h&&h[3])for(var m=+h[3];m>0;m--){for(var v=o.firstChild;v&&1!=v.nodeType;)v=v.nextSibling;if(!v)break;o=v}if(!a){var g=e.someProp("clipboardParser")||e.someProp("domParser")||dh.fromSchema(e.state.schema);a=g.parseSlice(o,{preserveWhitespace:!(!l&&!h),context:i,ruleFromNode:function(e){return"BR"!=e.nodeName||e.nextSibling||!e.parentNode||uy.test(e.parentNode.nodeName)?null:{ignore:!0}}})}if(h)a=function(e,t){if(!e.size)return e;var n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(c){return e}for(var i=e.content,o=e.openStart,a=e.openEnd,s=n.length-2;s>=0;s-=2){var l=r.nodes[n[s]];if(!l||l.hasRequiredAttrs())break;i=bp.from(l.create(n[s+1],i)),o++,a++}return new Cp(i,o,a)}(my(a,+h[1],+h[2]),h[4]);else if(a=Cp.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n,r=function(){var n,r=t.node(i).contentMatchAt(t.index(i)),o=[];if(e.forEach((function(e){if(o){var t,i=r.findWrapping(e.type);if(!i)return o=null;if(t=o.length&&n.length&&fy(i,n,e,o[o.length-1],0))o[o.length-1]=t;else{o.length&&(o[o.length-1]=py(o[o.length-1],n.length));var a=dy(e,i);o.push(a),r=r.matchType(a.type),n=i}}})),o)return{v:bp.from(o)}},i=t.depth;i>=0;i--)if(n=r())return n.v;return e}(a.content,i),!0),a.openStart||a.openEnd){for(var y=0,b=0,x=a.content.firstChild;y<a.openStart&&!x.type.spec.isolating;y++,x=x.firstChild);for(var w=a.content.lastChild;b<a.openEnd&&!w.type.spec.isolating;b++,w=w.lastChild);a=my(a,y,b)}return e.someProp("transformPasted",(function(t){a=t(a,e,l)})),a}var uy=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function dy(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t.length-1;r>=n;r--)e=t[r].create(null,bp.from(e));return e}function fy(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){var o=fy(e,t,n,r.lastChild,i+1);if(o)return r.copy(r.content.replaceChild(r.childCount-1,o));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(bp.from(dy(n,e,i+1))))}}function py(e,t){if(0==t)return e;var n=e.content.replaceChild(e.childCount-1,py(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(bp.empty,!0);return e.copy(n.append(r))}function hy(e,t,n,r,i,o){var a=t<0?e.firstChild:e.lastChild,s=a.content;return e.childCount>1&&(o=0),i<r-1&&(s=hy(s,t,n,r,i+1,o)),i>=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(bp.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function my(e,t,n){return t<e.openStart&&(e=new Cp(hy(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new Cp(hy(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var vy={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},gy=null;function yy(){return gy||(gy=document.implementation.createHTMLDocument("title"))}var by=null;var xy={},wy={},ky={touchstart:!0,touchmove:!0},Sy=(0,ma.Z)((function e(){(0,ha.Z)(this,e),this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}));function jy(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Cy(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=function(t){return _y(e,t)})}))}function _y(e,t){return e.someProp("handleDOMEvents",(function(n){var r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)}))}function Ey(e){return{left:e.clientX,top:e.clientY}}function Ny(e,t,n,r,i){if(-1==r)return!1;for(var o,a=e.state.doc.resolve(r),s=function(r){if(e.someProp(t,(function(t){return r>a.depth?t(e,n,a.nodeAfter,a.before(r),i,!0):t(e,n,a.node(r),a.before(r),i,!1)})))return{v:!0}},l=a.depth+1;l>0;l--)if(o=s(l))return o.v;return!1}
2function Ay(e,t,n){if(e.focused||e.focus(),!e.state.selection.eq(t)){var r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}}function Dy(e,t,n,r,i){return Ny(e,"handleClickOn",t,n,r)||e.someProp("handleClick",(function(n){return n(e,t,r)}))||(i?function(e,t){if(-1==t)return!1;var n,r,i=e.state.selection;i instanceof Sm&&(n=i.node);for(var o=e.state.doc.resolve(t),a=o.depth+1;a>0;a--){var s=a>o.depth?o.nodeAfter:o.node(a);if(Sm.isSelectable(s)){r=n&&i.$from.depth>0&&a>=i.$from.depth&&o.before(i.$from.depth+1)==i.$from.pos?o.before(i.$from.depth):o.before(a);break}}return null!=r&&(Ay(e,Sm.create(e.state.doc,r),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&Sm.isSelectable(r))&&(Ay(e,new Sm(n),"pointer"),!0)}(e,n))}function Ty(e,t,n,r){return Ny(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",(function(n){return n(e,t,r)}))}function Iy(e,t,n,r){return Ny(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",(function(n){return n(e,t,r)}))||function(e,t,n){if(0!=n.button)return!1;var r=e.state.doc;if(-1==t)return!!r.inlineContent&&(Ay(e,wm.create(r,0,r.content.size),"pointer"),!0);for(var i=r.resolve(t),o=i.depth+1;o>0;o--){var a=o>i.depth?i.nodeAfter:i.node(o),s=i.before(o);if(a.inlineContent)Ay(e,wm.create(r,s+1,s+1+a.content.size),"pointer");else{if(!Sm.isSelectable(a))continue;Ay(e,Sm.create(r,s),"pointer")}return!0}}(e,n,r)}function Py(e){return zy(e)}wy.keydown=function(e,t){var n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!My(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!Wv||!Rv||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!zv||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",(function(t){return t(e,n)}))||sy(e,n)?n.preventDefault():jy(e,"key");else{var r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout((function(){e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",(function(t){return t(e,Ev(13,"Enter"))})),e.input.lastIOSEnter=0)}),200)}},wy.keyup=function(e,t){16==t.keyCode&&(e.input.shiftKey=!1)},wy.keypress=function(e,t){var n=t;if(!(My(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Uv&&n.metaKey))if(e.someProp("handleKeyPress",(function(t){return t(e,n)})))n.preventDefault();else{var r=e.state.selection;if(!(r instanceof wm)||!r.$from.sameParent(r.$to)){var i=String.fromCharCode(n.charCode),o=function(){return e.state.tr.insertText(i).scrollIntoView()};/[\r\n]/.test(i)||e.someProp("handleTextInput",(function(t){return t(e,r.$from.pos,r.$to.pos,i,o)}))||e.dispatch(o()),n.preventDefault()}}};var Fy=Uv?"metaKey":"ctrlKey";xy.mousedown=function(e,t){var n=t;e.input.shiftKey=n.shiftKey;var r=Py(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(n,e.input.lastClick)&&!n[Fy]&&e.input.lastClick.button==n.button&&("singleClick"==e.input.lastClick.type?o="doubleClick":"doubleClick"==e.input.lastClick.type&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o,button:n.button};var a=e.posAtCoords(Ey(n));a&&("singleClick"==o?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new Oy(e,a,n,!!r)):("doubleClick"==o?Ty:Iy)(e,a.pos,a.inside,n)?n.preventDefault():jy(e,"pointer"))};var Oy=function(){function e(t,n,r,i){var o,a,s=this;if((0,ha.Z)(this,e),this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[Fy],this.allowDefault=r.shiftKey,n.inside>-1)o=t.state.doc.nodeAt(n.inside),a=n.inside;else{var l=t.state.doc.resolve(n.pos);o=l.parent,a=l.depth?l.before():0}var c=i?null:r.target,u=c?t.docView.nearestDesc(c,!0):null;this.target=u&&1==u.nodeDOM.nodeType?u.nodeDOM:null;var d=t.state.selection;0==r.button&&(o.type.spec.draggable&&!1!==o.type.spec.selectable||d instanceof Sm&&d.from<=a&&d.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!Mv||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((function(){s.view.input.mouseDown==s&&s.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),jy(t,"pointer")}return(0,ma.Z)(e,[{key:"done",value:function(){var e=this;this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((function(){return Lg(e.view)})),this.view.input.mouseDown=null}},{key:"up",value:function(e){if(this.done(),this.view.dom.contains(e.target)){var t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Ey(e))),this.updateAllowDefault(e),this.allowDefault||!t?jy(this.view,"pointer"):Dy(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||Bv&&this.mightDrag&&!this.mightDrag.node.isAtom||Rv&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Ay(this.view,gm.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):jy(this.view,"pointer")}}},{key:"move",value:function(e){this.updateAllowDefault(e),jy(this.view,"pointer"),0==e.buttons&&this.done()}},{key:"updateAllowDefault",value:function(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}]),e}();function My(e,t){return!!e.composing||!!(Bv&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}xy.touchstart=function(e){e.input.lastTouch=Date.now(),Py(e),jy(e,"pointer")},xy.touchmove=function(e){e.input.lastTouch=Date.now(),jy(e,"pointer")},xy.contextmenu=function(e){return Py(e)};var Zy=Wv?5e3:-1;function Ry(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout((function(){return zy(e)}),t))}function Ly(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){var e=document.createEvent("Event");
2return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function By(e){var t=e.domSelectionRange();if(!t.focusNode)return null;var n=function(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;t=jv(e=e.childNodes[t-1])}else{if(!e.parentNode||Cv(e))return null;t=gv(e),e=e.parentNode}}}(t.focusNode,t.focusOffset),r=function(e,t){for(;;){if(3==e.nodeType&&t<e.nodeValue.length)return e;if(1==e.nodeType&&t<e.childNodes.length){if("false"==e.contentEditable)return null;e=e.childNodes[t],t=0}else{if(!e.parentNode||Cv(e))return null;t=gv(e)+1,e=e.parentNode}}}(t.focusNode,t.focusOffset);if(n&&r&&n!=r){var i=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){var a=n.pmViewDesc;if(a&&a.isText(n.nodeValue))return r}}return n||r}function zy(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(Wv&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Ly(e),t||e.docView&&e.docView.dirty){var n=Zg(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):!e.markCursor&&!t||r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.updateState(e.state):e.dispatch(e.state.tr.deleteSelection()),!0}return!1}}wy.compositionstart=wy.compositionupdate=function(e){if(!e.composing){e.domObserver.flush();var t=e.state,n=t.selection.$to;if(t.selection instanceof wm&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((function(e){return!1===e.type.spec.inclusive}))||Rv&&Hv&&function(e){var t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n||1!=n.nodeType||r>=n.childNodes.length)return!1;var i=n.childNodes[r];return 1==i.nodeType&&"false"==i.contentEditable}(e)))e.markCursor=e.state.storedMarks||n.marks(),zy(e,!0),e.markCursor=null;else if(zy(e,!t.selection.empty),Mv&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var r=e.domSelectionRange(),i=r.focusNode,o=r.focusOffset;i&&1==i.nodeType&&0!=o;){var a=o<0?i.lastChild:i.childNodes[o-1];if(!a)break;if(3==a.nodeType){var s=e.domSelection();s&&s.collapse(a,a.nodeValue.length);break}i=a,o=-1}e.input.composing=!0}Ry(e,Zy)},wy.compositionend=function(e,t){e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then((function(){return e.domObserver.flush()})),e.input.compositionID++,Ry(e,20))};var Uy=Fv&&Ov<15||zv&&Vv<604;function Hy(e,t,n,r,i){var o=cy(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",(function(t){return t(e,i,o||Cp.empty)})))return!0;if(!o)return!1;var a=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(o),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Wy(e){var t=e.getData("text/plain")||e.getData("Text");if(t)return t;var n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}xy.copy=wy.cut=function(e,t){var n=t,r=e.state.selection,i="cut"==n.type;if(!r.empty){var o=Uy?null:n.clipboardData,a=ly(e,r.content()),s=a.dom,l=a.text;o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):function(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},wy.paste=function(e,t){var n=t;if(!e.composing||Wv){var r=Uy?null:n.clipboardData,i=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&Hy(e,Wy(r),r.getData("text/html"),i,n)?n.preventDefault():function(e,t){if(e.dom.parentNode){var n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();var i=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout((function(){e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Hy(e,r.value,null,i,t):Hy(e,r.textContent,r.innerHTML,i,t)}),50)}}(e,n)}};var qy=(0,ma.Z)((function e(t,n,r){(0,ha.Z)(this,e),this.slice=t,this.move=n,this.node=r})),Vy=Uv?"altKey":"ctrlKey";function Gy(e,t){var n;return e.someProp("dragCopies",(function(e){n=n||e(t)})),null!=n?!n:!t[Vy]}for(var $y in xy.dragstart=function(e,t){var n=t,r=e.input.mouseDown;if(r&&r.done(),n.dataTransfer){var i,o=e.state.selection,a=o.empty?null:e.posAtCoords(Ey(n));if(a&&a.pos>=o.from&&a.pos<=(o instanceof Sm?o.to-1:o.to));else if(r&&r.mightDrag)i=Sm.create(e.state.doc,r.mightDrag.pos);else if(n.target&&1==n.target.nodeType){var s=e.docView.nearestDesc(n.target,!0);s&&s.node.type.spec.draggable&&s!=e.docView&&(i=Sm.create(e.state.doc,s.posBefore))}var l=ly(e,(i||e.state.selection).content()),c=l.dom,u=l.text,d=l.slice;(!n.dataTransfer.files.length||!Rv||Lv>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Uy?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",Uy||n.dataTransfer.setData("text/plain",u),e.dragging=new qy(d,Gy(e,n),i)}},xy.dragend=function(e){var t=e.dragging;window.setTimeout((function(){e.dragging==t&&(e.dragging=null)}),50)},wy.dragover=wy.dragenter=function(e,t){return t.preventDefault()},wy.drop=function(e,t){try{!function(e,t,n){if(!t.dataTransfer)return;var r=e.posAtCoords(Ey(t));if(!r)return;var i=e.state.doc.resolve(r.pos),o=n&&n.slice;o?e.someProp("transformPasted",(function(t){o=t(o,e,!1)})):o=cy(e,Wy(t.dataTransfer),Uy?null:t.dataTransfer.getData("text/html"),!1,i);var a=!(!n||!Gy(e,t));if(e.someProp("handleDrop",(function(n){return n(e,t,o||Cp.empty,a)})))return void t.preventDefault();if(!o)return;t.preventDefault();var s=o?tm(e.state.doc,i.pos,o):i.pos;null==s&&(s=i.pos);var l=e.state.tr;if(a){var c=n.node;c?c.replace(l):l.deleteSelection()}var u=l.mapping.map(s),d=0==o.openStart&&0==o.openEnd&&1==o.content.childCount,f=l.doc;d?l.replaceRangeWith(u,u,o.content.firstChild):l.replaceRange(u,u,o);if(l.doc.eq(f))return;var p=l.doc.resolve(u);
2if(d&&Sm.isSelectable(o.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new Sm(p));else{var h=l.mapping.map(s);l.mapping.maps[l.mapping.maps.length-1].forEach((function(e,t,n,r){return h=r})),l.setSelection(Vg(e,p,l.doc.resolve(h)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}(e,t,e.dragging)}finally{e.dragging=null}},xy.focus=function(e){e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((function(){e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Lg(e)}),20))},xy.blur=function(e,t){var n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},xy.beforeinput=function(e,t){if(Rv&&Wv&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();var n=e.input.domChangeCount;setTimeout((function(){if(e.input.domChangeCount==n&&(e.dom.blur(),e.focus(),!e.someProp("handleKeyDown",(function(t){return t(e,Ev(8,"Backspace"))})))){var t=e.state.selection.$cursor;t&&t.pos>0&&e.dispatch(e.state.tr.delete(t.pos-1,t.pos).scrollIntoView())}}),50)}},wy)xy[$y]=wy[$y];function Jy(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var r in t)if(!(r in e))return!1;return!0}var Ky=function(){function e(t,n){(0,ha.Z)(this,e),this.toDOM=t,this.spec=n||tb,this.side=this.spec.side||0}return(0,ma.Z)(e,[{key:"map",value:function(e,t,n,r){var i=e.mapResult(t.from+r,this.side<0?-1:1),o=i.pos;return i.deleted?null:new Qy(o-n,o-n,this)}},{key:"valid",value:function(){return!0}},{key:"eq",value:function(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Jy(this.spec,t.spec))}},{key:"destroy",value:function(e){this.spec.destroy&&this.spec.destroy(e)}}]),e}(),Yy=function(){function e(t,n){(0,ha.Z)(this,e),this.attrs=t,this.spec=n||tb}return(0,ma.Z)(e,[{key:"map",value:function(e,t,n,r){var i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=o?null:new Qy(i,o,this)}},{key:"valid",value:function(e,t){return t.from<t.to}},{key:"eq",value:function(t){return this==t||t instanceof e&&Jy(this.attrs,t.attrs)&&Jy(this.spec,t.spec)}},{key:"destroy",value:function(){}}],[{key:"is",value:function(t){return t.type instanceof e}}]),e}(),Xy=function(){function e(t,n){(0,ha.Z)(this,e),this.attrs=t,this.spec=n||tb}return(0,ma.Z)(e,[{key:"map",value:function(e,t,n,r){var i=e.mapResult(t.from+r,1);if(i.deleted)return null;var o=e.mapResult(t.to+r,-1);return o.deleted||o.pos<=i.pos?null:new Qy(i.pos-n,o.pos-n,this)}},{key:"valid",value:function(e,t){var n,r=e.content.findIndex(t.from),i=r.index,o=r.offset;return o==t.from&&!(n=e.child(i)).isText&&o+n.nodeSize==t.to}},{key:"eq",value:function(t){return this==t||t instanceof e&&Jy(this.attrs,t.attrs)&&Jy(this.spec,t.spec)}},{key:"destroy",value:function(){}}]),e}(),Qy=function(){function e(t,n,r){(0,ha.Z)(this,e),this.from=t,this.to=n,this.type=r}return(0,ma.Z)(e,[{key:"copy",value:function(t,n){return new e(t,n,this.type)}},{key:"eq",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}},{key:"map",value:function(e,t,n){return this.type.map(e,this,t,n)}},{key:"spec",get:function(){return this.type.spec}},{key:"inline",get:function(){return this.type instanceof Yy}},{key:"widget",get:function(){return this.type instanceof Ky}}],[{key:"widget",value:function(t,n,r){return new e(t,t,new Ky(n,r))}},{key:"inline",value:function(t,n,r,i){return new e(t,n,new Yy(r,i))}},{key:"node",value:function(t,n,r,i){return new e(t,n,new Xy(r,i))}}]),e}(),eb=[],tb={},nb=function(){function e(t,n){(0,ha.Z)(this,e),this.local=t.length?t:eb,this.children=n.length?n:eb}return(0,ma.Z)(e,[{key:"find",value:function(e,t,n){var r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}},{key:"findInner",value:function(e,t,n,r,i){for(var o=0;o<this.local.length;o++){var a=this.local[o];a.from<=t&&a.to>=e&&(!i||i(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(var s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){var l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,n,r+l,i)}}},{key:"map",value:function(e,t,n){return this==rb||0==e.maps.length?this:this.mapInner(e,t,0,0,n||tb)}},{key:"mapInner",value:function(t,n,r,i,o){for(var a,s=0;s<this.local.length;s++){var l=this.local[s].map(t,r,i);l&&l.type.valid(n,l)?(a||(a=[])).push(l):o.onRemove&&o.onRemove(this.local[s].spec)}return this.children.length?function(e,t,n,r,i,o,a){for(var s=e.slice(),l=function(e){var t=0;
2n.maps[c].forEach((function(n,r,i,o){for(var a=o-i-(r-n),l=0;l<s.length;l+=3){var c=s[l+1];if(!(c<0||n>c+e-t)){var u=s[l]+e-t;r>=u?s[l+1]=n<=u?-2:-1:n>=e&&a&&(s[l]+=a,s[l+1]+=a)}}t+=a})),e=n.maps[c].map(e,-1),u=e},c=0,u=o;c<n.maps.length;c++)l(u);for(var d=!1,f=0;f<s.length;f+=3)if(s[f+1]<0){if(-2==s[f+1]){d=!0,s[f+1]=-1;continue}var p=n.map(e[f]+o),h=p-i;if(h<0||h>=r.content.size){d=!0;continue}var m=n.map(e[f+1]+o,-1)-i,v=r.content.findIndex(h),g=v.index,y=v.offset,b=r.maybeChild(g);if(b&&y==h&&y+b.nodeSize==m){var x=s[f+2].mapInner(n,b,p+1,e[f]+o+1,a);x!=rb?(s[f]=h,s[f+1]=m,s[f+2]=x):(s[f+1]=-2,d=!0)}else d=!0}if(d){var w=function(e,t,n,r,i,o,a){function s(e,t){for(var o=0;o<e.local.length;o++){var l=e.local[o].map(r,i,t);l?n.push(l):a.onRemove&&a.onRemove(e.local[o].spec)}for(var c=0;c<e.children.length;c+=3)s(e.children[c+2],e.children[c]+t+1)}for(var l=0;l<e.length;l+=3)-1==e[l+1]&&s(e[l+2],t[l]+o+1);return n}(s,e,t,n,i,o,a),k=lb(w,r,0,a);t=k.local;for(var S=0;S<s.length;S+=3)s[S+1]<0&&(s.splice(S,3),S-=3);for(var j=0,C=0;j<k.children.length;j+=3){for(var _=k.children[j];C<s.length&&s[C]<_;)C+=3;s.splice(C,0,k.children[j],k.children[j+1],k.children[j+2])}}return new nb(t.sort(cb),s)}(this.children,a||[],t,n,r,i,o):a?new e(a.sort(cb),eb):rb}},{key:"add",value:function(t,n){return n.length?this==rb?e.create(t,n):this.addInner(t,n,0):this}},{key:"addInner",value:function(t,n,r){var i,o=this,a=0;t.forEach((function(e,t){var s,l=t+r;if(s=ab(n,e,l)){for(i||(i=o.children.slice());a<i.length&&i[a]<t;)a+=3;i[a]==t?i[a+2]=i[a+2].addInner(e,s,l+1):i.splice(a,0,t,t+e.nodeSize,lb(s,e,l+1,tb)),a+=3}}));for(var s=ob(a?sb(n):n,-r),l=0;l<s.length;l++)s[l].type.valid(t,s[l])||s.splice(l--,1);return new e(s.length?this.local.concat(s).sort(cb):this.local,i||this.children)}},{key:"remove",value:function(e){return 0==e.length||this==rb?this:this.removeInner(e,0)}},{key:"removeInner",value:function(t,n){for(var r=this.children,i=this.local,o=0;o<r.length;o+=3){for(var a,s=void 0,l=r[o]+n,c=r[o+1]+n,u=0;u<t.length;u++)(a=t[u])&&a.from>l&&a.to<c&&(t[u]=null,(s||(s=[])).push(a));if(s){r==this.children&&(r=this.children.slice());var d=r[o+2].removeInner(s,l+1);d!=rb?r[o+2]=d:(r.splice(o,3),o-=3)}}if(i.length)for(var f,p=0;p<t.length;p++)if(f=t[p])for(var h=0;h<i.length;h++)i[h].eq(f,n)&&(i==this.local&&(i=this.local.slice()),i.splice(h--,1));return r==this.children&&i==this.local?this:i.length||r.length?new e(i,r):rb}},{key:"forChild",value:function(t,n){if(this==rb)return this;if(n.isLeaf)return e.empty;for(var r,i,o=0;o<this.children.length;o+=3)if(this.children[o]>=t){this.children[o]==t&&(r=this.children[o+2]);break}for(var a=t+1,s=a+n.content.size,l=0;l<this.local.length;l++){var c=this.local[l];if(c.from<s&&c.to>a&&c.type instanceof Yy){var u=Math.max(a,c.from)-a,d=Math.min(s,c.to)-a;u<d&&(i||(i=[])).push(c.copy(u,d))}}if(i){var f=new e(i.sort(cb),eb);return r?new ib([f,r]):f}return r||rb}},{key:"eq",value:function(t){if(this==t)return!0;if(!(t instanceof e)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(var n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(var r=0;r<this.children.length;r+=3)if(this.children[r]!=t.children[r]||this.children[r+1]!=t.children[r+1]||!this.children[r+2].eq(t.children[r+2]))return!1;return!0}},{key:"locals",value:function(e){return ub(this.localsInner(e))}},{key:"localsInner",value:function(e){if(this==rb)return eb;if(e.inlineContent||!this.local.some(Yy.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof Yy||t.push(this.local[n]);return t}},{key:"forEachSet",value:function(e){e(this)}}],[{key:"create",value:function(e,t){return t.length?lb(t,e,0,tb):rb}}]),e}();nb.empty=new nb([],[]),nb.removeOverlap=ub;var rb=nb.empty,ib=function(){function e(t){(0,ha.Z)(this,e),this.members=t}return(0,ma.Z)(e,[{key:"map",value:function(t,n){var r=this.members.map((function(e){return e.map(t,n,tb)}));return e.from(r)}},{key:"forChild",value:function(t,n){if(n.isLeaf)return nb.empty;for(var r=[],i=0;i<this.members.length;i++){var o=this.members[i].forChild(t,n);o!=rb&&(o instanceof e?r=r.concat(o.members):r.push(o))}return e.from(r)}},{key:"eq",value:function(t){if(!(t instanceof e)||t.members.length!=this.members.length)return!1;for(var n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}},{key:"locals",value:function(e){for(var t,n=!0,r=0;r<this.members.length;r++){var i=this.members[r].localsInner(e);if(i.length)if(t){n&&(t=t.slice(),n=!1);for(var o=0;o<i.length;o++)t.push(i[o])}else t=i}return t?ub(n?t:t.sort(cb)):eb}}
2,{key:"forEachSet",value:function(e){for(var t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}],[{key:"from",value:function(t){switch(t.length){case 0:return rb;case 1:return t[0];default:return new e(t.every((function(e){return e instanceof nb}))?t:t.reduce((function(e,t){return e.concat(t instanceof nb?t:t.members)}),[]))}}}]),e}();function ob(e,t){if(!t||!e.length)return e;for(var n=[],r=0;r<e.length;r++){var i=e[r];n.push(new Qy(i.from+t,i.to+t,i.type))}return n}function ab(e,t,n){if(t.isLeaf)return null;for(var r,i=n+t.nodeSize,o=null,a=0;a<e.length;a++)(r=e[a])&&r.from>n&&r.to<i&&((o||(o=[])).push(r),e[a]=null);return o}function sb(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function lb(e,t,n,r){var i=[],o=!1;t.forEach((function(t,a){var s=ab(e,t,a+n);if(s){o=!0;var l=lb(s,t,n+a+1,r);l!=rb&&i.push(a,a+t.nodeSize,l)}}));for(var a=ob(o?sb(e):e,-n).sort(cb),s=0;s<a.length;s++)a[s].type.valid(t,a[s])||(r.onRemove&&r.onRemove(a[s].spec),a.splice(s--,1));return a.length||i.length?new nb(a,i):rb}function cb(e,t){return e.from-t.from||e.to-t.to}function ub(e){for(var t=e,n=0;n<t.length-1;n++){var r=t[n];if(r.from!=r.to)for(var i=n+1;i<t.length;i++){var o=t[i];if(o.from!=r.from){o.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,o.from),db(t,i,r.copy(o.from,r.to)));break}o.to!=r.to&&(t==e&&(t=e.slice()),t[i]=o.copy(o.from,r.to),db(t,i+1,o.copy(r.to,o.to)))}}return t}function db(e,t,n){for(;t<e.length&&cb(n,e[t])>0;)t++;e.splice(t,0,n)}function fb(e){var t=[];return e.someProp("decorations",(function(n){var r=n(e.state);r&&r!=rb&&t.push(r)})),e.cursorWrapper&&t.push(nb.create(e.state.doc,[e.cursorWrapper.deco])),ib.from(t)}var pb={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},hb=Fv&&Ov<=11,mb=function(){function e(){(0,ha.Z)(this,e),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return(0,ma.Z)(e,[{key:"set",value:function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}},{key:"clear",value:function(){this.anchorNode=this.focusNode=null}},{key:"eq",value:function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}]),e}(),vb=function(){function e(t,n){var r=this;(0,ha.Z)(this,e),this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new mb,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver((function(e){for(var n=0;n<e.length;n++)r.queue.push(e[n]);Fv&&Ov<=11&&e.some((function(e){return"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length}))?r.flushSoon():Bv&&t.composing&&e.some((function(e){return"childList"==e.type&&"TR"==e.target.nodeName}))?(t.input.badSafariComposition=!0,r.flushSoon()):r.flush()})),hb&&(this.onCharData=function(e){r.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),r.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}return(0,ma.Z)(e,[{key:"flushSoon",value:function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))}},{key:"forceFlush",value:function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}},{key:"start",value:function(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,pb)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}},{key:"stop",value:function(){var e=this;if(this.observer){var t=this.observer.takeRecords();if(t.length){for(var n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout((function(){return e.flush()}),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}},{key:"connectSelection",value:function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}},{key:"disconnectSelection",value:function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}},{key:"suppressSelectionUpdates",value:function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)}},{key:"onSelectionChange",value:function(){if(Gg(this.view)){if(this.suppressingSelectionUpdates)return Lg(this.view);if(Fv&&Ov<=11&&!this.view.state.selection.empty){var e=this.view.domSelectionRange();
2if(e.focusNode&&wv(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}},{key:"setCurSelection",value:function(){this.currentSelection.set(this.view.domSelectionRange())}},{key:"ignoreSelectionChange",value:function(e){if(!e.focusNode)return!0;for(var t,n=new Set,r=e.focusNode;r;r=yv(r))n.add(r);for(var i=e.anchorNode;i;i=yv(i))if(n.has(i)){t=i;break}var o=t&&this.view.docView.nearestDesc(t);return o&&o.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}},{key:"pendingRecords",value:function(){if(this.observer){var e,t=(0,ua.Z)(this.observer.takeRecords());try{for(t.s();!(e=t.n()).done;){var n=e.value;this.queue.push(n)}}catch(r){t.e(r)}finally{t.f()}}return this.queue}},{key:"flush",value:function(){var e=this.view;if(e.docView&&!(this.flushingSoon>-1)){var t=this.pendingRecords();t.length&&(this.queue=[]);var n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&Gg(e)&&!this.ignoreSelectionChange(n),i=-1,o=-1,a=!1,s=[];if(e.editable)for(var l=0;l<t.length;l++){var c=this.registerMutation(t[l],s);c&&(i=i<0?c.from:Math.min(c.from,i),o=o<0?c.to:Math.max(c.to,o),c.typeOver&&(a=!0))}if(!s.some((function(e){return"BR"==e.nodeName}))||8!=e.input.lastKeyCode&&46!=e.input.lastKeyCode){if(Mv&&s.length){var u=s.filter((function(e){return"BR"==e.nodeName}));if(2==u.length){var d=(0,p.Z)(u,2),f=d[0],h=d[1];f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}else{var m,v=this.currentSelection.focusNode,g=(0,ua.Z)(u);try{for(g.s();!(m=g.n()).done;){var y=m.value,b=y.parentNode;!b||"LI"!=b.nodeName||v&&xb(e,v)==b||y.remove()}}catch(C){g.e(C)}finally{g.f()}}}}else{var x,w=(0,ua.Z)(s);try{for(w.s();!(x=w.n()).done;){var k=x.value;if("BR"==k.nodeName&&k.parentNode)for(var S=k.nextSibling;S&&1==S.nodeType;){if("false"==S.contentEditable){k.parentNode.removeChild(k);break}S=S.firstChild}}}catch(C){w.e(C)}finally{w.f()}}var j=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&_v(n)&&(j=Zg(e))&&j.eq(gm.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Lg(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,o),function(e){if(gb.has(e))return;if(gb.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)){if(e.requiresGeckoHackNode=Mv,yb)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),yb=!0}}(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,function(e,t){var n,r,i=e.domSelectionRange(),o=i.focusNode,a=i.focusOffset,s=(0,ua.Z)(t);try{for(s.s();!(r=s.n()).done;){var l=r.value;if("TR"==(null===(n=l.parentNode)||void 0===n?void 0:n.nodeName)){for(var c=l.nextSibling;c&&"TD"!=c.nodeName&&"TH"!=c.nodeName;)c=c.nextSibling;if(c){for(var u=c;;){var d=u.firstChild;if(!d||1!=d.nodeType||"false"==d.contentEditable||/^(BR|IMG)$/.test(d.nodeName))break;u=d}u.insertBefore(l,u.firstChild),o==l&&e.domSelection().collapse(l,a)}else l.parentNode.removeChild(l)}}}catch(C){s.e(C)}finally{s.f()}}(e,s)),this.handleDOMChange(i,o,a,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||Lg(e),this.currentSelection.set(n))}}},{key:"registerMutation",value:function(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(var r=0;r<e.addedNodes.length;r++){var i=e.addedNodes[r];t.push(i),3==i.nodeType&&(this.lastChangedTextNode=i)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};var o=e.previousSibling,a=e.nextSibling;if(Fv&&Ov<=11&&e.addedNodes.length)for(var s=0;s<e.addedNodes.length;s++){var l=e.addedNodes[s],c=l.previousSibling,u=l.nextSibling;(!c||Array.prototype.indexOf.call(e.addedNodes,c)<0)&&(o=c),(!u||Array.prototype.indexOf.call(e.addedNodes,u)<0)&&(a=u)}var d=o&&o.parentNode==e.target?gv(o)+1:0,f=n.localPosFromDOM(e.target,d,-1),p=a&&a.parentNode==e.target?gv(a):e.target.childNodes.length;return{from:f,to:n.localPosFromDOM(e.target,p,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}]),e}(),gb=new WeakMap,yb=!1;function bb(e,t){var n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,a=e.domAtPos(e.state.selection.anchor);if(wv(a.node,a.offset,i,o)){var s=[i,o,n,r];n=s[0],r=s[1],i=s[2],o=s[3]}return{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function xb(e,t){for(var n=t.parentNode;n&&n!=e.dom;n=n.parentNode){var r=e.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function wb(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(Bv&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){var n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}if(e.parentNode.lastChild==e||Bv&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}var kb=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Sb(e,t,n,r,i){var o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){var a=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,s=Zg(e,a);
2if(s&&!e.state.selection.eq(s)){if(Rv&&Wv&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",(function(t){return t(e,Ev(13,"Enter"))})))return;var l=e.state.tr.setSelection(s);"pointer"==a?l.setMeta("pointer",!0):"key"==a&&l.scrollIntoView(),o&&l.setMeta("composition",o),e.dispatch(l)}}else{var c=e.state.doc.resolve(t),u=c.sharedDepth(n);t=c.before(u+1),n=e.state.doc.resolve(n).after(u+1);var d,f,p=e.state.selection,h=function(e,t,n){var r,i=e.docView.parseRange(t,n),o=i.node,a=i.fromOffset,s=i.toOffset,l=i.from,c=i.to,u=e.domSelectionRange(),d=u.anchorNode;if(d&&e.dom.contains(1==d.nodeType?d:d.parentNode)&&(r=[{node:d,offset:u.anchorOffset}],_v(u)||r.push({node:u.focusNode,offset:u.focusOffset})),Rv&&8===e.input.lastKeyCode)for(var f=s;f>a;f--){var p=o.childNodes[f-1],h=p.pmViewDesc;if("BR"==p.nodeName&&!h){s=f;break}if(!h||h.size)break}var m=e.state.doc,v=e.someProp("domParser")||dh.fromSchema(e.state.schema),g=m.resolve(l),y=null,b=v.parse(o,{topNode:g.parent,topMatch:g.parent.contentMatchAt(g.index()),topOpen:!0,from:a,to:s,preserveWhitespace:"pre"!=g.parent.type.whitespace||"full",findPositions:r,ruleFromNode:wb,context:g});if(r&&null!=r[0].pos){var x=r[0].pos,w=r[1]&&r[1].pos;null==w&&(w=x),y={anchor:x+l,head:w+l}}return{doc:b,sel:y,from:l,to:c}}(e,t,n),m=e.state.doc,v=m.slice(h.from,h.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(d=e.state.selection.to,f="end"):(d=e.state.selection.from,f="start"),e.input.lastKeyCode=null;var g=function(e,t,n,r,i){var o=e.findDiffStart(t,n);if(null==o)return null;var a=e.findDiffEnd(t,n+e.size,n+t.size),s=a.a,l=a.b;if("end"==i){r-=s+Math.max(0,o-Math.min(s,l))-o}if(s<o&&e.size<t.size){var c=r<=o&&r>=s?o-r:0;(o-=c)&&o<t.size&&_b(t.textBetween(o-1,o+1))&&(o+=c?1:-1),l=o+(l-s),s=o}else if(l<o){var u=r<=o&&r>=l?o-r:0;(o-=u)&&o<e.size&&_b(e.textBetween(o-1,o+1))&&(o+=u?1:-1),s=o+(s-l),l=o}return{start:o,endA:s,endB:l}}(v.content,h.doc.content,h.from,d,f);if(g&&e.input.domChangeCount++,(zv&&e.input.lastIOSEnter>Date.now()-225||Wv)&&i.some((function(e){return 1==e.nodeType&&!kb.test(e.nodeName)}))&&(!g||g.endA>=g.endB)&&e.someProp("handleKeyDown",(function(t){return t(e,Ev(13,"Enter"))})))e.input.lastIOSEnter=0;else{if(!g){if(!(r&&p instanceof wm&&!p.empty&&p.$head.sameParent(p.$anchor))||e.composing||h.sel&&h.sel.anchor!=h.sel.head){if(h.sel){var y=jb(e,e.state.doc,h.sel);if(y&&!y.eq(e.state.selection)){var b=e.state.tr.setSelection(y);o&&b.setMeta("composition",o),e.dispatch(b)}}return}g={start:p.from,endA:p.to,endB:p.to}}e.state.selection.from<e.state.selection.to&&g.start==g.endB&&e.state.selection instanceof wm&&(g.start>e.state.selection.from&&g.start<=e.state.selection.from+2&&e.state.selection.from>=h.from?g.start=e.state.selection.from:g.endA<e.state.selection.to&&g.endA>=e.state.selection.to-2&&e.state.selection.to<=h.to&&(g.endB+=e.state.selection.to-g.endA,g.endA=e.state.selection.to)),Fv&&Ov<=11&&g.endB==g.start+1&&g.endA==g.start&&g.start>h.from&&" \xa0"==h.doc.textBetween(g.start-h.from-1,g.start-h.from+1)&&(g.start--,g.endA--,g.endB--);var x=h.doc.resolveNoCache(g.start-h.from),w=h.doc.resolveNoCache(g.endB-h.from),k=m.resolve(g.start),S=x.sameParent(w)&&x.parent.inlineContent&&k.end()>=g.endA;if((zv&&e.input.lastIOSEnter>Date.now()-225&&(!S||i.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!S&&x.pos<h.doc.content.size&&(!x.sameParent(w)||!x.parent.inlineContent)&&x.pos<w.pos&&!/\S/.test(h.doc.textBetween(x.pos,w.pos,"","")))&&e.someProp("handleKeyDown",(function(t){return t(e,Ev(13,"Enter"))})))e.input.lastIOSEnter=0;else if(e.state.selection.anchor>g.start&&function(e,t,n,r,i){if(n-t<=i.pos-r.pos||Cb(r,!0,!1)<i.pos)return!1;var o=e.resolve(t);if(!r.parent.isTextblock){var a=o.nodeAfter;return null!=a&&n==t+a.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;var s=e.resolve(Cb(o,!0,!0));return!(!s.parent.isTextblock||s.pos>n||Cb(s,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(s.parent.content)}(m,g.start,g.endA,x,w)&&e.someProp("handleKeyDown",(function(t){return t(e,Ev(8,"Backspace"))})))Wv&&Rv&&e.domObserver.suppressSelectionUpdates();
2else{Rv&&g.endB==g.start&&(e.input.lastChromeDelete=Date.now()),Wv&&!S&&x.start()!=w.start()&&0==w.parentOffset&&x.depth==w.depth&&h.sel&&h.sel.anchor==h.sel.head&&h.sel.head==g.endA&&(g.endB-=2,w=h.doc.resolveNoCache(g.endB-h.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,Ev(13,"Enter"))}))}),20));var j,C=g.start,_=g.endA,E=function(t){var n=t||e.state.tr.replace(C,_,h.doc.slice(g.start-h.from,g.endB-h.from));if(h.sel){var r=jb(e,n.doc,h.sel);r&&!(Rv&&e.composing&&r.empty&&(g.start!=g.endB||e.input.lastChromeDelete<Date.now()-100)&&(r.head==C||r.head==n.mapping.map(_)-1)||Fv&&r.empty&&r.head==C)&&n.setSelection(r)}return o&&n.setMeta("composition",o),n.scrollIntoView()};if(S)if(x.pos==w.pos){Fv&&Ov<=11&&0==x.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return Lg(e)}),20));var N=E(e.state.tr.delete(C,_)),A=m.resolve(g.start).marksAcross(m.resolve(g.endA));A&&N.ensureMarks(A),e.dispatch(N)}else if(g.endA==g.endB&&(j=function(e,t){for(var n,r,i,o=e.firstChild.marks,a=t.firstChild.marks,s=o,l=a,c=0;c<a.length;c++)s=a[c].removeFromSet(s);for(var u=0;u<o.length;u++)l=o[u].removeFromSet(l);if(1==s.length&&0==l.length)r=s[0],n="add",i=function(e){return e.mark(r.addToSet(e.marks))};else{if(0!=s.length||1!=l.length)return null;r=l[0],n="remove",i=function(e){return e.mark(r.removeFromSet(e.marks))}}for(var d=[],f=0;f<t.childCount;f++)d.push(i(t.child(f)));if(bp.from(d).eq(e))return{mark:r,type:n}}(x.parent.content.cut(x.parentOffset,w.parentOffset),k.parent.content.cut(k.parentOffset,g.endA-k.start())))){var D=E(e.state.tr);"add"==j.type?D.addMark(C,_,j.mark):D.removeMark(C,_,j.mark),e.dispatch(D)}else if(x.parent.child(x.index()).isText&&x.index()==w.index()-(w.textOffset?0:1)){var T=x.parent.textBetween(x.parentOffset,w.parentOffset),I=function(){return E(e.state.tr.insertText(T,C,_))};e.someProp("handleTextInput",(function(t){return t(e,C,_,T,I)}))||e.dispatch(I())}else e.dispatch(E());else e.dispatch(E())}}}}function jb(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Vg(e,t.resolve(n.anchor),t.resolve(n.head))}function Cb(e,t,n){for(var r=e.depth,i=t?e.end():e.pos;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n)for(var o=e.node(r).maybeChild(e.indexAfter(r));o&&!o.isLeaf;)o=o.firstChild,i++;return i}function _b(e){if(2!=e.length)return!1;var t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}var Eb=function(){function e(t,n){var r=this;(0,ha.Z)(this,e),this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Sy,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Ib),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=Db(this),Ab(this),this.nodeViews=Tb(this),this.docView=wg(this.state.doc,Nb(this),fb(this),this.dom,this),this.domObserver=new vb(this,(function(e,t,n,i){return Sb(r,e,t,n,i)})),this.domObserver.start(),function(e){var t=function(){var t=xy[n];e.dom.addEventListener(n,e.input.eventHandlers[n]=function(n){!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}(e,n)||_y(e,n)||!e.editable&&n.type in wy||t(e,n)},ky[n]?{passive:!0}:void 0)};for(var n in xy)t();Bv&&e.dom.addEventListener("input",(function(){return null})),Cy(e)}(this),this.updatePluginViews()}return(0,ma.Z)(e,[{key:"composing",get:function(){return this.input.composing}},{key:"props",get:function(){if(this._props.state!=this.state){var e=this._props;for(var t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props}},{key:"update",value:function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Cy(this);var t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Ib),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}},{key:"setProps",value:function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var r in t.state=this.state,e)t[r]=e[r];this.update(t)}},{key:"updateState",value:function(e){this.updateStateInner(e,this._props)}},{key:"updateStateInner",value:function(e,t){var n,r=this.state,i=!1,o=!1;e.storedMarks&&this.composing&&(Ly(this),o=!0),this.state=e;var a=r.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){var s=Tb(this);(function(e,t){var n=0,r=0;for(var i in e){if(e[i]!=t[i])return!0;n++}for(var o in t)r++;return n!=r})(s,this.nodeViews)&&(this.nodeViews=s,i=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&Cy(this),this.editable=Db(this),Ab(this);var l=fb(this),c=Nb(this),u=r.plugins==e.plugins||r.doc.eq(e.doc)?e.scrollToSelection>r.scrollToSelection?"to selection":"preserve":"reset",d=i||!this.docView.matchesNode(e.doc,c,l);!d&&e.selection.eq(r.selection)||(o=!0);var f="preserve"==u&&o&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,r=e.dom.getBoundingClientRect(),i=Math.max(0,r.top),o=(r.left+r.right)/2,a=i+1;a<Math.min(innerHeight,r.bottom);a+=5){var s=e.root.elementFromPoint(o,a);if(s&&s!=e.dom&&e.dom.contains(s)){var l=s.getBoundingClientRect();if(l.top>=i-20){t=s,n=l.top;break}}}return{refDOM:t,refTop:n,stack:Yv(e.dom)}}(this);if(o){this.domObserver.stop();var p=d&&(Fv||Rv)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&function(e,t){var n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}(r.selection,e.selection);if(d){var h=Rv?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=By(this)),!i&&this.docView.update(e.doc,c,l,this)||(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=wg(e.doc,c,l,this.dom,this)),!h||this.trackWrites&&this.dom.contains(this.trackWrites)||(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(e){var t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return wv(t.node,t.offset,n.anchorNode,n.anchorOffset)}(this))?Lg(this,p):(Wg(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),"reset"==u?this.dom.scrollTop=0:"to selection"==u?this.scrollToSelection():f&&function(e){var t=e.refDOM,n=e.refTop,r=e.stack,i=t?t.getBoundingClientRect().top:0;Xv(r,0==i?0:i-n)}(f)}},{key:"scrollToSelection",value:function(){var e=this,t=this.domSelectionRange().focusNode;if(t&&this.dom.contains(1==t.nodeType?t:t.parentNode))if(this.someProp("handleScrollToSelection",(function(t){return t(e)})));else if(this.state.selection instanceof Sm){var n=this.docView.domAfterPos(this.state.selection.from);1==n.nodeType&&Kv(this,n.getBoundingClientRect(),t)}else Kv(this,this.coordsAtPos(this.state.selection.head,1),t);else;}},{key:"destroyPluginViews",value:function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()}},{key:"updatePluginViews",value:function(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(var r=0;r<this.directPlugins.length;r++){var i=this.directPlugins[r];i.spec.view&&this.pluginViews.push(i.spec.view(this))}for(var o=0;o<this.state.plugins.length;o++){var a=this.state.plugins[o];a.spec.view&&this.pluginViews.push(a.spec.view(this))}}}},{key:"updateDraggedNode",value:function(e,t){var n=e.node,r=-1;
2if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{var i=n.from+(this.state.doc.content.size-t.doc.content.size);(i>0&&i<this.state.doc.content.size&&this.state.doc.nodeAt(i))==n.node&&(r=i)}this.dragging=new qy(e.slice,e.move,r<0?void 0:Sm.create(this.state.doc,r))}},{key:"someProp",value:function(e,t){var n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(var i=0;i<this.directPlugins.length;i++){var o=this.directPlugins[i].props[e];if(null!=o&&(n=t?t(o):o))return n}var a=this.state.plugins;if(a)for(var s=0;s<a.length;s++){var l=a[s].props[e];if(null!=l&&(n=t?t(l):l))return n}}},{key:"hasFocus",value:function(){if(Fv){var e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}},{key:"focus",value:function(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(Qv)return e.focus(Qv);var t=Yv(e);e.focus(null==Qv?{get preventScroll(){return Qv={preventScroll:!0},!0}}:void 0),Qv||(Qv=!1,Xv(t,0))}(this.dom),Lg(this),this.domObserver.start()}},{key:"root",get:function(){var e=this,t=this._root;if(null==t)for(var n,r=function(t){if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=function(){return t.ownerDocument.getSelection()}),{v:e._root=t}},i=this.dom.parentNode;i;i=i.parentNode)if(n=r(i))return n.v;return t||document}},{key:"updateRoot",value:function(){this._root=null}},{key:"posAtCoords",value:function(e){return rg(this,e)}},{key:"coordsAtPos",value:function(e){return sg(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1)}},{key:"domAtPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.domFromPos(e,t)}},{key:"nodeDOM",value:function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null}},{key:"posAtDOM",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}},{key:"endOfTextblock",value:function(e,t){return mg(this,t||this.state,e)}},{key:"pasteHTML",value:function(e,t){return Hy(this,"",e,!1,t||new ClipboardEvent("paste"))}},{key:"pasteText",value:function(e,t){return Hy(this,e,null,!0,t||new ClipboardEvent("paste"))}},{key:"serializeForClipboard",value:function(e){return ly(this,e)}},{key:"destroy",value:function(){this.docView&&(!function(e){for(var t in e.domObserver.stop(),e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],fb(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,bv=null)}},{key:"isDestroyed",get:function(){return null==this.docView}},{key:"dispatchEvent",value:function(e){return function(e,t){_y(e,t)||!xy[t.type]||!e.editable&&t.type in wy||xy[t.type](e,t)}(this,e)}},{key:"domSelectionRange",value:function(){var e=this.domSelection();return e?Bv&&11===this.root.nodeType&&function(e){for(var t=e.activeElement;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){if(t.getComposedRanges){var n=t.getComposedRanges(e.root)[0];if(n)return bb(e,n)}var r;function i(e){e.preventDefault(),e.stopImmediatePropagation(),r=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",i,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",i,!0),r?bb(e,r):null}(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}},{key:"domSelection",value:function(){return this.root.getSelection()}}]),e}();function Nb(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var r in n)"class"==r?t.class+=" "+n[r]:"style"==r?t.style=(t.style?t.style+";":"")+n[r]:t[r]||"contenteditable"==r||"nodeName"==r||(t[r]=String(n[r]))}
2)),t.translate||(t.translate="no"),[Qy.node(0,e.state.doc.content.size,t)]}function Ab(e){if(e.markCursor){var t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Qy.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Db(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function Tb(e){var t=Object.create(null);function n(e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function Ib(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}Eb.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};for(var Pb={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Fb={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Ob="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Mb="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Zb=0;Zb<10;Zb++)Pb[48+Zb]=Pb[96+Zb]=String(Zb);for(Zb=1;Zb<=24;Zb++)Pb[Zb+111]="F"+Zb;for(Zb=65;Zb<=90;Zb++)Pb[Zb]=String.fromCharCode(Zb+32),Fb[Zb]=String.fromCharCode(Zb);for(var Rb in Pb)Fb.hasOwnProperty(Rb)||(Fb[Rb]=Pb[Rb]);var Lb="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),Bb="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function zb(e){var t,n,r,i,o=e.split(/-(?!$)/),a=o[o.length-1];"Space"==a&&(a=" ");for(var s=0;s<o.length-1;s++){var l=o[s];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))r=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: "+l);Lb?i=!0:n=!0}}return t&&(a="Alt-"+a),n&&(a="Ctrl-"+a),i&&(a="Meta-"+a),r&&(a="Shift-"+a),a}function Ub(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function Hb(e){var t=function(e){var t=Object.create(null);for(var n in e)t[zb(n)]=e[n];return t}(e);return function(e,n){var r,i=function(e){var t=!(Ob&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Mb&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?Fb:Pb)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),o=t[Ub(i,n)];if(o&&o(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(n.shiftKey){var a=t[Ub(i,n,!1)];if(a&&a(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(Bb&&n.ctrlKey&&n.altKey)&&(r=Pb[n.keyCode])&&r!=i){var s=t[Ub(r,n)];if(s&&s(e.state,e.dispatch,e))return!0}}return!1}}var Wb=Object.defineProperty,qb=function(e,t){for(var n in t)Wb(e,n,{get:t[n],enumerable:!0})};function Vb(e){var t=e.state,n=e.transaction,r=n.selection,i=n.doc,o=n.storedMarks;return(0,A.Z)((0,A.Z)({},t),{},{apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,o=n.storedMarks,n}})}var Gb=function(){function e(t){(0,ha.Z)(this,e),this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}return(0,ma.Z)(e,[{key:"hasCustomState",get:function(){return!!this.customState}},{key:"state",get:function(){return this.customState||this.editor.state}},{key:"commands",get:function(){var e=this,t=this.rawCommands,n=this.editor,r=this.state,i=n.view,o=r.tr,a=this.buildProps(o);return Object.fromEntries(Object.entries(t).map((function(t){var n=(0,p.Z)(t,2),r=n[0],s=n[1];return[r,function(){var t=s.apply(void 0,arguments)(a);return o.getMeta("preventDispatch")||e.hasCustomState||i.dispatch(o),t}]})))}},{key:"chain",get:function(){var e=this;return function(){return e.createChain()}}},{key:"can",get:function(){var e=this;return function(){return e.createCan()}}},{key:"createChain",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.rawCommands,i=this.editor,o=this.state,a=i.view,s=[],l=!!e,c=e||o.tr,u=(0,A.Z)((0,A.Z)({},Object.fromEntries(Object.entries(r).map((function(e){var r=(0,p.Z)(e,2),i=r[0],o=r[1];return[i,function(){var e=t.buildProps(c,n),r=o.apply(void 0,arguments)(e);return s.push(r),u}]})))),{},{run:function(){return l||!n||c.getMeta("preventDispatch")||t.hasCu
2stomState||a.dispatch(c),s.every((function(e){return!0===e}))}});return u}},{key:"createCan",value:function(e){var t=this,n=this.rawCommands,r=this.state,i=e||r.tr,o=this.buildProps(i,false),a=Object.fromEntries(Object.entries(n).map((function(e){var t=(0,p.Z)(e,2),n=t[0],r=t[1];return[n,function(){return r.apply(void 0,arguments)((0,A.Z)((0,A.Z)({},o),{},{dispatch:void 0}))}]})));return(0,A.Z)((0,A.Z)({},a),{},{chain:function(){return t.createChain(i,false)}})}},{key:"buildProps",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.rawCommands,i=this.editor,o=this.state,a=i.view,s={tr:e,editor:i,view:a,state:Vb({state:o,transaction:e}),dispatch:n?function(){}:void 0,chain:function(){return t.createChain(e,n)},can:function(){return t.createCan(e)},get commands(){return Object.fromEntries(Object.entries(r).map((function(e){var t=(0,p.Z)(e,2),n=t[0],r=t[1];return[n,function(){return r.apply(void 0,arguments)(s)}]})))}};return s}}]),e}(),$b={};qb($b,{blur:function(){return Jb},clearContent:function(){return Kb},clearNodes:function(){return Yb},command:function(){return Xb},createParagraphNear:function(){return Qb},cut:function(){return ex},deleteCurrentNode:function(){return tx},deleteNode:function(){return rx},deleteRange:function(){return ix},deleteSelection:function(){return ax},enter:function(){return sx},exitCode:function(){return lx},extendMarkRange:function(){return mx},first:function(){return vx},focus:function(){return kx},forEach:function(){return Sx},insertContent:function(){return jx},insertContentAt:function(){return Nx},joinBackward:function(){return Tx},joinDown:function(){return Dx},joinForward:function(){return Ix},joinItemBackward:function(){return Px},joinItemForward:function(){return Fx},joinTextblockBackward:function(){return Ox},joinTextblockForward:function(){return Mx},joinUp:function(){return Ax},keyboardShortcut:function(){return Rx},lift:function(){return Bx},liftEmptyBlock:function(){return zx},liftListItem:function(){return Ux},newlineInCode:function(){return Hx},resetAttributes:function(){return Vx},scrollIntoView:function(){return Gx},selectAll:function(){return $x},selectNodeBackward:function(){return Jx},selectNodeForward:function(){return Kx},selectParentNode:function(){return Yx},selectTextblockEnd:function(){return Xx},selectTextblockStart:function(){return Qx},setContent:function(){return tw},setMark:function(){return Bw},setMeta:function(){return zw},setNode:function(){return Uw},setNodeSelection:function(){return Hw},setTextDirection:function(){return Ww},setTextSelection:function(){return qw},sinkListItem:function(){return Vw},splitBlock:function(){return $w},splitListItem:function(){return Jw},toggleList:function(){return Xw},toggleMark:function(){return Qw},toggleNode:function(){return ek},toggleWrap:function(){return tk},undoInputRule:function(){return nk},unsetAllMarks:function(){return rk},unsetMark:function(){return ik},unsetTextDirection:function(){return ok},updateAttributes:function(){return ak},wrapIn:function(){return sk},wrapInList:function(){return lk}});var Jb=function(){return function(e){var t=e.editor,n=e.view;return requestAnimationFrame((function(){var e;t.isDestroyed||(n.dom.blur(),null==(e=null==window?void 0:window.getSelection())||e.removeAllRanges())})),!0}},Kb=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){return t.commands.setContent("",{emitUpdate:e})}}
2,Yb=function(){return function(e){var t=e.state,n=e.tr,r=e.dispatch,i=n.selection.ranges;return!r||(i.forEach((function(e){var r=e.$from,i=e.$to;t.doc.nodesBetween(r.pos,i.pos,(function(e,t){if(!e.type.isText){var r=n.doc,i=n.mapping,o=r.resolve(i.map(t)),a=r.resolve(i.map(t+e.nodeSize)),s=o.blockRange(a);if(s){var l=Vh(s);if(e.type.isTextblock){var c=o.parent.contentMatchAt(o.index()).defaultType;n.setNodeMarkup(s.start,c)}(l||0===l)&&n.lift(s,l)}}}))})),!0)}},Xb=function(e){return function(t){return e(t)}},Qb=function(){return function(e){var t=e.state,n=e.dispatch;return ev(t,n)}},ex=function(e,t){return function(n){var r=n.editor,i=n.tr,o=r.state.doc.slice(e.from,e.to);i.deleteRange(e.from,e.to);var a=i.mapping.map(t);return i.insert(a,o.content),i.setSelection(new wm(i.doc.resolve(Math.max(a-1,0)))),!0}},tx=function(){return function(e){var t=e.tr,n=e.dispatch,r=t.selection.$anchor.node();if(r.content.size>0)return!1;for(var i=t.selection.$anchor,o=i.depth;o>0;o-=1){if(i.node(o).type===r.type){if(n){var a=i.before(o),s=i.after(o);t.delete(a,s).scrollIntoView()}return!0}}return!1}};function nx(e,t){if("string"===typeof e){if(!t.nodes[e])throw Error("There is no node type named '".concat(e,"'. Maybe you forgot to add the extension?"));return t.nodes[e]}return e}var rx=function(e){return function(t){for(var n=t.tr,r=t.state,i=t.dispatch,o=nx(e,r.schema),a=n.selection.$anchor,s=a.depth;s>0;s-=1){if(a.node(s).type===o){if(i){var l=a.before(s),c=a.after(s);n.delete(l,c).scrollIntoView()}return!0}}return!1}},ix=function(e){return function(t){var n=t.tr,r=t.dispatch,i=e.from,o=e.to;return r&&n.delete(i,o),!0}},ox=function(e,t,n){if(!e.parent.isInline)return e.pos;if("left"===n&&e.pos>e.start()||"right"===n&&e.pos<e.end())return e.pos;var r,i=t.nodes[e.parent.type.name].spec;return(r=i).content&&/^text(\*|\+)/.test(r.content)?"left"===n?e.start()-1:e.end()+1:e.pos},ax=function(){return function(e){var t=e.state,n=e.dispatch,r=t.selection,i=r.$from,o=r.$to;if(t.selection.empty)return!1;var a=function(e,t,n){return{from:ox(e,n,"left"),to:ox(t,n,"right")}}(i,o,t.schema),s=a.from,l=a.to;return n&&(t.tr.deleteRange(s,l).scrollIntoView(),n(t.tr)),!0}},sx=function(){return function(e){return e.commands.keyboardShortcut("Enter")}},lx=function(){return function(e){var t=e.state,n=e.dispatch;return Qm(t,n)}};function cx(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function ux(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{strict:!0},r=Object.keys(t);return!r.length||r.every((function(r){return n.strict?t[r]===e[r]:cx(t[r])?t[r].test(e[r]):t[r]===e[r]}))}function dx(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.find((function(e){return e.type===t&&ux(Object.fromEntries(Object.keys(n).map((function(t){return[t,e.attrs[t]]}))),n)}))}function fx(e,t){return!!dx(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}function px(e,t,n){if(e&&t){var r=e.parent.childAfter(e.parentOffset);if(r.node&&r.node.marks.some((function(e){return e.type===t}))||(r=e.parent.childBefore(e.parentOffset)),r.node&&r.node.marks.some((function(e){return e.type===t}))){if(!n){var i=r.node.marks.find((function(e){return e.type===t}));i&&(n=i.attrs)}if(dx((0,v.Z)(r.node.marks),t,n)){for(var o=r.index,a=e.start()+r.offset,s=o+1,l=a+r.node.nodeSize;o>0&&fx((0,v.Z)(e.parent.child(o-1).marks),t,n);)o-=1,a-=e.parent.child(o).nodeSize;for(;s<e.parent.childCount&&fx((0,v.Z)(e.parent.child(s).marks),t,n);)l+=e.parent.child(s).nodeSize,s+=1;return{from:a,to:l}}}}}function hx(e,t){if("string"===typeof e){if(!t.marks[e])throw Error("There is no mark type named '".concat(e,"'. Maybe you forgot to add the extension?"));return t.marks[e]}return e}var mx=function(e,t){return function(n){var r=n.tr,i=n.state,o=n.dispatch,a=hx(e,i.schema),s=r.doc,l=r.selection,c=l.$from,u=l.from,d=l.to;if(o){var f=px(c,a,t);if(f&&f.from<=u&&f.to>=d){var p=wm.create(s,f.from,f.to);r.setSelection(p)}}return!0}},vx=function(e){return function(t){for(var n="function"===typeof e?e(t):e,r=0;r<n.length;r+=1)if(n[r](t))return!0;return!1}};function gx(e){return e instanceof wm}function yx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.min(Math.max(e,t),n)}function bx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return null;var n=gm.atStart(e),r=gm.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return r;var i=n.from,o=r.to;return"all"===t?wm.create(e,yx(0,i,o),yx(e.content.size,i,o)):wm.create(e,yx(t,i,o),yx(t,i,o))}function xx(){return"Android"===navigator.platform||/android/i.test(navigator.userAgent)}function wx(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var kx=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.editor,i=n.view,o=n.tr,a=n.dispatch;t=(0,A.Z)({scrollIntoView:!0},t);var s=function(){(wx()||xx())&&i.dom.focus(),"undefined"===typeof navigator||!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||wx()||xx()||i.dom.focus({preventScroll:!0}),requestAnimationFrame((function(){r.isDestroyed||(i.focus(),(null==t?void 0:t.scrollIntoView)&&r.commands.scrollIntoView())}))};try{if(i.hasFocus()&&null===e||!1===e)return!0}catch(u){return!1}if(a&&null===e&&!gx(r.state.selection))return s(),!0;var l=bx(o.doc,e)||r.state.selection,c=r.state.selection.eq(l);return a&&(c||o.setSelection(l),c&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0}},Sx=function(e,t){return function(n){return e.every((function(e,r){return t(e,(0,A.Z)((0,A.Z)({},n),{},{index:r}))}))}},jx=function(e,t){return function(n){var r=n.tr;return n.commands.insertContentAt({from:r.selection.from,to:r.selection.to},e,t)}},Cx=function e(t){for(var n=t.childNodes,r=n.length-1;r>=0;r-=1){var i=n[r];3===i.nodeType&&i.nodeValue&&/^(\n\s\s|\n)$/.test(i.nodeValue)?t.removeChild(i):1===i.nodeType&&e(i)}return t};function _x(e){if("undefined"===typeof window)throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");var t="<body>".concat(e,"</body>"),n=(new window.DOMParser).parseFromString(t,"text/html").body;return Cx(n)}function Ex(e,t,n){if(e instanceof Hp||e instanceof bp)return e;
2n=(0,A.Z)({slice:!0,parseOptions:{}},n);var r="string"===typeof e;if("object"===typeof e&&null!==e)try{if(Array.isArray(e)&&e.length>0)return bp.fromArray(e.map((function(e){return t.nodeFromJSON(e)})));var i=t.nodeFromJSON(e);return n.errorOnInvalidContent&&i.check(),i}catch(UP){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:UP});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",UP),Ex("",t,n)}if(r){if(n.errorOnInvalidContent){var o=!1,a="",s=new ch({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:function(e){return o=!0,a="string"===typeof e?e:e.outerHTML,null}}]}})});if(n.slice?dh.fromSchema(s).parseSlice(_x(e),n.parseOptions):dh.fromSchema(s).parse(_x(e),n.parseOptions),n.errorOnInvalidContent&&o)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error("Invalid element found: ".concat(a))})}var l=dh.fromSchema(t);return n.slice?l.parseSlice(_x(e),n.parseOptions).content:l.parse(_x(e),n.parseOptions)}return Ex("",t,n)}var Nx=function(e,t,n){return function(r){var i,o=r.tr,a=r.dispatch,s=r.editor;if(a){var l;n=(0,A.Z)({parseOptions:s.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1},n);var c=function(e){s.emit("contentError",{editor:s,error:e,disableCollaboration:function(){"collaboration"in s.storage&&"object"===typeof s.storage.collaboration&&s.storage.collaboration&&(s.storage.collaboration.isDisabled=!0)}})},u=(0,A.Z)({preserveWhitespace:"full"},n.parseOptions);if(!n.errorOnInvalidContent&&!s.options.enableContentCheck&&s.options.emitContentError)try{Ex(t,s.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(j){c(j)}try{l=Ex(t,s.schema,{parseOptions:u,errorOnInvalidContent:null!=(i=n.errorOnInvalidContent)?i:s.options.enableContentCheck})}catch(j){return c(j),!1}var d,f="number"===typeof e?{from:e,to:e}:{from:e.from,to:e.to},p=f.from,h=f.to,m=!0,v=!0;if(("type"in l?[l]:l).forEach((function(e){e.check(),m=!!m&&(e.isText&&0===e.marks.length),v=!!v&&e.isBlock})),p===h&&v){var g=o.doc.resolve(p).parent;g.isTextblock&&!g.type.spec.code&&!g.childCount&&(p-=1,h+=1)}if(m){if(Array.isArray(t))d=t.map((function(e){return e.text||""})).join("");else if(t instanceof bp){var y="";t.forEach((function(e){e.text&&(y+=e.text)})),d=y}else d="object"===typeof t&&t&&t.text?t.text:t;o.insertText(d,p,h)}else{d=l;var b=o.doc.resolve(p),x=b.node(),w=0===b.parentOffset,k=x.isText||x.isTextblock,S=x.content.size>0;w&&k&&S&&v&&(p=Math.max(0,p-1)),o.replaceWith(p,h,d)}n.updateSelection&&function(e,t,n){var r=e.steps.length-1;if(!(r<t)){var i=e.steps[r];if(i instanceof zh||i instanceof Uh){var o=e.mapping.maps[r],a=0;o.forEach((function(e,t,n,r){0===a&&(a=r)})),e.setSelection(gm.near(e.doc.resolve(a),n))}}}(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:p,text:d}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:p,text:d})}return!0}},Ax=function(){return function(e){return function(e,t){var n,r=e.selection,i=r instanceof Sm;if(i){if(r.node.isTextblock||!Xh(e.doc,r.from))return!1;n=r.from}else if(null==(n=em(e.doc,r.from,-1)))return!1;if(t){var o=e.tr.join(n);i&&o.setSelection(Sm.create(o.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0}(e.state,e.dispatch)}},Dx=function(){return function(e){return function(e,t){var n,r=e.selection;if(r instanceof Sm){if(r.node.isTextblock||!Xh(e.doc,r.to))return!1;n=r.to}else if(null==(n=em(e.doc,r.to,1)))return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0}(e.state,e.dispatch)}},Tx=function(){return function(e){var t=e.state,n=e.dispatch;return Um(t,n)}},Ix=function(){return function(e){var t=e.state,n=e.dispatch;return $m(t,n)}},Px=function(){return function(e){var t=e.state,n=e.dispatch,r=e.tr;try{var i=em(t.doc,t.selection.$from.pos,-1);return null!==i&&void 0!==i&&(r.join(i,2),n&&n(r),!0)}catch(o){return!1}}},Fx=function(){return function(e){var t=e.state,n=e.dispatch,r=e.tr;try{var i=em(t.doc,t.selection.$from.pos,1);return null!==i&&void 0!==i&&(r.join(i,2),n&&n(r),!0)}catch(o){return!1}}},Ox=function(){return function(e){return function(e,t,n){var r=zm(e,n);if(!r)return!1;var i=Vm(r);return!!i&&Hm(e,i,t)}(e.state,e.dispatch)}},Mx=function(){return function(e){return function(e,t,n){var r=Gm(e,n);if(!r)return!1;var i=Km(r);return!!i&&Hm(e,i,t)}(e.state,e.dispatch)}};function Zx(){return"undefined"!==typeof navigator&&/Mac/.test(navigator.platform)}var Rx=function(e){return function(t){var n=t.editor,r=t.view,i=t.tr,o=t.dispatch,a=function(e){var t,n,r,i,o=e.split(/-(?!$)/),a=o[o.length-1];"Space"===a&&(a=" ");for(var s=0;s<o.length-1;s+=1){var l=o[s];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))r=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: ".concat(l));wx()||Zx()?i=!0:n=!0}}return t&&(a="Alt-".concat(a)),n&&(a="Ctrl-".concat(a)),i&&(a="Meta-".concat(a)),r&&(a="Shift-".concat(a)),a}(e).split(/-(?!$)/),s=a.find((function(e){return!["Alt","Ctrl","Meta","Shift"].includes(e)}
2)),l=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),c=n.captureTransaction((function(){r.someProp("handleKeyDown",(function(e){return e(r,l)}))}));return null==c||c.steps.forEach((function(e){var t=e.map(i.mapping);t&&o&&i.maybeStep(t)})),!0}};function Lx(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.selection,i=r.from,o=r.to,a=r.empty,s=t?nx(t,e.schema):null,l=[];e.doc.nodesBetween(i,o,(function(e,t){if(!e.isText){var n=Math.max(i,t),r=Math.min(o,t+e.nodeSize);l.push({node:e,from:n,to:r})}}));var c=o-i,u=l.filter((function(e){return!s||s.name===e.node.type.name})).filter((function(e){return ux(e.node.attrs,n,{strict:!1})}));return a?!!u.length:u.reduce((function(e,t){return e+t.to-t.from}),0)>=c}var Bx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.state,i=n.dispatch;return!!Lx(r,nx(e,r.schema),t)&&function(e,t){var n=e.selection,r=n.$from,i=n.$to,o=r.blockRange(i),a=o&&Vh(o);return null!=a&&(t&&t(e.tr.lift(o,a).scrollIntoView()),!0)}(r,i)}},zx=function(){return function(e){var t=e.state,n=e.dispatch;return tv(t,n)}},Ux=function(e){return function(t){var n=t.state,r=t.dispatch;return vv(nx(e,n.schema))(n,r)}},Hx=function(){return function(e){var t=e.state,n=e.dispatch;return Ym(t,n)}};function Wx(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function qx(e,t){var n="string"===typeof t?[t]:t;return Object.keys(e).reduce((function(t,r){return n.includes(r)||(t[r]=e[r]),t}),{})}var Vx=function(e,t){return function(n){var r=n.tr,i=n.state,o=n.dispatch,a=null,s=null,l=Wx("string"===typeof e?e:e.name,i.schema);if(!l)return!1;"node"===l&&(a=nx(e,i.schema)),"mark"===l&&(s=hx(e,i.schema));var c=!1;return r.selection.ranges.forEach((function(e){i.doc.nodesBetween(e.$from.pos,e.$to.pos,(function(e,n){a&&a===e.type&&(c=!0,o&&r.setNodeMarkup(n,void 0,qx(e.attrs,t))),s&&e.marks.length&&e.marks.forEach((function(i){s===i.type&&(c=!0,o&&r.addMark(n,n+e.nodeSize,s.create(qx(i.attrs,t))))}))}))})),c}},Gx=function(){return function(e){var t=e.tr;return e.dispatch&&t.scrollIntoView(),!0}},$x=function(){return function(e){var t=e.tr;if(e.dispatch){var n=new Cm(t.doc);t.setSelection(n)}return!0}},Jx=function(){return function(e){var t=e.state,n=e.dispatch;return qm(t,n)}},Kx=function(){return function(e){var t=e.state,n=e.dispatch;return Jm(t,n)}},Yx=function(){return function(e){return function(e,t){var n,r=e.selection,i=r.$from,o=r.to,a=i.sharedDepth(o);return 0!=a&&(n=i.before(a),t&&t(e.tr.setSelection(Sm.create(e.doc,n))),!0)}(e.state,e.dispatch)}},Xx=function(){return function(e){var t=e.state,n=e.dispatch;return sv(t,n)}},Qx=function(){return function(e){var t=e.state,n=e.dispatch;return av(t,n)}};function ew(e,t){return Ex(e,t,{slice:!1,parseOptions:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},errorOnInvalidContent:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).errorOnInvalidContent})}var tw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errorOnInvalidContent,r=t.emitUpdate,i=void 0===r||r,o=t.parseOptions,a=void 0===o?{}:o;return function(t){var r=t.editor,o=t.tr,s=t.dispatch,l=t.commands,c=o.doc;if("full"!==a.preserveWhitespace){var u=ew(e,r.schema,a,{errorOnInvalidContent:null!=n?n:r.options.enableContentCheck});return s&&o.replaceWith(0,c.content.size,u).setMeta("preventUpdate",!i),!0}return s&&o.setMeta("preventUpdate",!i),l.insertContentAt({from:0,to:c.content.size},e,{parseOptions:a,errorOnInvalidContent:null!=n?n:r.options.enableContentCheck})}};function nw(e,t){var n=hx(t,e.schema),r=e.selection,i=r.from,o=r.to,a=r.empty,s=[];a?(e.storedMarks&&s.push.apply(s,(0,v.Z)(e.storedMarks)),s.push.apply(s,(0,v.Z)(e.selection.$head.marks()))):e.doc.nodesBetween(i,o,(function(e){s.push.apply(s,(0,v.Z)(e.marks))}));var l=s.find((function(e){return e.type.name===n.name}));return l?(0,A.Z)({},l.attrs):{}}function rw(e,t){var n=new mm(e);return t.forEach((function(e){e.steps.forEach((function(e){n.step(e)}))})),n}function iw(e){return function(t){return function(e,t){for(var n=e.depth;n>0;n-=1){var r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}(t.$from,e)}}function ow(e,t,n){return void 0===e.config[t]&&e.parent?ow(e.parent,t,n):"function"===typeof e.config[t]?e.config[t].bind((0,A.Z)((0,A.Z)({},n),{},{parent:e.parent?ow(e.parent,t,n):null})):e.config[t]}function aw(e){return e.map((function(e){var t=ow(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return t?[e].concat((0,v.Z)(aw(t()))):e})).flat(10)}function sw(e,t){var n=wh.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function lw(e){return"function"===typeof e}function cw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(lw(e)){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return t?e.bind(t).apply(void 0,r):e.apply(void 0,r)}return e}function uw(e){var t=e.filter((function(e){return"extension"===e.type})),n=e.filter((function(e){return"node"===e.type}
2)),r=e.filter((function(e){return"mark"===e.type}));return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function dw(e){var t=[],n=uw(e),r=n.nodeExtensions,i=n.markExtensions,o=[].concat((0,v.Z)(r),(0,v.Z)(i)),a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},s=r.filter((function(e){return"text"!==e.name})).map((function(e){return e.name})),l=i.map((function(e){return e.name})),c=[].concat((0,v.Z)(s),(0,v.Z)(l));return e.forEach((function(e){var n=ow(e,"addGlobalAttributes",{name:e.name,options:e.options,storage:e.storage,extensions:o});n&&n().forEach((function(e){(Array.isArray(e.types)?e.types:"*"===e.types?c:"nodes"===e.types?s:"marks"===e.types?l:[]).forEach((function(n){Object.entries(e.attributes).forEach((function(e){var r=(0,p.Z)(e,2),i=r[0],o=r[1];t.push({type:n,name:i,attribute:(0,A.Z)((0,A.Z)({},a),o)})}))}))}))})),o.forEach((function(e){var n={name:e.name,options:e.options,storage:e.storage},r=ow(e,"addAttributes",n);if(r){var i=r();Object.entries(i).forEach((function(n){var r=(0,p.Z)(n,2),i=r[0],o=r[1],s=(0,A.Z)((0,A.Z)({},a),o);"function"===typeof(null==s?void 0:s.default)&&(s.default=s.default()),(null==s?void 0:s.isRequired)&&void 0===(null==s?void 0:s.default)&&delete s.default,t.push({type:e.name,name:i,attribute:s})}))}})),t}function fw(e){for(var t=[],n=function(e){for(var t=[],n="",r=!1,i=!1,o=0,a=e.length,s=0;s<a;s+=1){var l=e[s];if("'"!==l||i)if('"'!==l||r){if(!r&&!i){if("("===l){o+=1,n+=l;continue}if(")"===l&&o>0){o-=1,n+=l;continue}if(";"===l&&0===o){t.push(n),n="";continue}}n+=l}else i=!i,n+=l;else r=!r,n+=l}return n&&t.push(n),t}(e||""),r=n.length,i=0;i<r;i+=1){var o=n[i],a=o.indexOf(":");if(-1!==a){var s=o.slice(0,a).trim(),l=o.slice(a+1).trim();s&&l&&t.push([s,l])}}return t}function pw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return!!e})).reduce((function(e,t){var n=(0,A.Z)({},e);return Object.entries(t).forEach((function(e){var t=(0,p.Z)(e,2),r=t[0],i=t[1];if(n[r])if("class"===r){var o=i?String(i).split(" "):[],a=n[r]?n[r].split(" "):[],s=o.filter((function(e){return!a.includes(e)}));n[r]=[].concat((0,v.Z)(a),(0,v.Z)(s)).join(" ")}else if("style"===r){var l=new Map([].concat((0,v.Z)(fw(n[r])),(0,v.Z)(fw(i))));n[r]=Array.from(l.entries()).map((function(e){var t=(0,p.Z)(e,2),n=t[0],r=t[1];return"".concat(n,": ").concat(r)})).join("; ")}else n[r]=i;else n[r]=i})),n}),{})}function hw(e,t){return t.filter((function(t){return t.type===e.type.name})).filter((function(e){return e.attribute.rendered})).map((function(t){return t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:(0,Sn.Z)({},t.name,e.attrs[t.name])})).reduce((function(e,t){return pw(e,t)}),{})}function mw(e,t){return"style"in e?e:(0,A.Z)((0,A.Z)({},e),{},{getAttrs:function(n){var r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;var i=t.reduce((function(e,t){var r=t.attribute.parseHTML?t.attribute.parseHTML(n):function(e){return"string"!==typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===e||"false"!==e&&e}(n.getAttribute(t.name));return null===r||void 0===r?e:(0,A.Z)((0,A.Z)({},e),{},(0,Sn.Z)({},t.name,r))}),{});return(0,A.Z)((0,A.Z)({},r),i)}})}function vw(e){return Object.fromEntries(Object.entries(e).filter((function(e){var t=(0,p.Z)(e,2),n=t[0],r=t[1];return("attrs"!==n||!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length&&e.constructor===Object}(r))&&(null!==r&&void 0!==r)})))}function gw(e){var t,n,r={};return!(null==(t=null==e?void 0:e.attribute)?void 0:t.isRequired)&&"default"in((null==e?void 0:e.attribute)||{})&&(r.default=e.attribute.default),void 0!==(null==(n=null==e?void 0:e.attribute)?void 0:n.validate)&&(r.validate=e.attribute.validate),[e.name,r]}function yw(e,t){var n,r=dw(e),i=uw(e),o=i.nodeExtensions,a=i.markExtensions,s=null==(n=o.find((function(e){return ow(e,"topNode")})))?void 0:n.name,l=Object.fromEntries(o.map((function(n){var i=r.filter((function(e){return e.type===n.name})),o={name:n.name,options:n.options,storage:n.storage,editor:t},a=e.reduce((function(e,t){var r=ow(t,"extendNodeSchema",o);return(0,A.Z)((0,A.Z)({},e),r?r(n):{})}),{}),s=vw((0,A.Z)((0,A.Z)({},a),{},{content:cw(ow(n,"content",o)),marks:cw(ow(n,"marks",o)),group:cw(ow(n,"group",o)),inline:cw(ow(n,"inline",o)),atom:cw(ow(n,"atom",o)),selectable:cw(ow(n,"selectable",o)),draggable:cw(ow(n,"draggable",o)),code:cw(ow(n,"code",o)),whitespace:cw(ow(n,"whitespace",o)),linebreakReplacement:cw(ow(n,"linebreakReplacement",o)),defining:cw(ow(n,"defining",o)),isolating:cw(ow(n,"isolating",o)),attrs:Object.fromEntries(i.map(gw))})),l=cw(ow(n,"parseHTML",o));l&&(s.parseDOM=l.map((function(e){return mw(e,i)})));var c=ow(n,"renderHTML",o);c&&(s.toDOM=function(e){return c({node:e,HTMLAttributes:hw(e,i)})});var u=ow(n,"renderText",o);return u&&(s.toText=u),[n.name,s]}))),c=Object.fromEntries(a.map((function(n){var i=r.filter((function(e){return e.type===n.name})),o={name:n.name,options:n.options,storage:n.storage,editor:t},a=e.reduce((function(e,t){var r=ow(t,"extendMarkSchema",o);return(0,A.Z)((0,A.Z)({},e),r?r(n):{})}),{}),s=vw((0,A.Z)((0,A.Z)({},a),{},{inclusive:cw(ow(n,"inclusive",o)),excludes:cw(ow(n,"excludes",o)),group:cw(ow(n,"group",o)),spanning:cw(ow(n,"spanning",o)),code:cw(ow(n,"code",o)),attrs:Object.fromEntries(i.map(gw))})),l=cw(ow(n,"parseHTML",o));l&&(s.parseDOM=l.map((function(e){return mw(e,i)})));var c=ow(n,"renderHTML",o);return c&&(s.toDOM=function(e){return c({mark:e,HTMLAttributes:hw(e,i)})}),[n.name,s]})));return new ch({topNode:s,nodes:l,marks:c})}function bw(e){return e.sort((function(e,t){var n=ow(e,"priority")||100,r=ow(t,"priority")||100;return n>r?-1:n<r?1:0}))}function xw(e){var t=bw(aw(e)),n=function(e){var t=e.filter((function(t,n){return e.indexOf(t)!==n}));return Array.from(new Set(t))}(t.map((function(e){return e.name})));return n.length&&console.warn("[tiptap warn]: Duplicate extension names found: [".concat(n.map((function(e){return"'".concat(e,"'")})).join(", "),"]. This can lead to issues.")),t}function ww(e,t,n){var r=t.from,i=t.to,o=n||{}
2,a=o.blockSeparator,s=void 0===a?"\n\n":a,l=o.textSerializers,c=void 0===l?{}:l,u="";return e.nodesBetween(r,i,(function(e,n,o,a){var l;e.isBlock&&n>r&&(u+=s);var d=null==c?void 0:c[e.type.name];if(d)return o&&(u+=d({node:e,pos:n,parent:o,index:a,range:t})),!1;e.isText&&(u+=null==(l=null==e?void 0:e.text)?void 0:l.slice(Math.max(r,n)-n,i-n))})),u}function kw(e,t){return ww(e,{from:0,to:e.content.size},t)}function Sw(e){return Object.fromEntries(Object.entries(e.nodes).filter((function(e){return(0,p.Z)(e,2)[1].spec.toText})).map((function(e){var t=(0,p.Z)(e,2);return[t[0],t[1].spec.toText]})))}function jw(e,t){var n=Wx("string"===typeof t?t:t.name,e.schema);return"node"===n?function(e,t){var n=nx(t,e.schema),r=e.selection,i=r.from,o=r.to,a=[];e.doc.nodesBetween(i,o,(function(e){a.push(e)}));var s=a.reverse().find((function(e){return e.type.name===n.name}));return s?(0,A.Z)({},s.attrs):{}}(e,t):"mark"===n?nw(e,t):{}}function Cw(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON.stringify,n={};return e.filter((function(e){var r=t(e);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)}))}(e);return 1===t.length?t:t.filter((function(e,n){var r=t.filter((function(e,t){return t!==n}));return!r.some((function(t){return e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to}))}))}function _w(e){var t=e.mapping,n=e.steps,r=[];return t.maps.forEach((function(e,i){var o=[];if(e.ranges.length)e.forEach((function(e,t){o.push({from:e,to:t})}));else{var a=n[i],s=a.from,l=a.to;if(void 0===s||void 0===l)return;o.push({from:s,to:l})}o.forEach((function(e){var n=e.from,o=e.to,a=t.slice(i).map(n,-1),s=t.slice(i).map(o),l=t.invert().map(a,-1),c=t.invert().map(s);r.push({oldRange:{from:l,to:c},newRange:{from:a,to:s}})}))})),Cw(r)}function Ew(e,t,n){var r=[];return e===t?n.resolve(e).marks().forEach((function(t){var i=px(n.resolve(e),t.type);i&&r.push((0,A.Z)({mark:t},i))})):n.nodesBetween(e,t,(function(e,t){e&&void 0!==(null==e?void 0:e.nodeSize)&&r.push.apply(r,(0,v.Z)(e.marks.map((function(n){return{from:t,to:t+e.nodeSize,mark:n}}))))})),r}function Nw(e,t){return t.nodes[e]||t.marks[e]||null}function Aw(e,t,n){return Object.fromEntries(Object.entries(n).filter((function(n){var r=(0,p.Z)(n,1)[0],i=e.find((function(e){return e.type===t&&e.name===r}));return!!i&&i.attribute.keepOnSplit})))}var Dw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n="",r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(function(e,t,i,o){var a,s,l=(null==(s=(a=e.type.spec).toText)?void 0:s.call(a,{node:e,pos:t,parent:i,index:o}))||e.textContent||"%leaf%";n+=e.isAtom&&!e.isText?l:l.slice(0,Math.max(0,r-t))})),n};function Tw(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.selection,i=r.empty,o=r.ranges,a=t?hx(t,e.schema):null;if(i)return!!(e.storedMarks||e.selection.$from.marks()).filter((function(e){return!a||a.name===e.type.name})).find((function(e){return ux(e.attrs,n,{strict:!1})}));var s=0,l=[];
2if(o.forEach((function(t){var n=t.$from,r=t.$to,i=n.pos,o=r.pos;e.doc.nodesBetween(i,o,(function(e,t){if(a&&e.inlineContent&&!e.type.allowsMarkType(a))return!1;if(e.isText||e.marks.length){var n=Math.max(i,t),r=Math.min(o,t+e.nodeSize);s+=r-n,l.push.apply(l,(0,v.Z)(e.marks.map((function(e){return{mark:e,from:n,to:r}}))))}}))})),0===s)return!1;var c=l.filter((function(e){return!a||a.name===e.mark.type.name})).filter((function(e){return ux(e.mark.attrs,n,{strict:!1})})).reduce((function(e,t){return e+t.to-t.from}),0),u=l.filter((function(e){return!a||e.mark.type!==a&&e.mark.type.excludes(a)})).reduce((function(e,t){return e+t.to-t.from}),0);return(c>0?c+u:c)>=s}function Iw(e,t){return Array.isArray(t)?t.some((function(t){return("string"===typeof t?t:t.name)===e.name})):t}function Pw(e,t){var n=uw(t).nodeExtensions.find((function(t){return t.name===e}));if(!n)return!1;var r=cw(ow(n,"group",{name:n.name,options:n.options,storage:n.storage}));return"string"===typeof r&&r.split(" ").includes("list")}function Fw(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.checkChildren,i=void 0===r||r,o=n.ignoreWhitespace,a=void 0!==o&&o;if(a){if("hardBreak"===e.type.name)return!0;if(e.isText)return!/\S/.test(null!=(t=e.text)?t:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(0===e.content.childCount)return!0;if(i){var s=!0;return e.content.forEach((function(e){!1!==s&&(Fw(e,{ignoreWhitespace:a,checkChildren:i})||(s=!1))})),s}return!1}function Ow(e){return e instanceof Sm}var Mw=function(){function e(t){(0,ha.Z)(this,e),this.position=t}return(0,ma.Z)(e,[{key:"toJSON",value:function(){return{position:this.position}}}],[{key:"fromJSON",value:function(t){return new e(t.position)}}]),e}();function Zw(e,t){var n=t.mapping.mapResult(e.position);return{position:new Mw(n.pos),mapResult:n}}function Rw(e){return new Mw(e)}function Lw(e,t,n){var r=e.state.doc.content.size,i=yx(t,0,r),o=yx(n,0,r),a=e.coordsAtPos(i),s=e.coordsAtPos(o,-1),l=Math.min(a.top,s.top),c=Math.max(a.bottom,s.bottom),u=Math.min(a.left,s.left),d=Math.max(a.right,s.right),f={top:l,bottom:c,left:u,right:d,width:d-u,height:c-l,x:u,y:l};return(0,A.Z)((0,A.Z)({},f),{},{toJSON:function(){return f}})}var Bw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.tr,i=n.state,o=n.dispatch,a=r.selection,s=a.empty,l=a.ranges,c=hx(e,i.schema);if(o)if(s){var u=nw(i,c);r.addStoredMark(c.create((0,A.Z)((0,A.Z)({},u),t)))}else l.forEach((function(e){var n=e.$from.pos,o=e.$to.pos;i.doc.nodesBetween(n,o,(function(e,i){var a=Math.max(i,n),s=Math.min(i+e.nodeSize,o),l=e.marks.find((function(e){return e.type===c}));l?e.marks.forEach((function(e){c===e.type&&r.addMark(a,s,c.create((0,A.Z)((0,A.Z)({},e.attrs),t)))})):r.addMark(a,s,c.create(t))}))}));return function(e,t,n){var r,i=t.selection,o=null;
2if(gx(i)&&(o=i.$cursor),o){var a=null!=(r=e.storedMarks)?r:o.marks();return o.parent.type.allowsMarkType(n)&&(!!n.isInSet(a)||!a.some((function(e){return e.type.excludes(n)})))}return i.ranges.some((function(t){var r=t.$from,i=t.$to,o=0===r.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(r.pos,i.pos,(function(e,t,r){if(o)return!1;if(e.isInline){var i=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some((function(e){return e.type.excludes(n)}));o=i&&a}return!o})),o}))}(i,r,c)}},zw=function(e,t){return function(n){return n.tr.setMeta(e,t),!0}},Uw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r,i=n.state,o=n.dispatch,a=n.chain,s=nx(e,i.schema);return i.selection.$anchor.sameParent(i.selection.$head)&&(r=i.selection.$anchor.parent.attrs),s.isTextblock?a().command((function(e){var n=e.commands;return!!lv(s,(0,A.Z)((0,A.Z)({},r),t))(i)||n.clearNodes()})).command((function(e){var n=e.state;return lv(s,(0,A.Z)((0,A.Z)({},r),t))(n,o)})).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)}},Hw=function(e){return function(t){var n=t.tr;if(t.dispatch){var r=n.doc,i=yx(e,0,r.content.size),o=Sm.create(r,i);n.setSelection(o)}return!0}},Ww=function(e,t){return function(n){var r,i,o=n.tr,a=n.state,s=n.dispatch,l=a.selection;return"number"===typeof t?(r=t,i=t):t&&"from"in t&&"to"in t?(r=t.from,i=t.to):(r=l.from,i=l.to),s&&o.doc.nodesBetween(r,i,(function(t,n){t.isText||o.setNodeMarkup(n,void 0,(0,A.Z)((0,A.Z)({},t.attrs),{},{dir:e}))})),!0}},qw=function(e){return function(t){var n=t.tr;if(t.dispatch){var r=n.doc,i="number"===typeof e?{from:e,to:e}:e,o=i.from,a=i.to,s=wm.atStart(r).from,l=wm.atEnd(r).to,c=yx(o,s,l),u=yx(a,s,l),d=wm.create(r,c,u);n.setSelection(d)}return!0}},Vw=function(e){return function(t){var n,r=t.state,i=t.dispatch,o=nx(e,r.schema);return(n=o,function(e,t){var r=e.selection,i=r.$from,o=r.$to,a=i.blockRange(o,(function(e){return e.childCount>0&&e.firstChild.type==n}));if(!a)return!1;var s=a.startIndex;if(0==s)return!1;var l=a.parent,c=l.child(s-1);if(c.type!=n)return!1;if(t){var u=c.lastChild&&c.lastChild.type==l.type,d=bp.from(u?n.create():null),f=new Cp(bp.from(n.create(null,bp.from(l.type.create(null,d)))),u?3:1,0),p=a.start,h=a.end;t(e.tr.step(new Uh(p-(u?3:1),h,p,h,f,1,!0)).scrollIntoView())}return!0})(r,i)}};function Gw(e,t){var n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){var r=n.filter((function(e){return null==t?void 0:t.includes(e.type.name)}));e.tr.ensureMarks(r)}}var $w=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).keepMarks,t=void 0===e||e;return function(e){var n=e.tr,r=e.state,i=e.dispatch,o=e.editor,a=n.selection,s=n.doc,l=a.$from,c=a.$to,u=Aw(o.extensionManager.attributes,l.node().type.name,l.node().attrs);if(a instanceof Sm&&a.node.isBlock)return!(!l.parentOffset||!Yh(s,l.pos))&&(i&&(t&&Gw(r,o.extensionManager.splittableMarks),n.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;var d=c.parentOffset===c.parent.content.size,f=0===l.depth?void 0:function(e){for(var t=0;t<e.edgeCount;t+=1){var n=e.edge(t).type;if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(l.node(-1).contentMatchAt(l.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,h=Yh(n.doc,n.mapping.map(l.pos),1,p);if(p||h||!Yh(n.doc,n.mapping.map(l.pos),1,f?[{type:f}]:void 0)||(h=!0,p=f?[{type:f,attrs:u}]:void 0),i){if(h&&(a instanceof wm&&n.deleteSelection(),n.split(n.mapping.map(l.pos),1,p),f&&!d&&!l.parentOffset&&l.parent.type!==f)){var m=n.mapping.map(l.before()),v=n.doc.resolve(m);l.node(-1).canReplaceWith(v.index(),v.index()+1,f)&&n.setNodeMarkup(n.mapping.map(l.before()),f)}t&&Gw(r,o.extensionManager.splittableMarks),n.scrollIntoView()}return h}},Jw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r,i=n.tr,o=n.state,a=n.dispatch,s=n.editor,l=nx(e,o.schema),c=o.selection,u=c.$from,d=c.$to,f=o.selection.node;if(f&&f.isBlock||u.depth<2||!u.sameParent(d))return!1;var p=u.node(-1);if(p.type!==l)return!1;var h=s.extensionManager.attributes;if(0===u.parent.content.size&&u.node(-1).childCount===u.indexAfter(-1)){if
2(2===u.depth||u.node(-3).type!==l||u.index(-2)!==u.node(-2).childCount-1)return!1;if(a){for(var m=bp.empty,v=u.index(-1)?1:u.index(-2)?2:3,g=u.depth-v;g>=u.depth-3;g-=1)m=bp.from(u.node(g).copy(m));var y=u.indexAfter(-1)<u.node(-2).childCount?1:u.indexAfter(-2)<u.node(-3).childCount?2:3,b=(0,A.Z)((0,A.Z)({},Aw(h,u.node().type.name,u.node().attrs)),t),x=(null==(r=l.contentMatch.defaultType)?void 0:r.createAndFill(b))||void 0;m=m.append(bp.from(l.createAndFill(null,x)||void 0));var w=u.before(u.depth-(v-1));i.replace(w,u.after(-y),new Cp(m,4-v,0));var k=-1;i.doc.nodesBetween(w,i.doc.content.size,(function(e,t){if(k>-1)return!1;e.isTextblock&&0===e.content.size&&(k=t+1)})),k>-1&&i.setSelection(wm.near(i.doc.resolve(k))),i.scrollIntoView()}return!0}var S=d.pos===u.end()?p.contentMatchAt(0).defaultType:null,j=(0,A.Z)((0,A.Z)({},Aw(h,p.type.name,p.attrs)),t),C=(0,A.Z)((0,A.Z)({},Aw(h,u.node().type.name,u.node().attrs)),t);i.delete(u.pos,d.pos);var _=S?[{type:l,attrs:j},{type:S,attrs:C}]:[{type:l,attrs:j}];if(!Yh(i.doc,u.pos,2))return!1;if(a){var E=o.selection,N=o.storedMarks,D=s.extensionManager.splittableMarks,T=N||E.$to.parentOffset&&E.$from.marks();if(i.split(u.pos,2,_).scrollIntoView(),!T||!a)return!0;var I=T.filter((function(e){return D.includes(e.type.name)}));i.ensureMarks(I)}return!0}},Kw=function(e,t){var n=iw((function(e){return e.type===t}))(e.selection);if(!n)return!0;var r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;var i=e.doc.nodeAt(r);return n.node.type!==(null==i?void 0:i.type)||!Xh(e.doc,n.pos)||(e.join(n.pos),!0)},Yw=function(e,t){var n=iw((function(e){return e.type===t}))(e.selection);if(!n)return!0;var r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;var i=e.doc.nodeAt(r);return n.node.type!==(null==i?void 0:i.type)||!Xh(e.doc,r)||(e.join(r),!0)};var Xw=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(i){var o=i.editor,a=i.tr,s=i.state,l=i.dispatch,c=i.chain,u=i.commands,d=i.can,f=o.extensionManager,p=f.extensions,h=f.splittableMarks,m=nx(e,s.schema),v=nx(t,s.schema),g=s.selection,y=s.storedMarks,b=g.$from,x=g.$to,w=b.blockRange(x),k=y||g.$to.parentOffset&&g.$from.marks();if(!w)return!1;var S=iw((function(e){return Pw(e.type.name,p)}))(g),j=0===g.from&&g.to===s.doc.content.size,C=s.doc.content.content,_=1===C.length?C[0]:null,E=j&&_&&Pw(_.type.n
2ame,p)?{node:_,pos:0,depth:0}:null,N=null!=S?S:E,A=!!E;if((!!S&&w.depth>=1&&w.depth-S.depth<=1||A)&&N){if(N.node.type===m)return j&&A?c().command((function(e){var t=e.tr,n=e.dispatch,r=function(e){var t=e.doc,n=t.firstChild;if(!n)return null;var r=t.resolve(1),i=t.resolve(n.nodeSize-1);return wm.between(r,i)}(t);return!!r&&(t.setSelection(r),n&&n(t),!0)})).liftListItem(v).run():u.liftListItem(v);if(Pw(N.node.type.name,p)&&m.validContent(N.node.content))return c().command((function(){return a.setNodeMarkup(N.pos,m),!0})).command((function(){return Kw(a,m)})).command((function(){return Yw(a,m)})).run()}return n&&k&&l?c().command((function(){var e=d().wrapInList(m,r),t=k.filter((function(e){return h.includes(e.type.name)}));return a.ensureMarks(t),!!e||u.clearNodes()})).wrapInList(m,r).command((function(){return Kw(a,m)})).command((function(){return Yw(a,m)})).run():c().command((function(){return!!d().wrapInList(m,r)||u.clearNodes()})).wrapInList(m,r).command((function(){return Kw(a,m)})).command((function(){return Yw(a,m)})).run()}},Qw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var i=r.state,o=r.commands,a=n.extendEmptyMarkRange,s=void 0!==a&&a,l=hx(e,i.schema);return Tw(i,l,t)?o.unsetMark(l,{extendEmptyMarkRange:s}):o.setMark(l,t)}},ek=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var i,o=r.state,a=r.commands,s=nx(e,o.schema),l=nx(t,o.schema),c=Lx(o,s,n);return o.selection.$anchor.sameParent(o.selection.$head)&&(i=o.selection.$anchor.parent.attrs),c?a.setNode(l,i):a.setNode(s,(0,A.Z)((0,A.Z)({},i),n))}},tk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.state,i=n.commands,o=nx(e,r.schema);return Lx(r,o,t)?i.lift(o):i.wrapIn(o,t)}},nk=function(){return function(e){for(var t=e.state,n=e.dispatch,r=t.plugins,i=0;i<r.length;i+=1){var o=r[i],a=void 0;if(o.spec.isInputRules&&(a=o.getState(t))){if(n){for(var s=t.tr,l=a.transform,c=l.steps.length-1;c>=0;c-=1)s.step(l.steps[c].invert(l.docs[c]));if(a.text){var u=s.doc.resolve(a.from).marks();s.replaceWith(a.from,a.to,t.schema.text(a.text,u))}else s.delete(a.from,a.to)}return!0}}return!1}},rk=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.tr,r=t.dispatch,i=t.editor,o=e.ignoreClearable,a=void 0!==o&&o,s=n.selection,l=s.empty,c=s.ranges;if(l)return!0;var u=i.extensionManager.nonClearableMarks;if(r){var d=Object.values(i.schema.marks).filter((function(e){return a||!u.includes(e.name)}));c.forEach((function(e){var t,r=(0,ua.Z)(d);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.removeMark(e.$from.pos,e.$to.pos,i)}}catch(o){r.e(o)}finally{r.f()}}))}return!0}},ik=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r,i=n.tr,o=n.state,a=n.dispatch,s=t.extendEmptyMarkRange,l=void 0!==s&&s,c=i.selection,u=hx(e,o.schema),d=c.$from,f=c.empty,p=c.ranges;if(!a)return!0;if(f&&l){var h=c.from,m=c.to,v=null==(r=d.marks().find((function(e){return e.type===u})))?void 0:r.attrs,g=px(d,u,v);g&&(h=g.from,m=g.to),i.removeMark(h,m,u)}else p.forEach((function(e){i.removeMark(e.$from.pos,e.$to.pos,u)}));return i.removeStoredMark(u),!0}},ok=function(e){return function(t){var n,r,i=t.tr,o=t.state,a=t.dispatch,s=o.selection;return"number"===typeof e?(n=e,r=e):e&&"from"in e&&"to"in e?(n=e.from,r=e.to):(n=s.from,r=s.to),a&&i.doc.nodesBetween(n,r,(function(e,t){if(!e.isText){var n=(0,A.Z)({},e.attrs);delete n.dir,i.setNodeMarkup(t,void 0,n)}})),!0}},ak=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.tr,i=n.state,o=n.dispatch,a=null,s=null,l=Wx("string"===typeof e?e:e.name,i.schema);if(!l)return!1;"node"===l&&(a=nx(e,i.schema)),"mark"===l&&(s=hx(e,i.schema));var c=!1;return r.selection.ranges.forEach((function(e){var n,l,u,d,f=e.$from.pos,p=e.$to.pos;r.selection.empty?i.doc.nodesBetween(f,p,(function(e,t){a&&a===e.type&&(c=!0,u=Math.max(t,f),d=Math.min(t+e.nodeSize,p),n=t,l=e)})):i.doc.nodesBetween(f,p,(function(e,i){i<f&&a&&a===e.type&&(c=!0,u=Math.max(i,f),d=Math.min(i+e.nodeSize,p),n=i,l=e),i>=f&&i<=p&&(a&&a===e.type&&(c=!0,o&&r.setNodeMarkup(i,void 0,(0,A.Z)((0,A.Z)({},e.attrs),t))),s&&e.marks.length&&e.marks.forEach((function(n){if(s===n.t
2ype&&(c=!0,o)){var a=Math.max(i,f),l=Math.min(i+e.nodeSize,p);r.addMark(a,l,s.create((0,A.Z)((0,A.Z)({},n.attrs),t)))}})))})),l&&(void 0!==n&&o&&r.setNodeMarkup(n,void 0,(0,A.Z)((0,A.Z)({},l.attrs),t)),s&&l.marks.length&&l.marks.forEach((function(e){s===e.type&&o&&r.addMark(u,d,s.create((0,A.Z)((0,A.Z)({},e.attrs),t)))})))})),c}},sk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.state,i=n.dispatch;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){var i=n.selection,o=i.$from,a=i.$to,s=o.blockRange(a),l=s&&Gh(s,e,t);return!!l&&(r&&r(n.tr.wrap(s,l).scrollIntoView()),!0)}}(nx(e,r.schema),t)(r,i)}},lk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=n.state,i=n.dispatch;return mv(nx(e,r.schema),t)(r,i)}},ck=function(){function e(){(0,ha.Z)(this,e),this.callbacks={}}return(0,ma.Z)(e,[{key:"on",value:function(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}},{key:"emit",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this.callbacks[e];return o&&o.forEach((function(e){return e.apply(t,r)})),this}},{key:"off",value:function(e,t){var n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter((function(e){return e!==t})):delete this.callbacks[e]),this}},{key:"once",value:function(e,t){var n=this;return this.on(e,(function r(){n.off(e,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];t.apply(n,o)}))}},{key:"removeAllListeners",value:function(){this.callbacks={}}}]),e}(),uk=(0,ma.Z)((function e(t){var n;(0,ha.Z)(this,e),this.find=t.find,this.handler=t.handler,this.undoable=null==(n=t.undoable)||n})),dk=function(e,t){if(cx(t))return t.exec(e);var n=t(e);if(!n)return null;var r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function fk(e){var t,n=e.editor,r=e.from,i=e.to,o=e.text,a=e.rules,s=e.plugin,l=n.view;if(l.composing)return!1;var c=l.state.doc.resolve(r);if(c.parent.type.spec.code||(null==(t=c.nodeBefore||c.nodeAfter)?void 0:t.marks.find((function(e){return e.type.spec.code}))))return!1;var u=!1,d=Dw(c)+o;return a.forEach((function(e){if(!u){var t=dk(d,e.find);if(t){var a=l.state.tr,c=Vb({state:l.state,transaction:a}),f={from:r-(t[0].length-o.length),to:i},p=new Gb({editor:n,state:c}),h=p.commands,m=p.chain,v=p.can;null!==e.handler({state:c,range:f,match:t,commands:h,chain:m,can:v})&&a.steps.length&&(e.undoable&&a.setMeta(s,{transform:a,from:r,to:i,text:o}),l.dispatch(a),u=!0)}}})),u}function pk(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function hk(e,t){var n=(0,A.Z)({},e);return pk(e)&&pk(t)&&Object.keys(t).forEach((function(r){pk(t[r])&&pk(e[r])?n[r]=hk(e[r],t[r]):n[r]=t[r]})),n}var mk=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,ha.Z)(this,e),this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config=(0,A.Z)((0,A.Z)({},this.config),t),this.name=this.config.name}return(0,ma.Z)(e,[{key:"options",get:function(){return(0,A.Z)({},cw(ow(this,"addOptions",{name:this.name})))}},{key:"storage",get:function(){return(0,A.Z)({},cw(ow(this,"addStorage",{name:this.name,options:this.options})))}},{key:"configure",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.extend((0,A.Z)((0,A.Z)({},this.config),{},{addOptions:function(){return hk(e.options,t)}}));return n.name=this.name,n.parent=this.parent,this.child=null,n}},{key:"extend",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new this.constructor((0,A.Z)((0,A.Z)({},this.config),e));return t.parent=this,this.child=t,t.name="name"in e?e.name:t.parent.name,t}}]),e}(),vk=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(){var e;return(0,ha.Z)(this,n),(e=t.apply(this,arguments)).type="mark",e}
2return(0,ma.Z)(n,[{key:"configure",value:function(e){return(0,pp.Z)((0,hp.Z)(n.prototype),"configure",this).call(this,e)}},{key:"extend",value:function(e){var t="function"===typeof e?e():e;return(0,pp.Z)((0,hp.Z)(n.prototype),"extend",this).call(this,t)}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n("function"===typeof e?e():e)}},{key:"handleExit",value:function(e){var t=e.editor,n=e.mark,r=t.state.tr,i=t.state.selection.$from;if(i.pos===i.end()){var o=i.marks(),a=!!o.find((function(e){return(null==e?void 0:e.type.name)===n.name}));if(!a)return!1;var s=o.find((function(e){return(null==e?void 0:e.type.name)===n.name}));return s&&r.removeStoredMark(s),r.insertText(" ",i.pos),t.view.dispatch(r),!0}return!1}}]),n}(mk);var gk=(0,ma.Z)((function e(t){(0,ha.Z)(this,e),this.find=t.find,this.handler=t.handler})),yk=function(e,t,n){if(cx(t))return(0,v.Z)(e.matchAll(t));var r=t(e,n);return r?r.map((function(t){var n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(t.replaceWith)),n})):[]};var bk=null;function xk(e){var t,n=e.editor,r=e.rules,i=null,o=!1,a=!1,s="undefined"!==typeof ClipboardEvent?new ClipboardEvent("paste"):null;try{t="undefined"!==typeof DragEvent?new DragEvent("drop"):null}catch(u){t=null}var l=function(e){var r=e.state,i=e.from,o=e.to,a=e.rule,l=e.pasteEvt,c=r.tr,u=Vb({state:r,transaction:c}),d=function(e){var t=e.editor,n=e.state,r=e.from,i=e.to,o=e.rule,a=e.pasteEvent,s=e.dropEvent,l=new Gb({editor:t,state:n}),c=l.commands,u=l.chain,d=l.can,f=[];return n.doc.nodesBetween(r,i,(function(e,t){var l,p,h,m,v;if(!(null==(p=null==(l=e.type)?void 0:l.spec)?void 0:p.code)&&(e.isText||e.isTextblock||e.isInline)){var g=null!=(v=null!=(m=null==(h=e.content)?void 0:h.size)?m:e.nodeSize)?v:0,y=Math.max(r,t),b=Math.min(i,t+g);if(!(y>=b)){var x=e.isText?e.text||"":e.textBetween(y-t,b-t,void 0,"\ufffc");yk(x,o.find,a).forEach((function(e){if(void 0!==e.index){var t=y+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},l=o.handler({state:n,range:i,match:e,commands:c,chain:u,can:d,pasteEvent:a,dropEvent:s});f.push(l)}}))}}})),f.every((function(e){return null!==e}))}({editor:n,state:u,from:Math.max(i-1,0),to:o.b-1,rule:a,pasteEvent:l,dropEvent:t});if(d&&c.steps.length){try{t="undefined"!==typeof DragEvent?new DragEvent("drop"):null}catch(f){t=null}return s="undefined"!==typeof ClipboardEvent?new ClipboardEvent("paste"):null,c}},c=r.map((function(e){return new Mm({view:function(e){var t=function(t){var r;(i=(null==(r=e.dom.parentElement)?void 0:r.contains(t.target))?e.dom.parentElement:null)&&(bk=n)},r=function(){bk&&(bk=null)};return window.addEventListener("dragstart",t),window.addEventListener("dragend",r),{destroy:function(){window.removeEventListener("dragstart",t),window.removeEventListener("dragend",r)}}},props:{handleDOMEvents:{drop:function(e,n){if(a=i===e.dom.parentElement,t=n,!a){var r=bk;(null==r?void 0:r.isEditable)&&setTimeout((function(){var e=r.state.selection;e&&r.commands.deleteRange({from:e.from,to:e.to})}),10)}return!1},paste:function(e,t){var n,r=null==(n=t.clipboardData)?void 0:n.getData("text/html");return s=t,o=!!(null==r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:function(t,n,r){var i=t[0],c="paste"===i.getMeta("uiEvent")&&!o,u="drop"===i.getMeta("uiEvent")&&!a,d=i.getMeta("applyPasteRules"),f=!!d;if(c||u||f){if(f){var p=d.text;"string"===typeof p||(p=sw(bp.from(p),r.schema));var h=d.from,m=h+p.length,v=function(e){var t,n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return null==(t=n.clipboardData)||t.setData("text/html",e),n}(p);return l({rule:e,state:r,from:h,to:{b:m},pasteEvt:v})}var g=n.doc.content.findDiffStart(r.doc.content),y=n.doc.content.findDiffEnd(r.doc.content);if(function(e){return"number"===typeof e}(g)&&y&&g!==y.b)return l({rule:e,state:r,from:g,to:y,pasteEvt:s})}}})}));return c}var wk=function(){function e(t,n){(0,ha.Z)(this,e),this.splittableMarks=[],this.nonClearableMarks=[],this.editor=n,this.baseExtensions=t,this.extensions=xw(t),this.schema=yw(this.extensions,n),this.setupExtensions()}
2return(0,ma.Z)(e,[{key:"commands",get:function(){var e=this;return this.extensions.reduce((function(t,n){var r=ow(n,"addCommands",{name:n.name,options:n.options,storage:e.editor.extensionStorage[n.name],editor:e.editor,type:Nw(n.name,e.schema)});return r?(0,A.Z)((0,A.Z)({},t),r()):t}),{})}},{key:"plugins",get:function(){var e=this,t=this.editor,n=bw((0,v.Z)(this.extensions).reverse()).flatMap((function(n){var r={name:n.name,options:n.options,storage:e.editor.extensionStorage[n.name],editor:t,type:Nw(n.name,e.schema)},i=[],o=ow(n,"addKeyboardShortcuts",r),a={};if("mark"===n.type&&ow(n,"exitable",r)&&(a.ArrowRight=function(){return vk.handleExit({editor:t,mark:n})}),o){var s=Object.fromEntries(Object.entries(o()).map((function(e){var n=(0,p.Z)(e,2),r=n[0],i=n[1];return[r,function(){return i({editor:t})}]})));a=(0,A.Z)((0,A.Z)({},a),s)}var l=function(e){return new Mm({props:{handleKeyDown:Hb(e)}})}(a);i.push(l);var c=ow(n,"addInputRules",r);if(Iw(n,t.options.enableInputRules)&&c){var u=c();if(u&&u.length){var d=function(e){var t=e.editor,n=e.rules,r=new Mm({state:{init:function(){return null},apply:function(e,i,o){var a=e.getMeta(r);if(a)return a;var s=e.getMeta("applyInputRules");return!!s&&setTimeout((function(){var e=s.text;"string"===typeof e||(e=sw(bp.from(e),o.schema));var i=s.from,a=i+e.length;fk({editor:t,from:i,to:a,text:e,rules:n,plugin:r})})),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput:function(e,i,o,a){return fk({editor:t,from:i,to:o,text:a,rules:n,plugin:r})},handleDOMEvents:{compositionend:function(e){return setTimeout((function(){var i=e.state.selection.$cursor;i&&fk({editor:t,from:i.pos,to:i.pos,text:"",rules:n,plugin:r})})),!1}},handleKeyDown:function(e,i){if("Enter"!==i.key)return!1;var o=e.state.selection.$cursor;return!!o&&fk({editor:t,from:o.pos,to:o.pos,text:"\n",rules:n,plugin:r})}},isInputRules:!0});return r}({editor:t,rules:u}),f=Array.isArray(d)?d:[d];i.push.apply(i,(0,v.Z)(f))}}var h=ow(n,"addPasteRules",r);if(Iw(n,t.options.enablePasteRules)&&h){var m=h();if(m&&m.length){var g=xk({editor:t,rules:m});i.push.apply(i,(0,v.Z)(g))}}var y=ow(n,"addProseMirrorPlugins",r);if(y){var b=y();i.push.apply(i,(0,v.Z)(b))}return i}));return n}},{key:"attributes",get:function(){return dw(this.extensions)}},{key:"nodeViews",get:function(){var e=this,t=this.editor,n=uw(this.extensions).nodeExtensions;return Object.fromEntries(n.filter((function(e){return!!ow(e,"addNodeView")})).map((function(n){var r=e.attributes.filter((function(e){return e.type===n.name})),i={name:n.name,options:n.options,storage:e.editor.extensionStorage[n.name],editor:t,type:nx(n.name,e.schema)},o=ow(n,"addNodeView",i);if(!o)return[];var a=o();if(!a)return[];return[n.name,function(e,i,o,s,l){var c=hw(e,r);return a({node:e,view:i,getPos:o,decorations:s,innerDecorations:l,editor:t,extension:n,HTMLAttributes:c})}]})))}},{key:"dispatchTransaction",value:function(e){var t=this,n=this.editor;return bw((0,v.Z)(this.extensions).reverse()).reduceRight((function(e,r){var i={name:r.name,options:r.options,storage:t.editor.extensionStorage[r.name],editor:n,type:Nw(r.name,t.schema)},o=ow(r,"dispatchTransaction",i);return o?function(t){o.call(i,{transaction:t,next:e})}:e}),e)}},{key:"transformPastedHTML",value:function(e){var t=this,n=this.editor;return bw((0,v.Z)(this.extensions)).reduce((function(e,r){var i={name:r.name,options:r.options,storage:t.editor.extensionStorage[r.name],editor:n,type:Nw(r.name,t.schema)},o=ow(r,"transformPastedHTML",i);return o?function(t,n){var r=e(t,n);return o.call(i,r)}:e}),e||function(e){return e})}},{key:"markViews",get:function(){var e=this,t=this.editor,n=uw(this.extensions).markExtensions;return Object.fromEntries(n.filter((function(e){return!!ow(e,"addMarkView")})).map((function(n){var r=e.attributes.filter((function(e){return e.type===n.name})),i={name:n.name,options:n.options,storage:e.editor.extensionStorage[n.name],editor:t,type:hx(n.name,e.schema)},o=ow(n,"addMarkView",i);if(!o)return[];return[n.name,function(e,i,a){var s=hw(e,r);return o()({mark:e,view:i,inline:a,editor:t,extension:n,HTMLAttributes:s,updateAttributes:function(n){Kk(e,t,n)}})}]})))}},{key:"destroy",value:function(){this.extensions.forEach((function(e){for(var t=e;t.parent;){var n=t.parent;n.child===t&&(n.child=null),t=n}})),this.extensions=[],this.baseExtensions=[],this.schema=null,this.editor=null}},{key:"setupExtensions",value:function(){var e=this,t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map((function(e){return[e.name,e.storage]}))),t.forEach((function(t){var n,r,i={name:t.name,options:t.options,storage:e.editor.extensionStorage[t.name],editor:e.editor,type:Nw(t.name,e.schema)};"mark"===t.type&&((null==(n=cw(ow(t,"keepOnSplit",i)))||n)&&e.splittableMarks.push(t.name),null==(r=cw(ow(t,"clearable",i)))||r||e.nonClearableMarks.push(t.name));var o=ow(t,"onBeforeCreate",i),a=ow(t,"onCreate",i),s=ow(t,"onUpdate",i),l=ow(t,"onSelectionUpdate",i),c=ow(t,"onTransaction",i),u=ow(t,"onFocus",
2i),d=ow(t,"onBlur",i),f=ow(t,"onDestroy",i);o&&e.editor.on("beforeCreate",o),a&&e.editor.on("create",a),s&&e.editor.on("update",s),l&&e.editor.on("selectionUpdate",l),c&&e.editor.on("transaction",c),u&&e.editor.on("focus",u),d&&e.editor.on("blur",d),f&&e.editor.on("destroy",f)}))}}]),e}();wk.resolve=xw,wk.sort=bw,wk.flatten=aw;var kk={};qb(kk,{ClipboardTextSerializer:function(){return jk},Commands:function(){return Ck},Delete:function(){return _k},Drop:function(){return Ek},Editable:function(){return Nk},FocusEvents:function(){return Dk},Keymap:function(){return Tk},Paste:function(){return Ik},Tabindex:function(){return Pk},TextDirection:function(){return Fk},focusEventsPluginKey:function(){return Ak}});var Sk=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(){var e;return(0,ha.Z)(this,n),(e=t.apply(this,arguments)).type="extension",e}return(0,ma.Z)(n,[{key:"configure",value:function(e){return(0,pp.Z)((0,hp.Z)(n.prototype),"configure",this).call(this,e)}},{key:"extend",value:function(e){var t="function"===typeof e?e():e;return(0,pp.Z)((0,hp.Z)(n.prototype),"extend",this).call(this,t)}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n("function"===typeof e?e():e)}}]),n}(mk),jk=Sk.create({name:"clipboardTextSerializer",addOptions:function(){return{blockSeparator:void 0}},addProseMirrorPlugins:function(){var e=this;return[new Mm({key:new Lm("clipboardTextSerializer"),props:{clipboardTextSerializer:function(){var t=e.editor,n=t.state,r=t.schema,i=n.doc,o=n.selection,a=Sw(r),s=e.options.blockSeparator,l=(0,A.Z)((0,A.Z)({},void 0!==s?{blockSeparator:s}:{}),{},{textSerializers:a}),c=(0,v.Z)(o.ranges).sort((function(e,t){return e.$from.pos-t.$from.pos}));return c.map((function(e){var t=e.$from,n=e.$to;return ww(i,{from:t.pos,to:n.pos},l)})).join(null!=s?s:"\n\n")}}})]}}),Ck=Sk.create({name:"commands",addCommands:function(){return(0,A.Z)({},$b)}}),_k=Sk.create({name:"delete",onUpdate:function(e){var t,n,r,i=this,o=e.transaction,a=e.appendedTransactions,s=function(){var e,t,n,r;if(!(null!=(r=null==(n=null==(t=null==(e=i.editor.options.coreExtensionOptions)?void 0:e.delete)?void 0:t.filterTransaction)?void 0:n.call(t,o))?r:o.getMeta("y-sync$"))){var s=rw(o.before,[o].concat((0,v.Z)(a)));_w(s).forEach((function(e){s.mapping.mapResult(e.oldRange.from).deletedAfter&&s.mapping.mapResult(e.oldRange.to).deletedBefore&&s.before.nodesBetween(e.oldRange.from,e.oldRange.to,(function(t,n){var r=n+t.nodeSize-2,a=e.oldRange.from<=n&&r<=e.oldRange.to;i.editor.emit("delete",{type:"node",node:t,from:n,to:r,newFrom:s.mapping.map(n),newTo:s.mapping.map(r),deletedRange:e.oldRange,newRange:e.newRange,partial:!a,editor:i.editor,transaction:o,combinedTransform:s})}))}));var l=s.mapping;s.steps.forEach((function(e,t){var n,r;if(e instanceof Rh){var a=l.slice(t).map(e.from,-1),c=l.slice(t).map(e.to),u=l.invert().map(a,-1),d=l.invert().map(c),f=a>0&&(null==(n=s.doc.nodeAt(a-1))?void 0:n.marks.some((function(t){return t.eq(e.mark)}))),p=null==(r=s.doc.nodeAt(c))?void 0:r.marks.some((function(t){return t.eq(e.mark)}));i.editor.emit("delete",{type:"mark",mark:e.mark,from:e.from,to:e.to,deletedRange:{from:u,to:d},newRange:{from:a,to:c},partial:Boolean(p||f),editor:i.editor,transaction:o,combinedTransform:s})}}))}};null==(r=null==(n=null==(t=this.editor.options.coreExtensionOptions)?void 0:t.delete)?void 0:n.async)||r?setTimeout(s,0):s()}}),Ek=Sk.create({name:"drop",addProseMirrorPlugins:function(){var e=this;return[new Mm({key:new Lm("tiptapDrop"),props:{handleDrop:function(t,n,r,i){e.editor.emit("drop",{editor:e.editor,event:n,slice:r,moved:i})}}})]}}),Nk=Sk.create({name:"editable",addProseMirrorPlugins:function(){var e=this;return[new Mm({key:new Lm("editable"),props:{editable:function(){return e.editor.options.editable}}})]}}),Ak=new Lm("focusEvents"),Dk=Sk.create({name:"focusEvents",addProseMirrorPlugins:function(){var e=this.editor;return[new Mm({key:Ak,props:{handleDOMEvents:{focus:function(t,n){e.isFocused=!0;var r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}
2,blur:function(t,n){e.isFocused=!1;var r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),Tk=Sk.create({name:"keymap",addKeyboardShortcuts:function(){var e=this,t=function(){return e.editor.commands.first((function(e){var t=e.commands;return[function(){return t.undoInputRule()},function(){return t.command((function(e){var n=e.tr,r=n.selection,i=n.doc,o=r.empty,a=r.$anchor,s=a.pos,l=a.parent,c=a.parent.isTextblock&&s>0?n.doc.resolve(s-1):a,u=c.parent.type.spec.isolating,d=a.pos-a.parentOffset,f=u&&1===c.parent.childCount?d===a.pos:gm.atStart(i).from===s;return!(!o||!l.type.isTextblock||l.textContent.length||!f||f&&"paragraph"===a.parent.type.name)&&t.clearNodes()}))},function(){return t.deleteSelection()},function(){return t.joinBackward()},function(){return t.selectNodeBackward()}]}))},n=function(){return e.editor.commands.first((function(e){var t=e.commands;return[function(){return t.deleteSelection()},function(){return t.deleteCurrentNode()},function(){return t.joinForward()},function(){return t.selectNodeForward()}]}))},r={Enter:function(){return e.editor.commands.first((function(e){var t=e.commands;return[function(){return t.newlineInCode()},function(){return t.createParagraphNear()},function(){return t.liftEmptyBlock()},function(){return t.splitBlock()}]}))},"Mod-Enter":function(){return e.editor.commands.exitCode()},Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:n,"Mod-Delete":n,"Mod-a":function(){return e.editor.commands.selectAll()}},i=(0,A.Z)({},r),o=(0,A.Z)((0,A.Z)({},r),{},{"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":n,"Ctrl-Alt-Backspace":n,"Alt-Delete":n,"Alt-d":n,"Ctrl-a":function(){return e.editor.commands.selectTextblockStart()},"Ctrl-e":function(){return e.editor.commands.selectTextblockEnd()}});return wx()||Zx()?o:i},addProseMirrorPlugins:function(){var e=this;return[new Mm({key:new Lm("clearDocument"),appendTransaction:function(t,n,r){if(!t.some((function(e){return e.getMeta("composition")}))){var i=t.some((function(e){return e.docChanged}))&&!n.doc.eq(r.doc),o=t.some((function(e){return e.getMeta("preventClearDocument")}));if(i&&!o){var a=n.selection,s=a.empty,l=a.from,c=a.to,u=gm.atStart(n.doc).from,d=gm.atEnd(n.doc).to;if(!s&&(l===u&&c===d))if(Fw(r.doc)){var f=r.tr,p=Vb({state:r,transaction:f});if(new Gb({editor:e.editor,state:p}).commands.clearNodes(),f.steps.length)return f}}}}})]}}),Ik=Sk.create({name:"paste",addProseMirrorPlugins:function(){var e=this;return[new Mm({key:new Lm("tiptapPaste"),props:{handlePaste:function(t,n,r){e.editor.emit("paste",{editor:e.editor,event:n,slice:r})}}})]}}),Pk=Sk.create({name:"tabindex",addOptions:function(){return{value:void 0}},addProseMirrorPlugins:function(){var e=this;return[new Mm({key:new Lm("tabindex"),props:{attributes:function(){var t;return e.editor.isEditable||void 0!==e.options.value?{tabindex:null!=(t=e.options.value)?t:"0"}:{}}}})]}}),Fk=Sk.create({name:"textDirection",addOptions:function(){return{direction:void 0}},addGlobalAttributes:function(){var e=this;return this.options.direction?[{types:uw(this.extensions).nodeExtensions.filter((function(e){return"text"!==e.name})).map((function(e){return e.name})),attributes:{dir:{default:this.options.direction,parseHTML:function(t){var n=t.getAttribute("dir");return!n||"ltr"!==n&&"rtl"!==n&&"auto"!==n?e.options.direction:n},renderHTML:function(e){return e.dir?{dir:e.dir}:{}}}}}]:[]},addProseMirrorPlugins:function(){var e=this;return[new Mm({key:new Lm("textDirection"),props:{attributes:function(){var t=e.options.direction;return t?{dir:t}:{}}}})]}}),Ok=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,ha.Z)(this,e),this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=i}return(0,ma.Z)(e,[{key:"name",get:function(){return this.node.type.name}},{key:"node",get:function(){return this.currentNode||this.resolvedPos.node()}},{key:"element",get:function(){return this.editor.view.domAtPos(this.pos).node}},{key:"depth",get:function(){var e;return null!=(e=this.actualDepth)?e:this.resolvedPos.depth}},{key:"pos",get:function(){return this.resolvedPos.pos}},{key:"content",get:function(){return this.node.content},set:function(e){var t=this.from,n=this.to;if(this.isBlock){if(0===this.content.size)return void console.error("You can\u2019t set content on a block node. Tried to set content on ".concat(this.name," at ").concat(this.pos));t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}},{key:"attributes",get:function(){return this.node.attrs}},{key:"textContent",get:function(){return this.node.textContent}},{key:"size",get:function(){return this.node.nodeSize}},{key:"from",get:function(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}},{key:"range",get:function(){return{from:this.from,to:this.to}}},{key:"to",get:function(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}},{key:"parent",get:function(){if(0===this.depth)return null;var t=this.resolvedPos.start(this.resolvedPos.depth-1);return new e(this.resolvedPos.doc.resolve(t),this.editor)}},{key:"before",get:function(){var t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new e(t,this.editor)}},{key:"after",get:function(){var t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new e(t,this.editor)}},{key:"children",get:function(){var t=this,n=[];return this.node.content.forEach((function(r,i){var o=r.isBlock&&!r.isTextblock,a=r.isAtom&&!r.isText,s=r.isInline,l=t.pos+i+(a?0:1);if(!(l<0||l>t.resolvedPos.doc.nodeSize-2)){var c=t.resolvedPos.doc.resolve(l);if(o||s||!(c.depth<=t.depth)){var u=new e(c,t.editor,o,o||s?r:null);o&&(u.actualDepth=t.depth+1),n.push(u)}}})),n}},{key:"firstChild",get:function(){return this.children[0]||null}},{key:"lastChild",get:function(){var e=this.children;return e[e.length-1]||null}},{key:"closest",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=this.parent;r&&!n;
2){if(r.node.type.name===e)if(Object.keys(t).length>0)for(var i=r.node.attrs,o=Object.keys(t),a=0;a<o.length;a+=1){var s=o[a];if(i[s]!==t[s])break}else n=r;r=r.parent}return n}},{key:"querySelector",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.querySelectorAll(e,t,!0)[0]||null}},{key:"querySelectorAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[];if(!this.children||0===this.children.length)return r;var i=Object.keys(t);return this.children.forEach((function(o){if(!(n&&r.length>0)){if(o.node.type.name===e){var a=i.every((function(e){return t[e]===o.node.attrs[e]}));a&&r.push(o)}n&&r.length>0||(r=r.concat(o.querySelectorAll(e,t,n)))}})),r}},{key:"setAttribute",value:function(e){var t=this.editor.state.tr;t.setNodeMarkup(this.from,void 0,(0,A.Z)((0,A.Z)({},this.node.attrs),e)),this.editor.view.dispatch(t)}}]),e}();var Mk=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,ha.Z)(this,n),(e=t.call(this)).css=null,e.className="tiptap",e.editorView=null,e.isFocused=!1,e.destroyed=!1,e.isInitialized=!1,e.extensionStorage={},e.instanceId=Math.random().toString(36).slice(2,9),e.options={element:"undefined"!==typeof document?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:function(){return null},onCreate:function(){return null},onMount:function(){return null},onUnmount:function(){return null},onUpdate:function(){return null},onSelectionUpdate:function(){return null},onTransaction:function(){return null},onFocus:function(){return null},onBlur:function(){return null},onDestroy:function(){return null},onContentError:function(e){throw e.error},onPaste:function(){return null},onDrop:function(){return null},onDelete:function(){return null},enableExtensionDispatchTransaction:!0},e.isCapturingTransaction=!1,e.capturedTransaction=null,e.utils={getUpdatedPosition:Zw,createMappablePosition:Rw},e.setOptions(r),e.createExtensionManager(),e.createCommandManager(),e.createSchema(),e.on("beforeCreate",e.options.onBeforeCreate),e.emit("beforeCreate",{editor:(0,Ec.Z)(e)}),e.on("mount",e.options.onMount),e.on("unmount",e.options.onUnmount),e.on("contentError",e.options.onContentError),e.on("create",e.options.onCreate),e.on("update",e.options.onUpdate),e.on("selectionUpdate",e.options.onSelectionUpdate),e.on("transaction",e.options.onTransaction),e.on("focus",e.options.onFocus),e.on("blur",e.options.onBlur),e.on("destroy",e.options.onDestroy),e.on("drop",(function(t){var n=t.event,r=t.slice,i=t.moved;return e.options.onDrop(n,r,i)})),e.on("paste",(function(t){var n=t.event,r=t.slice;return e.options.onPaste(n,r)})),e.on("delete",e.options.onDelete);var i=e.createDoc(),o=bx(i,e.options.autofocus);return e.editorState=Fm.create({doc:i,schema:e.schema,selection:o||void 0}),e.options.element&&e.mount(e.options.element),e}return(0,ma.Z)(n,[{key:"mount",value:function(e){var t=this;if("undefined"===typeof document)throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout((function(){t.isDestroyed||(!1!==t.options.autofocus&&null!==t.options.autofocus&&t.commands.focus(t.options.autofocus),t.emit("create",{editor:t}),t.isInitialized=!0)}),0)}},{key:"unmount",value:function(){if(this.editorView){var e=this.editorView.dom;(null==e?void 0:e.editor)&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(".".concat(this.className)).length)try{"function"===typeof this.css.remove?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(UP){console.warn("Failed to remove CSS element:",UP)}
2this.css=null,this.emit("unmount",{editor:this})}},{key:"storage",get:function(){return this.extensionStorage}},{key:"commands",get:function(){return this.commandManager.commands}},{key:"chain",value:function(){return this.commandManager.chain()}},{key:"can",value:function(){return this.commandManager.can()}},{key:"injectCSS",value:function(){this.options.injectCSS&&"undefined"!==typeof document&&(this.css=function(e,t,n){var r=document.querySelector("style[data-tiptap-style".concat(n?"-".concat(n):"","]"));if(null!==r)return r;var i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style".concat(n?"-".concat(n):""),""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}('.ProseMirror {\n  position: relative;\n}\n\n.ProseMirror {\n  word-wrap: break-word;\n  white-space: pre-wrap;\n  white-space: break-spaces;\n  -webkit-font-variant-ligatures: none;\n  font-variant-ligatures: none;\n  font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n  white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n  white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n  white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n  display: inline !important;\n  border: none !important;\n  margin: 0 !important;\n  width: 0 !important;\n  height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n  display: none;\n  pointer-events: none;\n  position: absolute;\n  margin: 0;\n}
2\n\n.ProseMirror-gapcursor:after {\n  content: "";\n  display: block;\n  position: absolute;\n  top: -2px;\n  width: 20px;\n  border-top: 1px solid black;\n  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n  to {\n    visibility: hidden;\n  }\n}\n\n.ProseMirror-hideselection *::selection {\n  background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n  background: transparent;\n}\n\n.ProseMirror-hideselection * {\n  caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n  display: block;\n}',this.options.injectNonce))}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=(0,A.Z)((0,A.Z)({},this.options),e),this.editorView&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}},{key:"setEditable",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}},{key:"isEditable",get:function(){return this.options.editable&&this.view&&this.view.editable}},{key:"view",get:function(){var e=this;return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:function(t){e.editorState=t},dispatch:function(t){e.dispatchTransaction(t)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:function(t,n){if(e.editorView)return e.editorView[n];if("state"===n)return e.editorState;if(n in t)return Reflect.get(t,n);throw new Error("[tiptap error]: The editor view is not available. Cannot access view['".concat(n,"']. The editor may not be mounted yet."))}})}},{key:"state",get:function(){return this.editorView&&(this.editorState=this.view.state),this.editorState}},{key:"registerPlugin",value:function(e,t){var n=lw(t)?t(e,(0,v.Z)(this.state.plugins)):[].concat((0,v.Z)(this.state.plugins),[e]),r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}},{key:"unregisterPlugin",value:function(e){if(!this.isDestroyed){var t=this.state.plugins,n=t;if([].concat(e).forEach((function(e){var t="string"===typeof e?"".concat(e,"$"):e.ke
2y;n=n.filter((function(e){return!e.key.startsWith(t)}))})),t.length!==n.length){var r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}}}},{key:"createExtensionManager",value:function(){var e,t,n,r,i=this,o=this.options.enableCoreExtensions?[Nk,jk.configure({blockSeparator:null==(t=null==(e=this.options.coreExtensionOptions)?void 0:e.clipboardTextSerializer)?void 0:t.blockSeparator}),Ck,Dk,Tk,Pk.configure({value:null==(r=null==(n=this.options.coreExtensionOptions)?void 0:n.tabindex)?void 0:r.value}),Ek,Ik,_k,Fk.configure({direction:this.options.textDirection})].filter((function(e){return"object"!==typeof i.options.enableCoreExtensions||!1!==i.options.enableCoreExtensions[e.name]})):[],a=[].concat((0,v.Z)(o),(0,v.Z)(this.options.extensions)).filter((function(e){return["extension","node","mark"].includes(null==e?void 0:e.type)}));this.extensionManager=new wk(a,this)}},{key:"createCommandManager",value:function(){this.commandManager=new Gb({editor:this})}},{key:"createSchema",value:function(){this.schema=this.extensionManager.schema}},{key:"createDoc",value:function(){var e,t=this;try{e=ew(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(n){if(!(n instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(n.message))throw n;this.emit("contentError",{editor:this,error:n,disableCollaboration:function(){"collaboration"in t.storage&&"object"===typeof t.storage.collaboration&&t.storage.collaboration&&(t.storage.collaboration.isDisabled=!0),t.options.extensions=t.options.extensions.filter((function(e){return"collaboration"!==e.name})),t.createExtensionManager()}}),e=ew(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}},{key:"createView",value:function(e){var t=this.options,n=t.editorProps,r=t.enableExtensionDispatchTransaction,i=n.dispatchTransaction||this.dispatchTransaction.bind(this),o=r?this.extensionManager.dispatchTransaction(i):i,a=n.transformPastedHTML,s=this.extensionManager.transformPastedHTML(a);this.editorView=new Eb(e,(0,A.Z)((0,A.Z)({},n),{},{attributes:(0,A.Z)({role:"textbox"},null==n?void 0:n.attributes),dispatchTransaction:o,transformPastedHTML:s,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews}));var l=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(l),this.prependClass(),this.injectCSS(),this.view.dom.editor=this}},{key:"createNodeViews",value:function(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}},{key:"prependClass",value:function(){this.view.dom.className="".concat(this.className," ").concat(this.view.dom.className)}},{key:"captureTransaction",value:function(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;var t=this.capturedTransaction;return this.capturedTransaction=null,t}},{key:"dispatchTransaction",value:function(e){var t=this;if(!this.view.isDestroyed){if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach((function(e){var n;return null==(n=t.capturedTransaction)?void 0:n.step(e)})):void(this.capturedTransaction=e);var n=this.state.applyTransaction(e),r=n.state,i=n.transactions,o=!this.state.selection.eq(r.selection),a=i.includes(e),s=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:r}),a){this.view.updateState(r),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:i.slice(1)}),o&&this.emit("selectionUpdate",{editor:this,transaction:e});var l=i.findLast((function(e){return e.getMeta("focus")||e.getMeta("blur")})),c=null==l?void 0:l.getMeta("focus"),u=null==l?void 0:l.getMeta("blur");c&&this.emit("focus",{editor:this,event:c.event,transaction:l}),u&&this.emit("blur",{editor:this,event:u.event,transaction:l}),e.getMeta("preventUpdate")||!i.some((function(e){return e.docChanged}))||s.doc.eq(r.doc)||this.emit("update",{editor:this,transaction:e,appendedTransactions:i.slice(1)})}}}},{key:"getAttributes",value:function(e){return jw(this.state,e)}},{key:"isActive",value:function(e,t){var n="string"===typeof e?e:null,r="string"===typeof e?t:e;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return Lx(e,null,n)||Tw(e,null,n);var r=Wx(t,e.schema);
2return"node"===r?Lx(e,t,n):"mark"===r&&Tw(e,t,n)}(this.state,n,r)}},{key:"getJSON",value:function(){return this.state.doc.toJSON()}},{key:"getHTML",value:function(){return sw(this.state.doc.content,this.schema)}},{key:"getText",value:function(e){var t=e||{},n=t.blockSeparator,r=void 0===n?"\n\n":n,i=t.textSerializers,o=void 0===i?{}:i;return kw(this.state.doc,{blockSeparator:r,textSerializers:(0,A.Z)((0,A.Z)({},Sw(this.schema)),o)})}},{key:"isEmpty",get:function(){return Fw(this.state.doc)}},{key:"destroy",value:function(){this.destroyed||(this.destroyed=!0,this.emit("destroy"),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}},{key:"isDestroyed",get:function(){var e,t;return null==(t=null==(e=this.editorView)?void 0:e.isDestroyed)||t}},{key:"$node",value:function(e,t){var n;return(null==(n=this.$doc)?void 0:n.querySelector(e,t))||null}},{key:"$nodes",value:function(e,t){var n;return(null==(n=this.$doc)?void 0:n.querySelectorAll(e,t))||null}},{key:"$pos",value:function(e){var t=this.state.doc.resolve(e),n=e>0&&t.nodeAfter&&!t.nodeAfter.isText?t.nodeAfter:null;return new Ok(t,this,!1,n)}},{key:"$doc",get:function(){return this.$pos(0)}}]),n}(ck);function Zk(e){return new uk({find:e.find,handler:function(t){var n=t.state,r=t.range,i=t.match,o=cw(e.getAttributes,void 0,i);if(!1===o||null===o)return null;var a=n.tr,s=i[i.length-1],l=i[0];if(s){var c=l.search(/\S/),u=r.from+l.indexOf(s),d=u+s.length;if(Ew(r.from,r.to,n.doc).filter((function(t){return t.mark.type.excluded.find((function(n){return n===e.type&&n!==t.mark.type}))})).filter((function(e){return e.to>u})).length)return null;
2d<r.to&&a.delete(d,r.to),u>r.from&&a.delete(r.from+c,u);var f=r.from+c+s.length;a.addMark(r.from+c,f,e.type.create(o||{})),a.removeStoredMark(e.type)}},undoable:e.undoable})}function Rk(e){return new uk({find:e.find,handler:function(t){var n=t.state,r=t.range,i=t.match,o=cw(e.getAttributes,void 0,i)||{},a=n.tr,s=r.from,l=r.to,c=e.type.create(o);if(i[1]){var u=s+i[0].lastIndexOf(i[1]);u>l?u=l:l=u+i[1].length;var d=i[0][i[0].length-1];a.insertText(d,s+i[0].length-1),a.replaceWith(u,l,c)}else if(i[0]){var f=e.type.isInline?s:s-1;a.insert(f,e.type.create(o)).delete(a.mapping.map(s),a.mapping.map(l))}a.scrollIntoView()},undoable:e.undoable})}function Lk(e){return new uk({find:e.find,handler:function(t){var n=t.state,r=t.range,i=t.match,o=n.doc.resolve(r.from),a=cw(e.getAttributes,void 0,i)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;n.tr.delete(r.from,r.to).setBlockType(r.from,r.from,e.type,a)},undoable:e.undoable})}function Bk(e){return new uk({find:e.find,handler:function(t){var n=t.state,r=t.range,i=t.match,o=t.chain,a=cw(e.getAttributes,void 0,i)||{},s=n.tr.delete(r.from,r.to),l=s.doc.resolve(r.from).blockRange(),c=l&&Gh(l,e.type,a);if(!c)return null;if(s.wrap(l,c),e.keepMarks&&e.editor){var u=n.selection,d=n.storedMarks,f=e.editor.extensionManager.splittableMarks,p=d||u.$to.parentOffset&&u.$from.marks();if(p){var h=p.filter((function(e){return f.includes(e.type.name)}));s.ensureMarks(h)}}if(e.keepAttributes){var m="bulletList"===e.type.name||"orderedList"===e.type.name?"listItem":"taskList";o().updateAttributes(m,a).run()}var v=s.doc.resolve(r.from-1).nodeBefore;v&&v.type===e.type&&Xh(s.doc,r.from-1)&&(!e.joinPredicate||e.joinPredicate(i,v))&&s.join(r.from-1)},undoable:e.undoable})}function zk(e){if(!(null==e?void 0:e.trim()))return{};var t={},n=[],r=e.replace(/["']([^"']*)["']/g,(function(e){return n.push(e),"__QUOTED_".concat(n.length-1,"__")})),i=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(i){var o=i.map((function(e){return e.trim().slice(1)}));t.class=o.join(" ")}var a=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);a&&(t.id=a[1]);Array.from(r.matchAll(/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g)).forEach((function(e){var r,i=(0,p.Z)(e,3),o=i[1],a=i[2],s=parseInt((null==(r=a.match(/__QUOTED_(\d+)__/))?void 0:r[1])||"0",10),l=n[s];l&&(t[o]=l.slice(1,-1))}));var s=r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();s&&s.split(/\s+/).filter(Boolean).forEach((function(e){e.match(/^[a-zA-Z][\
2w-]*$/)&&(t[e]=!0)}));return t}function Uk(e){if(!e||0===Object.keys(e).length)return"";var t=[];e.class&&String(e.class).split(/\s+/).filter(Boolean).forEach((function(e){return t.push(".".concat(e))}));return e.id&&t.push("#".concat(e.id)),Object.entries(e).forEach((function(e){var n=(0,p.Z)(e,2),r=n[0],i=n[1];"class"!==r&&"id"!==r&&(!0===i?t.push(r):!1!==i&&null!=i&&t.push("".concat(r,'="').concat(String(i),'"')))})),t.join(" ")}function Hk(e){var t=e.nodeName,n=e.name,r=e.parseAttributes,i=void 0===r?zk:r,o=e.serializeAttributes,a=void 0===o?Uk:o,s=e.defaultAttributes,l=void 0===s?{}:s,c=e.requiredAttributes,u=void 0===c?[]:c,d=e.allowedAttributes,f=n||t;return{parseMarkdown:function(e,n){var r=(0,A.Z)((0,A.Z)({},l),e.attributes);return n.createNode(t,r,[])},markdownTokenizer:{name:t,level:"block",start:function(e){var t,n=new RegExp("^:::".concat(f,"(?:\\s|$)"),"m"),r=null==(t=e.match(n))?void 0:t.index;return void 0!==r?r:-1},tokenize:function(e,n,r){var o=new RegExp("^:::".concat(f,"(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)")),a=e.match(o);if(a){var s=a[1]||"",l=i(s);if(!u.find((function(e){return!(e in l)})))return{type:t,raw:a[0],attributes:l}}}},renderMarkdown:function(e){var t=function(e){if(!d)return e;var t={};return d.forEach((function(n){n in e&&(t[n]=e[n])})),t}(e.attrs||{}),n=a(t),r=n?" {".concat(n,"}"):"";return":::".concat(f).concat(r," :::")}}}function Wk(e){var t=e.nodeName,n=e.name,r=e.getContent,i=e.parseAttributes,o=void 0===i?zk:i,a=e.serializeAttributes,s=void 0===a?Uk:a,l=e.defaultAttributes,c=void 0===l?{}:l,u=e.content,d=void 0===u?"block":u,f=e.allowedAttributes,h=n||t;return{parseMarkdown:function(e,n){var i;if(r){var o=r(e);i="string"===typeof o?[{type:"text",text:o}]:o}else i="block"===d?n.parseChildren(e.tokens||[]):n.parseInline(e.tokens||[]);var a=(0,A.Z)((0,A.Z)({},c),e.attributes);return n.createNode(t,a,i)},markdownTokenizer:{name:t,level:"block",start:function(e){var t,n=new RegExp("^:::".concat(h),"m"),r=null==(t=e.match(n))?void 0:t.index;return void 0!==r?r:-1},tokenize:function(e,n,r){var i,a=new RegExp("^:::".concat(h,"(?:\\s+\\{([^}]*)\\})?\\s*\\n")),s=e.match(a);if(s){var l=(0,p.Z)(s,2),c=l[0],u=l[1],f=o(void 0===u?"":u),m=1,v=c.length,g="",y=/^:::([\w-]*)(\s.*)?/gm,b=e.slice(v);for(y.lastIndex=0;;){var x=y.exec(b);if(null===x)break;var w=x.index,k=x[1];if(!(null==(i=x[2])?void 0:i.endsWith(":::")))if(k)m+=1;else if(0===(m-=1)){var S=b.slice(0,w);g=S.trim();var j=e.slice(0,v+w+x[0].length),C=[];if(g)if("block"===d)for((C=r.blockTokens(S)).forEach((function(e){!e.text||e.tokens&&0!==e.tokens.length||(e.tokens=r.inlineTokens(e.text))}));C.length>0;){var _=C[C.length-1];if("paragraph"!==_.type||_.text&&""!==_.text.trim())break;C.pop()}else C=r.inlineTokens(g);return{type:t,raw:j,attributes:f,content:g,tokens:C}}}}}},renderMarkdown:function(e,t){var n=function(e){if(!f)return e;var t={};return f.forEach((function(n){n in e&&(t[n]=e[n])})),t}(e.attrs||{}),r=s(n),i=r?" {".concat(r,"}"):"",o=t.renderChildren(e.content||[],"\n\n");return":::".concat(h).concat(i,"\n\n").concat(o,"\n\n:::")}}}function qk(e){if(!e.trim())return{};for(var t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=n.exec(e);null!==r;){var i=r,o=(0,p.Z)(i,4),a=o[1],s=o[2],l=o[3];t[a]=s||l,r=n.exec(e)}return t}function Vk(e){return Object.entries(e).filter((function(e){var t=(0,p.Z)(e,2)[1];return void 0!==t&&null!==t})).map((function(e){var t=(0,p.Z)(e,2),n=t[0],r=t[1];return"".concat(n,'="').concat(r,'"')})).join(" ")}function Gk(e){var t=e.nodeName,n=e.name,r=e.getContent,i=e.parseAttributes,o=void 0===i?qk:i,a=e.serializeAttributes,s=void 0===a?Vk:a,l=e.defaultAttributes,c=void 0===l?{}:l,u=e.selfClosing,d=void 0!==u&&u,f=e.allowedAttributes,h=n||t,m=h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:function(e,n){var i=(0,A.Z)((0,A.Z)({},c),e.attributes);if(d)return n.createNode(t,i);var o=r?r(e):e.content||"";return o?n.createNode(t,i,[n.createTextNode(o)]):n.createNode(t,i,[])},markdownTokenizer:{name:t,level:"inline",start:function(e){var t=d?new RegExp("\\[".concat(m,"\\s*[^\\]]*\\]")):new RegExp("\\[".concat(m,"\\s*[^\\]]*\\][\\s\\S]*?\\[\\/").concat(m,"\\]")),n=e.match(t),r=null==n?void 0:n.index;return void 0!==r?r:-1}
2,tokenize:function(e,n,r){var i=d?new RegExp("^\\[".concat(m,"\\s*([^\\]]*)\\]")):new RegExp("^\\[".concat(m,"\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/").concat(m,"\\]")),a=e.match(i);if(a){var s="",l="";if(d){l=(0,p.Z)(a,2)[1]}else{var c=(0,p.Z)(a,3);l=c[1],s=c[2]||""}var u=o(l.trim());return{type:t,raw:a[0],content:s.trim(),attributes:u}}}},renderMarkdown:function(e){var t="";r?t=r(e):e.content&&e.content.length>0&&(t=e.content.filter((function(e){return"text"===e.type})).map((function(e){return e.text})).join(""));var n=function(e){if(!f)return e;var t={};return f.forEach((function(n){var r="string"===typeof n?n:n.name,i="string"===typeof n?void 0:n.skipIfDefault;if(r in e){var o=e[r];if(void 0!==i&&o===i)return;t[r]=o}})),t}(e.attrs||{}),i=s(n),o=i?" ".concat(i):"";return d?"[".concat(h).concat(o,"]"):"[".concat(h).concat(o,"]").concat(t,"[/").concat(h,"]")}}}function $k(e,t,n){for(var r,i,o,a,s,l=e.split("\n"),c=[],u="",d=0,f=t.baseIndentSize||2,p=function(){var e=l[d],s=e.match(t.itemPattern);if(!s)return c.length>0?0:""===e.trim()?(d+=1,u="".concat(u).concat(e,"\n"),1):{v:void 0};var p=t.extractItemData(s),h=p.indentLevel,m=p.mainContent;u="".concat(u).concat(e,"\n");var v,g=[m];for(d+=1;d<l.length;){var y=l[d];if(""===y.trim()){var b=l.slice(d+1).findIndex((function(e){return""!==e.trim()}));if(-1===b)break;var x=l[d+1+b];if(((null==(i=null==(r=x.match(/^(\s*)/))?void 0:r[1])?void 0:i.length)||0)>h){g.push(y),u="".concat(u).concat(y,"\n"),d+=1;continue}break}if(!(((null==(a=null==(o=y.match(/^(\s*)/))?void 0:o[1])?void 0:a.length)||0)>h))break;g.push(y),u="".concat(u).concat(y,"\n"),d+=1}var w=g.slice(1);if(w.length>0){var k=w.map((function(e){return e.slice(h+f)})).join("\n");k.trim()&&(v=t.customNestedParser?t.customNestedParser(k):n.blockTokens(k))}var S=t.createToken(p,v);c.push(S)};d<l.length&&0!==(s=p());)if(1!==s&&s)return s.v;if(0!==c.length)return{items:c,raw:u}}function Jk(e,t,n,r){if(!e||!Array.isArray(e.content))return"";var i="function"===typeof n?n(r):n,o=(0,Oa.Z)(e.content),a=o[0],s=o.slice(1),l=t.renderChildren([a]),c="".concat(i).concat(l);return s&&s.length>0&&s.forEach((function(e,n){var r,i,o=null!=(i=null==(r=t.renderChild)?void 0:r.call(t,e,n+1))?i:t.renderChildren([e]);if(void 0!==o&&null!==o){var a=o.split("\n").map((function(e){return e?t.indent(e):t.indent("")})).join("\n");c+="paragraph"===e.type?"\n\n".concat(a):"\n".concat(a)}})),c}function Kk(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.state,i=r.doc,o=r.tr,a=e;i.descendants((function(t,r){var i=o.mapping.map(r),s=o.mapping.map(r)+t.nodeSize,l=null;if(t.marks.forEach((function(e){if(e!==a)return!1;l=e})),l){var c=!1;if(Object.keys(n).forEach((function(e){n[e]!==l.attrs[e]&&(c=!0)})),c){var u=e.type.create((0,A.Z)((0,A.Z)({},e.attrs),n));o.removeMark(i,s,e.type),o.addMark(i,s,u)}}})),o.docChanged&&t.view.dispatch(o)}qb({},{createAtomBlockMarkdownSpec:function(){return Hk},createBlockMarkdownSpec:function(){return Wk},createInlineMarkdownSpec:function(){return Gk},parseAttributes:function(){return zk},parseIndentedBlocks:function(){return $k},renderNestedMarkdownContent:function(){return Jk},serializeAttributes:function(){return Uk}});var Yk=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(){var e;return(0,ha.Z)(this,n),(e=t.apply(this,arguments)).type="node",e}return(0,ma.Z)(n,[{key:"configure",value:function(e){return(0,pp.Z)((0,hp.Z)(n.prototype),"configure",this).call(this,e)}},{key:"extend",value:function(e){var t="function"===typeof e?e():e;return(0,pp.Z)((0,hp.Z)(n.prototype),"extend",this).call(this,t)}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n("function"===typeof e?e():e)}}]),n}(mk);function Xk(e){return new gk({find:e.find,handler:function(t){var n=t.state,r=t.range,i=t.match,o=t.pasteEvent,a=cw(e.getAttributes,void 0,i,o);if(!1===a||null===a)return null;var s=n.tr,l=i[i.length-1],c=i[0],u=r.to;if(l){var d=c.search(/\S/),f=r.from+c.indexOf(l),p=f+l.length;if(Ew(r.from,r.to,n.doc).filter((function(t){return t.mark.type.excluded.find((function(n){return n===e.type&&n!==t.mark.type}))})).filter((function(e){return e.to>f})).length)return null;p<r.to&&s.delete(p,r.to),f>r.from&&s.delete(r.from+d,f),u=r.from+d+l.length,s.addMark(r.from+d,u,e.type.create(a||{})),void 0!==i.index&&void 0!==i.input&&i.index+i[0].length>=i.input.length||s.removeStoredMark(e.type)}}})}var Qk=Object.getOwnPropertyNames,eS=Object.getOwnPropertySymbols,tS=Object.prototype.hasOwnProperty;function nS(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function rS(e){return function(t,n,r){if(!t||!n||"object"!==typeof t||"object"!==typeof n)return e(t,n,r);var i=r.cache,o=i.get(t),a=i.get(n);if(o&&a)return o===n&&a===t;i.set(t,n),i.set(n,t);var s=e(t,n,r);return i.delete(t),i.delete(n),s}}function iS(e){return Qk(e).concat(eS(e))}var oS=Object.hasOwn||function(e,t){return tS.call(e,t)};function aS(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var sS="__v",lS="__o",cS="_owner",uS=Object.getOwnPropertyDescriptor,dS=Object.keys;function fS(e,t){return e.byteLength===t.byteLength&&CS(new Uint8Array(e),new Uint8Array(t))}function pS(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function hS(e,t){return e.byteLength===t.byteLength&&CS(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function mS(e,t){return aS(e.getTime(),t.getTime())}function vS(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function gS(e,t){return e===t}function yS(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i,o,a=new Array(r),s=e.entries(),l=0;(i=s.next())&&!i.done;){for(var c=t.entries(),u=!1,d=0;(o=c.next())&&!o.done;)if(a[d])d++;else{var f=i.value,p=o.value;if(n.equals(f[0],p[0],l,d,e,t,n)&&n.equals(f[1],p[1],f[0],p[0],e,t,n)){u=a[d]=!0;break}d++}if(!u)return!1;l++}return!0}var bS=aS;function xS(e,t,n){var r=dS(e),i=r.length;if(dS(t).length!==i)return!1;for(;i-- >0;)if(!ES(e,t,n,r[i]))return!1;return!0}function wS(e,t,n){var r,i,o,a=iS(e),s=a.length;if(iS(t).length!==s)return!1;for(;s-- >0;){if(!ES(e,t,n,r=a[s]))return!1;
2if(i=uS(e,r),o=uS(t,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function kS(e,t){return aS(e.valueOf(),t.valueOf())}function SS(e,t){return e.source===t.source&&e.flags===t.flags}function jS(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i,o,a=new Array(r),s=e.values();(i=s.next())&&!i.done;){for(var l=t.values(),c=!1,u=0;(o=l.next())&&!o.done;){if(!a[u]&&n.equals(i.value,o.value,i.value,o.value,e,t,n)){c=a[u]=!0;break}u++}if(!c)return!1}return!0}function CS(e,t){var n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function _S(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function ES(e,t,n,r){return!(r!==cS&&r!==lS&&r!==sS||!e.$$typeof&&!t.$$typeof)||oS(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var NS="[object ArrayBuffer]",AS="[object Arguments]",DS="[object Boolean]",TS="[object DataView]",IS="[object Date]",PS="[object Error]",FS="[object Map]",OS="[object Number]",MS="[object Object]",ZS="[object RegExp]",RS="[object Set]",LS="[object String]",BS={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},zS="[object URL]",US=Object.prototype.toString;function HS(e){var t=e.areArrayBuffersEqual,n=e.areArraysEqual,r=e.areDataViewsEqual,i=e.areDatesEqual,o=e.areErrorsEqual,a=e.areFunctionsEqual,s=e.areMapsEqual,l=e.areNumbersEqual,c=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,d=e.areRegExpsEqual,f=e.areSetsEqual,p=e.areTypedArraysEqual,h=e.areUrlsEqual,m=e.unknownTagComparators;return function(e,v,g){if(e===v)return!0;if(null==e||null==v)return!1;var y=typeof e;if(y!==typeof v)return!1;if("object"!==y)return"number"===y?l(e,v,g):"function"===y&&a(e,v,g);var b=e.constructor;if(b!==v.constructor)return!1;if(b===Object)return c(e,v,g);if(Array.isArray(e))return n(e,v,g);if(b===Date)return i(e,v,g);if(b===RegExp)return d(e,v,g);if(b===Map)return s(e,v,g);if(b===Set)return f(e,v,g);var x=US.call(e);if(x===IS)return i(e,v,g);if(x===ZS)return d(e,v,g);if(x===FS)return s(e,v,g);if(x===RS)return f(e,v,g);if(x===MS)return"function"!==typeof e.then&&"function"!==typeof v.then&&c(e,v,g);if(x===zS)return h(e,v,g);if(x===PS)return o(e,v,g);if(x===AS)return c(e,v,g);if(BS[x])return p(e,v,g);if(x===NS)return t(e,v,g);if(x===TS)return r(e,v,g);if(x===DS||x===OS||x===LS)return u(e,v,g);if(m){var w=m[x];if(!w){var k=function(e){return null!=e?e[Symbol.toStringTag]:void 0}(e);k&&(w=m[k])}if(w)return w(e,v,g)}return!1}}var WS=qS();qS({strict:!0}),qS({circular:!0}),qS({circular:!0,strict:!0}),qS({createInternalComparator:function(){return aS}}),qS({strict:!0,createInternalComparator:function(){return aS}}),qS({circular:!0,createInternalComparator:function(){return aS}}),qS({circular:!0,createInternalComparator:function(){return aS},strict:!0});function qS(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.circular,r=void 0!==n&&n,i=t.createInternalComparator,o=t.createState,a=t.strict,s=void 0!==a&&a,l=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArrayBuffersEqual:fS,areArraysEqual:r?wS:pS,areDataViewsEqual:hS,areDatesEqual:mS,areErrorsEqual:vS,areFunctionsEqual:gS,areMapsEqual:r?nS(yS,wS):yS,areNumbersEqual:bS,areObjectsEqual:r?wS:xS,arePrimitiveWrappersEqual:kS,areRegExpsEqual:SS,areSetsEqual:r?nS(jS,wS):jS,areTypedArraysEqual:r?nS(CS,wS):CS,areUrlsEqual:_S,unknownTagComparators:void 0};if(n&&(i=Object.assign({},i,n(i))),t){var o=rS(i.areArraysEqual),a=rS(i.areMapsEqual),s=rS(i.areObjectsEqual),l=rS(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}(t),c=HS(l),u=i?i(c):(e=c,function(t,n,r,i,o,a,s){return e(t,n,s)});
2return function(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(e,a){var s=r(),l=s.cache,c=void 0===l?t?new WeakMap:void 0:l,u=s.meta;return n(e,a,{cache:c,equals:i,meta:u,strict:o})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(e,t){return n(e,t,a)}}({circular:r,comparator:c,createState:o,equals:u,strict:s})}var VS=n(327),GS=["editor","innerRef"],$S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"===typeof t?t(e):t&&(t.current=e)}))}},JS=function(e){var t=e.contentComponent,n=(0,fp.useSyncExternalStore)(t.subscribe,t.getSnapshot,t.getServerSnapshot);return(0,F.jsx)(F.Fragment,{children:Object.values(n)})};var KS=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e){var r;return(0,ha.Z)(this,n),(r=t.call(this,e)).editorContentRef=c.createRef(),r}return(0,ma.Z)(n,[{key:"componentDidMount",value:function(){this.init()}},{key:"componentDidUpdate",value:function(){this.init()}},{key:"init",value:function(){var e,t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){if(t.contentComponent)return;var n=this.editorContentRef.current;n.append.apply(n,(0,v.Z)(t.view.dom.parentNode.childNodes)),t.setOptions({element:n}),t.contentComponent=function(){var e=new Set,t={};return{subscribe:function(t){return e.add(t),function(){e.delete(t)}},getSnapshot:function(){return t},getServerSnapshot:function(){return t},setRenderer:function(n,r){t=(0,A.Z)((0,A.Z)({},t),{},(0,Sn.Z)({},n,Gi.createPortal(r.reactElement,r.element,n))),e.forEach((function(e){return e()}))},removeRenderer:function(n){var r=(0,A.Z)({},t);delete r[n],t=r,e.forEach((function(e){return e()}))}}}(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}},{key:"componentWillUnmount",value:function(){var e,t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.parentNode))return;var n=document.createElement("div");n.append.apply(n,(0,v.Z)(t.view.dom.parentNode.childNodes)),t.setOptions({element:n})}catch(r){}}}},{key:"render",value:function(){var e=this.props,t=e.editor,n=e.innerRef,r=(0,en.Z)(e,GS);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",(0,A.Z)({ref:$S(n,this.editorContentRef)},r)),(null==t?void 0:t.contentComponent)&&(0,F.jsx)(JS,{contentComponent:t.contentComponent})]})}}]),n}(c.Component),YS=(0,c.forwardRef)((function(e,t){var n=c.useMemo((function(){return Math.floor(4294967295*Math.random()).toString()}),[e.editor]);return c.createElement(KS,(0,A.Z)({key:n,innerRef:t},e))})),XS=c.memo(YS),QS="undefined"!==typeof window?c.useLayoutEffect:c.useEffect,ej=function(){function e(t){(0,ha.Z)(this,e),this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}return(0,ma.Z)(e,[{key:"getSnapshot",value:function(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}},{key:"getServerSnapshot",value:function(){return{editor:null,transactionNumber:0}}},{key:"subscribe",value:function(e){var t=this;return this.subscribers.add(e),function(){t.subscribers.delete(e)}}},{key:"watch",value:function(e){var t=this;if(this.editor=e,this.editor){var n=function(){t.transactionNumber+=1,t.subscribers.forEach((function(e){return e()}))},r=this.editor;return r.on("transaction",n),function(){r.off("transaction",n)}}}}]),e}();function tj(e){var t,n=(0,c.useState)((function(){return new ej(e.editor)})),r=(0,p.Z)(n,1)[0],i=(0,VS.useSyncExternalStoreWithSelector)(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:WS);return QS((function(){return r.watch(e.editor)}),[e.editor,r]),(0,c.useDebugValue)(i),i}var nj="undefined"===typeof window,rj=nj||Boolean("undefined"!==typeof window&&window.next),ij=function(){function e(t){(0,ha.Z)(this,e),this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=t,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.get
2ServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}return(0,ma.Z)(e,[{key:"setEditor",value:function(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach((function(e){return e()}))}},{key:"getInitialEditor",value:function(){var e=this.options.current.immediatelyRender,t=null==e||e;return(nj||rj&&void 0===e)&&(t=!1),t?this.createEditor():null}},{key:"createEditor",value:function(){var e=this,t=(0,A.Z)((0,A.Z)({},this.options.current),{},{onBeforeCreate:function(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return null==(r=(n=e.options.current).onBeforeCreate)?void 0:(t=r).call.apply(t,[n].concat(o))},onBlur:function(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return null==(r=(n=e.options.current).onBlur)?void 0:(t=r).call.apply(t,[n].concat(o))},onCreate:function(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return null==(r=(n=e.options.current).onCreate)?void 0:(t=r).call.apply(t,[n].concat(o))},onDestroy:function(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return null==(r=(n=e.options.current).onDestroy)?void 0:(t=r).call.apply(t,[n].concat(o))},onFocus:function(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return null==(r=(n=e.options.current).onFocus)?void 0:(t=r).call.apply(t,[n].concat(o))},onSelectionUpdate:function(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return null==(r=(n=e.options.current).onSelectionUpdate)?void 0:(t=r).call.apply(t,[n].concat(o))},onTransaction:function(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return null==(r=(n=e.options.current).onTransaction)?void 0:(t=r).call.apply(t,[n].concat(o))},onUpdate:function(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return null==(r=(n=e.options.current).onUpdate)?void 0:(t=r).call.apply(t,[n].concat(o))},onContentError:function(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return null==(r=(n=e.options.current).onContentError)?void 0:(t=r).call.apply(t,[n].concat(o))},onDrop:function(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return null==(r=(n=e.options.current).onDrop)?void 0:(t=r).call.apply(t,[n].concat(o))},onPaste:function(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return null==(r=(n=e.options.current).onPaste)?void 0:(t=r).call.apply(t,[n].concat(o))},onDelete:function(){for(var t,n,r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return null==(r=(n=e.options.current).onDelete)?void 0:(t=r).call.apply(t,[n].concat(o))}});return new Mk(t)}},{key:"getEditor",value:function(){return this.editor}},{key:"getServerSnapshot",value:function(){return null}},{key:"subscribe",value:function(e){var t=this;return this.subscriptions.add(e),function(){t.subscriptions.delete(e)}}},{key:"onRender",value:function(t){var n=this;return function(){return n.isComponentMounted=!0,clearTimeout(n.scheduledDestructionTimeout),n.editor&&!n.editor.isDestroyed&&0===t.length?e.compareOptions(n.options.current,n.editor.options)||n.editor.setOptions((0,A.Z)((0,A.Z)({},n.options.current),{},{editable:n.editor.isEditable})):n.refreshEditorInstance(t),function(){n.isComponentMounted=!1,n.scheduleDestroy()}}}},{key:"refreshEditorInstance",value:function(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps)return void(this.previousDeps=e);var t=this.previousDeps.length===e.length&&this.previousDeps.every((function(t,n){return t===e[n]}));if(t)return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}},{key:"scheduleDestroy",value:function(){var e=this,t=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout((function(){e.isComponentMounted&&e.instanceId===t?n&&n.setOptions(e.options.current):n&&!n.isDestroyed&&(n.destroy(),e.instanceId===t&&e.setEditor(null))}),1)}}
2],[{key:"compareOptions",value:function(e,t){return Object.keys(e).every((function(n){return!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(n)||("extensions"===n&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((function(e,n){var r;return e===(null==(r=t.extensions)?void 0:r[n])})):e[n]===t[n])}))}}]),e}();function oj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,c.useRef)(e);n.current=e;var r=(0,c.useState)((function(){return new ij(n)})),i=(0,p.Z)(r,1)[0],o=(0,fp.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,c.useDebugValue)(o),(0,c.useEffect)(i.onRender(t)),tj({editor:o,selector:function(t){var n=t.transactionNumber;return!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===n?0:n+1}}),o}var aj=(0,c.createContext)({editor:null}),sj=(aj.Consumer,function(){return(0,c.useContext)(aj)});var lj=(0,c.createContext)({onDragStart:function(){},nodeViewContentChildren:void 0,nodeViewContentRef:function(){}}),cj=function(){return(0,c.useContext)(lj)};c.forwardRef((function(e,t){var n=cj().onDragStart,r=e.as||"div";return(0,F.jsx)(r,(0,A.Z)((0,A.Z)({},e),{},{ref:t,"data-node-view-wrapper":"",onDragStart:n,style:(0,A.Z)({whiteSpace:"normal"},e.style)}))}));c.createContext({markViewContentRef:function(){}});var uj=(0,c.createContext)({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});uj.displayName="TiptapContext";var dj=function(){return(0,c.useContext)(uj)};function fj(e){var t=e.editor,n=e.instance,r=e.children,i=null!=t?t:n;if(!i)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");var o=(0,c.useMemo)((function(){return{editor:i}}),[i]),a=(0,c.useMemo)((function(){return{editor:i}}),[i]);return(0,F.jsx)(aj.Provider,{value:a,children:(0,F.jsx)(uj.Provider,{value:o,children:r})})}function pj(e){var t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e)),n=dj().editor;return(0,F.jsx)(XS,(0,A.Z)({editor:n},t))}fj.displayName="Tiptap",pj.displayName="Tiptap.Content";Object.assign(fj,{Content:pj});var hj=["children"];var mj=function(e,t){if("slot"===e)return 0;if(e instanceof Function)return e(t);var n=null!=t?t:{},r=n.children,i=(0,en.Z)(n,hj);if("svg"===e)throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,i,r]},vj=/^\s*>\s$/,gj=Yk.create({name:"blockquote",addOptions:function(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML:function(){return[{tag:"blockquote"}]},renderHTML:function(e){var t=e.HTMLAttributes;return mj("blockquote",(0,A.Z)((0,A.Z)({},pw(this.options.HTMLAttributes,t)),{},{children:mj("slot",{})}))},parseMarkdown:function(e,t){var n,r=null!=(n=t.parseBlockChildren)?n:t.parseChildren;return t.createNode("blockquote",void 0,r(e.tokens||[]))},renderMarkdown:function(e,t){if(!e.content)return"";var n=[];return e.content.forEach((function(e,r){var i,o,a=(null!=(o=null==(i=t.renderChild)?void 0:i.call(t,e,r))?o:t.renderChildren([e])).split("\n").map((function(e){return""===e.trim()?">":"".concat(">"," ").concat(e)}));n.push(a.join("\n"))})),n.join("\n".concat(">","\n"))},addCommands:function(){var e=this;return{setBlockquote:function(){return function(t){return t.commands.wrapIn(e.name)}},toggleBlockquote:function(){return function(t){return t.commands.toggleWrap(e.name)}},unsetBlockquote:function(){return function(t){return t.commands.lift(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Shift-b":function(){return e.editor.commands.toggleBlockquote()}}}
2,addInputRules:function(){return[Bk({find:vj,type:this.type})]}}),yj=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,bj=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,xj=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,wj=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,kj=vk.create({name:"bold",addOptions:function(){return{HTMLAttributes:{}}},parseHTML:function(){var e=this;return[{tag:"strong"},{tag:"b",getAttrs:function(e){return"normal"!==e.style.fontWeight&&null}},{style:"font-weight=400",clearMark:function(t){return t.type.name===e.name}},{style:"font-weight",getAttrs:function(e){return/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}}]},renderHTML:function(e){var t=e.HTMLAttributes;return mj("strong",(0,A.Z)((0,A.Z)({},pw(this.options.HTMLAttributes,t)),{},{children:mj("slot",{})}))},markdownTokenName:"strong",parseMarkdown:function(e,t){return t.applyMark("bold",t.parseInline(e.tokens||[]))},markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:function(e,t){return"**".concat(t.renderChildren(e),"**")},addCommands:function(){var e=this;return{setBold:function(){return function(t){return t.commands.setMark(e.name)}},toggleBold:function(){return function(t){return t.commands.toggleMark(e.name)}},unsetBold:function(){return function(t){return t.commands.unsetMark(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-b":function(){return e.editor.commands.toggleBold()},"Mod-B":function(){return e.editor.commands.toggleBold()}}}
2,addInputRules:function(){return[Zk({find:yj,type:this.type}),Zk({find:xj,type:this.type})]},addPasteRules:function(){return[Xk({find:bj,type:this.type}),Xk({find:wj,type:this.type})]}}),Sj=function(e){var t=/`([^`]+)`(?!`)$/.exec(e);return t?t.index>0&&"`"===e[t.index-1]?null:{index:t.index,text:t[0],replaceWith:t[1]}:null},jj=function(e){for(var t,n=/`([^`]+)`(?!`)/g,r=[];null!==(t=n.exec(e));)t.index>0&&"`"===e[t.index-1]||r.push({index:t.index,text:t[0],replaceWith:t[1]});return r},Cj=vk.create({name:"code",addOptions:function(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML:function(){return[{tag:"code"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["code",pw(this.options.HTMLAttributes,t),0]},markdownTokenName:"codespan",parseMarkdown:function(e,t){return t.applyMark("code",[{type:"text",text:e.text||""}])},renderMarkdown:function(e,t){return e.content?"`".concat(t.renderChildren(e.content),"`"):""},addCommands:function(){var e=this;return{setCode:function(){return function(t){return t.commands.setMark(e.name)}},toggleCode:function(){return function(t){return t.commands.toggleMark(e.name)}},unsetCode:function(){return function(t){return t.commands.unsetMark(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-e":function(){return e.editor.commands.toggleCode()}}}
2,addInputRules:function(){return[Zk({find:Sj,type:this.type})]},addPasteRules:function(){return[Xk({find:jj,type:this.type})]}}),_j=/^```([a-z]+)?[\s\n]$/,Ej=/^~~~([a-z]+)?[\s\n]$/,Nj=Yk.create({name:"codeBlock",addOptions:function(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes:function(){var e=this;return{language:{default:this.options.defaultLanguage,parseHTML:function(t){var n,r=e.options.languageClassPrefix;if(!r)return null;var i=(0,v.Z)((null==(n=t.firstElementChild)?void 0:n.classList)||[]).filter((function(e){return e.startsWith(r)})).map((function(e){return e.replace(r,"")}))[0];return i||null},rendered:!1}}},parseHTML:function(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML:function(e){var t=e.node,n=e.HTMLAttributes;return["pre",pw(this.options.HTMLAttributes,n),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:function(e,t){var n,r;return!1===(null==(n=e.raw)?void 0:n.startsWith("```"))&&!1===(null==(r=e.raw)?void 0:r.startsWith("~~~"))&&"indented"!==e.codeBlockStyle?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:function(e,t){var n,r="",i=(null==(n=e.attrs)?void 0:n.language)||"";e.content?r=["```".concat(i),t.renderChildren(e.content),"```"].join("\n"):r="```".concat(i,"\n\n```");return r},addCommands:function(){var e=this;return{setCodeBlock:function(t){return function(n){return n.commands.setNode(e.name,t)}},toggleCodeBlock:function(t){return function(n){return n.commands.toggleNode(e.name,"paragraph",t)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Alt-c":function(){return e.editor.commands.toggleCodeBlock()},Backspace:function(){var t=e.editor.state.selection,n=t.empty,r=t.$anchor,i=1===r.pos;return!(!n||r.parent.type.name!==e.name)&&(!(!i&&r.parent.textContent.length)&&e.editor.commands.clearNodes())},Tab:function(t){var n,r=t.editor;if(!e.options.enableTabIndentation)return!1;var i=null!=(n=e.options.tabSize)?n:4,o=r.state,a=o.selection,s=a.$from,l=a.empty;if(s.parent.type!==e.type)return!1;var c=" ".repeat(i);return l?r.commands.insertContent(c):r.commands.command((function(e){var t=e.tr,n=a.from,r=a.to,i=o.doc.textBetween(n,r,"\n","\n").split("\n").map((function(e){return c+e})).join("\n");return t.replaceWith(n,r,o.schema.text(i)),!0}))},"Shift-Tab":function(t){var n,r=t.editor;if(!e.options.enableTabIndentation)return!1;var i=null!=(n=e.options.tabSize)?n:4,o=r.state,a=o.selection,s=a.$from,l=a.empty;return s.parent.type===e.type&&(l?r.commands.command((function(e){for(var t,n=e.tr,r=s.pos,a=s.start(),l=s.end(),c=o.doc.textBetween(a,l,"\n","\n").split("\n"),u=0,d=0,f=r-a,p=0;p<c.length;p+=1){if(d+c[p].length>=f){u=p;break}d+=c[p].length+1}var h=(null==(t=c[u].match(/^ */))?void 0:t[0])||"",m=Math.min(h.length,i);if(0===m)return!0;for(var v=a,g=0;g<u;g+=1)v+=c[g].length+1;return n.delete(v,v+m),r-v<=m&&n.setSelection(wm.create(n.doc,v)),!0})):r.commands.command((function(e){var t=e.tr,n=a.from,r=a.to,s=o.doc.textBetween(n,r,"\n","\n").split("\n").map((function(e){var t,n=(null==(t=e.match(/^ */))?void 0:t[0])||"",r=Math.min(n.length,i);return e.slice(r)})).join("\n");return t.replaceWith(n,r,o.schema.text(s)),!0})))},Enter:function(t){var n=t.editor;if(!e.options.exitOnTripleEnter)return!1;var r=n.state.selection,i=r.$from;if(!r.empty||i.parent.type!==e.type)return!1;var o=i.parentOffset===i.parent.nodeSize-2,a=i.parent.textContent.endsWith("\n\n");return!(!o||!a)&&n.chain().command((function(e){return e.tr.delete(i.pos-2,i.pos),!0})).exitCode().run()},ArrowDown:function(t){var n=t.editor;if(!e.options.exitOnArrowDown)return!1;var r=n.state,i=r.selection,o=r.doc,a=i.$from;if(!i.empty||a.parent.type!==e.type)return!1;if(!(a.parentOffset===a.parent.nodeSize-2))return!1;var s=a.after();return void 0!==s&&(o.nodeAt(s)?n.commands.command((function(e){return e.tr.setSelection(gm.near(o.resolve(s))),!0}
2)):n.commands.exitCode())}}},addInputRules:function(){return[Lk({find:_j,type:this.type,getAttributes:function(e){return{language:e[1]}}}),Lk({find:Ej,type:this.type,getAttributes:function(e){return{language:e[1]}}})]},addProseMirrorPlugins:function(){var e=this;return[new Mm({key:new Lm("codeBlockVSCodeHandler"),props:{handlePaste:function(t,n){if(!n.clipboardData)return!1;if(e.editor.isActive(e.type.name))return!1;var r=n.clipboardData.getData("text/plain"),i=n.clipboardData.getData("vscode-editor-data"),o=i?JSON.parse(i):void 0,a=null==o?void 0:o.mode;if(!r||!a)return!1;var s=t.state,l=s.tr,c=s.schema.text(r.replace(/\r\n?/g,"\n"));return l.replaceSelectionWith(e.type.create({language:a},c)),l.selection.$from.parent.type!==e.type&&l.setSelection(wm.near(l.doc.resolve(Math.max(0,l.selection.from-2)))),l.setMeta("paste",!0),t.dispatch(l),!0}}})]}}),Aj=Yk.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:function(e,t){return e.content?t.renderChildren(e.content,"\n\n"):""}}),Dj=Yk.create({name:"hardBreak",markdownTokenName:"br",addOptions:function(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:function(){return[{tag:"br"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["br",pw(this.options.HTMLAttributes,t)]},renderText:function(){return"\n"},renderMarkdown:function(){return"  \n"},parseMarkdown:function(){return{type:"hardBreak"}},addCommands:function(){var e=this;return{setHardBreak:function(){return function(t){var n=t.commands,r=t.chain,i=t.state,o=t.editor;return n.first([function(){return n.exitCode()},function(){return n.command((function(){var t=i.selection,n=i.storedMarks;if(t.$from.parent.type.spec.isolating)return!1;var a=e.options.keepMarks,s=o.extensionManager.splittableMarks,l=n||t.$to.parentOffset&&t.$from.marks();return r().insertContent({type:e.name}).command((function(e){var t=e.tr;if(e.dispatch&&l&&a){var n=l.filter((function(e){return s.includes(e.type.name)}));t.ensureMarks(n)}return!0})).run()}))}])}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Enter":function(){return e.editor.commands.setHardBreak()},"Shift-Enter":function(){return e.editor.commands.setHardBreak()}}}}),Tj=Yk.create({name:"heading",addOptions:function(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes:function(){return{level:{default:1,rendered:!1}}},parseHTML:function(){return this.options.levels.map((function(e){return{tag:"h".concat(e),attrs:{level:e}}}))},renderHTML:function(e){var t=e.node,n=e.HTMLAttributes,r=this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0];return["h".concat(r),pw(this.options.HTMLAttributes,n),0]},parseMarkdown:function(e,t){return t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[]))},renderMarkdown:function(e,t){var n,r=(null==(n=e.attrs)?void 0:n.level)?parseInt(e.attrs.level,10):1,i="#".repeat(r);return e.content?"".concat(i," ").concat(t.renderChildren(e.content)):""},addCommands:function(){var e=this;return{setHeading:function(t){return function(n){var r=n.commands;return!!e.options.levels.includes(t.level)&&r.setNode(e.name,t)}},toggleHeading:function(t){return function(n){var r=n.commands;return!!e.options.levels.includes(t.level)&&r.toggleNode(e.name,"paragraph",t)}}}},addKeyboardShortcuts:function(){var e=this;return this.options.levels.reduce((function(t,n){return(0,A.Z)((0,A.Z)({},t),{},(0,Sn.Z)({},"Mod-Alt-".concat(n),(function(){return e.editor.commands.toggleHeading({level:n})})))}),{})},addInputRules:function(){var e=this;return this.options.levels.map((function(t){return Lk({find:new RegExp("^(#{".concat(Math.min.apply(Math,(0,v.Z)(e.options.levels)),",").concat(t,"})\\s$")),type:e.type,getAttributes:{level:t}})}))}}),Ij=Yk.create({name:"horizontalRule",addOptions:function(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML:function(){return[{tag:"hr"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["hr",pw(this.options.HTMLAttributes,t)]},markdownTokenName:"hr",parseMarkdown:function(e,t){return t.createNode("horizontalRule")},renderMarkdown:function(){return"---"},addCommands:function(){var e=this;return{setHorizontalRule:function(){return function(t){var n=t.chain,r=t.state;if(!function(e,t){var n=e.selection,r=n.$from;if(n instanceof Sm){var i=r.index();return r.parent.canReplaceWith(i,i+1,t)}for(var o=r.depth;o>=0;){var a=r.index(o);if(r.node(o).contentMatchAt(a).matchType(t))return!0;o-=1}return!1}(r,r.schema.nodes[e.name]))return!1;var i=r.selection,o=i.$to,a=n();return Ow(i)?a.insertContentAt(o.pos,{type:e.name}):a.insertContent({type:e.name}),a.command((function(t){var n=t.state,r=t.tr;if(t.dispatch){var i=r.selection.$to,o=i.end();if(i.nodeAfter)i.nodeAfter.isTextblock?r.setSelection(wm.create(r.doc,i.pos+1)):i.nodeAfter.isBlock?r.setSelection(Sm.create(r.doc,i.pos)):r.setSelection(wm.create(r.doc,i.pos));else{var a=n.schema.nodes[e.options.nextNodeType]||i.parent.type.contentMatch.defaultType,s=null==a?void 0:a.create();s&&(r.insert(o,s),r.setSelection(wm.create(r.doc,o+1)))}r.scrollIntoView()}return!0})).run()}}}},addInputRules:function(){return[Rk({find:/^(?:---|\u2014-|___\s|\*\*\*\s)$/,type:this.t
2ype})]}}),Pj=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Fj=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Oj=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Mj=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Zj=vk.create({name:"italic",addOptions:function(){return{HTMLAttributes:{}}},parseHTML:function(){var e=this;return[{tag:"em"},{tag:"i",getAttrs:function(e){return"normal"!==e.style.fontStyle&&null}},{style:"font-style=normal",clearMark:function(t){return t.type.name===e.name}},{style:"font-style=italic"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["em",pw(this.options.HTMLAttributes,t),0]},addCommands:function(){var e=this;return{setItalic:function(){return function(t){return t.commands.setMark(e.name)}},toggleItalic:function(){return function(t){return t.commands.toggleMark(e.name)}},unsetItalic:function(){return function(t){return t.commands.unsetMark(e.name)}}}},markdownTokenName:"em",parseMarkdown:function(e,t){return t.applyMark("italic",t.parseInline(e.tokens||[]))},markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:function(e,t){return"*".concat(t.renderChildren(e),"*")},addKeyboardShortcuts:function(){var e=this;return{"Mod-i":function(){return e.editor.commands.toggleItalic()},"Mod-I":function(){return e.editor.commands.toggleItalic()}}}
2,addInputRules:function(){return[Zk({find:Pj,type:this.type}),Zk({find:Oj,type:this.type})]},addPasteRules:function(){return[Xk({find:Fj,type:this.type}),Xk({find:Mj,type:this.type})]}}),Rj="[\0- \xa0\u1680\u180e\u2000-\u2029\u205f\u3000]",Lj=new RegExp(Rj),Bj=new RegExp("".concat(Rj,"$")),zj=new RegExp(Rj,"g");function Uj(e,t){var n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach((function(e){var t="string"===typeof e?e:e.scheme;t&&n.push(t)})),!e||e.replace(zj,"").match(new RegExp("^(?:(?:".concat(n.join("|"),"):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))"),"i"))}var Hj=vk.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate:function(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach((function(e){"string"!==typeof e?rp(e.scheme,e.optionalSlashes):rp(e)}))},onDestroy:function(){xd.groups={},np.scanner=null,np.parser=null,np.tokenQueue=[],np.pluginQueue=[],np.customSchemes=[],np.initialized=!1},inclusive:function(){return this.options.autolink},addOptions:function(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:function(e,t){return!!Uj(e,t.protocols)},validate:function(e){return!!e},shouldAutoLink:function(e){var t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes("@"))return!0;var r=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!/^\d{1,3}(\.\d{1,3}){3}$/.test(r)&&!!/\./.test(r)}}},addAttributes:function(){return{href:{default:null,parseHTML:function(e){return e.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML:function(){var e=this;return[{tag:"a[href]",getAttrs:function(t){var n=t.getAttribute("href");return!(!n||!e.options.isAllowedUri(n,{defaultValidate:function(t){return!!Uj(t,e.options.protocols)},protocols:e.options.protocols,defaultProtocol:e.options.defaultProtocol}))&&null}}]},renderHTML:function(e){var t=this,n=e.HTMLAttributes;return this.options.isAllowedUri(n.href,{defaultValidate:function(e){return!!Uj(e,t.options.protocols)},protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",pw(this.options.HTMLAttributes,n),0]:["a",pw(this.options.HTMLAttributes,(0,A.Z)((0,A.Z)({},n),{},{href:""})),0]},markdownTokenName:"link",parseMarkdown:function(e,t){return t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null})},renderMarkdown:function(e,t){var n,r,i,o,a=null!=(r=null==(n=e.attrs)?void 0:n.href)?r:"",s=null!=(o=null==(i=e.attrs)?void 0:i.title)?o:"",l=t.renderChildren(e);return s?"[".concat(l,"](").concat(a,' "').concat(s,'")'):"[".concat(l,"](").concat(a,")")},addCommands:function(){var e=this;return{setLink:function(t){return function(n){var r=n.chain,i=t.href;return!!e.options.isAllowedUri(i,{defaultValidate:function(t){return!!Uj(t,e.options.protocols)},protocols:e.options.protocols,defaultProtocol:e.options.defaultProtocol})&&r().setMark(e.name,t).setMeta("preventAutolink",!0).run()}},toggleLink:function(t){return function(n){var r=n.chain,i=(t||{}).href;return!(i&&!e.options.isAllowedUri(i,{defaultValidate:function(t){return!!Uj(t,e.options.protocols)},protocols:e.options.protocols,defaultProtocol:e.options.defaultProtocol}))&&r().toggleMark(e.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},unsetLink:function(){return function(t){return(0,t.chain)().unsetMark(e.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}}}},addPasteRules:function(){var e=this;return[Xk({find:function(t){var n=[];if(t){var r=e.options,i=r.protocols,o=r.defaultProtocol,a=ap(t).filter((function(t){return t.isLink&&e.options.isAllowedUri(t.value,{defaultValidate:function(e){return!!Uj(e,i)},protocols:i,defaultProtocol:o})}));a.length&&a.forEach((function(t){e.options.shouldAutoLink(t.value)&&n.push({text:t.value,data:{href:t.href},index:t.start})}))}return n}
2,type:this.type,getAttributes:function(e){var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins:function(){var e=this,t=[],n=this.options,r=n.protocols,i=n.defaultProtocol;return this.options.autolink&&t.push(function(e){return new Mm({key:new Lm("autolink"),appendTransaction:function(t,n,r){var i=t.some((function(e){return e.docChanged}))&&!n.doc.eq(r.doc),o=t.some((function(e){return e.getMeta("preventAutolink")}));if(i&&!o){var a=r.tr;if(_w(rw(n.doc,(0,v.Z)(t))).forEach((function(t){var n,i,o,s=t.newRange,l=function(e,t,n){var r=[];return e.nodesBetween(t.from,t.to,(function(e,t){n(e)&&r.push({node:e,pos:t})})),r}(r.doc,s,(function(e){return e.isTextblock}));if(l.length>1)n=l[0],i=r.doc.textBetween(n.pos,n.pos+n.node.nodeSize,void 0," ");else if(l.length){var c=r.doc.textBetween(s.from,s.to," "," ");if(!Bj.test(c))return;n=l[0],i=r.doc.textBetween(n.pos,s.to,void 0," ")}if(n&&i){var u=i.split(Lj).filter(Boolean);if(u.length<=0)return!1;var d=u[u.length-1],f=n.pos+i.lastIndexOf(d);if(!d)return!1;var p=op(d).map((function(t){return t.toObject(e.defaultProtocol)}));if(!(1===(o=p).length?o[0].isLink:3===o.length&&o[1].isLink&&["()","[]"].includes(o[0].value+o[2].value)))return!1;p.filter((function(e){return e.isLink})).map((function(e){return(0,A.Z)((0,A.Z)({},e),{},{from:f+e.start+1,to:f+e.end+1})})).filter((function(e){return!r.schema.marks.code||!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code)})).filter((function(t){return e.validate(t.value)})).filter((function(t){return e.shouldAutoLink(t.value)})).forEach((function(t){Ew(t.from,t.to,r.doc).some((function(t){return t.mark.type===e.type}))||a.addMark(t.from,t.to,e.type.create({href:t.href}))}))}})),a.steps.length)return a}}})}({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:function(t){return e.options.isAllowedUri(t,{defaultValidate:function(e){return!!Uj(e,r)},protocols:r,defaultProtocol:i})},shouldAutoLink:this.options.shouldAutoLink})),t.push(function(e){return new Mm({key:new Lm("handleClickLink"),props:{handleClick:function(t,n,r){var i,o;if(0!==r.button)return!1;if(!t.editable)return!1;var a=null;if(r.target instanceof HTMLAnchorElement)a=r.target;else{var s=r.target;if(!s)return!1;var l=e.editor.view.dom;(a=s.closest("a"))&&!l.contains(a)&&(a=null)}if(!a)return!1;var c=!1;if(e.enableClickSelection&&(c=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){var u=jw(t.state,e.type.name),d=null!=(i=a.href)?i:u.href,f=null!=(o=a.target)?o:u.target;d&&(window.open(d,f),c=!0)}return c}}})}({type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&t.push(function(e){return new Mm({key:new Lm("handlePasteLink"),props:{handlePaste:function(t,n,r){var i=e.shouldAutoLink;if(t.state.selection.empty)return!1;var o="";r.content.forEach((function(e){o+=e.textContent}));var a=ap(o,{defaultProtocol:e.defaultProtocol}).find((function(e){return e.isLink&&e.value===o}));return!(!o||!a||void 0!==i&&!i(a.value))&&e.editor.commands.setMark(e.type,{href:a.href})}}})}({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),t}}),Wj=Hj,qj=["start"],Vj=Object.defineProperty,Gj="textStyle",$j=/^\s*([-+*])\s$/,Jj=Yk.create({name:"bulletList",addOptions:function(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content:function(){return"".concat(this.options.itemTypeName,"+")},parseHTML:function(){return[{tag:"ul"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["ul",pw(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:function(e,t){return"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]}},renderMarkdown:function(e,t){return e.content?t.renderChildren(e.content,"\n"):""},markdownOptions:{indentsContent:!0},addCommands:function(){var e=this;return{toggleBulletList:function(){return function(t){var n=t.commands,r=t.chain;return e.options.keepAttributes?r().toggleList(e.name,e.options.itemTypeName,e.options.keepMarks).updateAttributes("listItem",e.editor.getAttributes(Gj)).run():n.toggleList(e.name,e.options.itemTypeName,e.options.keepMarks)}}}},addKeyboardShortcuts:function(){var e=this;
2return{"Mod-Shift-8":function(){return e.editor.commands.toggleBulletList()}}},addInputRules:function(){var e=this,t=Bk({find:$j,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Bk({find:$j,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:function(){return e.editor.getAttributes(Gj)},editor:this.editor})),[t]}}),Kj=function(e,t,n){return function(e,t,n,r){var i=function(e,t,n){var r=e.selection;if(!r.empty)return null;var i=r.$from;if(!i.parent.isTextblock)return null;if(i.parentOffset!==i.parent.content.size)return null;for(var o=-1,a=i.depth;a>0;a-=1)if(i.node(a).type.name===t){o=a;break}if(o<0)return null;var s=i.node(o),l=i.index(o);if(l+1>=s.childCount)return null;var c=s.child(l+1);if(!n.includes(c.type.name))return null;var u=e.schema.nodes[t],d=!1;if(c.forEach((function(e){e.type===u&&e.childCount>1&&(d=!0)})),!d)return null;var f=e.doc.resolve(i.after()).nodeAfter;if(!f||!n.includes(f.type.name))return null;var p=[];return f.forEach((function(e){p.push(e)})),0===p.length?null:{listItemDepth:o,nestedList:f,nestedListPos:i.after(),insertPos:i.after(o),items:p}}(e,n,r);if(!i)return!1;var o=e.selection,a=i.nestedList,s=i.nestedListPos,l=i.insertPos,c=i.items,u=e.tr;u.delete(s,s+a.nodeSize);var d=u.mapping.map(l);return u.insert(d,bp.from(c)),u.setSelection(o.map(u.doc,u.mapping)),t&&t(u),!0}(e.state,e.view.dispatch,t,n)},Yj=function(e,t){return Sk.create({name:"".concat(e,"BranchingDeleteKeymap"),priority:101,addKeyboardShortcuts:function(){var n=this,r=function(){return Kj(n.editor,e,t)};return{Delete:r,"Mod-Delete":r}}})};function Xj(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:"text",raw:e,text:e}])}var Qj=Yk.create({name:"listItem",addOptions:function(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML:function(){return[{tag:"li"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["li",pw(this.options.HTMLAttributes,t),0]},markdownTokenName:"list_item",parseMarkdown:function(e,t){var n;if("list_item"!==e.type)return[];var r=null!=(n=t.parseBlockChildren)?n:t.parseChildren,i=[];if(e.tokens&&e.tokens.length>0){if(function(e){var t,n,r=null==(t=e.tokens)?void 0:t[0];return Boolean(e.text&&1===(null==(n=e.tokens)?void 0:n.length)&&"list"===(null==r?void 0:r.type)&&r.ordered&&r.raw===e.text)}(e))return{type:"listItem",content:[{type:"paragraph",content:Xj(e.text||"",t)}]};if(e.tokens.some((function(e){return"paragraph"===e.type})))i=r(e.tokens);else{var o=e.tokens[0];if(o&&"text"===o.type&&o.tokens&&o.tokens.length>0){if(i=[{type:"paragraph",content:t.parseInline(o.tokens)}],e.tokens.length>1){var a,s=r(e.tokens.slice(1));(a=i).push.apply(a,(0,v.Z)(s))}}else i=r(e.tokens)}}return 0===i.length&&(i=[{type:"paragraph",content:[]}]),{type:"listItem",content:i}},renderMarkdown:function(e,t,n){return Jk(e,t,(function(e){var t,n;if("bulletList"===e.parentType)return"- ";if("orderedList"===e.parentType){var r=(null==(n=null==(t=e.meta)?void 0:t.parentAttrs)?void 0:n.start)||1;return"".concat(r+e.index,". ")}return"- "}),n)},addExtensions:function(){return[Yj(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts:function(){var e=this;return{Enter:function(){return e.editor.commands.splitListItem(e.name)},Tab:function(){return e.editor.commands.sinkListItem(e.name)},"Shift-Tab":function(){return e.editor.commands.liftListItem(e.name)}}}});!function(e,t){for(var n in t)Vj(e,n,{get:t[n],enumerable:!0})}({},{findListItemPos:function(){return eC},getNextListDepth:function(){return tC},handleBackspace:function(){return rC},handleDelete:function(){return aC},hasListBefore:function(){return nC},hasListItemAfter:function(){return sC},hasListItemBefore:function(){return lC},listItemHasSubList:function(){return cC},nextListIsDeeper:function(){return iC},nextListIsHigher:function(){return oC}});var eC=function(e,t){for(var n=t.selection.$from,r=nx(e,t.schema),i=n.depth,o=n.pos,a=null;i>0&&null===a;)n.node(i).type===r?a=i:(i-=1,o-=1);return null===a?null:{$pos:t.doc.resolve(o),depth:a}},tC=function(e,t){var n=eC(e,t);if(!n)return!1;var r=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,i=e.doc.resolve(n),o=r,a=null;o>0&&null===a;){var s=i.node(o);(null==s?void 0:s.type.name)===t?a=s:o-=1}return[a,o]}(t,e,n.$pos.pos+4);return(0,p.Z)(r,2)[1]},nC=function(e,t,n){var r=e.selection.$anchor,i=Math.max(0,r.pos-2),o=e.doc.resolve(i).node();return!(!o||!n.includes(o.type.name))},rC=function(e,t,n){if(e.commands.undoInputRule())return!0;
2if(e.state.selection.from!==e.state.selection.to)return!1;if(!Lx(e.state,t)&&nC(e.state,t,n)){var r=e.state.selection.$anchor,i=e.state.doc.resolve(r.before()-1),o=[];i.node().descendants((function(e,n){e.type.name===t&&o.push({node:e,pos:n})}));var a=o.at(-1);if(!a)return!1;var s=e.state.doc.resolve(i.start()+a.pos+1);return e.chain().cut({from:r.start()-1,to:r.end()+1},s.end()).joinForward().run()}return!!Lx(e.state,t)&&(!!function(e){var t=e.selection,n=t.$from,r=t.$to;return!(n.parentOffset>0||n.pos!==r.pos)}(e.state)&&e.chain().liftListItem(t).run())},iC=function(e,t){var n=tC(e,t),r=eC(e,t);return!(!r||!n)&&n>r.depth},oC=function(e,t){var n=tC(e,t),r=eC(e,t);return!(!r||!n)&&n<r.depth},aC=function(e,t){if(!Lx(e.state,t))return!1;if(!function(e,t){var n=e.selection,r=n.$from,i=n.$to,o=n.$anchor;if(t){var a=iw((function(e){return e.type.name===t}))(e.selection);if(!a)return!1;var s=e.doc.resolve(a.pos+1);return o.pos+1===s.end()}return!(i.parentOffset<i.parent.nodeSize-2||r.pos!==i.pos)}(e.state,t))return!1;var n=e.state.selection,r=n.$from,i=n.$to;return!(!n.empty&&r.sameParent(i))&&(iC(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():oC(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},sC=function(e,t){var n,r=t.selection.$anchor,i=t.doc.resolve(r.pos-r.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null==(n=i.nodeAfter)?void 0:n.type.name)===e},lC=function(e,t){var n,r=t.selection.$anchor,i=t.doc.resolve(r.pos-2);return 0!==i.index()&&(null==(n=i.nodeBefore)?void 0:n.type.name)===e},cC=function(e,t,n){if(!n)return!1;var r=nx(e,t.schema),i=!1;return n.descendants((function(e){e.type===r&&(i=!0)})),i},uC=Sk.create({name:"listKeymap",addOptions:function(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts:function(){var e=this;return{Delete:function(t){var n=t.editor,r=!1;return e.options.listTypes.forEach((function(e){var t=e.itemName;void 0!==n.state.schema.nodes[t]&&aC(n,t)&&(r=!0)})),r},"Mod-Delete":function(t){var n=t.editor,r=!1;return e.options.listTypes.forEach((function(e){var t=e.itemName;void 0!==n.state.schema.nodes[t]&&aC(n,t)&&(r=!0)})),r},Backspace:function(t){var n=t.editor,r=!1;return e.options.listTypes.forEach((function(e){var t=e.itemName,i=e.wrapperNames;void 0!==n.state.schema.nodes[t]&&rC(n,t,i)&&(r=!0)})),r},"Mod-Backspace":function(t){var n=t.editor,r=!1;return e.options.listTypes.forEach((function(e){var t=e.itemName,i=e.wrapperNames;void 0!==n.state.schema.nodes[t]&&rC(n,t,i)&&(r=!0)})),r}}}}),dC=/^(\s*)(\d+)\.\s+(.*)$/,fC=/^\s/;function pC(e){var t=[],n=[],r=!1;return e.forEach((function(e){if(!r)return""===e.trim()||t.length>0&&function(e){var t=e.trimStart();return/^[-+*]\s+/.test(t)||/^\d+\.\s+/.test(t)||/^>\s?/.test(t)||/^```/.test(t)||/^~~~/.test(t)}(e)?(r=!0,void n.push(e)):void t.push(e);n.push(e)})),{paragraphLines:t,blockLines:n}}function hC(e,t,n){for(var r=[],i=0;i<e.length;){var o=e[i];if(o.indent===t){var a=pC(o.contentLines),s=a.paragraphLines,l=a.blockLines,c=s.join("\n").trim(),u=[];c&&u.push({type:"paragraph",raw:c,tokens:n.inlineTokens(c)});var d=l.join("\n").trim();if(d){var f=n.blockTokens(d);u.push.apply(u,(0,v.Z)(f))}for(var p=i+1,h=[];p<e.length&&e[p].indent>t;)h.push(e[p]),p+=1;if(h.length>0){var m=Math.min.apply(Math,(0,v.Z)(h.map((function(e){return e.indent})))),g=hC(h,m,n);u.push({type:"list",ordered:!0,start:h[0].number,items:g,raw:h.map((function(e){return e.raw})).join("\n")})}r.push({type:"list_item",raw:o.raw,tokens:u}),i=p}else i+=1}return r}var mC="textStyle",vC=/^(\d+)\.\s$/,gC=Yk.create({name:"orderedList",addOptions:function(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content:function(){return"".concat(this.options.itemTypeName,"+")},addAttributes:function(){return{start:{default:1,parseHTML:function(e){return e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}},type:{default:null,parseHTML:function(e){return e.getAttribute("type")}}}},parseHTML:function(){return[{tag:"ol"}]},renderHTML:function(e){var t=e.HTMLAttributes,n=t.start,r=(0,en.Z)(t,qj);return 1===n?["ol",pw(this.options.HTMLAttributes,r),0]:["ol",pw(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:function(e,t){if("list"!==e.type||!e.ordered)return[];var n=e.start||1,r=e.items?function(e,t){return e.map((function(e){if("list_item"!==e.type)return t.parseChildren([e])[0];var n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach((function(e){if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)n.push.apply(n,(0,v.Z)(t.parseChildren([e])));else if("text"===e.type&&e.tokens){var r=t.parseChildren([e]);n.push({type:"paragraph",content:r})}else{var i=t.parseChildren([e]);i.length>0&&n.push.apply(n,(0,v.Z)(i))}})),{type:"listItem",content:n}}))}(e.items,t):[];return 1!==n?{type:"orderedList",attrs:{start:n},content:r}:{type:"orderedList",content:r}},renderMarkdown:function(e,t){return e.content?t.renderChildren(e.content,"\n"):""},markdownTokenizer:{name:"orderedList",level:"block",start:function(e){var t=e.match(/^(\s*)(\d+)\.\s+/),n=null==t?void 0:t.index;return void 0!==n?n:-1},tokenize:function(e,t,n){var r,i=e.split("\n"),o=function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n],o=i.match(dC);if(!o)break;for(var a=(0,p.Z)(o,4),s=a[1],l=a[2],c=a[3],u=s.length,d=[c],f=n+1,h=[i],m=!1;f<e.length;){var v=e[f];if(v.match(dC))break;if(""===v.trim())h.push(v),d.push(""),m=!0,f+=1;else if(v.match(fC))h.push(v),d.push(v.slice(u+2)),f+=1;else{if(m)break;h.push(v),d.push(v),f+=1}}t.push({indent:u,number:parseInt(l,10),content:d.join("\n").trim(),contentLines:d,raw:h.join("\n")}),r=f,n=f}return[t,r]}(i),a=(0,p.Z)(o,2),s=a[0],l=a[1];if(0!==s.length){var c=hC(s,0,n);if(0!==c.length)return{type:"list",ordered:!0,start:(null==(r=s[0])?void 0:r.number)||1,items:c,raw:i.slice(0,l).join("\n")}}}},markdownOptions:{indentsContent:!0},addCommands:function(){var e=this;return{toggleOrderedList:function(){return function(t){var n=t.commands,r=t.chain;return e.options.keepAttributes?r().toggleList(e.name,e.options.itemTypeName,e.options.keepMarks).updateAttributes("listItem",e.editor.getAttributes(mC)).run():n.toggleList(e.name,e.options.itemTypeName,e.options.keepMarks)}}}},addKeyboardShortcuts:function(){var e=this;
2return{"Mod-Shift-7":function(){return e.editor.commands.toggleOrderedList()}}},addInputRules:function(){var e=this,t=Bk({find:vC,type:this.type,getAttributes:function(e){return{start:+e[1]}},joinPredicate:function(e,t){return t.childCount+t.attrs.start===+e[1]}});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Bk({find:vC,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:function(t){return(0,A.Z)({start:+t[1]},e.editor.getAttributes(mC))},joinPredicate:function(e,t){return t.childCount+t.attrs.start===+e[1]},editor:this.editor})),[t]}}),yC=/^\s*(\[([( |x])?\])\s$/,bC=Yk.create({name:"taskItem",addOptions:function(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content:function(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:function(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:function(e){var t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:function(e){return{"data-checked":e.checked}}}}},parseHTML:function(){return[{tag:'li[data-type="'.concat(this.name,'"]'),priority:51}]},renderHTML:function(e){var t=e.node,n=e.HTMLAttributes;return["li",pw(this.options.HTMLAttributes,n,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:function(e,t){var n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?n.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):n.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){var r=t.parseChildren(e.nestedTokens);n.push.apply(n,(0,v.Z)(r))}return t.createNode("taskItem",{checked:e.checked||!1},n)},renderMarkdown:function(e,t){var n,r=(null==(n=e.attrs)?void 0:n.checked)?"x":" ";return Jk(e,t,"- [".concat(r,"] "))},addExtensions:function(){return this.options.nested?[Yj(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts:function(){var e=this,t={Enter:function(){return e.editor.commands.splitListItem(e.name)},"Shift-Tab":function(){return e.editor.commands.liftListItem(e.name)}};return this.options.nested?(0,A.Z)((0,A.Z)({},t),{},{Tab:function(){return e.editor.commands.sinkListItem(e.name)}}):t},addNodeView:function(){var e=this;return function(t){var n=t.node,r=t.HTMLAttributes,i=t.getPos,o=t.editor,a=document.createElement("li"),s=document.createElement("label"),l=document.createElement("span"),c=document.createElement("input"),u=document.createElement("div"),d=function(t){var n,r;c.ariaLabel=(null==(r=null==(n=e.options.a11y)?void 0:n.checkboxLabel)?void 0:r.call(n,t,c.checked))||"Task item checkbox for ".concat(t.textContent||"empty task item")};d(n),s.contentEditable="false",c.type="checkbox",c.addEventListener("mousedown",(function(e){return e.preventDefault()})),c.addEventListener("change",(function(t){if(o.isEditable||e.options.onReadOnlyChecked){var r=t.target.checked;o.isEditable&&"function"===typeof i&&o.chain().focus(void 0,{scrollIntoView:!1}).command((function(e){var t=e.tr,n=i();if("number"!==typeof n)return!1;var o=t.doc.nodeAt(n);return t.setNodeMarkup(n,void 0,(0,A.Z)((0,A.Z)({},null==o?void 0:o.attrs),{},{checked:r})),!0})).run(),!o.isEditable&&e.options.onReadOnlyChecked&&(e.options.onReadOnlyChecked(n,r)||(c.checked=!c.checked))}else c.checked=!c.checked})),Object.entries(e.options.HTMLAttributes).forEach((function(e){var t=(0,p.Z)(e,2),n=t[0],r=t[1];a.setAttribute(n,r)})),a.dataset.checked=n.attrs.checked,c.checked=n.attrs.checked,s.append(c,l),a.append(s,u),Object.entries(r).forEach((function(e){var t=(0,p.Z)(e,2),n=t[0],r=t[1];a.setAttribute(n,r)}));var f=new Set(Object.keys(r));return{dom:a,contentDOM:u,update:function(t){if(t.type!==e.type)return!1;a.dataset.checked=t.attrs.checked,c.checked=t.attrs.checked,d(t);var n=hw(t,o.extensionManager.attributes),r=new Set(Object.keys(n)),i=e.options.HTMLAttributes;return f.forEach((function(e){r.has(e)||(e in i?a.setAttribute(e,i[e]):a.removeAttribute(e))}
2)),Object.entries(n).forEach((function(e){var t=(0,p.Z)(e,2),n=t[0],r=t[1];null===r||void 0===r?n in i?a.setAttribute(n,i[n]):a.removeAttribute(n):a.setAttribute(n,r)})),f=r,!0}}}},addInputRules:function(){return[Bk({find:yC,type:this.type,getAttributes:function(e){return{checked:"x"===e[e.length-1]}}})]}}),xC=Yk.create({name:"taskList",addOptions:function(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content:function(){return"".concat(this.options.itemTypeName,"+")},parseHTML:function(){return[{tag:'ul[data-type="'.concat(this.name,'"]'),priority:51}]},renderHTML:function(e){var t=e.HTMLAttributes;return["ul",pw(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:function(e,t){return t.createNode("taskList",{},t.parseChildren(e.items||[]))},renderMarkdown:function(e,t){return e.content?t.renderChildren(e.content,"\n"):""},markdownTokenizer:{name:"taskList",level:"block",start:function(e){var t,n=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==n?n:-1},tokenize:function(e,t,n){var r=$k(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:function(e){return{indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}},createToken:function(e,t){return{type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}},customNestedParser:function e(t){var r=$k(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:function(e){return{indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}},createToken:function(e,t){return{type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}},customNestedParser:e},n);return r?[{type:"taskList",raw:r.raw,items:r.items}]:n.blockTokens(t)}},n);if(r)return{type:"taskList",raw:r.raw,items:r.items}}},markdownOptions:{indentsContent:!0},addCommands:function(){var e=this;return{toggleTaskList:function(){return function(t){return t.commands.toggleList(e.name,e.options.itemTypeName)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Shift-9":function(){return e.editor.commands.toggleTaskList()}}}}),wC=(Sk.create({name:"listKit",addExtensions:function(){var e=[];return!1!==this.options.bulletList&&e.push(Jj.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(Qj.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(uC.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(gC.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(bC.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(xC.configure(this.options.taskList)),e}}),"&nbsp;"),kC=Yk.create({name:"paragraph",priority:1e3,addOptions:function(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML:function(){return[{tag:"p"}]},renderHTML:function(e){var t=e.HTMLAttributes;return["p",pw(this.options.HTMLAttributes,t),0]},parseMarkdown:function(e,t){var n=e.tokens||[];if(1===n.length&&"image"===n[0].type)return t.parseChildren([n[0]]);var r=t.parseInline(n);return!(1===n.length&&"text"===n[0].type&&(n[0].raw===wC||n[0].text===wC||"\xa0"===n[0].raw||"\xa0"===n[0].text))||1!==r.length||"text"!==r[0].type||r[0].text!==wC&&"\xa0"!==r[0].text?t.createNode("paragraph",void 0,r):t.createNode("paragraph",void 0,[])},renderMarkdown:function(e,t,n){var r,i;if(!e)return"";var o=Array.isArray(e.content)?e.content:[];if(0===o.length){var a=Array.isArray(null==(r=null==n?void 0:n.previousNode)?void 0:r.content)?n.previousNode.content:[];return"paragraph"===(null==(i=null==n?void 0:n.previousNode)?void 0:i.type)&&0===a.length?wC:""}return t.renderChildren(o)},addCommands:function(){var e=this;return{setParagraph:function(){return function(t){return t.commands.setNode(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Alt-0":function(){return e.editor.commands.setParagraph()}}}}),SC=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,jC=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,CC=vk.create({name:"strike",addOptions:function(){return{HTMLAttributes:{}}},parseHTML:function(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:function(e){return!!e.includes("line-through")&&{}}}]},renderHTML:function(e){var t=e.HTMLAttributes;return["s",pw(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:function(e,t){return t.applyM
2ark("strike",t.parseInline(e.tokens||[]))},renderMarkdown:function(e,t){return"~~".concat(t.renderChildren(e),"~~")},addCommands:function(){var e=this;return{setStrike:function(){return function(t){return t.commands.setMark(e.name)}},toggleStrike:function(){return function(t){return t.commands.toggleMark(e.name)}},unsetStrike:function(){return function(t){return t.commands.unsetMark(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-Shift-s":function(){return e.editor.commands.toggleStrike()}}},addInputRules:function(){return[Zk({find:SC,type:this.type})]},addPasteRules:function(){return[Xk({find:jC,type:this.type})]}}),_C=Yk.create({name:"text",group:"inline",parseMarkdown:function(e){return{type:"text",text:e.text||""}},renderMarkdown:function(e){return e.text||""}}),EC=vk.create({name:"underline",addOptions:function(){return{HTMLAttributes:{}}},parseHTML:function(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:function(e){return!!e.includes("underline")&&{}}}]},renderHTML:function(e){var t=e.HTMLAttributes;return["u",pw(this.options.HTMLAttributes,t),0]},parseMarkdown:function(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown:function(e,t){return"++".concat(t.renderChildren(e),"++")},markdownTokenizer:{name:"underline",level:"inline",start:function(e){return e.indexOf("++")},tokenize:function(e,t,n){var r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(r){var i=r[2].trim();return{type:"underline",raw:r[0],text:i,tokens:n.inlineTokens(i)}}}},addCommands:function(){var e=this;return{setUnderline:function(){return function(t){return t.commands.setMark(e.name)}},toggleUnderline:function(){return function(t){return t.commands.toggleMark(e.name)}},unsetUnderline:function(){return function(t){return t.commands.unsetMark(e.name)}}}},addKeyboardShortcuts:function(){var e=this;return{"Mod-u":function(){return e.editor.commands.toggleUnderline()},"Mod-U":function(){return e.editor.commands.toggleUnderline()}}}});function NC(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Mm({view:function(t){return new AC(t,e)}})}var AC=function(){function e(t,n){var r,i=this;(0,ha.Z)(this,e),this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(r=n.width)&&void 0!==r?r:1,this.color=!1===n.color?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map((function(e){var n=function(t){i[e](t)};return t.dom.addEventListener(e,n),{name:e,handler:n}}))}return(0,ma.Z)(e,[{key:"destroy",value:function(){var e=this;this.handlers.forEach((function(t){var n=t.name,r=t.handler;return e.editorView.dom.removeEventListener(n,r)}))}},{key:"update",value:function(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}},{key:"setCursor",value:function(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}},{key:"updateOverlay",value:function(){var e,t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r=this.editorView.dom,i=r.getBoundingClientRect(),o=i.width/r.offsetWidth,a=i.height/r.offsetHeight;if(n){var s=t.nodeBefore,l=t.nodeAfter;if(s||l){var c=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(c){var u=c.getBoundingClientRect(),d=s?u.bottom:u.top;s&&l&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);var f=this.width/2*a;e={left:u.left,right:u.right,top:d-f,bottom:d+f}}}}if(!e){var p=this.editorView.coordsAtPos(this.cursorPos),h=this.width/2*o;e={left:p.left-h,right:p.left+h,top:p.top,bottom:p.bottom}}var m,v,g=this.editorView.dom.offsetParent;if(this.element||(this.element=g.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),!g||g==document.body&&"static"==getComputedStyle(g).position)m=-pageXOffset,v=-pageYOffset;else{var y=g.getBoundingClientRect(),b=y.width/g.offsetWidth,x=y.height/g.offsetHeight;m=y.left-g.scrollLeft*b,v=y.top-g.scrollTop*x}this.element.style.left=(e.left-m)/o+"px",this.element.style.top=(e.top-v)/a+"px",this.element.style.width=(e.right-e.left)/o+"px",this.element.style.height=(e.bottom-e.top)/a+"px"}},{key:"scheduleRemoval",value:function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.setCursor(null)}),e)}},{key:"dragover",value:function(e){if(this.editorView.editable){var t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i="function"==typeof r?r(this.editorView,t,e):r;if(t&&!i){var o=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){var a=tm(this.editorView.state.doc,o,this.editorView.dragging.slice);null!=a&&(o=a)}this.setCursor(o),this.scheduleRemoval(5e3)}}}},{key:"dragend",value:function(){this.scheduleRemoval(20)}},{key:"drop",value:function(){this.scheduleRemoval(20)}},{key:"dragleave",value:function(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}]),e}(),DC=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e){return(0,ha.Z)(this,n),t.call(this,e,e)}return(0,ma.Z)(n,[{key:"map",value:function(e,t){var r=e.resolve(t.map(this.head));return n.valid(r)?new n(r):gm.near(r)}},{key:"content",value:function(){return Cp.empty}},{key:"eq",value:function(e){return e instanceof n&&e.head==this.head}},{key:"toJSON",value:function(){return{type:"gapcursor",pos:this.head}}},{key:"getBookmark",value:function(){return new TC(this.anchor)}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new n(e.resolve(t.pos))}},{key:"valid",value:function(e){var t=e.parent;if(t.inlineContent||!function(e){for(var t=e.depth;t>=0;t--){var n=e.index(t),r=e.node(t);if(0!=n)for(var i=r.child(n-1);;i=i.lastChild){if(0==i.childCount&&!i.inlineContent||IC(i.type))return!0;
2if(i.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e)||!function(e){for(var t=e.depth;t>=0;t--){var n=e.indexAfter(t),r=e.node(t);if(n!=r.childCount)for(var i=r.child(n);;i=i.firstChild){if(0==i.childCount&&!i.inlineContent||IC(i.type))return!0;if(i.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e))return!1;var n=t.type.spec.allowGapCursor;if(null!=n)return n;var r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}},{key:"findGapCursorFrom",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e:for(;;){if(!r&&n.valid(e))return e;for(var i=e.pos,o=null,a=e.depth;;a--){var s=e.node(a);if(t>0?e.indexAfter(a)<s.childCount:e.index(a)>0){o=s.child(t>0?e.indexAfter(a):e.index(a)-1);break}if(0==a)return null;i+=t;var l=e.doc.resolve(i);if(n.valid(l))return l}for(;;){var c=t>0?o.firstChild:o.lastChild;if(!c){if(o.isAtom&&!o.isText&&!Sm.isSelectable(o)){e=e.doc.resolve(i+o.nodeSize*t),r=!1;continue e}break}o=c,i+=t;var u=e.doc.resolve(i);if(n.valid(u))return u}return null}}}]),n}(gm);DC.prototype.visible=!1,DC.findFrom=DC.findGapCursorFrom,gm.jsonID("gapcursor",DC);var TC=function(){function e(t){(0,ha.Z)(this,e),this.pos=t}return(0,ma.Z)(e,[{key:"map",value:function(t){return new e(t.map(this.pos))}},{key:"resolve",value:function(e){var t=e.resolve(this.pos);return DC.valid(t)?new DC(t):gm.near(t)}}]),e}();function IC(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}var PC=Hb({ArrowLeft:FC("horiz",-1),ArrowRight:FC("horiz",1),ArrowUp:FC("vert",-1),ArrowDown:FC("vert",1)});function FC(e,t){var n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,i){var o=e.selection,a=t>0?o.$to:o.$from,s=o.empty;if(o instanceof wm){if(!i.endOfTextblock(n)||0==a.depth)return!1;s=!1,a=e.doc.resolve(t>0?a.after():a.before())}var l=DC.findGapCursorFrom(a,t,s);return!!l&&(r&&r(e.tr.setSelection(new DC(l))),!0)}}function OC(e,t,n){if(!e||!e.editable)return!1;var r=e.state.doc.resolve(t);if(!DC.valid(r))return!1;var i=e.posAtCoords({left:n.clientX,top:n.clientY});return!(i&&i.inside>-1&&Sm.isSelectable(e.state.doc.nodeAt(i.inside)))&&(e.dispatch(e.state.tr.setSelection(new DC(r))),!0)}function MC(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof DC))return!1;var n=e.state.selection.$from,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;for(var i=bp.empty,o=r.length-1;o>=0;o--)i=bp.from(r[o].createAndFill(null,i));var a=e.state.tr.replace(n.pos,n.pos,new Cp(i,0,0));return a.setSelection(wm.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function ZC(e){if(!(e.selection instanceof DC))return null;var t=document.createElement("div");return t.className="ProseMirror-gapcursor",nb.create(e.doc,[Qy.widget(e.selection.head,t,{key:"gapcursor"})])}var RC=200,LC=function(){};LC.prototype.append=function(e){return e.length?(e=LC.from(e),!this.length&&e||e.length<RC&&this.leafAppend(e)||this.length<RC&&e.leafPrepend(this)||this.appendInner(e)):this},LC.prototype.prepend=function(e){return e.length?LC.from(e).append(this):this},LC.prototype.appendInner=function(e){return new zC(this,e)},LC.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?LC.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},LC.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},LC.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},LC.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(t,n){return r.push(e(t,n))}),t,n),r},LC.from=function(e){return e instanceof LC?e:e&&e.length?new BC(e):LC.empty};var BC=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(!1===e(this.values[i],r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=RC)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=RC)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(LC);LC.empty=new BC([]);var zC=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;return!(t<i&&!1===this.left.forEachInner(e,t,Math.min(n,i),r))&&(!(n>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;return!(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i))&&(!(n<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),n,r))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(LC),UC=LC,HC=function(){function e(t,n){(0,ha.Z)(this,e),this.items=t,this.eventCount=n}return(0,ma.Z)(e,[{key:"popEvent",value:function(t,n){var r=this;if(0==this.eventCount)return null;for(var i,o,a=this.items.length;;a--){if(this.items.get(a-1).selection){--a;break}}n&&(i=this.remapping(a,this.items.length),o=i.maps.length);var s,l,c=t.tr,u=[],d=[];
2return this.items.forEach((function(t,n){if(!t.step)return i||(i=r.remapping(a,n+1),o=i.maps.length),o--,void d.push(t);if(i){d.push(new WC(t.map));var f,p=t.step.map(i.slice(o));p&&c.maybeStep(p).doc&&(f=c.mapping.maps[c.mapping.maps.length-1],u.push(new WC(f,void 0,void 0,u.length+d.length))),o--,f&&i.appendMap(f,o)}else c.maybeStep(t.step);return t.selection?(s=i?t.selection.map(i.slice(o)):t.selection,l=new e(r.items.slice(0,a).append(d.reverse().concat(u)),r.eventCount-1),!1):void 0}),this.items.length,0),{remaining:l,transform:c,selection:s}}},{key:"addTransform",value:function(t,n,r,i){for(var o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null,c=0;c<t.steps.length;c++){var u,d=t.steps[c].invert(t.docs[c]),f=new WC(t.mapping.maps[c],d,n);(u=l&&l.merge(f))&&(f=u,c?o.pop():s=s.slice(0,s.length-1)),o.push(f),n&&(a++,n=void 0),i||(l=f)}var p=a-r.depth;return p>VC&&(s=function(e,t){var n;return e.forEach((function(e,r){if(e.selection&&0==t--)return n=r,!1})),e.slice(n)}(s,p),a-=p),new e(s.append(o),a)}},{key:"remapping",value:function(e,t){var n=new Ih;return this.items.forEach((function(t,r){var i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)}),e,t),n}},{key:"addMaps",value:function(t){return 0==this.eventCount?this:new e(this.items.append(t.map((function(e){return new WC(e)}))),this.eventCount)}},{key:"rebased",value:function(t,n){if(!this.eventCount)return this;var r=[],i=Math.max(0,this.items.length-n),o=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach((function(e){e.selection&&s--}),i);var l=n;this.items.forEach((function(e){var n=o.getMirror(--l);if(null!=n){a=Math.min(a,n);var i=o.maps[n];if(e.step){var c=t.steps[n].invert(t.docs[n]),u=e.selection&&e.selection.map(o.slice(l+1,n));u&&s++,r.push(new WC(i,c,u))}else r.push(new WC(i))}}),i);for(var c=[],u=n;u<a;u++)c.push(new WC(o.maps[u]));var d=new e(this.items.slice(0,i).append(c).append(r),s);return d.emptyItemCount()>500&&(d=d.compress(this.items.length-r.length)),d}},{key:"emptyItemCount",value:function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e}},{key:"compress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,n=this.remapping(0,t),r=n.maps.length,i=[],o=0;return this.items.forEach((function(e,a){if(a>=t)i.push(e),e.selection&&o++;else if(e.step){var s=e.step.map(n.slice(r)),l=s&&s.getMap();if(r--,l&&n.appendMap(l,r),s){var c=e.selection&&e.selection.map(n.slice(r));c&&o++;var u,d=new WC(l.invert(),s,c),f=i.length-1;(u=i.length&&i[f].merge(d))?i[f]=u:i.push(d)}}else e.map&&r--}),this.items.length,0),new e(UC.from(i.reverse()),o)}}]),e}();HC.empty=new HC(UC.empty,0);var WC=function(){function e(t,n,r,i){(0,ha.Z)(this,e),this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}return(0,ma.Z)(e,[{key:"merge",value:function(t){if(this.step&&t.step&&!t.selection){var n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}}]),e}(),qC=(0,ma.Z)((function e(t,n,r,i,o){(0,ha.Z)(this,e),this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o})),VC=20;function GC(e){for(var t=[],n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((function(e,n,r,i){return t.push(r,i)}));return t}function $C(e,t){if(!e)return null;for(var n=[],r=0;r<e.length;r+=2){var i=t.map(e[r],1),o=t.map(e[r+1],-1);i<=o&&n.push(i,o)}return n}var JC=!1,KC=null;function YC(e){var t=e.plugins;if(KC!=t){JC=!1,KC=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){JC=!0;break}}return JC}var XC=new Lm("history"),QC=new Lm("closeHistory");function e_(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Mm({key:XC,state:{init:function(){return new qC(HC.empty,HC.empty,null,0,-1)},apply:function(t,n,r){return function(e,t,n,r){var i,o=n.getMeta(XC);if(o)return o.historyState;n.getMeta(QC)&&(e=new qC(e.done,e.undone,null,0,-1));var a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(XC))return a.getMeta(XC).redo?new qC(e.done.addTransform(n,void 0,r,YC(t)),e.undone,GC(n.mapping.maps),e.prevTime,e.prevComposition):new qC(e.done,e.undone.addTransform(n,void 0,r,YC(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(i=n.getMeta("rebased"))?new qC(e.done.rebased(n,i),e.undone.rebased(n,i),$C(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new qC(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),$C(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);var s=n.getMeta("composition"),l=0==e.prevTime||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;
2return e.mapping.maps[0].forEach((function(e,r){for(var i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)})),n}(n,e.prevRanges)),c=a?$C(e.prevRanges,n.mapping):GC(n.mapping.maps);return new qC(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,YC(t)),HC.empty,c,n.time,null==s?e.prevComposition:s)}(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput:function(e,t){var n=t.inputType,r="historyUndo"==n?n_:"historyRedo"==n?r_:null;return!(!r||!e.editable)&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}function t_(e,t){return function(n,r){var i=XC.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(r){var o=function(e,t,n){var r=YC(t),i=XC.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;var a=o.selection.resolve(o.transform.doc),s=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),l=new qC(n?s:o.remaining,n?o.remaining:s,null,0,-1);return o.transform.setSelection(a).setMeta(XC,{redo:n,historyState:l})}(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}var n_=t_(!1,!0),r_=t_(!0,!0);t_(!1,!1),t_(!0,!1);Sk.create({name:"characterCount",addOptions:function(){return{limit:null,autoTrim:!0,mode:"textSize",textCounter:function(e){return e.length},wordCounter:function(e){return e.split(" ").filter((function(e){return""!==e})).length}}},addStorage:function(){return{characters:function(){return 0},words:function(){return 0}}},onBeforeCreate:function(){var e=this;this.storage.characters=function(t){var n=(null==t?void 0:t.node)||e.editor.state.doc;if("textSize"===((null==t?void 0:t.mode)||e.options.mode)){var r=n.textBetween(0,n.content.size,void 0," ");return e.options.textCounter(r)}return n.nodeSize},this.storage.words=function(t){var n=(null==t?void 0:t.node)||e.editor.state.doc,r=n.textBetween(0,n.content.size," "," ");return e.options.wordCounter(r)}},addProseMirrorPlugins:function(){var e=this,t=!1;return[new Mm({key:new Lm("characterCount"),appendTransaction:function(n,r,i){if(!t){var o=e.options.limit,a=e.options.autoTrim;if(null!==o&&void 0!==o&&0!==o&&!1!==a){var s=e.storage.characters({node:i.doc});if(s>o){var l=s-o;console.warn("[CharacterCount] Initial content exceeded limit of ".concat(o," characters. Content was automatically trimmed."));var c=i.tr.deleteRange(0,l);return t=!0,c}t=!0}else t=!0}},filterTransaction:function(t,n){var r=e.options.limit;if(!t.docChanged||0===r||null===r||void 0===r)return!0;var i=e.storage.characters({node:n.doc}),o=e.storage.characters({node:t.doc});if(o<=r)return!0;if(i>r&&o>r&&o<=i)return!0;if(i>r&&o>r&&o>i)return!1;if(!t.getMeta("paste"))return!1;var a=t.selection.$head.pos,s=a-(o-r),l=a;return t.deleteRange(s,l),!(e.storage.characters({node:t.doc})>r)}})]}});var i_=Sk.create({name:"dropCursor",addOptions:function(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins:function(){return[NC(this.options)]}}),o_=(Sk.create({name:"focus",addOptions:function(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins:function(){var e=this;return[new Mm({key:new Lm("focus"),props:{decorations:function(t){var n=t.doc,r=t.selection,i=e.editor,o=i.isEditable,a=i.isFocused,s=r.anchor,l=[];if(!o||!a)return nb.create(n,[]);var c=0;"deepest"===e.options.mode&&n.descendants((function(e,t){if(!e.isText){if(!(s>=t&&s<=t+e.nodeSize-1))return!1;c+=1}}));var u=0;return n.descendants((function(t,n){return!t.isText&&(s>=n&&s<=n+t.nodeSize-1&&(u+=1,"deepest"===e.options.mode&&c-u>0||"shallowest"===e.options.mode&&u>1?"deepest"===e.options.mode:void l.push(Qy.node(n,n+t.nodeSize,{class:e.options.className}))))})),nb.create(n,l)}}})]}}),Sk.create({name:"gapCursor",addProseMirrorPlugins:function(){return[new Mm({props:{decorations:ZC,createSelectionBetween:function(e,t,n){return t.pos==n.pos&&DC.valid(n)?new DC(n):null}
2,handleClick:OC,handleKeyDown:PC,handleDOMEvents:{beforeinput:MC}}})]},extendNodeSchema:function(e){var t;return{allowGapCursor:null!=(t=cw(ow(e,"allowGapCursor",{name:e.name,options:e.options,storage:e.storage})))?t:null}}})),a_="placeholder",s_=new Lm("tiptap__placeholder"),l_=200;function c_(e){var t=e.editor,n=e.placeholder,r=e.dataAttribute,i=e.pos,o=e.node,a=e.isEmptyDoc,s=e.hasAnchor,l=e.classes,c=l.emptyNode,u=l.emptyEditor,d=[c];return a&&d.push(u),Qy.node(i,i+o.nodeSize,(0,Sn.Z)({class:d.join(" ")},r,"function"===typeof n?n({editor:t,node:o,pos:i,hasAnchor:s}):n))}function u_(e,t){return"function"===typeof e?e(t):e}function d_(e){var t=getComputedStyle(e),n="".concat(t.overflow," ").concat(t.overflowY," ").concat(t.overflowX);return/auto|scroll|overlay/.test(n)}function f_(e){var t,n=e.doc,r=e.view,i=e.scrollContainer,o=r.dom.getBoundingClientRect(),a=i?(t=i)===window?{top:0,bottom:window.innerHeight}:t.getBoundingClientRect():{top:0,bottom:window.innerHeight},s=Math.max(o.top,a.top)-l_,l=Math.min(o.bottom,a.bottom)+l_;if(s>=l)return{top:0,bottom:n.content.size};var c="rtl"===getComputedStyle(r.dom).direction?Math.max(o.right-2,o.left+2):o.left+2,u=r.posAtCoords({left:c,top:s+2}),d=r.posAtCoords({left:c,top:l-2});return{top:u?u.pos:0,bottom:d?d.pos:n.content.size}}var p_={init:function(){return{topPos:null,bottomPos:null}},apply:function(e,t){var n=e.getMeta(s_);return(null==n?void 0:n.positions)?{topPos:n.positions.top,bottomPos:n.positions.bottom}:e.docChanged?{topPos:null!==t.topPos?e.mapping.map(t.topPos):null,bottomPos:null!==t.bottomPos?e.mapping.map(t.bottomPos):null}:t}};function h_(e){var t=function(e){for(var t=e;t;){if(d_(t))return t;var n=t.parentElement;if(!n){var r=t.getRootNode();if(r instanceof ShadowRoot){t=r.host;continue}return window}t=n}return window}(e.dom),n=function(){var n=f_({view:e,doc:e.state.doc,scrollContainer:t}),r=s_.getState(e.state);if((null==r?void 0:r.topPos)!==n.top||(null==r?void 0:r.bottomPos)!==n.bottom){var i=e.state.tr.setMeta(s_,{positions:n});e.dispatch(i)}},r=null,i=0,o=function e(){null===r&&(r=requestAnimationFrame((function(){r=null;var t=performance.now();t-i>=150?(i=t,n()):e()})))};return t.addEventListener("scroll",o,{passive:!0}),n(),{update:function(t,n){e.state.doc.content.size!==n.doc.content.size&&o()},destroy:function(){null!==r&&cancelAnimationFrame(r),t.removeEventListener("scroll",o)}}}function m_(e){var t=e.editor,n=e.options,r=n.dataAttribute?"data-".concat(n.dataAttribute.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()):"data-".concat(a_);return new Mm({key:s_,state:p_,view:h_,props:{decorations:function(e){var i=e.doc,o=e.selection;return function(e){var t,n,r=e.editor,i=e.options,o=e.dataAttribute,a=e.doc,s=e.selection;if(!r.isEditable&&i.showOnlyWhenEditable)return null;
2var l=s.anchor,c=[],u=r.isEmpty;if(i.showOnlyCurrent&&!i.includeChildren){var d=a.resolve(l),f=d.depth>0?d.node(1):d.nodeAfter,p=d.depth>0?d.before(1):l;if(f&&f.type.isTextblock&&Fw(f)){var h=l>=p&&l<=p+f.nodeSize;c.push(c_({editor:r,isEmptyDoc:u,dataAttribute:o,hasAnchor:h,placeholder:i.placeholder,classes:{emptyEditor:i.emptyEditorClass,emptyNode:u_(i.emptyNodeClass,{editor:r,node:f,pos:p,hasAnchor:h})},node:f,pos:p}))}}else{var m=s_.getState(r.state),v=null!=(t=null==m?void 0:m.topPos)?t:0,g=null!=(n=null==m?void 0:m.bottomPos)?n:a.content.size;a.nodesBetween(v,g,(function(e,t){var n=l>=t&&l<=t+e.nodeSize,a=!e.isLeaf&&Fw(e);return e.type.isTextblock?(!n&&i.showOnlyCurrent||!a||c.push(c_({editor:r,isEmptyDoc:u,dataAttribute:o,hasAnchor:n,placeholder:i.placeholder,classes:{emptyEditor:i.emptyEditorClass,emptyNode:u_(i.emptyNodeClass,{editor:r,node:e,pos:t,hasAnchor:n})},node:e,pos:t})),i.includeChildren):i.includeChildren}))}return nb.create(a,c)}({editor:t,options:n,dataAttribute:r,doc:i,selection:o})}}})}var v_=Sk.create({name:"placeholder",addOptions:function(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:a_,placeholder:"Write something \u2026",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins:function(){return[m_({editor:this.editor,options:this.options})]}});Sk.create({name:"selection",addOptions:function(){return{className:"selection"}},addProseMirrorPlugins:function(){var e=this.editor,t=this.options;return[new Mm({key:new Lm("selection"),props:{decorations:function(n){return n.selection.empty||e.isFocused||!e.isEditable||Ow(n.selection)||e.view.dragging?null:nb.create(n.doc,[Qy.inline(n.selection.from,n.selection.to,{class:t.className})])}}})]}});function g_(e){var t=e.types,n=e.node;return n&&Array.isArray(t)&&t.includes(n.type)||(null==n?void 0:n.type)===t}var y_=Sk.create({name:"trailingNode",addOptions:function(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins:function(){var e,t=this,n=new Lm(this.name),r=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",i=Object.entries(this.editor.schema.nodes).map((function(e){return(0,p.Z)(e,2)[1]})).filter((function(e){return(t.options.notAfter||[]).concat(r).includes(e.name)}));return[new Mm({key:n,appendTransaction:function(e,t,i){var o=i.doc,a=i.tr,s=i.schema,l=n.getState(i),c=o.content.size,u=s.nodes[r];if(!e.some((function(e){return e.getMeta("skipTrailingNode")}))&&l)return a.insert(c,u.create())},state:{init:function(e,t){return!g_({node:t.tr.doc.lastChild,types:i})},apply:function(e,t){return e.docChanged?e.getMeta("__uniqueIDTransaction")?t:!g_({node:e.doc.lastChild,types:i}):t}}})]}}),b_=Sk.create({name:"undoRedo",addOptions:function(){return{depth:100,newGroupDelay:500}},addCommands:function(){return{undo:function(){return function(e){var t=e.state,n=e.dispatch;return n_(t,n)}},redo:function(){return function(e){var t=e.state,n=e.dispatch;return r_(t,n)}}}},addProseMirrorPlugins:function(){return[e_(this.options)]},addKeyboardShortcuts:function(){var e=this;return{"Mod-z":function(){return e.editor.commands.undo()},"Shift-Mod-z":function(){return e.editor.commands.redo()},"Mod-y":function(){return e.editor.commands.redo()},"Mod-\u044f":function(){return e.editor.commands.undo()},"Shift-Mod-\u044f":function(){return e.editor.commands.redo()}}}}),x_=Sk.create({name:"starterKit",addExtensions:function(){var e,t,n,r,i=[];return!1!==this.options.bold&&i.push(kj.configure(this.options.bold)),!1!==this.options.blockquote&&i.push(gj.configure(this.options.blockquote)),!1!==this.options.bulletList&&i.push(Jj.configure(this.options.bulletList)),!1!==this.options.code&&i.push(Cj.configure(this.options.code)),!1!==this.options.codeBlock&&i.push(Nj.configure(this.options.codeBlock)),!1!==this.options.document&&i.push(Aj.configure(this.options.document)),!1!==this.options.dropcursor&&i.push(i_.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&i.push(o_.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&i.push(Dj.configure(this.options.hardBreak)),!1!==this.options.heading&&i.push(Tj.configure(this.options.heading)),!1!==this.options.undoRedo&&i.push(b_.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&i.push(Ij.configure(this.options.horizontalRule)),!1!==this.options.italic&&i.push(Zj.configure(this.options.italic)),!1!==this.options.listItem&&i.push(Qj.configure(this.options.listItem)),!1!==this.options.listKeymap&&i.push(uC.configure(null==(e=this.options)?void 0:e.listKeymap)),!1!==this.options.link&&i.push(Hj.configure(null==(t=this.options)?void 0:t.link)),!1!==this.options.orderedList&&i.push(gC.configure(this.options.orderedList)),!1!==this.options.paragraph&&i.push(kC.configure(this.options.paragraph)),!1!==this.options.strike&&i.push(CC.configure(this.options.strike)),!1!==this.options.text&&i.push(_C.configure(this.options.text)),!1!==this.options.underline&&i.push(EC.configure(null==(n=this.options)?void 0:n.underline)),!1!==this.options.trailingNode&&i.push(y_.configure(null==(r=this.options)?void 0:r.trailingNode)),i}}),w_=x_,k_=v_;function S_(e){var t,n=e.char,r=e.allowSpaces,i=e.allowToIncludeChar,o=e.allowedPrefixes,a=e.startOfLine,s=e.$position,l=r&&!i,c=function(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}(n),u=new RegExp("\\s".concat(c,"$")),d=a?"^":"",f=i?"":c,p=l?new RegExp("".concat(d).concat(c,".*?(?=\\s").concat(f,"|$)"),"gm"):new RegExp("".concat(d,"(?:^)?").concat(c,"[^\\s").concat(f,"]*"),"gm"),h=(null==(t=s.nodeBefore)?void 0:t.isText)&&s.nodeBefore.text;if(!h)return null;var m=s.pos-h.length,v=Array.from(h.matchAll(p)).pop();if(!v||void 0===v.input||void 0===v.index)return null;var g=v.input.slice(Math.max(0,v.index-1),v.index),y=new RegExp("^[".concat(null==o?void 0:o.join(""),"\0]?$")).test(g);if(null!==o&&!y)return null;var b=m+v.index,x=b+v[0].length;
2return l&&u.test(h.slice(x-1,x+1))&&(v[0]+=" ",x+=1),b<s.pos&&x>=s.pos?{range:{from:b,to:x},query:v[0].slice(n.length),text:v[0]}:null}var j_=new Lm("suggestion");function C_(e){var t,n=e.pluginKey,r=void 0===n?j_:n,i=e.editor,o=e.char,a=void 0===o?"@":o,s=e.allowSpaces,l=void 0!==s&&s,c=e.allowToIncludeChar,u=void 0!==c&&c,p=e.allowedPrefixes,h=void 0===p?[" "]:p,m=e.startOfLine,v=void 0!==m&&m,g=e.decorationTag,y=void 0===g?"span":g,b=e.decorationClass,x=void 0===b?"suggestion":b,w=e.decorationContent,k=void 0===w?"":w,S=e.decorationEmptyClass,j=void 0===S?"is-empty":S,C=e.command,_=void 0===C?function(){return null}:C,E=e.items,N=void 0===E?function(){return[]}:E,D=e.render,T=void 0===D?function(){return{}}:D,I=e.allow,P=void 0===I?function(){return!0}:I,F=e.findSuggestionMatch,O=void 0===F?S_:F,M=e.shouldShow,Z=e.shouldResetDismissed,R=null==T?void 0:T(),L=l&&!u,B=function(){var e=i.state.selection.$anchor.pos,t=i.view.coordsAtPos(e),n=t.top,r=t.right,o=t.bottom,a=t.left;try{return new DOMRect(a,n,r-a,o-n)}catch(s){return null}},z=function(e,t){return t?function(){var t=r.getState(i.state),n=null==t?void 0:t.decorationId,o=e.dom.querySelector('[data-decoration-id="'.concat(n,'"]'));return(null==o?void 0:o.getBoundingClientRect())||null}:B};var U=new Mm({key:r,view:function(){var e=this;return{update:function(){var n=(0,f.Z)((0,d.Z)().mark((function n(r,o){var a,s,l,c,u,f,p,h,m,v,g,y,b,x,w,k,S,j;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(h=null==(a=e.key)?void 0:a.getState(o),m=null==(s=e.key)?void 0:s.getState(r.state),v=h.active&&m.active&&h.range.from!==m.range.from,g=!h.active&&m.active,y=h.active&&!m.active,b=!g&&!y&&h.query!==m.query,w=b||v,k=y||v&&b,(x=g||v&&b)||w||k){
2n.next=11;break}return n.abrupt("return");case 11:if(S=k&&!x?h:m,j=r.dom.querySelector('[data-decoration-id="'.concat(S.decorationId,'"]')),t={editor:i,range:S.range,query:S.query,text:S.text,items:[],command:function(e){return _({editor:i,range:S.range,props:e})},decorationNode:j,clientRect:z(r,j)},x&&(null==(l=null==R?void 0:R.onBeforeStart)||l.call(R,t)),w&&(null==(c=null==R?void 0:R.onBeforeUpdate)||c.call(R,t)),!w&&!x){n.next=20;break}return n.next=19,N({editor:i,query:S.query});case 19:t.items=n.sent;case 20:k&&(null==(u=null==R?void 0:R.onExit)||u.call(R,t)),w&&(null==(f=null==R?void 0:R.onUpdate)||f.call(R,t)),x&&(null==(p=null==R?void 0:R.onStart)||p.call(R,t));case 23:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}(),destroy:function(){var e;t&&(null==(e=null==R?void 0:R.onExit)||e.call(R,t))}}},state:{init:function(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1,dismissedRange:null}},apply:function(e,t,n,o){var s=i.isEditable,c=i.view.composing,d=e.selection,f=d.empty,p=d.from,m=(0,A.Z)({},t),g=e.getMeta(r);if(g&&g.exit)return m.active=!1,m.decorationId=null,m.range={from:0,to:0},m.query=null,m.text=null,m.dismissedRange=t.active?(0,A.Z)({},t.range):t.dismissedRange,m;if(m.composing=c,e.docChanged&&null!==m.dismissedRange&&(m.dismissedRange={from:e.mapping.map(m.dismissedRange.from),to:e.mapping.map(m.dismissedRange.to)}),s&&(f||i.view.composing)){!(p<t.range.from||p>t.range.to)||c||t.composing||(m.active=!1);var y=O({char:a,allowSpaces:l,allowToIncludeChar:u,allowedPrefixes:h,startOfLine:v,$position:d.$from}),b="id_".concat(Math.floor(4294967295*Math.random()));y&&P({editor:i,state:o,range:y.range,isActive:t.active})&&(!M||M({editor:i,range:y.range,query:y.query,text:y.text,transaction:e}))?(null===m.dismissedRange||function(e){var t=e.match,n=e.dismissedRange,r=e.state,o=e.transaction;return!(null==Z?void 0:Z({editor:i,state:r,range:n,match:t,transaction:o,allowSpaces:L}))&&(L?t.range.from===n.from:t.range.from===n.from&&!function(e){return!!e.docChanged&&e.steps.some((function(e){var t=e.slice;if(!(null==t?void 0:t.content))return!1;var n=t.content.textBetween(0,t.content.size,"\n");return/\s/.test(n)}))}(o))}({match:y,dismissedRange:m.dismissedRange,state:o,transaction:e})||(m.dismissedRange=null),null===m.dismissedRange?(m.active=!0,m.decorationId=t.decorationId?t.decorationId:b,m.range=y.range,m.query=y.query,m.text=y.text):m.active=!1):(y||(m.dismissedRange=null),m.active=!1)}else m.active=!1;return m.active||(m.decorationId=null,m.range={from:0,to:0},m.query=null,m.text=null),m}},props:{handleKeyDown:function(e,t){var n,o,a=U.getState(e.state),s=a.active,l=a.range;if(!s)return!1;if("Escape"===t.key||"Esc"===t.key){var c=U.getState(e.state);return null==(n=null==R?void 0:R.onKeyDown)||n.call(R,{view:e,event:t,range:c.range}),function(e,t){var n;try{var o=r.getState(e.state),a=(null==o?void 0:o.decorationId)?e.dom.querySelector('[data-decoration-id="'.concat(o.decorationId,'"]')):null,s={editor:i,range:(null==o?void 0:o.range)||{from:0,to:0},query:(null==o?void 0:o.query)||null,text:(null==o?void 0:o.text)||null,items:[],command:function(e){return _({editor:i,range:(null==o?void 0:o.range)||{from:0,to:0},props:e})},decorationNode:a,clientRect:z(e,a)};null==(n=null==R?void 0:R.onExit)||n.call(R,s)}catch(c){}var l=e.state.tr.setMeta(t,{exit:!0});e.dispatch(l)}(e,r),!0}return(null==(o=null==R?void 0:R.onKeyDown)?void 0:o.call(R,{view:e,event:t,range:l}))||!1},decorations:function(e){var t=U.getState(e),n=t.active,r=t.range,i=t.decorationId,o=t.query;if(!n)return null;var a=!(null==o?void 0:o.length),s=[x];return a&&s.push(j),nb.create(e.doc,[Qy.inline(r.from,r.to,{nodeName:y,class:s.join(" "),"data-decoration-id":i,"data-decoration-content":k})])}}});return U}var __=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/;function E_(e,t){var n=e.src,r=e.pos;if(64!==n.charCodeAt(r))return!1;if(91!==n.charCodeAt(r+1))return!1;for(var i=r+2,o=i;o<n.length;){var a=n.charCodeAt(o);if(10===a)return!1;if(93===a)break;o+=1}if(o>=n.length)return!1;var s=o,l=n.slice(i,s);if(l.length<1||l.length>200)return!1;if(40!==n.charCodeAt(s+1))return!1;var c=s+2,u=__.exec(n.slice(c));if(!u)return!1;var d=u[0],f=c+d.length;if(41!==n.charCodeAt(f))return!1;t||(e.push("mention","",0).meta={id:d,label:l});return e.pos=f+1,!0}var N_=Yk.create({name:"mention",group:"inline",inline:!0,atom:!0,selectable:!0,addOptions:function(){return{suggestion:{}}},addAttributes:function(){return{id:{default:null,parseHTML:function(e){return e.getAttribute("data-mention-id")},renderHTML:function(e){return e.id?{"data-mention-id":e.id}:{}}},label:{default:null,parseHTML:function(e){return e.getAttribute("data-mention-label")},renderHTML:function(e){return e.label?{"data-mention-label":e.label}:{}}}}},parseHTML:function(){return[{tag:"span[data-mention-id]"}]},renderHTML:function(e){var t=e.node;return["span",pw(e.HTMLAttributes,{"data-mention":"true",class:"bpb-rte-mention"}),"@".concat(t.attrs.label)]},renderText:function(e){var t=e.node;return"@[".concat(t.attrs.label,"](").concat(t.attrs.id,")")},addCommands:function(){var e=this;return{insertMention:function(t){var n=t.id,r=t.label,i=t.range;return function(t){return(0,t.chain)().focus().insertContentAt(i,[{type:e.name,attrs:{id:n,label:r}},{type:"text",text:" "}]).run()}}}},addStorage:function(){return{markdown:{serialize:function(e,t){e.write("@[".concat(t.attrs.label,"](").concat(t.attrs.id,")"))},parse:{setup:function(e){e.inline.ruler.before("link","bpb_mention",E_),e.renderer.rules.mention=function(t,n){var r=t[n].meta,i=r.id,o=r.label,a=e.utils.escapeHtml;return'<span data-mention-id="'.concat(a(i),'" data-mention-label="').concat(a(o),'">@').concat(a(o),"</span>")}}}}}},addProseMirrorPlugins:function(){return[C_((0,A.Z)({editor:this.editor},this.options.suggestion))]}}),A_=N_,D_='"Jost", system-ui, sans-serif',T_=function(e){var t=(e||"").trim();return!(t.length<1||t.length>50)&&t.split(/\s+/).length<=4},I_=(0,c.forwardRef)((function(e,t){var n=e.query,r=e.command,i=e.threadId,o=void 0===i?null:i,a=e.listboxId,s=void 0===a?"bpb-rte-mention-listbox":a,l=e.setActiveDescendant,u=void 0===l?null:l,h=(0,c.useState)([]),m=(0,p.Z)(h,2),v=m[0],g=m[1],y=(0,c.useState)(!0),b=(0,p.Z)(y,2),x=b[0],w=b[1],k=(0,c.useState)(!1),S=(0,p.Z)(k,2),j=S[0],C=S[1],_=(0,c.useState)(0),E=(0,p.Z)(_,2),N=E[0],A=E[1],D=(0,c.useRef)(null),T=(0,c.useRef)(null),I=(0,c.useRef)(!0);(0,c.useEffect)((function(){return function(){I.current=!1,D.current&&clearTimeout(D.current)}}),[]),(0,c.useEffect)((function(){D.current&&clearTimeout(D.current),T.current=n,w(!0),D.current=setTimeout((0,f.Z)((0,d.Z)().mark((function e(){var t,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(T.current===n&&I.current){e.next=2;break}return e.abrupt("return");
2case 2:if(T_(n)){e.next=8;break}return C(!1),g([]),A(0),w(!1),e.abrupt("return");case 8:return e.prev=8,e.next=11,(0,he.SP)({query:n,threadId:o||void 0});case 11:if(t=e.sent,I.current&&T.current===n){e.next=14;break}return e.abrupt("return");case 14:r=t&&t.data&&t.data.data&&t.data.data.members||[],C(!1),g(r),A(0),w(!1),e.next=28;break;case 21:if(e.prev=21,e.t0=e.catch(8),I.current&&T.current===n){e.next=25;break}return e.abrupt("return");case 25:C(!0),g([]),w(!1);case 28:case"end":return e.stop()}}),e,null,[[8,21]])}))),250)}),[n,o]);var P=(0,c.useCallback)((function(e){var t=v[e];t&&r({id:t.id,label:t.name})}),[v,r]);return(0,c.useImperativeHandle)(t,(function(){return{onKeyDown:function(e){var t=e.event;return j||x||0===v.length?"Enter"===t.key||"Tab"===t.key:"ArrowUp"===t.key?(A((function(e){return(e+v.length-1)%v.length})),!0):"ArrowDown"===t.key?(A((function(e){return(e+1)%v.length})),!0):("Enter"===t.key||"Tab"===t.key)&&(P(N),!0)}}}),[j,x,v,N,P]),(0,c.useEffect)((function(){u&&(!j&&!x&&v.length>0?u("".concat(s,"-opt-").concat(N)):u(null))}),[j,x,v,N,s,u]),j?(0,F.jsx)("div",{className:"bpb-rte-mentions",style:P_,children:(0,F.jsx)("div",{style:{padding:"10px 12px",color:"#C0392B",fontFamily:D_,fontSize:13,lineHeight:"18px"},children:"Could not load members \u2014 please try again."})}):x?(0,F.jsx)("div",{className:"bpb-rte-mentions",style:P_,children:(0,F.jsx)("div",{style:{padding:"10px 12px",color:"#9B9CA5",fontFamily:D_,fontSize:13,lineHeight:"18px"},children:"Searching\u2026"})}):0===v.length?(0,F.jsx)("div",{className:"bpb-rte-mentions",style:P_,children:(0,F.jsx)("div",{style:{padding:"10px 12px",color:"#9B9CA5",fontFamily:D_,fontSize:13,lineHeight:"18px"},children:"No members found."})}):(0,F.jsx)("div",{className:"bpb-rte-mentions",id:s,style:P_,role:"listbox","aria-label":"Member suggestions",children:v.map((function(e,t){return(0,F.jsxs)("div",{id:"".concat(s,"-opt-").concat(t),role:"option","aria-selected":t===N,onMouseDown:function(e){e.preventDefault(),P(t)},onMouseEnter:function(){return A(t)},style:{display:"flex",alignItems:"center",gap:10,padding:"8px 12px",backgroundColor:t===N?"#F5F5F7":"#FFFFFF",cursor:"pointer"},children:[(0,F.jsx)(ni.Z,{user:e,size:28}),(0,F.jsx)("span",{style:{fontFamily:D_,fontSize:14,lineHeight:"18px",color:"#05081E"},children:e.name})]},e.id)}))})})),P_={backgroundColor:"#FFFFFF",border:"1px solid #E2E3E6",borderRadius:8,boxShadow:"0 4px 16px rgba(0,0,0,0.08)",maxHeight:280,overflowY:"auto",minWidth:220},F_=I_;var O_="bpb-rte-mention-listbox";function M_(e,t){var n=t&&t();if(n){e.style.position="fixed",e.style.zIndex="4000";var r=window.visualViewport,i=r?{top:r.offsetTop,left:r.offsetLeft,width:r.width,height:r.height}:{top:0,left:0,width:window.innerWidth,height:window.innerHeight},o=Math.max(e.offsetHeight||0,e.scrollHeight||0),a=function(e){var t=e.caret,n=e.panel,r=e.viewport,i=e.gap,o=void 0===i?4:i,a=e.margin,s=void 0===a?8:a,l=e.minUseful,c=void 0===l?120:l,u=r.top,d=r.top+r.height,f=r.left,p=r.left+r.width,h=d-t.bottom-o,m=t.top-u-o,v=h>=c||h>=m?"below":"above",g="below"===v?h:m,y=n.height>g-s,b=y?Math.max(0,Math.floor(g-s)):null,x=y?b:n.height,w="below"===v?t.bottom+o:t.top-o-x;return{top:w=Math.max(u+s,Math.min(w,d-s-x)),left:Math.max(f+s,Math.min(t.left,p-s-n.width)),maxHeight:b,placement:v}}({caret:{top:n.top,bottom:n.bottom,left:n.left},panel:{height:o,width:e.offsetWidth||0},viewport:i}),s=a.top,l=a.left,c=a.maxHeight;e.style.top="".concat(s,"px"),e.style.left="".concat(l,"px"),e.style.maxHeight=null==c?"":"".concat(c,"px"),e.style.overflowY=null==c?"":"auto"}}var Z_=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).threadId;return{char:"@",allowSpaces:!0,items:function(){return[]},command:function(e){var t=e.editor,n=e.range,r=e.props;"string"===typeof r.label&&r.label.includes("]")?t.chain().focus().insertContentAt(n,[{type:"text",text:"@".concat(r.label," ")}]).run():t.commands.insertMention({id:r.id,label:r.label,range:n})},render:function(){var t=null,n=null,r=c.createRef(),i=null,o=0,a=null,s=function(){o||(o=requestAnimationFrame((function(){o=0,t&&i&&M_(t,i)})))},l=null,d=function(e){l&&(e?l.setAttribute("aria-activedescendant",e):l.removeAttribute("aria-activedescendant"))},f=function(t){n.render((0,F.jsx)(F_,{ref:r,query:t.query,command:t.command,threadId:e,listboxId:O_,setActiveDescendant:d}))};return{onStart:function(e){(t=document.createElement("div")).className="bpb-rte-mention-panel",document.body.appendChild(t),(l=e.editor.view.dom).setAttribute("aria-autocomplete","list"),l.setAttribute("aria-expanded","true"),l.setAttribute("aria-controls",O_),n=(0,u.createRoot)(t),f(e),i=e.clientRect,s(),window.addEventListener("scroll",s,!0),window.addEventListener("resize",s),window.visualVie
2wport&&(window.visualViewport.addEventListener("resize",s),window.visualViewport.addEventListener("scroll",s));try{"undefined"!==typeof ResizeObserver&&(a=new ResizeObserver(s)).observe(t)}catch(r){}},onUpdate:function(e){n&&(f(e),i=e.clientRect,s())},onKeyDown:function(e){return"Escape"!==e.event.key&&!(!r.current||!r.current.onKeyDown(e))},onExit:function(){o&&(cancelAnimationFrame(o),o=0),window.removeEventListener("scroll",s,!0),window.removeEventListener("resize",s),window.visualViewport&&(window.visualViewport.removeEventListener("resize",s),window.visualViewport.removeEventListener("scroll",s)),a&&(a.disconnect(),a=null),i=null,l&&(l.removeAttribute("aria-activedescendant"),l.removeAttribute("aria-expanded"),l.removeAttribute("aria-controls"),l.removeAttribute("aria-autocomplete"),l=null);var e=n,r=t;n=null,t=null,e&&Promise.resolve().then((function(){e.unmount(),r&&r.parentNode&&r.parentNode.removeChild(r)}))}}}}},R_=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;function L_(e){var t=function(e){return(e||"").replace(/\r\n?/g,"\n")}(e),n=t.split("\n").map((function(e){for(var t,n=[],r=0,i=new RegExp("@\\[([^\\]\\n]{1,200})\\]\\(([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\\)","g");null!==(t=i.exec(e));)t.index>r&&n.push({type:"text",text:e.slice(r,t.index)}),n.push({type:"mention",attrs:{id:t[2],label:t[1]}}),r=t.index+t[0].length;return r<e.length&&n.push({type:"text",text:e.slice(r)}),n.length>0?{type:"paragraph",content:n}:{type:"paragraph"}}));return{type:"doc",content:n}}var B_=function(e,t){return kw(e,{blockSeparator:"\n",textSerializers:Sw(t)})},z_=new Set(["lineHeight","fontWeight","opacity","zIndex","flex","flexGrow","flexShrink","order"]),U_=A_.extend({parseHTML:function(){return[{tag:"span[data-mention-id]",getAttrs:function(e){return!!R_.test(e.getAttribute("data-mention-id")||"")&&{}}}]}}),H_=function(e){var t=e.value,n=e.onChange,r=e.onBlur,i=e.threadId,o=void 0===i?null:i,a=e.placeholder,s=void 0===a?"":a,l=e.rows,u=void 0===l?6:l,d=e.inputStyle,f=void 0===d?{}:d,h=e.ariaLabel,m=void 0===h?"":h,v=e.autoFocus,g=void 0!==v&&v,y=(0,c.useRef)(n),b=(0,c.useRef)(r);y.current=n,b.current=r;var x,w,k=(0,c.useRef)(null),S=(0,c.useRef)(t||""),j=(x=(0,A.Z)({minHeight:24*u},f),Object.entries(x||{}).map((function(e){var t=(0,p.Z)(e,2),n=t[0],r=t[1],i=n.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o="number"!==typeof r||z_.has(n)?r:"".concat(r,"px");return"".concat(i,": ").concat(o,";")})).join(" ")),C=oj({extensions:[w_.configure({blockquote:!1,bold:!1,bulletList:!1,code:!1,codeBlock:!1,heading:!1,horizontalRule:!1,italic:!1,link:!1,listItem:!1,listKeymap:!1,orderedList:!1,strike:!1,underline:!1,dropcursor:!1,gapcursor:!1,trailingNode:!1}),U_.configure({suggestion:Z_({threadId:o})}),k_.configure({placeholder:s}),(w=function(){return k.current},Sk.create({name:"replyLengthCap",addProseMirrorPlugins:function(){return[new Mm({key:new Lm("replyLengthCap"),filterTransaction:function(e){if(!e.docChanged)return!0;var t=w();return!!(t&&t.view&&t.view.composing)||B_(e.doc,e.doc.type.schema).length<=1e5}})]}}))],content:L_(t||""),autofocus:!!g&&"end",editorProps:{attributes:(0,A.Z)((0,A.Z)({class:"bpb-plain-reply",role:"textbox","aria-multiline":"true"},m?{"aria-label":m}:{}),{},{style:j}),clipboardTextParser:function(e,t){var n=t.doc.type.schema.nodeFromJSON(L_(e));return 0===n.content.size?Cp.empty:new Cp(n.content,1,1)}},onUpdate:function(e){var t=e.editor,n=B_(t.state.doc,t.schema);S.current=n,y.current(n)},onBlur:function(){b.current&&b.current()}});return k.current=C,(0,c.useEffect)((function(){if(C){var e=t||"";e!==S.current&&(e!==B_(C.state.doc,C.schema)?(C.commands.setContent(L_(e),{emitUpdate:!1}),S.current=e):S.current=e)}}),[C,t]),(0,c.useLayoutEffect)((function(){g&&C&&C.commands.focus("end",{scrollIntoView:!1})}),[g,C]),C?(0,F.jsx)(XS,{editor:C}):null},W_='"Jost", system-ui, sans-serif',q_=["image/jpeg","image/png","image/heic","image/heif"],V_=function(){var e=(0,c.useState)([]),t=(0,p.Z)(e,2),n=t[0],r=t[1],i=(0,c.useState)(null),o=(0,p.Z)(i,2),a=o[0],s=o[1],l=(0,c.useRef)(0),u=(0,c.useRef)(n);u.current=n,(0,c.useEffect)((function(){return function(){u.current.forEach((function(e){return URL.revokeObjectURL(e.displayUrl)}))}}),[]);return{photos:n,photoError:a,setPhotoError:s,addPhotos:function(e){var t=Array.from(e||[]);if(0!==t.length){var n=u.current;if(n.length+t.length>3)s("A reply can have at most ".concat(3," photos."));else{for(var i=0,o=t;i<o.length;i++){var a=o[i];if(!q_.includes(a.type)&&!(0,Nn.zr)(a))return void s("Photos must be JPEG, PNG, or HEIC images.");if(a.size>34603008)return void s("Each photo must be 33 MB or smaller.")}s(null),r(n.concat(t.map((function(e){return l.current+=1,{key:"new-".concat(l.current),file:e,displayUrl:(0,Nn.zr)(e)?Nn.Bk:URL.createObjectURL(e)}}))))}}},removePhoto:function(e){s(null);var t=u.current.find((function(t){return t.key===e}));t&&URL.revokeObjectURL(t.displayUrl),r((function(t){return t.filter((function(t){return t.key!==e}))}))},clearPhotos:function(){u.current.forEach((function(e){return URL.revokeObjectURL(e.displayUrl)})),r([]),s(null)}}},G_=function(e){var t=e.addPhotos,n=e.disabled,r=void 0!==n&&n,i=(0,c.useState)(!1),o=(0,p.Z)(i,2),a=o[0],s=o[1],l=(0,c.useRef)(0);return(0,c.useEffect)((function(){var e=function(e){return e.dataTransfer&&Array.from(e.dataTransfer.types||[]).includes("Files")},t=function(t){e(t)&&(l.current+=1,s(!0))},n=function(t){e(t)&&(l.current=Math.max(0,l.current-1),0===l.current&&s(!1))},r=function(t){e(t)&&t.preventDefault()},i=function(t){e(t)&&t.preventDefault(),l.current=0,s(!1)};return window.addEventListener("dragenter",t),window.addEventListener("dragleave",n),window.addEventListener("dragover",r),window.addEventListener("drop",i),function(){window.removeEventListener("dragenter",t),window.removeEventListener("dragleave",n),window.removeEventListener("dragover",r),window.removeEventListener("drop",i)}}),[]),{isDragActive:a,dropTargetProps:{onDrop:function(e){e.dataTransfer&&e.dataTransfer.files&&e.dataTransfer.files.length&&(e.preventDefault(),l.current=0,s(!1),r||t(e.dataTransfer.files))}}}}
2,$_=function(e){var t=e.radius,n=void 0===t?10:t;return(0,F.jsx)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#FFFBEA",borderWidth:1,borderStyle:"solid",borderColor:"#EAD58A",borderRadius:n,pointerEvents:"none",zIndex:2},children:(0,F.jsxs)("span",{style:{color:"#1A1A1A",fontFamily:W_,fontSize:14,fontWeight:500,lineHeight:"24px"},children:["Drop photos here \u2014 up to ",3]})})},J_=function(e){var t=e.src,n=e.alt,r=e.badge,i=void 0===r?null:r,o=e.onRemove,a=e.disabled,s=void 0!==a&&a;return(0,F.jsxs)("div",{style:{position:"relative",width:72,height:72,borderRadius:8,overflow:"hidden",backgroundColor:"#F2F3F4",flexShrink:0},children:[(0,F.jsx)("img",{src:t,alt:n,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}),null!==i&&(0,F.jsx)("span",{style:{position:"absolute",top:6,left:6,minWidth:18,height:18,display:"inline-flex",alignItems:"center",justifyContent:"center",paddingLeft:5,paddingRight:5,borderRadius:9999,backgroundColor:"rgba(5,8,30,0.75)",color:"#FFFFFF",fontFamily:W_,fontSize:11,fontWeight:500,lineHeight:"14px"},children:i}),(0,F.jsx)("button",{type:"button",onClick:o,disabled:s,"aria-label":"Remove ".concat(n),style:{position:"absolute",top:6,right:6,width:22,height:22,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"none",borderRadius:9999,backgroundColor:"rgba(5,8,30,0.75)",cursor:s?"not-allowed":"pointer",padding:0},children:(0,F.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"#FFFFFF",strokeWidth:"3",strokeLinecap:"round",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,F.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,F.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})},K_=function(e){var t=e.photos,n=e.removePhoto,r=e.disabled,i=void 0!==r&&r;return t&&0!==t.length?(0,F.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:t.map((function(e,t){return(0,F.jsx)(J_,{src:e.displayUrl,alt:"Attached photo ".concat(t+1),badge:t+1,onRemove:function(){return n(e.key)},disabled:i},e.key)}))}):null},Y_=function(e){var t=e.photos,n=e.addPhotos,r=e.disabled,i=void 0!==r&&r,o=(0,c.useRef)(null),a=t.length>=3;return(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,minWidth:0},children:[(0,F.jsxs)("button",{type:"button",className:"bpb-reply-attach-btn",onClick:function(){return o.current&&o.current.click()},disabled:i||a,style:{display:"inline-flex",alignItems:"center",gap:8,position:"relative",border:"none",background:"none",padding:0,fontFamily:W_,fontSize:14,fontWeight:500,lineHeight:"18px",cursor:i||a?"not-allowed":"pointer",flexShrink:0},children:[(0,F.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",style:{flexShrink:0},children:[(0,F.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),(0,F.jsx)("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),(0,F.jsx)("polyline",{points:"21 15 16 10 5 21"})]}),a?"Photo limit reached (".concat(3,")"):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"bpb-reply-add-label-pointer",children:"Browse or drag photos"}),(0,F.jsx)("span",{className:"bpb-reply-add-label-touch",children:"Add photos"})]})]}),(0,F.jsxs)("span",{style:{color:"#8A8A90",fontFamily:W_,fontSize:12,fontWeight:400,lineHeight:"16px",paddingLeft:4,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[t.length>0&&"".concat(t.length," of ").concat(3," \xb7 "),(0,F.jsx)("span",{className:"bpb-reply-photo-formats",children:"JPEG, PNG or HEIC, "}),"33MB max"]}),(0,F.jsx)("input",{ref:o,type:"file",accept:"image/jpeg,image/png,image/heic,image/heif,.heic,.heif",multiple:!0,style:{display:"none"},onChange:function(e){n(e.target.files),e.target.value=""}})]})},X_='"Jost", system-ui, sans-serif',Q_=function(e){var t=e.filled;return(0,F.jsx)("svg",{className:"bpb-reply-action-icon",width:"14",height:"14",viewBox:"0 0 24 24",fill:t?"#696B78":"none",stroke:"#696B78",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("path",{d:"M7 11v8a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1zM7 11v-5a2 2 0 0 1 4 0v5h3a3 3 0 0 1 3 3l-1 5a2 2 0 0 1 -2 1.5h-7"})})},eE=function(){return(0,F.jsx)("svg",{className:"bpb-reply-action-icon",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#696B78",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("path",{d:"M21 15a2 2 0 0 1 -2 2h-12l-4 4v-16a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2z"})})},tE=function(){return(0,F.jsxs)("svg",{className:"bpb-reply-action-icon",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#696B78",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:[(0,F.jsx)("circle",{cx:"18",cy:"5",r:"3"}),(0,F.jsx)("circle",{cx:"6",cy:"12",r:"3"}),(0,F.jsx)("circle",{cx:"18",cy:"19",r:"3"}),(0,F.jsx)("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),(0,F.jsx)("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]})},nE=function(){return(0,F.jsx)("svg",{className:"bpb-reply-action-icon",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#696B78",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("polyline",{points:"20 6 9 17 4 12"})})},rE={display:"flex",alignItems:"center",gap:5,boxSizing:"border-box",background:"none",border:"none",paddingTop:4,paddingBottom:4,paddingLeft:8,paddingRight:8,curs
2or:"pointer"},iE={color:"#696B78",fontFamily:X_,fontSize:13,fontWeight:500,lineHeight:"16px"},oE=(0,A.Z)((0,A.Z)({},iE),{},{minWidth:"2.25ch",textAlign:"left"}),aE=function(e){var t=e.reply,n=e.pinned,r=void 0!==n&&n,i=e.nested,o=void 0!==i&&i,a=e.isUnseen,s=void 0!==a&&a,l=e.isAnchored,u=void 0!==l&&l,h=e.highlightOn,m=void 0!==h&&h,v=e.currentUserId,g=e.postAuthorId,b=e.threadLocked,w=void 0!==b&&b,k=e.onReplyClick,S=e.onReplyEdited,C=e.onAuthorLikeChange,_=e.onPinReply,E=e.onUnpinReply,N=e.pinInFlight,D=void 0!==N&&N,T=e.pinError,I=void 0===T?null:T,P=(0,y.I0)(),O=(0,c.useState)(!1),M=(0,p.Z)(O,2),Z=M[0],R=M[1],L=(0,c.useState)(""),B=(0,p.Z)(L,2),z=B[0],U=B[1],H=(0,c.useState)(!1),W=(0,p.Z)(H,2),q=W[0],V=W[1],G=(0,c.useState)(null),$=(0,p.Z)(G,2),J=$[0],K=$[1],Y=(0,c.useState)([]),X=(0,p.Z)(Y,2),Q=X[0],ee=X[1],te=(0,c.useState)(null),ne=(0,p.Z)(te,2),re=ne[0],ie=ne[1],oe=(0,c.useState)(!1),ae=(0,p.Z)(oe,2),se=ae[0],le=ae[1],ce=(0,c.useState)(!1),ue=(0,p.Z)(ce,2),de=ue[0],fe=ue[1],pe=(0,c.useState)((function(){return!(!t||!t.viewer_has_liked)})),ve=(0,p.Z)(pe,2),ge=ve[0],ye=ve[1],be=(0,c.useState)((function(){return t&&"number"===typeof t.like_count?t.like_count:0})),xe=(0,p.Z)(be,2),we=xe[0],ke=xe[1],Se=(0,c.useRef)(!1),je=(0,c.useState)(!1),Ce=(0,p.Z)(je,2),_e=Ce[0],Ee=Ce[1],Ne=(0,c.useState)(!1),Ae=(0,p.Z)(Ne,2),De=Ae[0],Te=Ae[1],Ie=(0,c.useRef)(null),Pe=t&&(t.User||t.author||{}).id||void 0,Fe=(0,ku.Z)(Pe);(0,c.useEffect)((function(){Se.current||(ye(!(!t||!t.viewer_has_liked)),ke(t&&"number"===typeof t.like_count?t.like_count:0))}),[t]),(0,c.useLayoutEffect)((function(){var e=Ie.current;if(e){var t=function(){Te(e.scrollHeight>241)};return t(),window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}}),[null===t||void 0===t?void 0:t.body,null===t||void 0===t?void 0:t.id]);var Oe=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=window.location.href,!navigator.share){e.next=10;break}return e.prev=2,e.next=5,navigator.share({url:t});case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:return e.abrupt("return");case 10:if(!navigator.clipboard||!navigator.clipboard.writeText){e.next=20;break}return e.prev=11,e.next=14,navigator.clipboard.writeText(t);case 14:fe(!0),setTimeout((function(){return fe(!1)}),1500),e.next=20;break;case 18:e.prev=18,e.t1=e.catch(11);case 20:case"end":return e.stop()}}),e,null,[[2,7],[11,18]])})));return function(){return e.apply(this,arguments)}}();if(!t)return null;var Me=t.User||t.author||{},Ze=t.reply_photos||[],Re=Ze.filter((function(e){return!Q.includes(e.id)}
2)),Le=!!v&&Me.id===v&&!w,Be=!!v&&!!g&&g===v&&!w&&!o&&!Z&&"function"===typeof _&&"function"===typeof E,ze=!!g&&Me.id===g&&!r,Ue=z.trim(),He=Ue.length>0&&!q,We=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var n,r,i,a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(He){e.next=2;break}return e.abrupt("return");case 2:return V(!0),K(null),e.prev=4,e.next=7,(0,he.iO)((0,A.Z)({replyId:t.id,body:Ue},Q.length>0?{removedPhotoIds:Q}:{}));case 7:n=e.sent;try{r=n&&n.data&&n.data.data&&"number"===typeof n.data.data.removed_photo_count?n.data.data.removed_photo_count:Q.length,j.Z.getInstance().logEvent("Board Reply Edited",{UserID:v||null,auth_state:v?"logged_in":"logged_out",post_id:t.post_id,reply_id:t.id,is_nested:!!o,char_len:Ue.length,removed_photo_count:r})}catch(s){}if(i=n&&n.data&&n.data.data&&n.data.data.reply){e.next=15;break}return R(!1),ee([]),K("Your edit was saved, but we could not refresh it here. Reload the page to see it."),e.abrupt("return");case 15:S&&S(i),R(!1),ee([]),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(4),a=e.t0&&e.t0.response&&e.t0.response.data&&e.t0.response.data.message,K("string"===typeof a&&a?a:"Something went wrong saving your edit. Please try again.");case 24:return e.prev=24,V(!1),e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[4,20,24,27]])})));return function(){return e.apply(this,arguments)}}(),qe=r?{display:"flex",flexDirection:"column",gap:8,paddingTop:12,paddingRight:14,paddingBottom:12,paddingLeft:16,borderRadius:4,backgroundColor:"#FFFDF0",borderLeftWidth:4,borderLeftStyle:"solid",borderLeftColor:"#FFD621"}:o?{display:"flex",flexDirection:"column",gap:3,marginLeft:-12,paddingLeft:12}:{display:"flex",flexDirection:"column",gap:5,paddingTop:17,paddingBottom:17,paddingLeft:16,paddingRight:16,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#F2F3F4"},Ve=[r?"bpb-pinned-reply":o?void 0:"bpb-pd-row bpb-toplevel-reply",u?"bpb-reply-focus-target":null,u&&m?"bpb-reply-anchored":null].filter(Boolean).join(" ")||void 0;return(0,F.jsxs)("div",{id:"bpb-reply-".concat(t.id),className:Ve,style:qe,tabIndex:u?-1:void 0,children:[r&&(0,F.jsxs)("div",{className:"bpb-pinned-reply-eyebrow",style:{display:"flex",alignItems:"center",gap:6},children:[(0,F.jsx)("svg",{className:"bpb-pinned-reply-eyebrow-icon",width:"14",height:"14",viewBox:"0 0 24 24",fill:"#5A4500",stroke:"#5A4500",strokeWidth:"0.5",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("path",{d:"M16 4l-1.5 1.5L11 9H6v2l4 4-4 4h2l4-4 4 4v-2l-4-4 4-3.5 1.5-1.5 1-1V4z"})}),(0,F.jsx)("span",{className:"bpb-pinned-reply-eyebrow-label",style:{color:"#5A4500",fontFamily:X_,fontSize:12,fontWeight:600,letterSpacing:"0.04em",lineHeight:"16px",textTransform:"uppercase"},children:"Pinned by the author"})]}),(0,F.jsxs)("div",{ref:Fe.anchorRef,style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,F.jsxs)("span",(0,A.Z)((0,A.Z)({},Fe.handlers),{},{style:(0,A.Z)({display:"inline-flex",flexShrink:0,lineHeight:0,position:"relative"},Fe.enabled?{cursor:"pointer"}:null),children:[(0,F.jsx)(ni.Z,{user:Me,size:28}),s&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{"aria-hidden":"true",style:{position:"absolute",top:-1,right:-1,width:9,height:9,borderRadius:"50%",backgroundColor:"#1A9E6A",boxShadow:"0 0 0 2px #fff"}}),(0,F.jsx)("span",{style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},children:"New reply"})]})]})),(0,F.jsx)("span",(0,A.Z)((0,A.Z)({},Fe.handlers),{},{style:(0,A.Z)({color:"#05081E",fontFamily:X_,fontSize:14,fontWeight:500,lineHeight:"20px"},Fe.enabled?{cursor:"pointer"}:null),children:Me.name||"Member"})),Fe.popover,ze&&(0,F.jsx)(Ui,{}),Me.is_bot&&(0,F.jsx)(Bi,{}),(0,F.jsx)("span",{style:{color:"#9B9CA5",fontSize:13,lineHeight:"16px"},children:"\xb7"}),(0,F.jsx)("span",{style:{color:"#696B78",fontFamily:X_,fontSize:13,lineHeight:"16px"},children:(0,ri.Z)(t.createdAt)}),t.edited_at&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{style:{color:"#9B9CA5",fontSize:13,lineHeight:"16px"},children:"\xb7"}),(0,F.jsx)("span",{style:{color:"#696B78",fontFamily:X_,fontSize:13,lineHeight:"16px"},children:"Edited"})]})]}),Z?(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,F.jsx)(H_,{value:z,onChange:function(e){e.length>1e5||U(e)}
2,threadId:t.post_id,ariaLabel:"Edit your reply",rows:4,autoFocus:!0,inputStyle:{minHeight:110,paddingTop:12,paddingBottom:12,paddingLeft:16,paddingRight:16,border:"1px solid #E8E8EA",borderRadius:10,backgroundColor:"#FFFFFF",fontSize:15,lineHeight:"24px"}}),Ze.length>0&&(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[Re.length>0&&(0,F.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:Re.map((function(e,t){return(0,F.jsx)(J_,{src:e.photo_url,alt:"Reply photo ".concat(t+1),onRemove:function(){return ee((function(t){return t.concat(e.id)}))},disabled:q},e.id)}))}),(0,F.jsx)("span",{style:{color:"#8A8A90",fontFamily:X_,fontSize:12,fontWeight:400,lineHeight:"16px"},children:"You can remove photos here, but not add new ones. Removing is permanent once you save."})]}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,F.jsx)("div",{style:{flex:"1 1 auto"},children:J&&(0,F.jsx)("span",{style:{color:"#C0392B",fontFamily:X_,fontSize:13,lineHeight:"18px"},children:J})}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,flexShrink:0},children:[(0,F.jsx)("button",{type:"button",onClick:function(){R(!1),K(null),ee([])},disabled:q,style:{background:"none",border:"none",padding:0,color:"#696B78",fontFamily:X_,fontSize:14,fontWeight:500,cursor:q?"not-allowed":"pointer"},children:"Cancel"}),(0,F.jsx)("button",{type:"button",onClick:We,disabled:!He,style:{border:"none",borderRadius:999,paddingTop:9,paddingBottom:9,paddingLeft:20,paddingRight:20,backgroundColor:"#FFD621",color:"#1A1A1A",fontFamily:X_,fontSize:14,fontWeight:600,lineHeight:"18px",cursor:He?"pointer":"not-allowed",opacity:He?1:.5},children:q?"Saving\u2026":"Save changes"})]})]})]}):(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{ref:Ie,className:"bpb-reply-body",style:(0,A.Z)({color:"#05081E",fontFamily:X_,fontSize:15,lineHeight:"22px",whiteSpace:"pre-wrap",wordBreak:"break-word"},De&&!_e?{maxHeight:240,overflow:"hidden"}:null),children:cp(t.body)}),De&&(0,F.jsx)("button",{type:"button",onClick:function(){return Ee((function(e){return!e}))},"aria-expanded":_e,style:{marginTop:8,background:"none",border:"none",padding:0,color:"#01655A",fontFamily:X_,fontSize:14,fontWeight:500,cursor:"pointer"},children:_e?"Read less":"Read more"}),1===Ze.length&&(0,F.jsx)("div",{style:{display:"flex",marginTop:10},children:(0,F.jsx)("div",{onClick:function(){return ie(0)},style:{display:"flex",maxWidth:"100%",justifyContent:"center",backgroundColor:"#F2F3F4",overflow:"hidden",cursor:"pointer"},children:(0,F.jsx)("img",{className:"bpb-reply-photo-single-img",src:Ze[0].photo_url,alt:"Reply photo",style:{maxWidth:"100%",width:"auto",height:"auto",objectFit:"contain",display:"block"}})})}),Ze.length>1&&(0,F.jsx)("div",{className:"bpb-reply-photo-grid",children:Ze.map((function(e,t){return(0,F.jsx)("div",{className:"bpb-reply-photo-tile",onClick:function(){return ie(t)},style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#F2F3F4",overflow:"hidden",cursor:"pointer"},children:(0,F.jsx)("img",{src:e.photo_url,alt:"Reply photo ".concat(t+1),style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain",display:"block"}})},e.id)}))})]}),null!==re&&Ze.length>0&&(0,F.jsx)(wu.Z,{photos:Ze,index:re,onClose:function(){return ie(null)},onIndex:ie}),!Z&&J&&(0,F.jsx)("span",{style:{color:"#C0392B",fontFamily:X_,fontSize:13,lineHeight:"18px"},children:J}),!Z&&(0,F.jsxs)("div",{className:"bpb-reply-actions",style:{display:"flex",alignItems:"center",gap:16,marginTop:2},children:[(0,F.jsxs)("button",{type:"button",className:"bpb-reply-action-btn",style:rE,onClick:function(){var e;if((e={type:"like-reply",replyId:t&&t.id},(0,me.I)()||(e&&(0,ln.VB)(e),P(x.N.setPopupModalMessage({joinModalHeading:(0,ln.dO)(null===e||void 0===e?void 0:e.type)})),P(x.N.setJoinNowModalState(!0)),0))&&!Se.current){Se.current=!0;var n=ge,r=we;ye(!n),ke(Math.max(0,r+(n?-1:1))),(0,he.uy)({targetType:"reply",targetId:t.id}).then((function(e){var r=e&&e.data&&e.data.data||{},i=!!r.liked;ye(i),"number"===typeof r.like_count&&ke(r.like_count);var o=(t.User||t.author||{}).id;C&&g&&o===g&&i!==n&&C(i?1:-1)})).catch((function(){ye(n),ke(r)})).finally((function(){Se.current=!1}))}},"aria-label":ge?"Unlike this reply":"Like this reply",children:[(0,F.jsx)(Q_,{filled:ge}),(0,F.jsx)("span",{className:"bpb-reply-action-label",style:oE,children:we.toLocaleStr
2ing()})]}),(0,F.jsxs)("button",{type:"button",className:"bpb-reply-action-btn",style:rE,onClick:k,children:[(0,F.jsx)(eE,{}),(0,F.jsx)("span",{className:"bpb-reply-action-label",style:iE,children:"Reply"})]}),!o&&(0,F.jsxs)("button",{type:"button",className:"bpb-reply-action-btn",style:rE,onClick:Oe,"aria-label":"Share this reply",children:[de?(0,F.jsx)(nE,{}):(0,F.jsx)(tE,{}),(0,F.jsx)("span",{className:"bpb-reply-action-label bpb-reply-share-label",style:iE,children:de?"Copied":"Share"})]}),Le&&(0,F.jsx)("button",{type:"button",className:"bpb-reply-action-btn",style:rE,onClick:function(){U(t.body||""),K(null),ee([]),le(!1),R(!0)},onMouseEnter:function(){return le(!0)},onMouseLeave:function(){return le(!1)},children:(0,F.jsx)("span",{className:"bpb-reply-action-label",style:(0,A.Z)((0,A.Z)({},iE),{},{color:se?"#05081E":"#696B78"}),children:"Edit"})}),Be&&(0,F.jsx)(dp,{pinned:r,inFlight:D,onPin:function(){return _&&_(t.id)},onUnpin:function(){return E&&E(t.id)}})]}),!Z&&I&&(0,F.jsx)("div",{role:"alert",style:{marginTop:6,color:"#C0392B",fontSize:13,lineHeight:"18px"},children:I})]})},sE="#1A1A1A",lE=function(e){var t=e.checked,n=e.onChange,r=e.disabled,i=void 0!==r&&r,o=e.className,a=void 0===o?"bpb-follow-on-reply":o;return(0,F.jsx)("div",{className:a,style:{backgroundColor:"#FCFCFB",display:"flex",alignItems:"center"},children:(0,F.jsxs)("label",{style:{position:"relative",display:"inline-flex",alignItems:"center",gap:10,margin:0,cursor:i?"not-allowed":"pointer",opacity:i?.5:1},children:[(0,F.jsx)("input",{type:"checkbox",className:"bpb-follow-on-reply__input",checked:t,disabled:i,"aria-checked":t,onChange:function(e){return n(e.target.checked)}}),(0,F.jsx)("span",{"aria-hidden":"true",className:"bpb-follow-on-reply__box",style:{width:16,height:16,flexShrink:0,borderRadius:4,borderWidth:1.5,borderStyle:"solid",borderColor:t?sE:"#9B9CA5",backgroundColor:t?sE:"#FFFFFF",display:"flex",alignItems:"center",justifyContent:"center"},children:t&&(0,F.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:(0,F.jsx)("path",{d:"M1.5 5.2L3.8 7.5L8.5 2.8",stroke:"#FFFFFF",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,F.jsx)("span",{style:{color:sE,fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:500,lineHeight:"18px"},children:"Follow for new replies"})]})})},cE='"Jost", system-ui, sans-serif',uE=function(e){var t=e.postId,n=e.onReplyCreated,r=e.isFirstReply,i=void 0!==r&&r,o=e.viewerIsFollowing,a=void 0!==o&&o,s=e.followOnReplyDefault,l=void 0===s||s,u=e.onFollowCreated,h=(0,c.useState)(""),m=(0,p.Z)(h,2),v=m[0],g=m[1],y=(0,c.useState)(!1),x=(0,p.Z)(y,2),w=x[0],k=x[1],S=(0,c.useState)(null),C=(0,p.Z)(S,2),_=C[0],E=C[1],N=!a,D=(0,c.useState)(!1!==l),T=(0,p.Z)(D,2),I=T[0],P=T[1],O=V_(),M=O.photos,Z=O.photoError,R=O.addPhotos,L=O.removePhoto,B=O.clearPhotos,z=G_({addPhotos:R,disabled:w}),U=z.isDragActive,H=z.dropTargetProps,W=(0,b.a)(localStorage.getItem("Data"))||{},q={name:W.useDisplay_name,photo_url:W.Display_UserSocailPhoto},V=v.trim(),G=V.length>0&&!w,$=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(r){var i,o,a,s,l;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.preventDefault(),G){e.next=3;break}return e.abrupt("return");case 3:return k(!0),E(null),e.prev=5,e.next=8,(0,he.kq)({postId:t,body:V,photos:M.map((function(e){return e.file})),followThread:N?I:void 0});case 8:i=e.sent,(0,bi.I)();try{o=W.userid||W.userId||null,j.Z.getInstance().logEvent("Board Reply Posted",{UserID:o,auth_state:o?"logged_in":"logged_out",post_id:t,parent_comment_id:null,is_nested:!1,char_len:V.length,photo_count:M.length})}catch(c){}if(N){try{a=W.userid||W.userId||null,j.Z.getInstance().logEvent("Follow Thread",{UserID:a,source:"reply_composer",auth_state:a?"logged_in":"logged_out",following:I,post_id:t,implicit:!0,is_nested:!1})}catch(d){}I&&u&&u()}if(s=i&&i.data&&i.data.data&&i.data.data.reply){e.next=18;break}return g(""),B(),E("Your reply was posted, but we could not show it. Refresh the page to see it."),e.abrupt("return");case 18:g(""),B(),n&&n(s),e.next=27;break;case 23:e.prev=23,e.t0=e.catch(5),l=e.t0&&e.t0.response&&e.t0.response.data&&e.t0.response.data.message,E("string"===typeof l&&l?l:"Something went wrong while posting your reply. Please try again.");case 27:return e.prev=27,k(!1),e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[5,23,27,30]])})));return function(t){return e.apply(this,arguments)}}();return(0,F.jsxs)("form",{onSubmit:$,className:i?"bpb-reply-composer bpb-reply-composer--first":"bpb-reply-composer",style:(0,A.Z)({marginTop:i?12:20,paddingTop:i?0:20,display:"flex",flexDirection:"column",gap:14},i?{}:{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"#E8E8EA"}),children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,F.jsx)(ni.Z,{user:q,size:28}),(0,F.jsxs)("span",{style:{color:"#1A1A1A",fontFamily:cE,fontSize:14,fontWeight:500,lineHeight:"18px"},children:[i?"Be the first to reply as":"Reply as"," ",q.name||"you"]})]}),(0,F.jsxs)("div",(0,A.Z)((0,A.Z)({},H),{},{style:{position:"relative",borderRadius:10,backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#E8E8EA",overflow:"hidden",display:"flex",flexDirection:"column"}
2,children:[(0,F.jsx)(H_,{value:v,onChange:function(e){e.length>1e5||g(e)},threadId:t,placeholder:"Write your reply\u2026",rows:6,inputStyle:{minHeight:140,paddingTop:16,paddingBottom:16,paddingLeft:20,paddingRight:20,border:"none",borderRadius:10,backgroundColor:"#FFFFFF",fontSize:15,lineHeight:"24px"}}),M.length>0&&(0,F.jsx)("div",{className:"bpb-reply-card-tiles",children:(0,F.jsx)(K_,{photos:M,removePhoto:L,disabled:w})}),N&&(0,F.jsx)(lE,{checked:I,onChange:P,disabled:w}),(0,F.jsxs)("div",{className:"bpb-reply-card-bar",style:{borderTopWidth:N?0:1,borderTopStyle:"solid",borderTopColor:"#EDEDEF",backgroundColor:"#FCFCFB",display:"flex",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,F.jsx)(Y_,{photos:M,addPhotos:R,disabled:w}),(0,F.jsx)("button",{type:"submit",disabled:!G,style:{flexShrink:0,border:"none",borderRadius:999,paddingTop:11,paddingBottom:11,paddingLeft:24,paddingRight:24,backgroundColor:"#FFD621",color:"#1A1A1A",fontFamily:cE,fontSize:14,fontWeight:600,lineHeight:"18px",cursor:G?"pointer":"not-allowed",opacity:G?1:.5},children:w?"Posting\u2026":"Post Reply"})]}),U&&(0,F.jsx)($_,{radius:10})]})),(Z||_)&&(0,F.jsx)("span",{style:{color:"#C0392B",fontFamily:cE,fontSize:13,lineHeight:"18px",paddingLeft:2},children:Z||_})]})},dE='"Jost", system-ui, sans-serif',fE=function(e){var t=e.size;return(0,F.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z"})})},pE=function(e){var t=e.isMobile,n=e.onDismiss,r=(0,c.useState)(!1),i=(0,p.Z)(r,2),o=i[0],a=i[1];return(0,F.jsx)("button",{type:"button",onClick:n,onMouseEnter:function(){return a(!0)},onMouseLeave:function(){return a(!1)},"aria-label":"Dismiss",style:{position:"absolute",top:t?10:12,right:t?10:12,width:20,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,border:"none",background:"none",cursor:"pointer"},children:(0,F.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:o?"#696B78":"#9B9CA5",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,F.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,F.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})},hE=function(e){var t=e.onLogin,n=(0,c.useState)(!1),r=(0,p.Z)(n,2),i=r[0],o=r[1];return(0,F.jsx)("button",{type:"button",onClick:t,onMouseEnter:function(){return o(!0)},onMouseLeave:function(){return o(!1)},style:{border:"none",borderRadius:999,paddingTop:11,paddingBottom:11,paddingLeft:24,paddingRight:24,backgroundColor:i?"#37394B":"#FFD621",color:i?"#FFFFFF":"#1A1A1A",fontFamily:dE,fontSize:14,fontWeight:600,lineHeight:"18px",cursor:"pointer",transition:"all .3s ease-out"},children:"Log in to reply"})},mE=function(e){var t=e.variant,n=void 0===t?"bottom":t,r=e.onLogin,i=e.onDismiss,o=e.nested,a=void 0!==o&&o,s=(0,c.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),l=(0,p.Z)(s,2),u=l[0],d=l[1];(0,c.useEffect)((function(){if("undefined"!==typeof window){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return d(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}}),[]);var f="inline"===n,h={position:f?"relative":"static",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",backgroundColor:"#FAFAF7",borderWidth:1,borderStyle:"solid",borderColor:"#E8E8EA",borderRadius:f?10:16,padding:f?u?"18px ".concat(a?14:16,"px"):"20px":u?"24px 20px":"32px",gap:f?u?10:12:u?14:16},m=f||u?16:18,v=f||u?"22px":"26px",g=f?24:u?26:28,y=f||u?6:8,b=(0,F.jsx)("span",{style:{color:"#05081E",fontFamily:dE,fontSize:m,fontWeight:600,lineHeight:v},children:"Join the conversation"}),x=(0,F.jsx)("span",{style:{color:"#696B78",fontFamily:dE,fontSize:14,fontWeight:400,lineHeight:"20px",maxWidth:f||u?void 0:360},children:f?"Log in or create a free account to reply.":"Log in or create a free account to reply to this thread."}),w=(0,F.jsxs)("div",{style:h,children:[f&&i&&(0,F.jsx)(pE,{isMobile:u,onDismiss:i}),(0,F.jsx)(fE,{size:g}),(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:y},children:[b,x]}),(0,F.jsx)(hE,{onLogin:r})]});return f?w:(0,F.jsx)("div",{className:"bpb-reply-login-prompt",style:{marginTop:20,paddingTop:20,borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"#E8E8EA"},children:w})},vE='"Jost", system-ui, sans-serif',gE=function(e){var t=e.size;return(0,F.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:(0,F.jsx)("path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z"})})},yE=function(e){var t=e.label,n=e.onClick,r=(0,c.useState)(!1),i=(0,p.Z)(r,2),o=i[0],a=i[1],s=(0,c.useState)(!1),l=(0,p.Z)(s,2),u=l[0],d=l[1],f=u?"#2D2F3D":o?"#37394B":"#FFD621";return(0,F.jsx)("button",{type:"button",onClick:n,onMouseEnter:function(){return a(!0)},onMouseLeave:function(){a(!1),d(!1)},onMouseDown:function(){return d(!0)},onMouseUp:function(){return d(!1)},style:{border:"none",borderRadius:999,paddingTop:11,paddingBottom:11,paddingLeft:24,paddingRight:24,backgroundColor:f,color:o||u?"#FFFFFF":"#1A1A1A",fontFamily:vE,fontSize:14,fontWeight:600,lineHeight:"18px",cursor:"pointer",transition:"all .3s ease-out"},children:t})},bE=/@\[([^\]\n]{1,200})\]\(([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\)/g,xE=function(e){var t,n=e.reply,r=e.isMobile,i=n.User||n.author||{};return(0,F.jsxs)("div",{"aria-hidden":"true",style:{position:"relative",overflow:"hidden",height:r?108:132,pointerEvents:"none",userSelect:"none"},children:[(0,F.jsxs)("div",{style:{filter:"blur(2.5px)",paddingTop:17,paddingLeft:r?20:16,paddingRight:r?20:16},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,F.jsx)("span",{style:{display:"inline-flex",flexShrink:0,lineHeight:0},children:(0,F.jsx)(ni.Z,{user:i,size:28})}),(0,F.jsx)("span",{style:{color:"#05081E",fontFamily:vE,fontSize:14,fontWeight:500,lineHeight:"20px"},children:i.name||"Member"}),(0,F.jsx)("span",{style:{color:"#9B9CA5",fontSize:13,lineHeight:"16px"},children:"\xb7"}),(0,F.jsx)("span",{style:{color:"#696B78",fontFamily:vE,fontSize:13,lineHeight:"16px"},children:(0,ri.Z)(n.createdAt)})]}),(0,F.jsx)("div",{style:{marginTop:5,color:"#05081E",fontFamily:vE,fontSize:15,lineHeight:"22px",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:(t=n.body,t&&"string"===typeof t?t.replace(bE,(function(e,t){return"@".concat(t)})):"")})]}),(0,F.jsx)("div",{style:{position:"absolute",left:0,right:0,bottom:0,height:r?96:120,background:"linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 55%, #FFFFFF 100%)",pointerEvents:"none"}})]})},wE=function(e){var t=e.remaining,n=e.fadedReply,r=e.onJoin,i=e.onLogin,o=(0,c.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),a=(0,p.Z)(o,2),s=a[0],l=a[1];(0,c.useEffect)((function(){if("undefined"!==typeof window){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return l(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}}),[]);var u=Number.isFinite(t)&&t>0?t:1,d=1===u?"Read 1 more reply":"Read ".concat(u," more replies"),f={display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",backgroundColor:"#FAFAF7",borderWidth:1,borderStyle:"solid",borderColor:"#E8E8EA",borderRadius:16,padding:s?"24px 20px":"32px",gap:s?12:14,marginTop:n?0:20};return(0,F.jsxs)("div",{className:"bpb-replies-gate",children:[n&&(0,F.jsx)(xE,{reply:n,isMobile:s}),(0,F.jsxs)("div",{style:f,children:[(0,F.jsx)(gE,{size:s?26:28}),(0,F.jsx)("span",{style:{color:"#05081E",fontFamily:vE,fontSize:s?16:18,fontWeight:600,lineHeight:s?"22px":"26px"},children:"Join the conversation"}),(0,F.jsx)("span",{style:{color:"#696B78",fontFamily:vE,fontSize:14,fontWeight:400,lineHeight:"20px",maxWidth:s?void 0:360},children:"This thread's still going. See what other photographers are saying."}),(0,F.jsx)("div",{style:{marginTop:2},children:(0,F.jsx)(yE,{label:d,onClick:r})}),(0,F.jsxs)("span",{style:{marginTop:2,color:"#9B9CA5",fontFamily:vE,fontSize:13,fontWeight:400,lineHeight:"16px"},children:["Already a member?"," ",(0,F.jsx)("button",{type:"button",onClick:i,style:{border:"none",background:"none",padding:0,color:"#2883D8",fontFamily:vE,fontSize:13,fontWeight:600,lineHeight:"16px",cursor:"pointer"},children:"Log in"})]})]})]})},kE='"Jost", system-ui, sans-serif',SE=function(e){var t=e.postId,n=e.parentReply,r=e.onReplyCreated,i=e.onCancel,o=e.viewerIsFollowing,a=void 0!==o&&o,s=e.followOnReplyDefault,l=void 0===s||s,u=e.onFollowCreated,h=(0,c.useState)((function(){return function(e){var t=e&&(e.User||e.author);return t&&t.id&&t.name?t.name.includes("]")?"":"@[".concat(t.name,"](").concat(t.id,") "):""}(n)})),m=(0,p.Z)(h,2),v=m[0],g=m[1],y=(0,c.useState)(!1),x=(0,p.Z)(y,2),w=x[0],k=x[1],S=(0,c.useState)(null),C=(0,p.Z)(S,2),_=C[0],E=C[1],N=!a,D=(0,c.useState)(!1!==l),T=(0,p.Z)(D,2),I=T[0],P=T[1],O=V_(),M=O.photos,Z=O.photoError,R=O.addPhotos,L=O.removePhoto,B=O.clearPhotos,z=G_({addPhotos:R,disabled:w}),U=z.isDragActive,H=z.dropTargetProps,W=(0,c.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),q=(0,p.Z)(W,2),V=q[0],G=q[1];(0,c.useEffect)((function(){if("undefined"!==typeof window){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return G(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}}),[]);var $=(0,b.a)(localStorage.getItem("Data"))||{},J={name:$.useDisplay_name,photo_url:$.Display_UserSocailPhoto},K=(n&&(n.User||n.author)||{}).name||"Member",Y=v.trim(),X=Y.length>0&&!w,Q=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(i){var o,a,s,l,c;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.preventDefault(),X){e.next=3;break}return e.abrupt("return");case 3:return k(!0),E(null),e.prev=5,e.next=8,(0,he.kq)({postId:t,parentReplyId:n.id,body:Y,ph
2otos:M.map((function(e){return e.file})),followThread:N?I:void 0});case 8:o=e.sent,(0,bi.I)();try{a=$.userid||$.userId||null,j.Z.getInstance().logEvent("Board Reply Posted",{UserID:a,auth_state:a?"logged_in":"logged_out",post_id:t,parent_comment_id:n.id,is_nested:!0,char_len:Y.length,photo_count:M.length})}catch(d){}if(N){try{s=$.userid||$.userId||null,j.Z.getInstance().logEvent("Follow Thread",{UserID:s,source:"reply_composer",auth_state:s?"logged_in":"logged_out",following:I,post_id:t,implicit:!0,is_nested:!0})}catch(f){}I&&u&&u()}if(l=o&&o.data&&o.data.data&&o.data.data.reply){e.next=18;break}return g(""),B(),E("Your reply was posted, but we could not show it. Refresh the page to see it."),e.abrupt("return");case 18:r&&r(l),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(5),c=e.t0&&e.t0.response&&e.t0.response.data&&e.t0.response.data.message,E("string"===typeof c&&c?c:"Something went wrong while posting your reply. Please try again.");case 25:return e.prev=25,k(!1),e.finish(25);case 28:case"end":return e.stop()}}),e,null,[[5,21,25,28]])})));return function(t){return e.apply(this,arguments)}}(),ee=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("button",{type:"button",className:"bpb-inline-cancel",onClick:i,disabled:w,style:{background:"none",border:"none",borderRadius:999,padding:"8px 14px",color:"#696B78",fontFamily:kE,fontSize:13,fontWeight:500,lineHeight:"16px",cursor:w?"not-allowed":"pointer"},children:"Cancel"}),(0,F.jsx)("button",{type:"submit",className:"bpb-inline-post",disabled:!X,style:{border:"none",borderRadius:999,padding:"8px 18px",backgroundColor:"#FFD621",color:"#05081E",fontFamily:kE,fontSize:13,fontWeight:600,lineHeight:"16px",cursor:X?"pointer":"not-allowed",opacity:X?1:.5},children:w?"Posting\u2026":"Post Reply"})]});return(0,F.jsxs)("form",{onSubmit:Q,className:"bpb-inline-composer",style:{display:"flex",gap:12,padding:"14px 16px 16px",backgroundColor:"#FAFAF7",borderWidth:1,borderStyle:"solid",borderColor:"#E8E8EA",borderRadius:10},children:[(0,F.jsx)(ni.Z,{user:J,size:28}),(0,F.jsxs)("div",{style:{flex:"1 1 auto",minWidth:0,display:"flex",flexDirection:"column",gap:10},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:5},children:[(0,F.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"#696B78",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:[(0,F.jsx)("polyline",{points:"9 14 4 9 9 4"}),(0,F.jsx)("path",{d:"M20 20v-7a4 4 0 0 0-4-4H4"})]}),(0,F.jsx)("span",{style:{color:"#696B78",fontFamily:kE,fontSize:12,fontWeight:400,lineHeight:"16px"},children:"Replying to"}),(0,F.jsx)("span",{style:{color:"#05081E",fontFamily:kE,fontSize:12,fontWeight:600,lineHeight:"16px"},children:K})]}),(0,F.jsxs)("div",(0,A.Z)((0,A.Z)({},H),{},{style:{position:"relative",backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#E8E8EA",borderRadius:8,overflow:"hidden",display:"flex",flexDirection:"column"},children:[(0,F.jsx)(H_,{value:v,onChange:function(e){e.length>1e5||g(e)},threadId:t,placeholder:"Write your reply\u2026",rows:3,autoFocus:!0,ariaLabel:"Reply to ".concat(K),inputStyle:{minHeight:97,padding:"11px 12px",backgroundColor:"#FFFFFF",border:"none",fontSize:14,lineHeight:"21px"}}),M.length>0&&(0,F.jsx)("div",{className:"bpb-inline-card-tiles",children:(0,F.jsx)(K_,{photos:M,removePhoto:L,disabled:w})}),N&&(0,F.jsx)(lE,{checked:I,onChange:P,disabled:w,className:"bpb-follow-on-reply bpb-follow-on-reply--nested"}),(0,F.jsxs)("div",{className:"bpb-inline-card-bar",style:{borderTopWidth:N?0:1,borderTopStyle:"solid",borderTopColor:"#EDEDEF",backgroundColor:"#FCFCFB",display:"flex",alignItems:"center",justifyContent:"space-between",gap:12},children:[(0,F.jsx)(Y_,{photos:M,addPhotos:R,disabled:w}),!V&&(0,F.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,flexShrink:0},children:ee})]}),U&&(0,F.jsx)($_,{radius:8})]})),(Z||_)&&(0,F.jsx)("span",{style:{color:"#C0392B",fontFamily:kE,fontSize:13,lineHeight:"18px"},children:Z||_}),V&&(0,F.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:8,width:"100%"},children:ee})]})]})},jE=function(e){var t=e.onCtaClick,n=e.onDismiss;return(0,F.jsxs)("div",{className:"bpb-replier-nudge",role:"region","aria-label":"Start your own post",children:[(0,F.jsx)("span",{className:"bpb-replier-nudge__tile","aria-hidden":"true",children:(0,F.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("path",{d:"M12 20h9"}),(0,F.jsx)("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z"})]})}),(0,F.jsx)("p",{className:"bpb-replier-nudge__body",children:"You\u2019ve been part of great threads. Start your own post?"}),(0,F.jsx)(g.rU,{to:"/board/new",state:{source:"replier_nudge"},className:"bpb-replier-nudge__cta",onClick:t,children:"Start a post"}),(0,F.jsx)("button",{type:"button",className:"bpb-replier-nudge__dism
2iss","aria-label":"Dismiss",onClick:n,children:(0,F.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,F.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})},CE=function(e,t){return t?"".concat(e,"+ new replies"):1===e?"1 new reply":"".concat(e," new replies")},_E=function(){return(0,F.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,F.jsx)("polyline",{points:"9 6 15 12 9 18",fill:"none",stroke:"#9B9CA5",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})},EE=function(){return(0,F.jsx)("svg",{className:"bpb-nrp-tick",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,F.jsx)("polyline",{points:"4 12.5 9.5 18 20 6",fill:"none",stroke:"#9B9CA5",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})},NE=function(e){var t=(0,ri.Z)(e);return t?t.endsWith(" ago")?t.slice(0,-4):t:""},AE={m:"minute",h:"hour",d:"day"},DE=function(e){var t=(0,ri.Z)(e);if(!t||!t.endsWith(" ago"))return t||"";var n=/^(\d+)([mhd]) ago$/.exec(t);if(!n)return t;var r=Number(n[1]),i=AE[n[2]];return"".concat(r," ").concat(i).concat(1===r?"":"s"," ago")},TE=function(e){var t=e.replies,n=void 0===t?[]:t,r=e.visitedIds,i=void 0===r?null:r,o=e.capped,a=void 0!==o&&o,s=e.onSelectReply,l=(0,c.useState)(!1),u=(0,p.Z)(l,2),d=u[0],f=u[1],h="undefined"!==typeof window&&window.innerWidth>=768?6:4;if(!Array.isArray(n)||0===n.length)return null;var m=n.length>h,v=m&&!d?n.slice(0,h):n,g=i?n.reduce((function(e,t){return t&&i.has(t.id)?e+1:e}),0):0;return(0,F.jsxs)("div",{className:"bpb-nrp",children:[(0,F.jsxs)("div",{className:"bpb-nrp-head",children:[(0,F.jsxs)("div",{className:"bpb-nrp-count",children:[(0,F.jsx)("span",{className:"bpb-nrp-count-dot","aria-hidden":"true"}),CE(n.length,a)]}),(0,F.jsx)("div",{className:"bpb-nrp-sub",children:g>0?"".concat(g," seen, ").concat(n.length-g," to go."):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"bpb-nrp-sub--short",children:"Since you were last here. Tap one to jump straight to it."}),(0,F.jsx)("span",{className:"bpb-nrp-sub--long",children:"Since you were last here. Click one to jump straight to it."})]})})]}),(0,F.jsx)("div",{className:d?"bpb-nrp-scroll":void 0,children:v.map((function(e){var t,n=!(!i||!i.has(e.id)),r="reply"===(t=e.aimed_at_you)?"Replied to you":"mention"===t?"Mentioned you":null,o=e.author||null,a=o&&o.name||"A member";return(0,F.jsxs)("button",{type:"button",className:["bpb-nrp-row",n?"bpb-nrp-row--visited":null,r?"bpb-nrp-row--aimed":null].filter(Boolean).join(" "),onClick:function(){return s&&s(e)},children:[(0,F.jsx)("span",{className:"bpb-nrp-lane",children:n?(0,F.jsx)(EE,{}):(0,F.jsx)("span",{className:"bpb-nrp-dot","aria-hidden":"true"})}),(0,F.jsx)("span",{className:"bpb-nrp-avatar",children:(0,F.jsx)(ni.Z,{user:o,size:24,alt:""})}),(0,F.jsxs)("span",{className:"bpb-nrp-meta",children:[(0,F.jsxs)("span",{className:"bpb-nrp-line",children:[(0,F.jsx)("span",{className:"bpb-nrp-name",children:a}),(0,F.jsx)("span",{className:"bpb-nrp-sep","aria-hidden":"true",children:"\xb7"}),(0,F.jsx)("span",{className:"bpb-nrp-time bpb-nrp-time--short",children:NE(e.created_at)}),(0,F.jsx)("span",{className:"bpb-nrp-time bpb-nrp-time--long",children:DE(e.created_at)}),r&&(0,F.jsx)("span",{className:"bpb-nrp-chip",children:r})]}),e.body_preview&&(0,F.jsx)("span",{className:"bpb-nrp-preview",children:e.body_preview})]}),(0,F.jsx)("span",{className:"bpb-nrp-chevron",children:(0,F.jsx)(_E,{})}),(0,F.jsxs)("span",{className:"visually-hidden",children:[n?"Visited. ":"",r?"".concat(r,". "):"","Jump to ".concat(a,"'s reply")]})]},e.id)}))}),m&&(0,F.jsx)("div",{className:"bpb-nrp-more",children:(0,F.jsxs)("button",{type:"button",className:"bpb-nested-toggle","aria-expanded":d,onClick:function(){return f((function(e){return!e}))},children:[d?"Show fewer":"Show all ".concat(n.length),(0,F.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,F.jsx)("polyline",{points:"6 9 12 15 18 9",fill:"none",stroke:"#4A4D5A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),a&&(0,F.jsxs)("div",{className:"bpb-nrp-capped",children:[(0,F.jsx)("span",{className:"bpb-nrp-capped-head",children:"There are more than these 100."}),(0,F.jsx)("span",{className:"bpb-nrp-capped-body",children:"The missing ones are the newest, so keep going down the thread after the last row."})]})]})},IE=function(){return(0,F.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,F.jsx)("path",{d:"M10 16 L10 5 M5 9.5 L10 4.5 L15 9.5",stroke:"#05081E",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})},PE=function(){return(0,F.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,F.jsx)("polyline",{points:"3,4.5 6,7.5 9,4.5",fill:"none",stroke:"#05081E",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})},FE=function(e){var t=e.position,n=void 0===t?0:t,r=e.total,i=void 0===r?0:r,o=e.isLast,a=void 0!==o&&o,s=e.capped,l=void 0!==s&&s,c=e.onBackToList,u=e.onNext,d=e.onBackToTop;if(!i||!n)return null;var f=a?"Back to the top":"Back to the list";return(0,F.jsxs)("div",{className:"bpb-cub".concat(a?" bpb-cub--last":""),role:"region","aria-label":"Catching up on new replies",children:[(0,F.jsx)("span",{className:"visually-hidden",children:"Reply ".concat(n," of ").concat(i)}),(0,F.jsx)("button",{type:"button",className:"bpb-cub-up","aria-label":f,onClick:a?d:c,children:(0,F.jsx)(IE,{})}),a?(0,F.jsx)("span",{className:"bpb-cub-done",children:l?"That's the last one on the list.":"That's the last new one."}):(0,F.jsxs)("button",{type:"button",className:"bpb-cub-next",onClick:u,children:["Next new reply",(0,F.jsx)(PE,{})]})]})},OE={threshold:0},ME=function(e){var t=e.postId,n=e.trackableIds,r=e.trackableKey,i=e.domRevision,o=e.enabled,a=(0,c.useRef)(n);a.current=n;var s=(0,c.useRef)(new Set),l=(0,c.useRef)(new Set),u=(0,c.useRef)(new Map),d=(0,c.useRef)(new Set),f=(0,c.useRef)(null),p=(0,c.useRef)(null),h=(0,c.useRef)(!1),m=(0,c.useRef)(0),g=(0,c.useRef)(0),y=(0,c.useRef)(null);
2(0,c.useEffect)((function(){s.current=new Set,l.current=new Set,d.current=new Set,m.current=0,u.current.forEach((function(e){return clearTimeout(e)})),u.current.clear()}),[t]),(0,c.useEffect)((function(){if(o&&t){var e=++g.current,n=function(){return g.current!==e};h.current=!1,m.current=0;var r=function(){return(0,v.Z)(s.current).slice(0,200)},i=function(){f.current&&(clearTimeout(f.current),f.current=null),p.current&&(clearTimeout(p.current),p.current=null)},a=function(){if(!h.current){var e=r();0!==e.length&&(i(),e.forEach((function(e){return l.current.add(e)})),h.current=!0,(0,he.oy)({post_id:t,reply_ids:e}).then((function(){(0,Do.w)(),n()||(e.forEach((function(e){return s.current.delete(e)})),m.current=0)})).catch((function(){n()||(m.current+=1)})).finally((function(){n()||(h.current=!1,s.current.size>0&&m.current<3&&c())})))}},c=function(){f.current&&clearTimeout(f.current),f.current=setTimeout((function(){f.current=null,a()}),2e3),p.current||(p.current=setTimeout((function(){p.current=null,a()}),5e3))},d=function(e){var n=e.pageIsUnloading,i=r();if(0!==i.length){if(!n)return i.forEach((function(e){s.current.delete(e),l.current.add(e)})),void(0,he.oy)({post_id:t,reply_ids:i}).then((function(){return(0,Do.w)()})).catch((function(){}));(0,he.AS)({post_id:t,reply_ids:i})&&i.forEach((function(e){return l.current.add(e)}))}},b=function(){return d({pageIsUnloading:!0})},x=function(){"hidden"===document.visibilityState&&(u.current.forEach((function(e){return clearTimeout(e)})),u.current.clear(),b())};return document.addEventListener("visibilitychange",x),window.addEventListener("pagehide",b),y.current=function(e){l.current.has(e)||s.current.has(e)||(s.current.add(e),c())},function(){document.removeEventListener("visibilitychange",x),window.removeEventListener("pagehide",b),i(),d({pageIsUnloading:!1}),y.current=null,u.current.forEach((function(e){return clearTimeout(e)})),u.current.clear()}}}),[o,t]),(0,c.useEffect)((function(){if(o&&t){var e=a.current;if(e&&0!==e.size&&"undefined"!==typeof IntersectionObserver){var n=u.current,r=d.current,i=function(e){n.has(e)||l.current.has(e)||s.current.has(e)||"visible"===document.visibilityState&&n.set(e,setTimeout((function(){n.delete(e),y.current&&y.current(e)}),1200))},c=new IntersectionObserver((function(e){e.forEach((function(e){var t=e.target.id.slice(10);t&&(e.isIntersecting?(r.add(t),i(t)):(r.delete(t),function(e){var t=n.get(e);t&&(clearTimeout(t),n.delete(e))}(t)))}))}),OE);e.forEach((function(e){if(!l.current.has(e)){var t=document.getElementById("bpb-reply-".concat(e));t&&c.observe(t)}}));var f=function(){"visible"===document.visibilityState&&r.forEach(i)};return document.addEventListener("visibilitychange",f),function(){c.disconnect(),document.removeEventListener("visibilitychange",f)}}}}),[o,t,r,i])},ZE=function(e){var t=e.earlierCount,n=e.pageSize;return!(!Number.isFinite(t)||t<0)&&(!(!Number.isFinite(n)||n<=0)&&t+1<=n)},RE=function(e){var t=e.viewportHeight,n=e.targetTop,r=function(e){var t=e.viewportHeight,n=e.targetHeight;return!Number.isFinite(t)||t<=0?null:(t-(Number.isFinite(n)&&n>=0?n:0))/2}({viewportHeight:t,targetHeight:e.targetHeight});if(null===r||!Number.isFinite(n))return{intendedTop:null,delta:0,arrived:!0};var i=n-r;return{intendedTop:r,delta:i,arrived:Math.abs(i)<1}},LE=function(){return(0,F.jsxs)("div",{"aria-hidden":!0,style:{display:"flex",flexDirection:"column"},children:[(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12,paddingTop:16,paddingBottom:24,paddingLeft:16,paddingRight:16,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#F2F3F4"},children:[(0,F.jsx)(Cr.Z,{width:80,height:22,borderRadius:9999}),(0,F.jsx)(Cr.Z,{height:32,width:"80%"}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,F.jsx)(Cr.Z,{circle:!0,width:32,height:32}),(0,F.jsx)(Cr.Z,{height:16,width:160})]}),(0,F.jsx)(Cr.Z,{height:14,width:"100%"}),(0,F.jsx)(Cr.Z,{height:14,width:"98%"}),(0,F.jsx)(Cr.Z,{height:14,width:"72%"}),(0,F.jsx)(Cr.Z,{height:360,borderRadius:10})]}),[1,2,3].map((function(e){return(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,paddingTop:16,paddingBottom:16,paddingLeft:16,paddingRight:16,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#F2F3F4"},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,F.jsx)(Cr.Z,{circle:!0,width:28,height:28}),(0,F.jsx)(Cr.Z,{height:14,width:140})]}),(0,F.jsx)(Cr.Z,{height:14,width:"92%"}),(0,F.jsx)(Cr.Z,{height:14,width:"68%"})]},e)}))]})},BE={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",paddingTop:60,paddingBottom:60,paddingLeft:24,paddingRight:24,textAlign:"center",color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif'},zE={marginTop:16,display:"inline-flex",alignItems:"center",gap:8,paddingTop:10,paddingBottom:10,paddingLeft:20,paddingRight:20,backgroundColor:"#FFD621",color:"#05081E",borderRadius:9999,border:"none",cursor:"pointer",textDecoration:"none",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:500},UE=function(e){var t=e.onRetry;return(0,F.jsxs)("div",{role:"alert","aria-live":"polite",style:BE,children:[(0,F.jsx)("div",{style:{color:"#05081E",fontSize:18,fontWeight:500,lineHeight:"26px"},children:"Couldn\u2019t load this post."}),(0,F.jsx)("div",{style:{marginTop:6,fontSize:14,lineHeight:"22px",maxWidth:360},children:"Check your connection and try again \u2014 your spot is saved."}),(0,F.jsx)("button",{type:"button",onClick:t,style:zE,children:"Try again"})]})},HE=function(){return(0,F.jsxs)("div",{role:"status","aria-live":"polite",style:BE,children:[(0,F.jsx)("div",{style:{color:"#05081E",fontSize:18,fontWeight:500,lineHeight:"26px"},children:"This post is no longer available."}),(0,F.jsx)("div",{style:{marginTop:6,fontSize:14,lineHeight:"22px",maxWidth:360},children:"It may have been deleted by the author or removed by a moderator."}),(0,F.jsx)(g.rU,{to:"/board",style:zE,children:"Back to Board"})]})},WE=function(e){var t=e.onRetry;return(0,F.jsxs)("div",{role:"status","aria-live":"polite",style:{display:"flex",flexDirection:"column",alignItems:"center",paddingTop:24,paddingBottom:24,gap:8,color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13},children:["Something went wrong loading more replies.",(0,F.jsx)("button",{type:"button",onClick:t,style:(0,A.Z)((0,A.Z)({},zE),{},{marginTop:0,paddingTop:6,paddingBottom:6,paddingLeft:14,paddingRight:14,fontSize:13}),children:"Retry"})]})}
2,qE=function(e){var t=e.label,n=void 0===t?"Loading more\u2026":t;return(0,F.jsx)("div",{role:"status","aria-live":"polite",style:{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:20,paddingBottom:20,color:"#9B9CA5",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13},children:n})},VE=function(){return(0,F.jsxs)("div",{role:"status",className:"bpb-locked-banner",style:{display:"flex",alignItems:"center",gap:12,paddingTop:16,paddingBottom:16,paddingLeft:20,paddingRight:20,borderRadius:8,backgroundColor:"#FFFDF0",borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"#FFD621",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"#FFD621",borderRightWidth:1,borderRightStyle:"solid",borderRightColor:"#FFD621",borderLeftWidth:4,borderLeftStyle:"solid",borderLeftColor:"#FFD621"},children:[(0,F.jsxs)("svg",{className:"bpb-locked-banner-icon",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#7C6940",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:[(0,F.jsx)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),(0,F.jsx)("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),(0,F.jsxs)("div",{style:{flex:"1 1 0%"},children:[(0,F.jsx)("div",{className:"bpb-locked-banner-title",style:{color:"#1A1A1A",fontFamily:'"Jost", system-ui, sans-serif',fontSize:15,fontWeight:600,lineHeight:"20px"},children:"This thread is locked."}),(0,F.jsxs)("div",{className:"bpb-locked-banner-sub",style:{marginTop:2,color:"#6B6B70",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,lineHeight:"20px"},children:[(0,F.jsx)("span",{className:"bpb-locked-banner-sub-full",children:"No new replies can be posted. You can still read the conversation and like replies."}),(0,F.jsx)("span",{className:"bpb-locked-banner-sub-short",style:{display:"none"},children:"No new replies. You can still read and like."})]})]})]})},GE=n(2644),$E=n(7062),JE=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,KE=[{value:"oldest",label:"Oldest First"},{value:"most_recent",label:"Newest First"},{value:"most_liked",label:"Most Liked"}],YE=Math.min(5,21),XE="bpb_replier_nudge_done",QE=["featured","topten_teaser"],eN=function(){var e,t,n,r,i,o,a=(0,h.UO)().postId,s=(0,h.s0)(),l=(0,h.TH)(),u=(0,g.lr)(),d=(0,p.Z)(u,2),f=d[0],m=d[1];(0,c.useLayoutEffect)((function(){window.scrollTo({top:0,left:0,behavior:"instant"})}),[a]);var w=(0,c.useRef)(!l.key||"default"===l.key),k=(0,c.useCallback)((function(e){e.preventDefault(),l.state&&QE.includes(l.state.source)||w.current?s("/board"):s(-1)}),[s,l.state]),S=(0,y.v9)((function(e){return e.Login.isLoggedIn})),_=(0,c.useMemo)((function(){var e=(0,b.a)(localStorage.getItem("Data"));return e&&e.userid}),[S]),E=(0,c.useMemo)((function(){if(!_)return null;var e=f.get("reply");return e&&JE.test(e)?e:null}),[f,_]),N=(0,c.useRef)(!!f.get("reply"));N.current=!!f.get("reply");var D=(0,c.useRef)(null);(0,c.useEffect)((function(){var e=f.get("invite");if(e&&D.current!==e){D.current=e,pa(e,f.get("src"));var t=new URLSearchParams(f);t.delete("invite"),t.delete("src"),m(t,{replace:!0,state:l.state})}}),[f,m,l]);var T,I=(0,c.useRef)(null),P=E?"".concat(a,"::").concat(E):null,O=!!P&&I.current!==P,M=(0,c.useState)([]),Z=(0,p.Z)(M,2),R=Z[0],L=Z[1],B=(0,c.useState)(!1),z=(0,p.Z)(B,2),U=z[0],H=z[1],W=(0,c.useState)((function(){return new Set})),q=(0,p.Z)(W,2),V=q[0],G=q[1],$=(0,c.useState)(null),J=(0,p.Z)($,2),K=J[0],Y=J[1],X=(0,c.useRef)(0),Q=(0,c.useState)(!1),ee=(0,p.Z)(Q,2),te=ee[0],ne=ee[1],re=(0,c.useRef)(null),ie=K?K.replyId:E,oe=(0,c.useRef)(null),ae=(0,c.useState)(!1),se=(0,p.Z)(ae,2),le=se[0],ce=se[1],ue=ie?R.findIndex((function(e){return e&&e.id===ie})):-1,de=R.length,fe=te&&ue>=0&&de>0,pe=fe&&!le,ve=(0,c.useState)(null),ge=(0,p.Z)(ve,2),ye=ge[0],be=ge[1],xe=(0,c.useState)(0),we=(0,p.Z)(xe,2),ke=we[0],Se=we[1],je=ke>0,Ce=(0,y.I0)(),_e=function(e){return!(0,me.I)()&&(e&&(0,ln.VB)(e),Ce(x.N.setPopupModalMessage({joinModalHeading:(0,ln.dO)(null===e||void 0===e?void 0:e.type)})),Ce(x.N.setJoinNowModalState(!0)),!0)},Ee=(0,c.useState)(null),Ne=(0,p.Z)(Ee,2),Ae=Ne[0],De=Ne[1],Te=(0,c.useState)(null),Ie=(0,p.Z)(Te,2),Pe=Ie[0],Fe=Ie[1],Oe=(0,c.useState)("loading"),Me=(0,p.Z)(Oe,2),Ze=Me[0],Re=Me[1],Le=(0,c.useRef)({postId:null,count:0}),Be=!!Ae&&String(Ae.id).toLowerCase()===String(a).toLowerCase();"idle"===Ze&&Be&&Le.current.postId!==a&&(Le.current={postId:a,count:null!==(T=Ae.reply_count)&&void 0!==T?T:0});var ze=Le.current.postId===a?Le.current.count:0,Ue=(0,c.useState)([]),He=(0,p.Z)(Ue,2),We=He[0],qe=He[1],Ve=(0,c.useState)([]),Ge=(0,p.Z)(Ve,2),$e=Ge[0],Je=Ge[1],Ye=(0,c.useState)(null),Xe=(0,p.Z)(Ye,2),Qe=Xe[0],et=Xe[1],tt=(0,c.useState)("loading"),nt=(0,p.Z)(tt,2),rt=nt[0],it=nt[1],ot=(0,c.useState)("most_recent"),at=(0,p.Z)(ot,2),st=at[0],lt=at[1],ct=(0,c.useState)(null),ut=(0,p.Z)(ct,2),dt=ut[0],ft=ut[1],ht=(0,c.useState)((function(){return new Set})),mt=(0,p.Z)(ht,2),vt=mt[0],gt=mt[1],yt=(0,c.useState)(0),bt=(0,p.Z)(yt,2),xt=bt[0],wt=bt[1],kt=(0,
2c.useState)(null),St=(0,p.Z)(kt,2),jt=St[0],Ct=St[1],_t=(0,c.useState)(!0),Et=(0,p.Z)(_t,2),Nt=Et[0],At=Et[1],Dt=(0,c.useState)([]),Tt=(0,p.Z)(Dt,2),It=Tt[0],Pt=Tt[1],Ft=(0,c.useState)(!0),Ot=(0,p.Z)(Ft,2),Mt=Ot[0],Zt=Ot[1],Rt=(0,c.useRef)(0),Lt=(0,c.useRef)(null),Bt=(0,c.useRef)(0),zt=(0,c.useRef)(!1),Ut=(0,c.useRef)(null),Ht=(0,c.useRef)(null),Wt=(0,c.useRef)(null),qt=(0,c.useRef)($e);qt.current=$e;var Vt=(0,c.useRef)(Pe);Vt.current=Pe,(0,GE.Z)(Ae?{title:"".concat(Ae.title," | Big Photo Hunt Board"),description:(0,ui.A)(Ae.body)||void 0,canonical:"".concat($E.q8,"/board/post/").concat(Ae.id)}:"notFound"===Ze?{title:"Post not found | Big Photo Hunt Board",noindex:!0}:{}),(0,c.useEffect)((function(){if(a){var e=!1;if(Re("loading"),De(null),Fe(null),Je([]),ft(null),Ct(null),At(!0),!JE.test(a))return Re("notFound"),At(!1),function(){e=!0};var t=N.current;return(0,he.wD)({postId:a,managesReadState:!0}).then((function(n){if(!e){var r=n&&n.data&&n.data.data||{};if(r.post){if(De(r.post),Fe(r.pinned_reply||null),Re("idle"),Wt.current!==r.post.id){Wt.current=r.post.id;try{var i=(0,b.a)(localStorage.getItem("Data"))||{},o=i.userid||i.userId||null,a=l.state&&l.state.source||"direct";j.Z.getInstance().logEvent("Board Thread Opened",{UserID:o,source:a,auth_state:o?"logged_in":"logged_out",post_id:r.post.id,category:r.post.category,anchor_requested:t})}catch(s){}}}else Re("notFound")}})).catch((function(t){if(!e){var n=t&&t.response&&t.response.status;Re(404===n?"notFound":"error")}})),(0,he.Wb)({postId:a}).then((function(t){if(!e){var n=t&&t.data&&t.data.data||null;Ct(n),At(!1)}})).catch((function(){e||At(!1)})),function(){e=!0}}}),[a,xt]),(0,c.useEffect)((function(){if(a&&_){var e=!1;return L([]),H(!1),G(new Set),Y(null),ne(!1),re.current=null,Se(0),(0,he.GY)({post_id:a}).then((function(t){if(!e){var n=t&&t.data&&t.data.data||{};L(Array.isArray(n.replies)?n.replies:[]),H(!!n.capped)}})).catch((function(){})),function(){e=!0}}}),[a,_]),(0,c.useEffect)((function(){O&&"oldest"!==st&&lt("oldest")}),[O,st]),(0,c.useEffect)((function(){if(a){var e=E?"".concat(a,"::").concat(E):null,t=!!e&&I.current!==e;if(!t||"oldest"===st){Lt.current&&(clearTimeout(Lt.current),Lt.current=null),Rt.current=0,zt.current=!1,Bt.current+=1;var n=Bt.current,r=!1;it("loading"),qe([]),et(null),be(null);var i=function(){return r||Bt.current!==n},o=function(e){var t=e&&e.data&&e.data.data||{},n=Array.isArray(t.replies)?t.replies:[],r=new Set;Vt.current&&Vt.current.id&&r.add(Vt.current.id);var i,o=(0,ua.Z)(qt.current);try{for(o.s();!(i=o.n()).done;){var a=i.value;a&&a.id&&r.add(a.id)}}catch(s){o.e(s)}finally{o.f()}qe(n.filter((function(e){return!r.has(e.id)}))),et(t.next_cursor||null),it(t.next_cursor?"idle":"endOfFeed")},s=function(){i()||it("error")};return t?(I.current=e,(0,he.uC)({post_id:a,reply_id:E}).then((function(e){if(i())return null;var t=e&&e.data&&e.data.data||{},n=ZE({earlierCount:t.earlier_count,pageSize:20});return be({resolved:!!t.resolved,hasEarlier:!!t.resolved&&!!t.has_earlier&&!n}),n?null:t.cursor||null})).catch((function(){return null})).then((function(e){return i()?null:(0,he.ni)((0,A.Z)({postId:a,limit:20,sort:"oldest"},e?{cursor:e}:{}))})).then((function(e){!i()&&e&&(zt.current=!0,o(e))})).catch(s),function(){r=!0}):((0,he.ni)({postId:a,limit:20,sort:st}).then((function(e){i()||o(e)})).catch(s),function(){r=!0})}}}),[a,xt,st,E]),(0,c.useEffect)((function(){var e=!1;return(0,he.DZ)().then((function(t){if(!e){var n=t&&t.data&&t.data.data;Pt(Array.isArray(n)?n:[]),Zt(!1)}})).catch((function(){e||Zt(!1)})),function(){e=!0}}),[]);var Gt=(0,c.useCallback)((function(){if(a&&Qe&&"loadingMore"!==rt&&"loading"!==rt){var e=Bt.current;it("loadingMore"),(0,he.ni)({postId:a,limit:20,cursor:Qe,sort:st}).then((function(t){if(Bt.current===e){var n=t&&t.data&&t.data.data||{},r=Array.isArray(n.replies)?n.replies:[];qe((function(e){var t=new Set(e.map((function(e){return e.id})));Pe&&Pe.id&&t.add(Pe.id);var n,i=(0,ua.Z)($e);try{for(i.s();!(n=i.n()).done;){var o=n.value;o&&o.id&&t.add(o.id)}}catch(s){i.e(s)}finally{i.f()}var a=r.filter((function(e){return!t.has(e.id)}
2));return[].concat((0,v.Z)(e),(0,v.Z)(a))})),et(n.next_cursor||null),it(n.next_cursor?"idle":"endOfFeed"),Rt.current=0}})).catch((function(){if(Bt.current===e){var t=Rt.current;if(t<2){var n=1e3*(t+1);Rt.current=t+1,Lt.current=setTimeout((function(){Lt.current=null,Bt.current===e&&(it("idle"),Gt())}),n)}else it("error")}}))}}),[a,Qe,rt,Pe,$e,st]),$t=(0,c.useRef)(null);(0,c.useEffect)((function(){var e=$t.current;if(e&&"endOfFeed"!==rt&&"error"!==rt){var t=new IntersectionObserver((function(e){var t=e[0];t&&t.isIntersecting&&Qe&&"idle"===rt&&Gt()}),{rootMargin:"600px 0px"});return t.observe(e),function(){return t.disconnect()}}}),[Qe,rt,Gt]);var Jt=(0,c.useRef)(null),Kt=(0,c.useState)(!1),Yt=(0,p.Z)(Kt,2),Xt=Yt[0],Qt=Yt[1],en=(0,c.useRef)(null),tn=(0,c.useRef)(!1),nn=(0,c.useRef)(null),rn=(0,c.useRef)(null),on=(0,c.useRef)(!1),an=(0,c.useRef)(null),sn=(0,c.useCallback)((function(){var e=Jt.current;if(e){var t=e.querySelector('textarea, [contenteditable="true"]');t&&"function"===typeof t.focus&&t.focus({preventScroll:!0}),e.scrollIntoView({behavior:"smooth",block:"end"});var n="undefined"!==typeof window&&"function"===typeof window.matchMedia&&window.matchMedia("(max-width: 767px)").matches;an.current&&(cancelAnimationFrame(an.current),an.current=null);var r=window.scrollY,i=0,o=0;an.current=requestAnimationFrame((function e(){o+=1;var t=window.scrollY;if(t===r?i+=1:(i=0,r=t),i>=2||o>=40)return an.current=null,void function(){var e=Jt.current;if(e){var t=e.querySelector('textarea, [contenteditable="true"]');t&&"function"===typeof t.focus&&(n||document.activeElement!==t)&&(n?t.focus():t.focus({preventScroll:!0}))}}();an.current=requestAnimationFrame(e)}))}}),[]);(0,c.useEffect)((function(){return function(){an.current&&(cancelAnimationFrame(an.current),an.current=null)}}),[]);var cn=(0,c.useRef)(!1),un=(0,c.useCallback)((function(){try{var e=(0,b.a)(localStorage.getItem("Data"))||{},t=e.userid||e.userId||null;if(!t)return;if(sessionStorage.getItem(XE))return;if(tn.current)return;tn.current=!0,(0,he.Xc)({filter:"started"}).then((function(e){var n=e&&e.data&&e.data.data||{},r=Array.isArray(n.threads)?n.threads:[];try{sessionStorage.setItem(XE,"1")}catch(i){}if(function(e){var t=e.userId,n=e.startedThreads;return!!t&&!!Array.isArray(n)&&0===n.length}({userId:t,startedThreads:r})){Qt(!0);try{j.Z.getInstance().logEvent("Board Replier Nudge Shown",{UserID:t,auth_state:"logged_in",post_id:a})}catch(o){}}})).catch((function(){})).finally((function(){tn.current=!1}))}catch(n){tn.current=!1}}),[a]);(0,c.useEffect)((function(){Xt&&en.current&&en.current.scrollIntoView({behavior:"smooth",block:"center"})}),[Xt]);var dn=function(e){if(e&&e.id){var t=function(t){return t.map((function(t){return t.id===e.id?e:t}))};qe((function(e){return t(e)})),Je((function(e){return t(e)})),Fe((function(t){return t&&t.id===e.id?e:t}))}},fn=function(e){e&&e.id&&(Ae&&Ae.is_locked||ft(e))},pn=function(){return ft(null)},hn=function(e){ft(null),e&&e.id&&(Je((function(t){return t.some((function(t){return t.id===e.id}))?t:[].concat((0,v.Z)(t),[e])})),De((function(e){if(!e)return e;var t=("number"===typeof e.reply_count?e.reply_count:0)+1;return(0,C.vX)(C.Nj,e.id,{reply_count:t}),(0,A.Z)((0,A.Z)({},e),{},{reply_count:t})})),un())},mn=(0,c.useRef)(!1),vn=(0,c.useRef)(!1),gn=(0,c.useRef)(!1),yn=(0,c.useState)(!1),bn=(0,p.Z)(yn,2),xn=bn[0],wn=bn[1],kn=(0,c.useState)({}),Sn=(0,p.Z)(kn,2),jn=Sn[0],Cn=Sn[1],_n="You already have a pinned reply \u2014 unpin the current one first.",En="Something went wrong. Please try again.",Nn=(0,c.useCallback)((function(e,t,n){if(!t)return e;var r=function(e){var t=new Date(e).getTime();return Number.isFinite(t)?t:0},i=function(e,t,n){return e.id===t.id?0:n?e.id>t.id?1:-1:e.id>t.id?-1:1},o=e.findIndex((function(e){return function(e,t){if("most_liked"===n){var o="number"===typeof e.like_count?e.like_count:0,a=("number"===typeof t.like_count?t.like_count:0)-o;if(0!==a)return a;var s=r(t.createdAt)-r(e.createdAt);return 0!==s?s:i(e,t,!1)}var l=r(e.createdAt),c=r(t.createdAt),u="oldest"===n?l-c:c-l;return 0!==u?u:i(e,t,"oldest"===n)}(t,e)<0}));return-1===o?[].concat((0,v.Z)(e),[t]):[].concat((0,v.Z)(e.slice(0,o)),[t],(0,v.Z)(e.slice(o)))}),[]),An=(0,c.useCallback)((function(e,t){Cn((function(n){if(null===t&&!n[e])return n;var r=(0,A.Z)({},n);return null===t?delete r[e]:r[e]=t,r}))}),[]),Dn=(0,c.useCallback)((function(e){if(Vt.current&&Vt.current.id===e)return{reply:Vt.current,bucket:"pinned"};var t=We.find((function(t){return t&&t.id===e}));if(t)return{reply:t,bucket:"replies"};var n=$e.find((function(t){return t&&t.id===e}));return n?{reply:n,bucket:"newReplies"}:null}),[We,$e]),Tn=(0,c.useCallback)((function(e){if(!gn.current&&e){var t=Dn(e);if(t){var n=t.reply,r=t.bucket,i=Vt.current;if(i&&i.id!==e)An(e,_n);else{An(e,null);var o=i,a=(0,A.Z)((0,A.Z)({},n),{},{is_pinned_reply:!0});Fe(a),"replies"===r?qe((function(t){return t.filter((function(t){return t.id!==e}))})):"newReplies"===r&&Je((function(t){return t.filter((function(t){return t.id!==e}))})),gn.current=!0,wn(!0),(0,he.XS)({replyId:e}).then((function(){Cn({}),wt((function(e){return e+1}))})).catch((function(t){Fe(o),"replies"===r?qe((function(t){return t.some((function(t){return t.id===e}))?t:Nn(t,n,st)})):"newReplies"===r&&Je((function(t){return t.some((function(t){return t.id===e}))?t:[].concat((0,v.Z)(t),[n])}));var i=t&&t.response&&t.response.data&&t.response.data.code;An(e,"PIN_CAP_REACHED"===i?_n:En)})).finally((function(){gn.current=!1,wn(!1)}))}}}}),[Dn,st,Nn,An]),In=(0,c.useCallback)((function(e){if(!gn.current&&e){var t=Vt.current;if(t&&t.id===e){An(e,null);var n=t,r=(0,A.Z)((0,A.Z)({},t),{},{is_pinned_reply:!1});Fe(null),qe((function(e){return e.some((function(e){return e.id===r.id}))?e:Nn(e,r,st)})),gn.current=!0,wn(!0),(0,he.OI)({replyId:e}).then((function(){Cn({}),wt((function(e){return e+1}))})).catch((function(){Fe(n),qe((function(t){return t.filter((function(t){return t.id!==e}))})),An(e,En)})).finally((function(){gn.current=!1,wn(!1)}))}}}),[st,Nn,An]),Pn=(0,c.useCallback)((function(e){e&&Ct((function(t){if(!t||!t.author)return t;var n="number"===typeof t.author.likes_received?t.author.likes_received:0;return(0,A.Z)((0,A.Z)({},t),{},{author:(0,A.Z)((0,A.Z)({},t.author),{},{likes_received:Math.max(0,n+e)})})}))}),[]),Fn=function(){if(!_e({type:"like-post",postId:Ae&&Ae.id})&&!mn.current&&Ae){mn.current=!0;var e=Ae.id,t={viewer_has_liked:Ae.viewer_has_liked,like_count:Ae.like_count},n=!!Ae.viewer_has_liked,r="number"===typeof Ae.like_count?Ae.like_count:0;De((function(e){return e?(0,A.Z)((0,A.Z)({},e),{},{viewer_has_liked:!n,like_count:Math.max(0,r+(n?-1:1))}):e}));var i=n?-1:1;Pn(i),(0,he.uy)({targetType:"post",targetId:e}).then((function(t){var r=t&&t.data&&t.data.data||{};De((function(e){return e?(0,A.Z)((0,A.Z)({},e),{},{viewer_has_liked:!!r.liked,like_count:"number"===typeof r.like_count?r.like_count:e.like_count}):e})),(0,C.vX)(C.Nj,e,(0,A.Z)({viewer_has_liked:!!r.liked},"number"===typeof r.like_count?{like_count:r.like_count}:{}));var o=(r.liked?1:0)-(n?1:0);Pn(o-i);try{var a=(0,b.a)(localStorage.getItem("Data"))||{},s=a.userid||a.userId||null;j.Z.getInstance().logEvent("Like Board Detail Post",{UserID:s,source:"post_detail_button",auth_state:s?"logged_in":"logged_out",liked:!!r.liked,post_id:e})}catch(l){}}
2)).catch((function(){De((function(e){return e?(0,A.Z)((0,A.Z)({},e),t):e})),Pn(-i)})).finally((function(){mn.current=!1}))}},On=function(){if(!_e({type:"follow-thread",postId:Ae&&Ae.id})&&!vn.current&&Ae){vn.current=!0;var e=Ae.id,t={viewer_is_following:Ae.viewer_is_following},n=!!Ae.viewer_is_following;De((function(e){return e?(0,A.Z)((0,A.Z)({},e),{},{viewer_is_following:!n}):e})),(0,he.Ns)({postId:e}).then((function(t){var n=t&&t.data&&t.data.data||{};De((function(e){return e?(0,A.Z)((0,A.Z)({},e),{},{viewer_is_following:!!n.following}):e})),(0,C.vX)(C.Nj,e,{viewer_is_following:!!n.following});try{var r=(0,b.a)(localStorage.getItem("Data"))||{},i=r.userid||r.userId||null;j.Z.getInstance().logEvent("Follow Thread",{UserID:i,source:"detail_page",auth_state:i?"logged_in":"logged_out",following:!!n.following,post_id:e})}catch(o){}})).catch((function(){De((function(e){return e?(0,A.Z)((0,A.Z)({},e),t):e}))})).finally((function(){vn.current=!1}))}},Mn=function(){if(Ae){var e=Ae.id;De((function(e){return e?(0,A.Z)((0,A.Z)({},e),{},{viewer_is_following:!0}):e})),(0,C.vX)(C.Nj,e,{viewer_is_following:!0})}};(0,c.useEffect)((function(){cn.current&&(cn.current=!1,"most_recent"===st?nn.current&&nn.current.scrollIntoView({behavior:"smooth",block:"start"}):Jt.current&&Jt.current.scrollIntoView({behavior:"smooth",block:"end"}))}),[$e,st]);var Zn=(0,c.useCallback)((function(e){on.current=!0,lt(e)}),[]);(0,c.useEffect)((function(){on.current&&(on.current=!1,rn.current&&rn.current.scrollIntoView({behavior:"smooth",block:"start"}))}),[st,E]),(0,c.useEffect)((function(){if(zt.current&&(zt.current=!1,ie)){var e=document.getElementById("bpb-reply-".concat(ie));if(e){Se((function(e){return e+1}));var t=re.current===ie;re.current=ie,t&&e.classList.contains("bpb-reply-anchored")&&(e.classList.remove("bpb-reply-anchored"),e.offsetWidth,e.classList.add("bpb-reply-anchored")),Ut.current&&(Ut.current(),Ut.current=null);var n="function"===typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;e.scrollIntoView({behavior:n?"instant":"smooth",block:"center"});var r=Ht.current,i=null,o=null,a=null,s=null,l=function(){if(null!==s&&e.isConnected){var t=e.getBoundingClientRect().top-s;Math.abs(t)<1||window.scrollBy({top:t,left:0,behavior:"instant"})}},c=function(){i&&(cancelAnimationFrame(i),i=null),o&&(o.disconnect(),o=null),a&&(clearTimeout(a),a=null),r&&r.removeEventListener("load",l,!0),window.removeEventListener("wheel",u),window.removeEventListener("touchstart",u),window.removeEventListener("keydown",f)},u=function(){Ut.current=null,c()},d=new Set([" ","Spacebar","PageUp","PageDown","Home","End","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),f=function(e){if(d.has(e.key)){var t=e.target,n=t&&t.tagName?t.tagName.toUpperCase():"";"INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n&&(t&&t.isContentEditable||u())}},p=0,h=n?0:100,m=window.scrollY,v=0,g=function(){return"object"===typeof performance&&"function"===typeof performance.now?performance.now():Date.now()},y=g(),b=function t(){var n=window.scrollY;n===m?v+=1:(v=0,m=n);var u=g()-y;if(function(e){var t=e.stableFrames,n=e.stableFramesNeeded,r=e.elapsedMs,i=e.maxElapsedMs;return t>=n||r>=i}({stableFrames:v,stableFramesNeeded:2,elapsedMs:u,maxElapsedMs:2e3})){var d=function(){if(!e.isConnected)return{intendedTop:null,delta:0,arrived:!0};var t=e.getBoundingClientRect();return RE({viewportHeight:window.innerHeight,targetTop:t.top,targetHeight:t.height})}(),f=d.delta,b=d.arrived,x=function(e){var t=e.stableFrames,n=e.stableFramesNeeded,r=e.arrived,i=e.elapsedMs,o=e.maxElapsedMs,a=e.corrections,s=e.maxCorrections,l=e.minElapsedMsBeforeCorrecting,c=i>=o;return!r&&!c&&i<(void 0===l?0:l)?"wait":t>=n||c?!r&&a<s?"correct":"hold":"wait"}({stableFrames:v,stableFramesNeeded:2,arrived:b,elapsedMs:u,maxElapsedMs:2e3,corrections:p,maxCorrections:3,minElapsedMsBeforeCorrecting:h});if("correct"===x&&(p+=1,window.scrollBy({top:f,left:0,behavior:"instant"})),"hold"===x)return i=null,void function(){s=e.getBoundingClientRect().top;try{"function"===typeof e.focus&&e.focus({preventScroll:!0})}catch(t){}r&&("function"===typeof ResizeObserver&&(o=new ResizeObserver(l)).observe(r),r.addEventListener("load",l,!0)),a=setTimeout((function(){Ut.current=null,c()}),4e3)}();i=requestAnimationFrame(t)}else i=requestAnimationFrame(t)};window.addEventListener("wheel",u,{passive:!0}),window.addEventListener("touchstart",u,{passive:!0}),window.addEventListener("keydown",f,{passive:!0}
2),n?(v=2,b()):i=requestAnimationFrame(b),Ut.current=c}}}),[We,$e,Pe,ie,K]),(0,c.useEffect)((function(){return function(){Ut.current&&(Ut.current(),Ut.current=null)}}),[]),(0,c.useEffect)((function(){if(ke&&ie){var e=function(){return Se(0)},t=setTimeout(e,8e3),n=document.getElementById("bpb-reply-".concat(ie)),r=null;if(n&&"function"===typeof IntersectionObserver){var i=!1;(r=new IntersectionObserver((function(t){var n=t&&t[0];n&&(n.isIntersecting?i=!0:i&&e())}),{threshold:0})).observe(n)}return function(){clearTimeout(t),r&&r.disconnect()}}}),[ke,ie]),(0,c.useEffect)((function(){var e=oe.current;if(e&&"function"===typeof IntersectionObserver){var t=new IntersectionObserver((function(e){var t=e&&e[0];t&&ce(t.isIntersecting)}),{threshold:0});return t.observe(e),function(){return t.disconnect()}}}),[R.length]);var Rn=(0,c.useCallback)((function(){var e=oe.current;if(e){var t="function"===typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;e.scrollIntoView({behavior:t?"instant":"smooth",block:"start"})}}),[]),Ln=(0,c.useCallback)((function(e){if(e&&e.id){if(ne(!0),G((function(t){if(t.has(e.id))return t;var n=new Set(t);return n.add(e.id),n})),"undefined"!==typeof document&&!!document.getElementById("bpb-reply-".concat(e.id)))return X.current+=1,zt.current=!0,void Y({replyId:e.id,nonce:X.current});Y(null),E===e.id&&(I.current=null);var t=new URLSearchParams(f);t.set("reply",e.id),m(t,{replace:!0})}}),[m,f,E]),Bn=(0,c.useCallback)((function(){var e="function"===typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.scrollTo({top:0,left:0,behavior:e?"instant":"smooth"})}),[]),zn=(0,c.useCallback)((function(){if(!(ue<0)){var e=R[ue+1];e&&Ln(e)}}),[ue,R,Ln]),Un=(0,c.useCallback)((function(){on.current=!0;var e=new URLSearchParams(f);e.delete("reply"),m(e,{replace:!0})}),[f,m]),Hn=(0,c.useRef)(!1);(0,c.useEffect)((function(){if(!Hn.current&&(0,me.I)()&&Ae){var e=(0,ln._7)();if(e)if(Hn.current=!0,(0,ln.$Y)(),"like-post"===e.type&&String(e.postId)===String(Ae.id))Fn();else if("follow-thread"===e.type&&String(e.postId)===String(Ae.id))On();else if("follow-user"===e.type&&e.userId)try{var t=(0,b.a)(localStorage.getItem("Data"))||{},n=t.token||"",r=t._id||t.id||"";(0,pt.P)(e.userId,!0,n,r,(function(){return Ce(Ke.$.setSocketReceiverUserID(e.userId))}),"Follow").catch((function(){}))}catch(a){}else if("reply"===e.type){var i=Jt.current;if(i){i.scrollIntoView({behavior:"smooth",block:"end"});var o=i.querySelector('textarea, [contenteditable="true"]');o&&o.focus&&setTimeout((function(){try{o.focus()}catch(e){}}),350)}}}}),[S,Ae]);for(var Wn="loading"===Ze,qn="error"===Ze,Vn="notFound"===Ze,Gn="error"===rt&&We.length>0,$n=new Map,Jn=0,Kn=[].concat((0,v.Z)(We),(0,v.Z)($e));Jn<Kn.length;Jn++){var Yn=Kn[Jn];if(Yn&&Yn.parent_reply_id){var Xn=Yn.root_reply_id,Qn=$n.get(Xn)||[];Qn.push(Yn),$n.set(Xn,Qn)}}var er,tr=(0,ua.Z)($n.values());try{for(tr.s();!(er=tr.n()).done;){er.value.sort((function(e,t){return new Date(e.createdAt)-new Date(t.createdAt)}))}}catch(xr){tr.e(xr)}finally{tr.f()}var nr=We.filter((function(e){return e&&!e.parent_reply_id})),rr=$e.filter((function(e){return e&&!e.parent_reply_id})),ir=Ae&&(Ae.User||Ae.author||{}).id||null,or=!_&&(null!==(e=null===Ae||void 0===Ae?void 0:Ae.reply_count)&&void 0!==e?e:0)>3,ar=Math.max(0,3-(Pe?1:0)),sr=nr.slice(0,ar),lr=nr[ar]||null,cr=(null!==(t=null===Ae||void 0===Ae?void 0:Ae.reply_count)&&void 0!==t?t:0)-3,ur=!(!Ae||!Ae.viewer_is_participating),dr=Ae&&Ae.viewer_last_seen_at||null,fr=(0,c.useMemo)((function(){return new Set(Ae&&Ae.viewer_read_reply_ids||[])}),[Ae]),pr=new Set((Ae&&Ae.viewer_unseen_mention_source_ids||[]).filter((function(e){return e&&"reply"===e.source_type})).map((function(e){return e.source_id}))),hr=function(e){if(!e)return!1;if(e.author_user_id&&e.author_user_id===_)return!1;if(e.id&&fr.has(e.id))return!1;if(e.id&&pr.has(e.id))return!0;if(!ur||!dr)return!1;var t=Date.parse(e.createdAt),n=Date.parse(dr);return Number.isFinite(t)&&Number.isFinite(n)&&t>n},mr=(0,c.useMemo)((function(){for(var e=new Set,t=0,n=[].concat((0,v.Z)(We),(0,v.Z)($e),[Pe]);t<n.length;t++){var r=n[t];r&&r.id&&hr(r)&&e.add(r.id)}var i,o=(0,ua.Z)(R);try{for(o.s();!(i=o.n()).done;){var a=i.value;a&&a.id&&!fr.has(a.id)&&e.add(a.id)}}catch(xr){o.e(xr)}finally{o.f()}return e}),[We,$e,Pe,R,fr,ur,dr,_,Ae]),vr=(0,c.useMemo)((function(){return(0,v.Z)(mr).sort().join("|")}),[mr]);ME({postId:a,trackableIds:mr,trackableKey:vr,domRevision:"".concat(We.length,":").concat($e.length,":").concat(vt.size),enabled:!!_});var gr=function(e){var t=$n.get(e.id)||[],n=!(!dt||dt.id!==e.id),r=!(!dt||!t.some((function(e){return e.id===dt.id})));if(!(t.length>0||n||r))return null;var i=new Set($e.map((function(e){return e&&e.id}))),o=t.some((function(e){return i.has(e.id)}
2)),a=r&&t.findIndex((function(e){return e.id===dt.id}))>=3,s=function(e){return!!e&&t.findIndex((function(t){return t.id===e}))>=3},l=s(ie)||s(E),u=vt.has(e.id)||o||a||l,d=t.length>3,f=d&&!u?t.slice(0,3):t,p=d?t.length-3:0,h=(d&&!u?t.slice(3):[]).some(hr),m="bpb-nested-replies-".concat(e.id);return(0,F.jsxs)("div",{id:m,className:"bpb-nested-replies",style:{display:"flex",flexDirection:"column",gap:12,marginTop:8,marginLeft:16,paddingLeft:36,borderLeftWidth:1,borderLeftStyle:"solid",borderLeftColor:"#E8E8EA"},children:[n&&(_?(0,F.jsx)(SE,{postId:Ae.id,parentReply:e,onReplyCreated:hn,onCancel:pn,viewerIsFollowing:!!Ae.viewer_is_following,followOnReplyDefault:!1!==Ae.viewer_follow_on_reply_default,onFollowCreated:Mn}):(0,F.jsx)(mE,{variant:"inline",onDismiss:pn,onLogin:function(){(0,ln.VB)({type:"reply"}),Ce(x.N.setPopupModalMessage({joinModalHeading:(0,ln.dO)("reply")})),Ce(x.N.setJoinNowModalState(!0))}})),f.map((function(e){return(0,F.jsxs)(c.Fragment,{children:[(0,F.jsx)(aE,{reply:e,nested:!0,isUnseen:hr(e),isAnchored:!!ie&&e.id===ie,highlightOn:je,currentUserId:_,postAuthorId:ir,threadLocked:!(!Ae||!Ae.is_locked),onReplyClick:function(){return fn(e)},onReplyEdited:dn,onAuthorLikeChange:Pn,onPinReply:Tn,onUnpinReply:In,pinInFlight:xn,pinError:jn[e.id]||null}),dt&&dt.id===e.id&&(_?(0,F.jsx)(SE,{postId:Ae.id,parentReply:e,onReplyCreated:hn,onCancel:pn,viewerIsFollowing:!!Ae.viewer_is_following,followOnReplyDefault:!1!==Ae.viewer_follow_on_reply_default,onFollowCreated:Mn}):(0,F.jsx)(mE,{variant:"inline",nested:!0,onDismiss:pn,onLogin:function(){(0,ln.VB)({type:"reply"}),Ce(x.N.setPopupModalMessage({joinModalHeading:(0,ln.dO)("reply")}
2)),Ce(x.N.setJoinNowModalState(!0))}}))]},e.id)})),d&&(0,F.jsxs)("button",{type:"button",className:"bpb-nested-toggle",onClick:function(){gt((function(t){var n=new Set(t);return n.has(e.id)?n.delete(e.id):n.add(e.id),n}))},"aria-expanded":u,"aria-controls":m,children:[!u&&h&&(0,F.jsx)("span",{"aria-hidden":"true",style:{display:"inline-block",width:8,height:8,borderRadius:"50%",backgroundColor:"#1A9E6A",marginRight:6,verticalAlign:"middle",flexShrink:0}}),u?"Show fewer replies":"Show ".concat(p," more ").concat(1===p?"reply":"replies"),!u&&h&&(0,F.jsx)("span",{style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},children:", including new replies"}),(0,F.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:(0,F.jsx)("path",{d:"M1.5 3.5L5 7L8.5 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})},yr=function(e){return(0,F.jsxs)(c.Fragment,{children:[(0,F.jsx)(aE,{reply:e,isUnseen:hr(e),isAnchored:!!ie&&e.id===ie,highlightOn:je,currentUserId:_,postAuthorId:ir,threadLocked:!(!Ae||!Ae.is_locked),onReplyClick:function(){return fn(e)},onReplyEdited:dn,onAuthorLikeChange:Pn,onPinReply:Tn,onUnpinReply:In,pinInFlight:xn,pinError:jn[e.id]||null}),gr(e)]},e.id)},br=rr.map((function(e){return yr(e)}));return(0,F.jsxs)("div",{className:"container container-two bpb-pd-page".concat(fe?" bpb-cub-spacer":""),style:{paddingTop:24,paddingBottom:60},children:[(0,F.jsxs)("div",{className:"row justify-content-center",children:[(0,F.jsxs)("div",{className:"col-12",style:{padding:0},children:[(0,F.jsx)("div",{className:"bpb-pd-row",style:{paddingLeft:16,paddingRight:16,paddingBottom:12},children:(0,F.jsxs)(g.rU,{to:"/board",onClick:k,"aria-label":"Back to Board",style:{display:"inline-flex",alignItems:"center",gap:8,color:"#05081E",textDecoration:"none",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:500},children:[(0,F.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,F.jsx)("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),(0,F.jsx)("polyline",{points:"12 19 5 12 12 5"})]}),"Back to Board"]})}),"idle"===Ze&&Ae&&Ae.is_locked&&(0,F.jsx)("div",{className:"bpb-pd-row",style:{paddingLeft:16,paddingRight:16,paddingTop:4,paddingBottom:8},children:(0,F.jsx)(VE,{})})]}),(0,F.jsxs)("div",{ref:Ht,className:"col-12 col-lg-8",style:{padding:0},children:[Wn&&(0,F.jsx)(LE,{}),qn&&(0,F.jsx)(UE,{onRetry:function(){return wt((function(e){return e+1}))}}),Vn&&(0,F.jsx)(HE,{}),"idle"===Ze&&Ae&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ju,{post:Ae,currentUserId:_,onReplyClick:or?function(){return _e({type:"reply"})}:sn,onToggleLike:Fn,onToggleFollow:On}),(0,F.jsx)($u,{post:Ae,onReplyClick:or?function(){return _e({type:"reply"})}:sn,onToggleLike:Fn}),(0,F.jsx)("div",{className:"d-xl-none bpb-pd-row",style:{paddingLeft:16,paddingRight:16,paddingTop:16},children:(0,F.jsx)(Qu,{author:jt&&jt.author,loading:Nt,currentUserId:_,compact:!0})}),(0,F.jsxs)("div",{ref:rn,className:"bpb-replies-header bpb-pd-row",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,paddingLeft:16,paddingRight:16,paddingTop:20,paddingBottom:8},children:[(0,F.jsxs)("h2",{className:"bpb-replies-heading",style:{margin:0,color:"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:18,fontWeight:500,lineHeight:"22px"},children:[(null!==(n=Ae.reply_count)&&void 0!==n?n:0).toLocaleString(),1===(null!==(r=Ae.reply_count)&&void 0!==r?r:0)?" Reply":" Replies"]}),(null!==(i=Ae.reply_count)&&void 0!==i?i:0)>0&&!or&&(0,F.jsx)(Fi,{options:KE,value:st,onChange:Zn,ariaLabel:"Sort replies"})]}),(0,F.jsx)("div",{ref:oe,children:ze>=YE&&(0,F.jsx)(TE,{replies:R,visitedIds:V,capped:U,onSelectReply:Ln})}),ye&&!ye.resolved&&(0,F.jsx)("div",{className:"bpb-pd-row",style:{paddingLeft:16,paddingRight:16,paddingTop:12,color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:400,lineHeight:"20px"},children:"That reply isn't here anymore, but the rest of the thread is."}),ye&&ye.hasEarlier&&(0,F.jsx)("div",{className:"bpb-pd-row",style:{display:"flex",paddingLeft:16,paddingRight:16,paddingTop:12,paddingBottom:12},children:(0,F.jsx)("button",{type:"button",className:"bpb-nested-toggle",onClick:Un,children:"Jump to the first reply"})}),Pe&&(0,F.jsxs)(c.Fragment,{children:[(0,F.jsx)("div",{className:"bpb-pd-row",style:{paddingLeft:16,paddingRight:16,paddingTop:16,paddingBottom:8},children:(0,F.jsx)(aE,{reply:Pe,pinned:!0,isUnseen:hr(Pe),isAnchored:!!ie&&Pe.id===ie,highlightOn:je,currentUserId:_,postAuthorId:ir,threadLocked:!!Ae.is_locked,onReplyClick:or?function(){return _e({type:"reply"})}:function(){return fn(Pe)},onReplyEdited:dn,onAuthorLikeChange:Pn,onPinReply:Tn,onUnpinReply:In,pinInFlight:xn,pinError:jn[Pe.id]||null})}),!or&&gr(Pe)]}),"loading"===rt&&(0,F.jsx)(qE,{label:"Loading replies\u2026"}),or?"loading"!==rt&&(0,F.jsxs)(F.Fragment,{children:[sr.map((function(e){return(0,F.jsx)(aE,{reply:e,isUnseen:hr(e),currentUserId:_,postAuthorId:ir,threadLocked:!(!Ae||!Ae.is_locked),onReplyClick:function(){return _e({type:"reply"})},onReplyEdited:dn,onAuthorLikeChange:Pn,onPinReply:Tn,onUnpinReply:In,pinInFlight:xn,pinError:jn[e.id]||null},e.id)})),(0,F.jsx)(wE,{remaining:cr,fadedReply:lr,onJoin:function(){(0,ln.VB)({type:"read-replies"}
2),Ce(x.N.setPopupModalMessage({joinModalHeading:(0,ln.dO)("read-replies")})),Ce(x.N.setJoinNowModalState(!0))},onLogin:function(){(0,ln.VB)({type:"read-replies"}),Ce(x.N.setSignInModalState(!0))}})]}):(0,F.jsxs)(F.Fragment,{children:["most_recent"===st&&$e.length>0&&(0,F.jsx)("div",{ref:nn,children:br}),nr.map((function(e){return yr(e)})),"loadingMore"===rt&&(0,F.jsx)(qE,{}),Gn&&(0,F.jsx)(WE,{onRetry:Gt}),(0,F.jsx)("div",{ref:$t,style:{height:1},"aria-hidden":!0}),"most_recent"!==st&&br,!Ae.is_locked&&(0,F.jsx)("div",{ref:Jt,className:"bpb-pd-row bpb-composer-scroll-anchor",children:_?(0,F.jsx)(uE,{postId:Ae.id,onReplyCreated:function(e){e&&e.id&&(Je((function(t){return t.some((function(t){return t.id===e.id}))?t:[].concat((0,v.Z)(t),[e])})),De((function(e){if(!e)return e;var t=("number"===typeof e.reply_count?e.reply_count:0)+1;return(0,C.vX)(C.Nj,e.id,{reply_count:t}),(0,A.Z)((0,A.Z)({},e),{},{reply_count:t})})),cn.current=!0,un())},isFirstReply:0===(null!==(o=Ae.reply_count)&&void 0!==o?o:0),viewerIsFollowing:!!Ae.viewer_is_following,followOnReplyDefault:!1!==Ae.viewer_follow_on_reply_default,onFollowCreated:Mn}):(0,F.jsx)(mE,{onLogin:function(){(0,ln.VB)({type:"reply"}),Ce(x.N.setPopupModalMessage({joinModalHeading:(0,ln.dO)("reply")}
2)),Ce(x.N.setJoinNowModalState(!0))}})}),Xt&&_&&(0,F.jsx)("div",{ref:en,className:"bpb-pd-row",children:(0,F.jsx)(jE,{onCtaClick:function(){Qt(!1);try{sessionStorage.setItem(XE,"1")}catch(e){}try{j.Z.getInstance().logEvent("Board Replier Nudge Clicked",{UserID:_||null,auth_state:_?"logged_in":"logged_out",post_id:a})}catch(t){}},onDismiss:function(){Qt(!1);try{sessionStorage.setItem(XE,"1")}catch(e){}try{j.Z.getInstance().logEvent("Board Replier Nudge Dismissed",{UserID:_||null,auth_state:_?"logged_in":"logged_out",post_id:a})}catch(t){}}})})]})]})]}),(0,F.jsx)("div",{className:"col-lg-4 d-none d-xl-block",style:{paddingLeft:40},children:"idle"===Ze&&Ae&&(0,F.jsx)("div",{style:{position:"sticky",top:24},children:(0,F.jsx)(od,{post:Ae,sidebar:jt,sidebarLoading:Nt,contributors:It,contributorsLoading:Mt,currentUserId:_,onToggleFollow:On})})})]}),pe&&(0,F.jsx)(FE,{position:ue+1,total:de,isLast:ue===de-1,capped:U,onBackToList:Rn,onNext:zn,onBackToTop:Bn})]})},tN=function(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ce.Z,{}),(0,F.jsx)("main",{className:"site-content",id:"main",style:{paddingTop:0},children:(0,F.jsx)(eN,{})})]})},nN={display:"block",marginBottom:8,color:"#6B6B70",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:600,letterSpacing:"0.06em",lineHeight:"16px",textTransform:"uppercase"},rN={marginTop:6,color:"#C0392B",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,lineHeight:"18px"},iN="bpb-post-category-label",oN="bpb-post-category-error",aN=function(e){var t=e.value,n=e.onChange,r=e.onBlur,i=e.error,o=e.touched,a=e.labelRef,s=o&&i;return(0,F.jsxs)("div",{children:[(0,F.jsx)("label",{id:iN,ref:a,tabIndex:-1,style:(0,A.Z)((0,A.Z)({},nN),{},{outline:"none"}),children:"Category"}),(0,F.jsx)("div",{role:"group","aria-labelledby":iN,"aria-describedby":s?oN:void 0,style:{display:"flex",flexWrap:"wrap",gap:8},children:Bt.Y0.map((function(e){var i=Ei.pB[e],o=t===e;return(0,F.jsxs)("button",{type:"button",onClick:function(){return n(e)},onBlur:r,"aria-pressed":o,style:{display:"inline-flex",alignItems:"center",gap:6,paddingTop:8,paddingBottom:8,paddingLeft:14,paddingRight:14,borderRadius:9999,border:"none",cursor:"pointer",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:500,lineHeight:"16px",backgroundColor:i.bg,color:i.fg,opacity:o?1:.55,boxShadow:o?"inset 0 0 0 2px ".concat(i.fg):"none",transition:"opacity 120ms ease, box-shadow 120ms ease"},children:[i.icon,i.label]},e)}))}),(0,F.jsx)("div",{role:"status","aria-live":"polite",style:{marginTop:8,fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:400,lineHeight:"18px",color:"#6B6C75"},children:(0,F.jsx)("span",{children:t?Ei.Z5[t]:Ei.gl},t||"empty")}),s&&(0,F.jsx)("div",{id:oN,style:rN,children:i})]})},sN=["top","right","bottom","left"],lN=["start","end"],cN=sN.reduce((function(e,t){return e.concat(t,t+"-"+lN[0],t+"-"+lN[1])}),[]),uN=Math.min,dN=Math.max,fN=Math.round,pN=(Math.floor,function(e){return{x:e,y:e}}),hN={left:"right",right:"left",bottom:"top",top:"bottom"};function mN(e,t,n){return dN(e,uN(t,n))}function vN(e,t){return"function"===typeof e?e(t):e}function gN(e){return e.split("-")[0]}function yN(e){return e.split("-")[1]}function bN(e){return"x"===e?"y":"x"}function xN(e){return"y"===e?"height":"width"}function wN(e){var t=e[0];return"t"===t||"b"===t?"y":"x"}function kN(e){return bN(wN(e))}function SN(e,t,n){void 0===n&&(n=!1);var r=yN(e),i=kN(e),o=xN(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=TN(a)),[a,TN(a)]}function jN(e){var t=TN(e);return[CN(e),t,CN(t)]}function CN(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var _N=["left","right"],EN=["right","left"],NN=["top","bottom"],AN=["bottom","top"];function DN(e,t,n,r){var i=yN(e),o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?EN:_N:t?_N:EN;case"left":case"right":return t?NN:AN;default:return[]}}(gN(e),"start"===n,r);return i&&(o=o.map((function(e){return e+"-"+i})),t&&(o=o.concat(o.map(CN)))),o}function TN(e){var t=gN(e);return hN[t]+e.slice(t.length)}function IN(e){return"number"!==typeof e?function(e){return(0,A.Z)({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}
2function PN(e){var t=e.x,n=e.y,r=e.width,i=e.height;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var FN=["crossAxis","alignment","allowedPlacements","autoAlignment"],ON=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],MN=["strategy"],ZN=["mainAxis","crossAxis","limiter"],RN=["apply"];function LN(e,t,n){var r,i=e.reference,o=e.floating,a=wN(t),s=kN(t),l=xN(s),c=gN(t),u="y"===a,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;switch(c){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-o.width,y:f};break;default:r={x:i.x,y:i.y}}switch(yN(t)){case"start":r[s]-=p*(n&&u?-1:1);break;case"end":r[s]+=p*(n&&u?-1:1)}return r}function BN(e,t){return zN.apply(this,arguments)}function zN(){return zN=(0,f.Z)((0,d.Z)().mark((function e(t,n){var r,i,o,a,s,l,c,u,f,p,h,m,v,g,y,b,x,w,k,S,j,C,_,E,N;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n={}),i=t.x,o=t.y,a=t.platform,s=t.rects,l=t.elements,c=t.strategy,u=vN(n,t),f=u.boundary,p=void 0===f?"clippingAncestors":f,h=u.rootBoundary,m=void 0===h?"viewport":h,v=u.elementContext,g=void 0===v?"floating":v,y=u.altBoundary,b=void 0!==y&&y,x=u.padding,w=IN(void 0===x?0:x),k="floating"===g?"reference":"floating",S=l[b?k:g],e.t0=PN,e.t1=a,e.next=10,null==a.isElement?void 0:a.isElement(S);case 10:if(e.t2=r=e.sent,null==e.t2){e.next=15;break}e.t3=r,e.next=16;break;case 15:e.t3=!0;case 16:if(!e.t3){e.next=20;break}e.t4=S,e.next=26;break;case 20:if(e.t5=S.contextElement,e.t5){e.next=25;break}return e.next=24,null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating);case 24:e.t5=e.sent;case 25:e.t4=e.t5;case 26:return e.t6=e.t4,e.t7=p,e.t8=m,e.t9=c,e.t10={element:e.t6,boundary:e.t7,rootBoundary:e.t8,strategy:e.t9},e.next=33,e.t1.getClippingRect.call(e.t1,e.t10);case 33:return e.t11=e.sent,j=(0,e.t0)(e.t11),C="floating"===g?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,e.next=38,null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating);case 38:return _=e.sent,e.next=41,null==a.isElement?void 0:a.isElement(_);case 41:if(!e.sent){e.next=50;break}return e.next=44,null==a.getScale?void 0:a.getScale(_);case 44:if(e.t13=e.sent,e.t13){e.next=47;break}e.t13={x:1,y:1};case 47:e.t12=e.t13,e.next=51;break;case 50:e.t12={x:1,y:1};case 51:if(E=e.t12,e.t14=PN,!a.convertOffsetParentRelativeRectToViewportRelativeRect){e.next=59;break}return e.next=56,a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:_,strategy:c});case 56:e.t15=e.sent,e.next=60;break;case 59:e.t15=C;case 60:return e.t16=e.t15,N=(0,e.t14)(e.t16),e.abrupt("return",{top:(j.top-N.top+w.top)/E.y,bottom:(N.bottom-j.bottom+w.bottom)/E.y,left:(j.left-N.left+w.left)/E.x,right:(N.right-j.right+w.right)/E.x});case 63:case"end":return e.stop()}}),e)}))),zN.apply(this,arguments)}var UN=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t,n,r){var i,o,a,s,l,c,u,f,p,h,m,v,g,y,b,x,w,k,S,j,C,_,E,N,D,T;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.placement,o=void 0===i?"bottom":i,a=r.strategy,s=void 0===a?"absolute":a,l=r.middleware,c=void 0===l?[]:l,u=r.platform,f=u.detectOverflow?u:(0,A.Z)((0,A.Z)({},u),{},{detectOverflow:BN}),e.next=4,null==u.isRTL?void 0:u.isRTL(n);case 4:return p=e.sent,e.next=7,u.getElementRects({reference:t,floating:n,strategy:s});case 7:h=e.sent,m=LN(h,o,p),v=m.x,g=m.y,y=o,b=0,x={},w=0;case 13:if(!(w<c.length)){e.next=48;break}if(k=c[w]){e.next=17;break}return e.abrupt("continue",45);case 17:return S=k.name,j=k.fn,e.next=20,j({x:v,y:g,initialPlacement:o,placement:y,strategy:s,middlewareData:x,rects:h,platform:f,elements:{reference:t,floating:n}});case 20:if(C=e.sent,_=C.x,E=C.y,N=C.data,D=C.reset,v=null!=_?_:v,g=null!=E?E:g,x[S]=(0,A.Z)((0,A.Z)({},x[S]),N),!(D&&b<50)){e.next=45;break}if(b++,"object"!==typeof D){e.next=44;break}if(D.placement&&(y=D.placement),!D.rects){e.next=41;break}if(!0!==D.rects){e.next=39;break}return e.next=36,u.getElementRects({reference:t,floating:n,strategy:s});case 36:e.t0=e.sent,e.next=40;break;case 39:e.t0=D.rects;case 40:h=e.t0;case 41:T=LN(h,y,p),v=T.x,g=T.y;case 44:w=-1;case 45:w++,e.next=13;break;case 48:return e.abrupt("return",{x:v,y:g,placement:y,strategy:s,middlewareData:x});case 49:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();function HN(e,t,n){return(e?[].concat((0,v.Z)(n.filter((function(t){return yN(t)===e}))),(0,v.Z)(n.filter((function(t){return yN(t)!==e})))):n.filter((function(e){return gN(e)===e}))).filter((function(n){return!e||(yN(n)===e||!!t&&CN(n)!==n)}))}function WN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qN(e){return sN.some((function(t){return e[t]>=0}))}function VN(e){var t=uN.apply(void 0,(0,v.Z)(e.map((function(e){return e.left})))),n=uN.apply(void 0,(0,v.Z)(e.map((function(e){return e.top}))));return{x:t,y:n,width:dN.apply(void 0,(0,v.Z)(e.map((function(e){return e.right}))))-t,height:dN.apply(void 0,(0,v.Z)(e.map((function(e){return e.bottom}))))-n}}function GN(e){for(var t=e.slice().sort((function(e,t){return e.y-t.y})),n=[],r=null,i=0;i<t.length;i++){var o=t[i];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((function(e){return PN(VN(e))}))}var $N=new Set(["left","top"]);function JN(e,t){return KN.apply(this,arguments)}function KN(){return KN=(0,f.Z)((0,d.Z)().mark((function e(t,n){var r,i,o,a,s,l,c,u,f,p,h,m,v,g;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.placement,i=t.platform,o=t.elements,e.next=3,null==i.isRTL?void 0:i.isRTL(o.floating);case 3:return a=e.sent,s=gN(r),l=yN(r),c="y"===wN(r),u=$N.has(s)?-1:1,f=a&&c?-1:1,p=vN(n,t),h="number"===typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}
2:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis},m=h.mainAxis,v=h.crossAxis,g=h.alignmentAxis,l&&"number"===typeof g&&(v="end"===l?-1*g:g),e.abrupt("return",c?{x:v*f,y:m*u}:{x:m*u,y:v*f});case 13:case"end":return e.stop()}}),e)}))),KN.apply(this,arguments)}function YN(){return"undefined"!==typeof window}function XN(e){return tA(e)?(e.nodeName||"").toLowerCase():"#document"}function QN(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eA(e){var t;return null==(t=(tA(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function tA(e){return!!YN()&&(e instanceof Node||e instanceof QN(e).Node)}function nA(e){return!!YN()&&(e instanceof Element||e instanceof QN(e).Element)}function rA(e){return!!YN()&&(e instanceof HTMLElement||e instanceof QN(e).HTMLElement)}function iA(e){return!(!YN()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof QN(e).ShadowRoot)}function oA(e){var t=mA(e),n=t.overflow,r=t.overflowX,i=t.overflowY,o=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&"inline"!==o&&"contents"!==o}function aA(e){return/^(table|td|th)$/.test(XN(e))}function sA(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}var lA,cA=/transform|translate|scale|rotate|perspective|filter/,uA=/paint|layout|strict|content/,dA=function(e){return!!e&&"none"!==e};function fA(e){var t=nA(e)?mA(e):e;return dA(t.transform)||dA(t.translate)||dA(t.scale)||dA(t.rotate)||dA(t.perspective)||!pA()&&(dA(t.backdropFilter)||dA(t.filter))||cA.test(t.willChange||"")||uA.test(t.contain||"")}function pA(){return null==lA&&(lA="undefined"!==typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),lA}function hA(e){return/^(html|body|#document)$/.test(XN(e))}function mA(e){return QN(e).getComputedStyle(e)}function vA(e){return nA(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gA(e){if("html"===XN(e))return e;var t=e.assignedSlot||e.parentNode||iA(e)&&e.host||eA(e);return iA(t)?t.host:t}function yA(e){var t=gA(e);return hA(t)?e.ownerDocument?e.ownerDocument.body:e.body:rA(t)&&oA(t)?t:yA(t)}function bA(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);var i=yA(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=QN(i);if(o){var s=xA(a);return t.concat(a,a.visualViewport||[],oA(i)?i:[],s&&n?bA(s):[])}return t.concat(i,bA(i,[],n))}function xA(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wA(e){var t=mA(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=rA(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=fN(n)!==o||fN(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function kA(e){return nA(e)?e:e.contextElement}function SA(e){var t=kA(e);if(!rA(t))return pN(1);var n=t.getBoundingClientRect(),r=wA(t),i=r.width,o=r.height,a=r.$,s=(a?fN(n.width):n.width)/i,l=(a?fN(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}var jA=pN(0);function CA(e){var t=QN(e);return pA()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:jA}function _A(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=kA(e),a=pN(1);t&&(r?nA(r)&&(a=SA(r)):a=SA(e));var s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==QN(e))&&t}(o,n,r)?CA(o):pN(0),l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o)for(var f=QN(o),p=r&&nA(r)?QN(r):r,h=f,m=xA(h);m&&r&&p!==h;){var v=SA(m),g=m.getBoundingClientRect(),y=mA(m),b=g.left+(m.clientLeft+parseFloat(y.paddingLeft))*v.x,x=g.top+(m.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=b,c+=x,m=xA(h=QN(m))}return PN({width:u,height:d,x:l,y:c})}function EA(e,t){var n=vA(e).scrollLeft;return t?t.left+n:_A(eA(e)).left+n}function NA(e,t){var n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-EA(e,n),y:n.top+t.scrollTop}}var AA=25;function DA(e,t,n){var r;if("viewport"===t)r=function(e,t){var n=QN(e),r=eA(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=pA();(!c||c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}var u=EA(r);if(u<=0){var d=r.ownerDocument,f=d.body,p=getComputedStyle(f),h="CSS1Compat"===d.compatMode&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(r.clientWidth-f.clientWidth-h);m<=AA&&(o-=m)}else u<=AA&&(o+=u);return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){var t=eA(e),n=vA(e),r=e.ownerDocument.body,i=dN(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=dN(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+EA(e),s=-n.scrollTop;return"rtl"===mA(r).direction&&(a+=dN(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(eA(e));else if(nA(t))r=function(e,t){var n=_A(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=rA(e)?SA(e):pN(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{var i=CA(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return PN(r)}function TA(e,t){var n=gA(e);return!(n===t||!nA(n)||hA(n))&&("fixed"===mA(n).position||TA(n,t))}function IA(e,t,n){var r=rA(t),i=eA(t),o="fixed"===n,a=_A(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=pN(0);function c(){l.x=EA(i)}if(r||!r&&!o)if(("body"!==XN(t)||oA(i))&&(s=vA(t)),r){var u=_A(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&c();o&&!r&&i&&c();var d=!i||r||o?pN(0):NA(i,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}function PA(e){return"static"===mA(e).position}function FA(e,t){if(!rA(e)||"fixed"===mA(e).position)return null;if(t)return t(e);var n=e.offsetParent;return eA(e)===n&&(n=n.ownerDocument.body),n}function OA(e,t){var n=QN(e);if(sA(e))return n;if(!rA(e)){for(var r=gA(e);r&&!hA(r);){if(nA(r)&&!PA(r))return r;r=gA(r)}return n}for(var i=FA(e,t);i&&aA(i)&&PA(i);)i=FA(i,t);return i&&hA(i)&&PA(i)&&!fA(i)?n:i||function(e){for(var t=gA(e);rA(t)&&!hA(t);){if(fA(t))return t;if(sA(t))return null;t=gA(t)}
2return null}(e)||n}var MA=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.getOffsetParent||OA,r=this.getDimensions,e.next=4,r(t.floating);case 4:return i=e.sent,e.t0=IA,e.t1=t.reference,e.next=9,n(t.floating);case 9:return e.t2=e.sent,e.t3=t.strategy,e.t4=(0,e.t0)(e.t1,e.t2,e.t3),e.t5={x:0,y:0,width:i.width,height:i.height},e.abrupt("return",{reference:e.t4,floating:e.t5});case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();var ZA={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.elements,n=e.rect,r=e.offsetParent,i="fixed"===e.strategy,o=eA(r),a=!!t&&sA(t.floating);if(r===o||a&&i)return n;var s={scrollLeft:0,scrollTop:0},l=pN(1),c=pN(0),u=rA(r);if((u||!u&&!i)&&(("body"!==XN(r)||oA(o))&&(s=vA(r)),u)){var d=_A(r);l=SA(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}var f=!o||u||i?pN(0):NA(o,s);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+c.x+f.x,y:n.y*l.y-s.scrollTop*l.y+c.y+f.y}},getDocumentElement:eA,getClippingRect:function(e){for(var t=e.element,n=e.boundary,r=e.rootBoundary,i=e.strategy,o="clippingAncestors"===n?sA(t)?[]:function(e,t){var n=t.get(e);if(n)return n;for(var r=bA(e,[],!1).filter((function(e){return nA(e)&&"body"!==XN(e)})),i=null,o="fixed"===mA(e).position,a=o?gA(e):e;nA(a)&&!hA(a);){var s=mA(a),l=fA(a);l||"fixed"!==s.position||(i=null),(o?!l&&!i:!l&&"static"===s.position&&i&&("absolute"===i.position||"fixed"===i.position)||oA(a)&&!l&&TA(e,a))?r=r.filter((function(e){return e!==a})):i=s,a=gA(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[].concat((0,v.Z)(o),[r]),s=DA(t,a[0],i),l=s.top,c=s.right,u=s.bottom,d=s.left,f=1;f<a.length;f++){var p=DA(t,a[f],i);l=dN(p.top,l),c=uN(p.right,c),u=uN(p.bottom,u),d=dN(p.left,d)}return{width:c-d,height:u-l,x:d,y:l}},getOffsetParent:OA,getElementRects:MA,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){var t=wA(e);return{width:t.width,height:t.height}},getScale:SA,isElement:nA,isRTL:function(e){return"rtl"===mA(e).direction}};var RA,LA,BA=function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn:function(t){return(0,f.Z)((0,d.Z)().mark((function n(){var r,i,o,a,s,l,c;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.x,a=t.y,s=t.placement,l=t.middlewareData,n.next=3,JN(t,e);case 3:if(c=n.sent,s!==(null==(r=l.offset)?void 0:r.placement)||null==(i=l.arrow)||!i.alignmentOffset){n.next=6;break}return n.abrupt("return",{});case 6:return n.abrupt("return",{x:o+c.x,y:a+c.y,data:(0,A.Z)((0,A.Z)({},c),{},{placement:s})});case 7:case"end":return n.stop()}}),n)})))()}}},zA=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,fn:function(t){return(0,f.Z)((0,d.Z)().mark((function n(){var r,i,o,a,s,l,c,u,f,p,h,m,g,y,b,x,w,k,S,j,C,_,E,N,A,D,T,I;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=t.rects,s=t.middlewareData,l=t.placement,c=t.platform,u=t.elements,f=vN(e,t),p=f.crossAxis,h=void 0!==p&&p,m=f.alignment,g=f.allowedPlacements,y=void 0===g?cN:g,b=f.autoAlignment,x=void 0===b||b,w=(0,en.Z)(f,FN),k=void 0!==m||y===cN?HN(m||null,x,y):y,n.next=5,c.detectOverflow(t,w);case 5:if(S=n.sent,j=(null==(r=s.autoPlacement)?void 0:r.index)||0,null!=(C=k[j])){n.next=10;break}return n.abrupt("return",{});case 10:return n.t0=SN,n.t1=C,n.t2=a,n.next=15,null==c.isRTL?void 0:c.isRTL(u.floating);case 15:if(n.t3=n.sent,_=(0,n.t0)(n.t1,n.t2,n.t3),l===C){n.next=19;break}return n.abrupt("return",{reset:{placement:k[0]}});case 19:if(E=[S[gN(C)],S[_[0]],S[_[1]]],N=[].concat((0,v.Z)((null==(i=s.autoPlacement)?void 0:i.overflows)||[]),[{placement:C,overflows:E}]),!(A=k[j+1])){n.next=24;break}return n.abrupt("return",{data:{index:j+1,overflows:N},reset:{placement:A}});case 24:if(D=N.map((function(e){var t=yN(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((function(e,t){return e+t}),0):e.overflows[0],e.overflows]})).sort((function(e,t){return e[1]-t[1]})),T=D.filter((function(e){return e[2].slice(0,yN(e[0])?2:3).every((function(e){return e<=0}))}
2)),(I=(null==(o=T[0])?void 0:o[0])||D[0][0])===l){n.next=29;break}return n.abrupt("return",{data:{index:j+1,overflows:N},reset:{placement:I}});case 29:return n.abrupt("return",{});case 30:case"end":return n.stop()}}),n)})))()}}},UA=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:function(t){return(0,f.Z)((0,d.Z)().mark((function n(){var r,i,o,a,s,l,c,u,f,p,h,m,v,g,y,b,x,w,k,S,j,C,_,E,N,D,T;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.x,a=t.y,s=t.placement,l=t.platform,c=vN(e,t),u=c.mainAxis,f=void 0===u||u,p=c.crossAxis,h=void 0!==p&&p,m=c.limiter,v=void 0===m?{fn:function(e){return{x:e.x,y:e.y}}}:m,g=(0,en.Z)(c,ZN),y={x:o,y:a},n.next=5,l.detectOverflow(t,g);case 5:return b=n.sent,x=wN(gN(s)),w=bN(x),k=y[w],S=y[x],f&&(j="y"===w?"bottom":"right",C=k+b["y"===w?"top":"left"],_=k-b[j],k=mN(C,k,_)),h&&(E="y"===x?"bottom":"right",N=S+b["y"===x?"top":"left"],D=S-b[E],S=mN(N,S,D)),T=v.fn((0,A.Z)((0,A.Z)({},t),{},(r={},(0,Sn.Z)(r,w,k),(0,Sn.Z)(r,x,S),r))),n.abrupt("return",(0,A.Z)((0,A.Z)({},T),{},{data:{x:T.x-o,y:T.y-a,enabled:(i={},(0,Sn.Z)(i,w,f),(0,Sn.Z)(i,x,h),i)}}));case 14:case"end":return n.stop()}}),n)})))()}}},HA=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:function(t){return(0,f.Z)((0,d.Z)().mark((function n(){var r,i,o,a,s,l,c,u,f,p,h,m,g,y,b,x,w,k,S,j,C,_,E,N,A,D,T,I,P,F,O,M,Z,R,L,B,z,U,H;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=t.placement,a=t.middlewareData,s=t.rects,l=t.initialPlacement,c=t.platform,u=t.elements,f=vN(e,t),p=f.mainAxis,h=void 0===p||p,m=f.crossAxis,g=void 0===m||m,y=f.fallbackPlacements,b=f.fallbackStrategy,x=void 0===b?"bestFit":b,w=f.fallbackAxisSideDirection,k=void 0===w?"none":w,S=f.flipAlignment,j=void 0===S||S,C=(0,en.Z)(f,ON),null==(r=a.arrow)||!r.alignmentOffset){n.next=4;break}return n.abrupt("return",{});case 4:return _=gN(o),E=wN(l),N=gN(l)===l,n.next=9,null==c.isRTL?void 0:c.isRTL(u.floating);case 9:return A=n.sent,D=y||(N||!j?[TN(l)]:jN(l)),T="none"!==k,!y&&T&&D.push.apply(D,(0,v.Z)(DN(l,j,k,A))),I=[l].concat((0,v.Z)(D)),n.next=16,c.detectOverflow(t,C);case 16:if(P=n.sent,F=[],O=(null==(i=a.flip)?void 0:i.overflows)||[],h&&F.push(P[_]),g&&(M=SN(o,s,A),F.push(P[M[0]],P[M[1]])),O=[].concat((0,v.Z)(O),[{placement:o,overflows:F}]),F.every((function(e){return e<=0}))){n.next=41;break}if(L=((null==(Z=a.flip)?void 0:Z.index)||0)+1,!(B=I[L])){n.next=29;break}if("alignment"===g&&E!==wN(B)&&!O.every((function(e){return wN(e.placement)!==E||e.overflows[0]>0}))){n.next=29;break}return n.abrupt("return",{data:{index:L,overflows:O},reset:{placement:B}});case 29:if(z=null==(R=O.filter((function(e){return e.overflows[0]<=0})).sort((function(e,t){return e.overflows[1]-t.overflows[1]}))[0])?void 0:R.placement,z){n.next=39;break}n.t0=x,n.next="bestFit"===n.t0?34:"initialPlacement"===n.t0?37:39;break;case 34:return H=null==(U=O.filter((function(e){if(T){var t=wN(e.placement);return t===E||"y"===t}return!0})).map((function(e){return[e.placement,e.overflows.filter((function(e){return e>0})).reduce((function(e,t){return e+t}),0)]})).sort((function(e,t){return e[1]-t[1]}))[0])?void 0:U[0],H&&(z=H),n.abrupt("break",39);case 37:return z=l,n.abrupt("break",39);case 39:if(o===z){n.next=41;break}return n.abrupt("return",{reset:{placement:z}});case 41:return n.abrupt("return",{});case 42:case"end":return n.stop()}}),n)})))()}}},WA=function(e){return void 0===e&&(e={}),{name:"size",options:e,fn:function(t){return(0,f.Z)((0,d.Z)().mark((function n(){var r,i,o,a,s,l,c,u,f,p,h,m,v,g,y,b,x,w,k,S,j,C,_,E,N,D,T,I,P,F,O;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.placement,a=t.rects,s=t.platform,l=t.elements,c=vN(e,t),u=c.apply,f=void 0===u?function(){}:u,p=(0,en.Z)(c,RN),n.next=4,s.detectOverflow(t,p);case 4:if(h=n.sent,m=gN(o),v=yN(o),g="y"===wN(o),y=a.floating,b=y.width,x=y.height,"top"!==m&&"bottom"!==m){n.next=28;break}return w=m,n.t0=v,n.next=14,null==s.isRTL?void 0:s.isRTL(l.floating);case 14:if(!n.sent){n.next=18;break}n.t1="start",n.next=19;break;case 18:n.t1="end";case 19:if(n.t2=n.t1,n.t0!==n.t2){n.next=24;break}n.t3="left",n.next=25;break;case 24:n.t3="right";case 25:k=n.t3,n.next=30;break;case 28:k=m,w="end"===v?"top":"bottom";case 30:return S=x-h.top-h.bottom,j=b-h.left-h.right,C=uN(x-h[w],S),_=uN(b-h[k],j),E=!t.middlewareData.shift,N=C,D=_,null!=(r=t.middlewareData.shift)&&r.enabled.x&&(D=j),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(N=S),E&&!v&&(T=dN(h.left,0),I=dN(h.right,0),P=dN(h.top,0),F=dN(h.bottom,0),g?D=b-2*(0!==T||0!==I?T+I:dN(h.left,h.right)):N=x-2*(0!==P||0!==F?P+F:dN(h.top,h.bottom))),n.next=42,f((0,A.Z)((0,A.Z)({},t),{},{availableWidth:D,availableHeight:N}));case 42:return n.next=44,s.getDimensions(l.floating);case 44:if(O=n.sent,b===O.width&&x===O.height){n.next=47;break}return n.abrupt("return",{reset:{rects:!0}});case 47:return n.abrupt("return",{});case 48:case"end":return n.stop()}}),n)})))()}}},qA=function(e){return void 0===e&&(e={}),{name:"hide",options:e,fn:function(t){return(0,f.Z)((0,d.Z)().mark((function n(){var r,i,o,a,s,l,c,u,f,p;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=t.rects,i=t.platform,o=vN(e,t),a=o.strategy,s=void 0===a?"referenceHidden":a,l=(0,en.Z)(o,MN),n.t0=s,n.next="referenceHidden"===n.t0?5:"escaped"===n.t0?10:15;break;case 5:return n.next=7,i.detectOverflow(t,(0,A.Z)((0,A.Z)({},l),{},{elementContext:"reference"}));case 7:return c=n.sent,u=WN(c,r.reference),n.abrupt("return",{data:{referenceHiddenOffsets:u,referenceHidden:qN(u)}});case 10:return n.next=12,i.detectOverflow(t,(0,A.Z)((0,A.Z)({},l),{},{altBoundary:!0}));case 12:return f=n.sent,p=WN(f,r.floating),n.abrupt("return",{data:{escapedOffsets:p,escaped:qN(p)}});case 15:return n.abrupt("return",{});case 16:case"end":return n.stop()}}),n)})))()}}},VA=function(e){return{name:"arrow",options:e,fn:function(t){return(0,f.Z)((0,d.Z)().mark((function n(){var r,i,o,a,s,l,c,u,f,p,h,m,v,g,y,b,x,w,k,S,j,C,_,E,N,D,T,I,P,F,O,M,Z,R,L,B;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=t.x,a=t.y,s=t.placement,l=t.rects,c=t.platform,u=t.elements,f=t.middlewareData,p=vN(e,t)||{},h=p.element,m=p.padding,v=void 0===m?0:m,null!=h){n.next=4;break}return n.abrupt("return",{});case 4:return g=IN(v),y={x:o,y:a},b=kN(s),x=xN(b),n.next=10,c.getDimensions(h);case 10:return w=n.sent,S=(k="y"===b)?"top":"left",j=k?"bottom":"right",C=k?"clientHeight":"clientWidth",_=l.reference[x]+l.reference[b]-y[b]-l.floating[x],E=y[b]-l.reference[b],n.next=19,null==c.getOffsetParent?void 0:c.getOffsetParent(h);case 19:if(N=n.sent,D=N?N[C]:0,n.t0=!D,n.t0){n.next=26;break}return n.next=25,null==c.isElement?void 0:c.isElement(N);case 25:n.t0=!n.sent;case 26:if(!n.t0){n.next=28;break}D=u.floating[C]||l.floating[x];case 28:return T=_/2-E/2,I=D/2-w[x]/2-1,P=uN(g[S],I),F=uN(g[j],I),O=P,M=D-w[x]-F,Z=D/2-w[x]/2+T,R=mN(O,Z,M),L=!f.arrow&&null!=yN(s)&&Z!==R&&l.reference[x]/2-(Z<O?P:F)-w[x]/2<0,B=L?Z<O?Z-O:Z-M:0,n.abrupt("return",(i={},(0,Sn.Z)(i,b,y[b]+B),(0,Sn.Z)(i,"data",(0,A.Z)((r={},(0,Sn.Z)(r,b,R),(0,Sn.Z)(r,"centerOffset",Z-R-B),r),L&&{alignmentOffset:B})),(0,Sn.Z)(i,"reset",L),i));case 39:case"end":return n.stop()}}),n)})))()}}},GA=function(e){return void 0===e&&(e={}),{name:"inline",options:e,fn:function(t){return(0,f.Z)((0,d.Z)().mark((function n(){var r,i,o,a,s,l,c,u,f,p,h,m,g,y,b,x;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return b=function(){if(2===m.length&&m[0].left>m[1].right&&null!=f&&null!=p)return m.find((function(e){return f>e.left-y.left&&f<e.right+y.right&&p>e.top-y.top&&p<e.bottom+y.bottom}))||g;if(m.length>=2){if("y"===wN(r)){var e=m[0],t=m[m.length-1],n="top"===gN(r),i=e.top,o=t.bottom,a=n?e.left:t.left,s=n?e.right:t.right;
2return{top:i,bottom:o,left:a,right:s,width:s-a,height:o-i,x:a,y:i}}var l="left"===gN(r),c=dN.apply(void 0,(0,v.Z)(m.map((function(e){return e.right})))),u=uN.apply(void 0,(0,v.Z)(m.map((function(e){return e.left})))),d=m.filter((function(e){return l?e.left===u:e.right===c})),h=d[0].top,b=d[d.length-1].bottom;return{top:h,bottom:b,left:u,right:c,width:c-u,height:b-h,x:u,y:h}}return g},r=t.placement,i=t.elements,o=t.rects,a=t.platform,s=t.strategy,l=vN(e,t),c=l.padding,u=void 0===c?2:c,f=l.x,p=l.y,n.t0=Array,n.next=6,null==a.getClientRects?void 0:a.getClientRects(i.reference);case 6:if(n.t1=n.sent,n.t1){n.next=9;break}n.t1=[];case 9:return n.t2=n.t1,h=n.t0.from.call(n.t0,n.t2),m=GN(h),g=PN(VN(h)),y=IN(u),n.next=16,a.getElementRects({reference:{getBoundingClientRect:b},floating:i.floating,strategy:s});case 16:if(x=n.sent,o.reference.x===x.reference.x&&o.reference.y===x.reference.y&&o.reference.width===x.reference.width&&o.reference.height===x.reference.height){n.next=19;break}return n.abrupt("return",{reset:{rects:x}});case 19:return n.abrupt("return",{});case 20:case"end":return n.stop()}}),n)})))()}}},$A=function(e,t,n){var r=new Map,i=(0,A.Z)({platform:ZA},n),o=(0,A.Z)((0,A.Z)({},i.platform),{},{_c:r});return UN(e,t,(0,A.Z)((0,A.Z)({},i),{},{platform:o}))};if("undefined"!=typeof WeakMap){var JA=new WeakMap;RA=function(e){return JA.get(e)},LA=function(e,t){return JA.set(e,t),t}}else{var KA=[],YA=0;RA=function(e){for(var t=0;t<KA.length;t+=2)if(KA[t]==e)return KA[t+1]},LA=function(e,t){return 10==YA&&(YA=0),KA[YA++]=e,KA[YA++]=t}}var XA=function(){function e(t,n,r,i){(0,ha.Z)(this,e),this.width=t,this.height=n,this.map=r,this.problems=i}return(0,ma.Z)(e,[{key:"findCell",value:function(e){for(var t=0;t<this.map.length;t++){var n=this.map[t];if(n==e){for(var r=t%this.width,i=t/this.width|0,o=r+1,a=i+1,s=1;o<this.width&&this.map[t+s]==n;s++)o++;for(var l=1;a<this.height&&this.map[t+this.width*l]==n;l++)a++;return{left:r,top:i,right:o,bottom:a}}}throw new RangeError("No cell with offset ".concat(e," found"))}},{key:"colCount",value:function(e){for(var t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError("No cell with offset ".concat(e," found"))}},{key:"nextCell",value:function(e,t,n){var r=this.findCell(e),i=r.left,o=r.right,a=r.top,s=r.bottom;return"horiz"==t?(n<0?0==i:o==this.width)?null:this.map[a*this.width+(n<0?i-1:o)]:(n<0?0==a:s==this.height)?null:this.map[i+this.width*(n<0?a-1:s)]}},{key:"rectBetween",value:function(e,t){var n=this.findCell(e),r=n.left,i=n.right,o=n.top,a=n.bottom,s=this.findCell(t),l=s.left,c=s.right,u=s.top,d=s.bottom;return{left:Math.min(r,l),top:Math.min(o,u),right:Math.max(i,c),bottom:Math.max(a,d)}}},{key:"cellsInRect",value:function(e){for(var t=[],n={},r=e.top;r<e.bottom;r++)for(var i=e.left;i<e.right;i++){var o=r*this.width+i,a=this.map[o];n[a]||(n[a]=!0,i==e.left&&i&&this.map[o-1]==a||r==e.top&&r&&this.map[o-this.width]==a||t.push(a))}return t}},{key:"positionAt",value:function(e,t,n){for(var r=0,i=0;;r++){var o=i+n.child(r).nodeSize;if(r==e){for(var a=t+e*this.width,s=(e+1)*this.width;a<s&&this.map[a]<i;)a++;return a==s?o-1:this.map[a]}i=o}}}],[{key:"get",value:function(e){return RA(e)||LA(e,QA(e))}}]),e}();function QA(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);for(var t=function(e){for(var t=-1,n=!1,r=0;r<e.childCount;r++){var i=e.child(r),o=0;if(n)for(var a=0;a<r;a++)for(var s=e.child(a),l=0;l<s.childCount;l++){var c=s.child(l);a+c.attrs.rowspan>r&&(o+=c.attrs.colspan)}for(var u=0;u<i.childCount;u++){var d=i.child(u);o+=d.attrs.colspan,d.attrs.rowspan>1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(e),n=e.childCount,r=[],i=0,o=null,a=[],s=0,l=t*n;s<l;s++)r[s]=0;for(var c=0,u=0;c<n;c++){var d=e.child(c);u++;for(var f=0;;f++){for(;i<r.length&&0!=r[i];)i++;if(f==d.childCount)break;for(var p=d.child(f),h=p.attrs,m=h.colspan,v=h.rowspan,g=h.colwidth,y=0;y<v;y++){if(y+c>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:v-y});break}for(var b=i+y*t,x=0;x<m;x++){0==r[b+x]?r[b+x]=u:(o||(o=[])).push({type:"collision",row:c,pos:u,n:m-x});var w=g&&g[x];if(w){var k=(b+x)%t*2,S=a[k];null==S||S!=w&&1==a[k+1]?(a[k]=w,a[k+1]=1):S==w&&a[k+1]++}}}i+=m,u+=p.nodeSize}for(var j=(c+1)*t,C=0;i<j;)0==r[i++]&&C++;C&&(o||(o=[])).push({type:"missing",row:c,n:C}),u++}0!==t&&0!==n||(o||(o=[])).push({type:"zero_sized"});for(var _=new XA(t,n,r,o),E=!1,N=0;!E&&N<a.length;N+=2)null!=a[N]&&a[N+1]<n&&(E=!0);return E&&function(e,t,n){e.problems||(e.problems=[]);for(var r={},i=0;i<e.map.length;i++){var o=e.map[i];if(!r[o]){r[o]=!0;var a=n.nodeAt(o);if(!a)throw new RangeError("No cell with offset ".concat(o," found"));for(var s=null,l=a.attrs,c=0;c<l.colspan;c++){var u=t[(i+c)%e.width*2];null==u||l.colwidth&&l.colwidth[c]==u||((s||(s=eD(l)))[c]=u)}s&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:s})}}}(_,a,e),_}function eD(e){if(e.colwidth)return e.colwidth.slice();for(var t=[],n=0;n<e.colspan;n++)t.push(0);return t}function tD(e){var t=e.cached.tableNodeTypes;
2if(!t)for(var n in t=e.cached.tableNodeTypes={},e.nodes){var r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}return t}new Lm("selectingCells");function nD(e){for(var t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function rD(e){for(var t=e.selection.$head,n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function iD(e){var t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;var n=nD(t.$head)||oD(t.$head);if(n)return n;throw new RangeError("No cell found around position ".concat(t.head))}function oD(e){for(var t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){var r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(var i=e.nodeBefore,o=e.pos;i;i=i.lastChild,o--){var a=i.type.spec.tableRole;if("cell"==a||"header_cell"==a)return e.doc.resolve(o-i.nodeSize)}}function aD(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function sD(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function lD(e,t,n){var r=e.node(-1),i=XA.get(r),o=e.start(-1),a=i.nextCell(e.pos-o,t,n);return null==a?null:e.node(0).resolve(o+a)}function cD(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=(0,A.Z)((0,A.Z)({},e),{},{colspan:e.colspan-n});return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some((function(e){return e>0}))||(r.colwidth=null)),r}var uD=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;(0,ha.Z)(this,n);var o=e.node(-1),a=XA.get(o),s=e.start(-1),l=a.rectBetween(e.pos-s,i.pos-s),c=e.node(0),u=a.cellsInRect(l).filter((function(e){return e!=i.pos-s}));u.unshift(i.pos-s);var d=u.map((function(e){var t=o.nodeAt(e);if(!t)throw new RangeError("No cell with offset ".concat(e," found"));var n=s+e+1;return new ym(c.resolve(n),c.resolve(n+t.content.size))}));return(r=t.call(this,d[0].$from,d[0].$to,d)).$anchorCell=e,r.$headCell=i,r}return(0,ma.Z)(n,[{key:"map",value:function(e,t){var r=e.resolve(t.map(this.$anchorCell.pos)),i=e.resolve(t.map(this.$headCell.pos));if(aD(r)&&aD(i)&&sD(r,i)){var o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?n.rowSelection(r,i):o&&this.isColSelection()?n.colSelection(r,i):new n(r,i)}return wm.between(r,i)}},{key:"content",value:function(){for(var e=this.$anchorCell.node(-1),t=XA.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},o=[],a=r.top;a<r.bottom;a++){for(var s=[],l=a*t.width+r.left,c=r.left;c<r.right;c++,l++){var u=t.map[l];if(!i[u]){i[u]=!0;var d=t.findCell(u),f=e.nodeAt(u);if(!f)throw new RangeError("No cell with offset ".concat(u," found"));var p=r.left-d.left,h=d.right-r.right;if(p>0||h>0){var m=f.attrs;if(p>0&&(m=cD(m,0,p)),h>0&&(m=cD(m,m.colspan-h,h)),d.left<r.left){if(!(f=f.type.createAndFill(m)))throw new RangeError("Could not create cell with attrs ".concat(JSON.stringify(m)))}else f=f.type.create(m,f.content)}if(d.top<r.top||d.bottom>r.bottom){var v=(0,A.Z)((0,A.Z)({},f.attrs),{},{rowspan:Math.min(d.bottom,r.bottom)-Math.max(d.top,r.top)});f=d.top<r.top?f.type.createAndFill(v):f.type.create(v,f.content)}s.push(f)}}o.push(e.child(a).copy(bp.from(s)))}var g=this.isColSelection()&&this.isRowSelection()?e:o;return new Cp(bp.from(g),1,1)}},{key:"replace",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cp.empty,n=e.steps.length,r=this.ranges,i=0;i<r.length;i++){var o=r[i],a=o.$from,s=o.$to,l=e.mapping.slice(n);e.replace(l.map(a.pos),l.map(s.pos),i?Cp.empty:t)}var c=gm.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);c&&e.setSelection(c)}},{key:"replaceWith",value:function(e,t){this.replace(e,new Cp(bp.from(t),0,0))}},{key:"forEachCell",value:function(e){for(var t=this.$anchorCell.node(-1),n=XA.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r)),o=0;o<i.length;o++)e(t.nodeAt(i[o]),r+i[o])}},{key:"isColSelection",value:function(){var e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;var n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}},{key:"isRowSelection",value:function(){var e=this.$anchorCell.node(-1),t=XA.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);
2if(Math.min(r,i)>0)return!1;var o=r+this.$anchorCell.nodeAfter.attrs.colspan,a=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,a)==t.width}},{key:"eq",value:function(e){return e instanceof n&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}},{key:"toJSON",value:function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}},{key:"getBookmark",value:function(){return new dD(this.$anchorCell.pos,this.$headCell.pos)}}],[{key:"colSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=e.node(-1),i=XA.get(r),o=e.start(-1),a=i.findCell(e.pos-o),s=i.findCell(t.pos-o),l=e.node(0);return a.top<=s.top?(a.top>0&&(e=l.resolve(o+i.map[a.left])),s.bottom<i.height&&(t=l.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(t=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(e=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))),new n(e,t)}},{key:"rowSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=e.node(-1),i=XA.get(r),o=e.start(-1),a=i.findCell(e.pos-o),s=i.findCell(t.pos-o),l=e.node(0);return a.left<=s.left?(a.left>0&&(e=l.resolve(o+i.map[a.top*i.width])),s.right<i.width&&(t=l.resolve(o+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(t=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(e=l.resolve(o+i.map[i.width*(a.top+1)-1]))),new n(e,t)}},{key:"fromJSON",value:function(e,t){return new n(e.resolve(t.anchor),e.resolve(t.head))}},{key:"create",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;return new n(e.resolve(t),e.resolve(r))}}]),n}(gm);uD.prototype.visible=!1,gm.jsonID("cell",uD);var dD=function(){function e(t,n){(0,ha.Z)(this,e),this.anchor=t,this.head=n}return(0,ma.Z)(e,[{key:"map",value:function(t){return new e(t.map(this.anchor),t.map(this.head))}},{key:"resolve",value:function(e){var t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&sD(t,n)?new uD(t,n):gm.near(n,1)}}]),e}();new Lm("fix-tables");function fD(e){var t=e.selection,n=iD(e),r=n.node(-1),i=n.start(-1),o=XA.get(r);return(0,A.Z)((0,A.Z)({},t instanceof uD?o.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):o.findCell(n.pos-i)),{},{tableStart:i,map:o,table:r})}function pD(e,t,n){for(var r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1}),i=0;i<r.length;i++){var o=t.table.nodeAt(r[i]);if(o&&o.type!==n.header_cell)return!1}return!0}function hD(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!rD(t))return!1;if(n){for(var r=tD(t.schema),i=fD(t),o=t.tr,a=i.map.cellsInRect("column"==e?{left:i.left,top:0,right:i.right,bottom:i.map.height}:"row"==e?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=a.map((function(e){return i.table.nodeAt(e)})),l=0;l<a.length;l++)s[l].type==r.header_cell&&o.setNodeMarkup(i.tableStart+a[l],r.cell,s[l].attrs);if(0===o.steps.length)for(var c=0;c<a.length;c++)o.setNodeMarkup(i.tableStart+a[c],r.header_cell,s[c].attrs);n(o)}return!0}}(e):function(t,n){if(!rD(t))return!1;if(n){var r=tD(t.schema),i=fD(t),o=t.tr,a=pD("row",i,r),s=pD("column",i,r),l=("column"===e?a:"row"===e&&s)?1:0,c="column"==e?{left:0,top:l,right:1,bottom:i.map.height}:"row"==e?{left:l,top:0,right:i.map.width,bottom:1}:i,u="column"==e?s?r.cell:r.header_cell:"row"==e?a?r.cell:r.header_cell:r.cell;i.map.cellsInRect(c).forEach((function(e){var t=e+i.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,u,n.attrs)})),n(o)}return!0}}hD("row",{useDeprecatedLogic:!0}),hD("column",{useDeprecatedLogic:!0}),hD("cell",{useDeprecatedLogic:!0});function mD(e,t){var n=e.selection;if(!(n instanceof uD))return!1;if(t){var r=e.tr,i=tD(e.schema).cell.createAndFill().content;n.forEachCell((function(e,t){e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new Cp(i,0,0))})),r.docChanged&&t(r)}return!0}Hb({ArrowLeft:gD("horiz",-1),ArrowRight:gD("horiz",1),ArrowUp:gD("vert",-1),ArrowDown:gD("vert",1),"Shift-ArrowLeft":yD("horiz",-1),"Shift-ArrowRight":yD("horiz",1),"Shift-ArrowUp":yD("vert",-1),"Shift-ArrowDown":yD("vert",1),Backspace:mD,"Mod-Backspace":mD,Delete:mD,"Mod-Delete":mD});function vD(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function gD(e,t){return function(n,r,i){if(!i)return!1;var o=n.selection;if(o instanceof uD)return vD(n,r,gm.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;var a=bD(i,e,t);if(null==a)return!1;if("horiz"==e)return vD(n,r,gm.near(n.doc.resolve(o.head+t),t));var s,l=n.doc.resolve(a),c=lD(l,e,t);return s=c?gm.near(c,1):t<0?gm.near(n.doc.resolve(l.before(-1)),-1):gm.near(n.doc.resolve(l.after(-1)),1),vD(n,r,s)}}function yD(e,t){return function(n,r,i){if(!i)return!1;var o,a=n.selection;if(a instanceof uD)o=a;else{var s=bD(i,e,t);if(null==s)return!1;o=new uD(n.doc.resolve(s))}var l=lD(o.$headCell,e,t);return!!l&&vD(n,r,new uD(o.$anchorCell,l))}}function bD(e,t,n){if(!(e.state.selection instanceof wm))return null;for(var r=e.state.selection.$head,i=r.depth-1;i>=0;i--){var o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){var a=r.before(i),s="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(s)?a:null}}return null}new Lm("tableColumnResizing");var xD=function(){function e(t){var n,r=this,i=t.editor,o=t.element,a=t.view,s=t.pluginKey,l=void 0===s?"bubbleMenu":s,c=t.updateDelay,u=void 0===c?250:c,d=t.resizeDelay,f=void 0===d?60:d,p=t.shouldShow,h=t.appendTo,m=t.getReferencedVirtualElement,v=t.options;(0,ha.Z)(this,e),this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=function(e){var t=e.view,n=e.state,i=e.from,o=e.to,a=n.doc,s=n.selection.empty,l=!a.textBetween(i,o).length&&gx(n.selection),c=r.element.contains(document.activeElement);return!(!t.hasFocus()&&!c||s||l||!r.editor.isEditable)},this.mousedownHandler=function(){r.preventHide=!0},this.dragstartHandler=function(){r.hide()},this.resizeHandler=function(){r.resizeDebounceTimer&&clearTimeout(r.resizeDebounceTimer),r.resizeDebounceTimer=window.setTimeout((function(){r.updatePosition()}),r.resizeDelay)},this.focusHandler=function(){setTimeout((function(){return r.update(r.editor.view)}))},this.blurHandler=function(e){var t,n=e.event;r.editor.isDestroyed?r.destroy():r.preventHide?r.preventHide=!1:(null==n?void 0:n.relatedTarget)&&(null==(t=r.element.parentNode)?void 0:t.contains(n.relatedTarget))||(null==n?void 0:n.relatedTarget)!==r.editor.view.dom&&r.hide()},this.handleDebouncedUpdate=function(e,t){var n=!(null==t?void 0:t.selection.eq(e.state.selection)),i=!(null==t?void 0:t.doc.eq(e.state.doc));(n||i)&&(r.updateDebounceTimer&&clearTimeout(r.updateDebounceTimer),r.updateDebounceTimer=window.setTimeout((function(){r.updateHandler(e,n,i,t)}),r.updateDelay))},this.updateHandler=function(e,t,n,i){e.composing||!t&&!n||(r.getShouldShow(i)?(r.show(),r.updatePosition()):r.hide())},this.transactionHandler=function(e){var t=e.transaction.getMeta(r.pluginKey);"updatePosition"===t?r.updatePosition():t&&"object"===typeof t&&"updateOptions"===t.type?r.updateOptions(t.options):"hide"===t?r.hide():"show"===t&&(r.updatePosition(),r.show())},this.editor=i,this.element=o,this.view=a,this.pluginKey=l,this.updateDelay=u,this.resizeDelay=f,this.appendTo=h,this.scrollTarget=null!=(n=null==v?void 0:v.scrollTarget)?n:window,this.getReferencedVirtualElement=m,this.floatingUIOptions=(0,A.Z)((0,A.Z)({},this.floatingUIOptions),v),this.element.tabIndex=0,p&&(this.shouldShow=p),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(a,a.state),this.get
2ShouldShow()&&(this.show(),this.updatePosition())}return(0,ma.Z)(e,[{key:"middlewares",get:function(){var e=[];return this.floatingUIOptions.flip&&e.push(HA("boolean"!==typeof this.floatingUIOptions.flip?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&e.push(UA("boolean"!==typeof this.floatingUIOptions.shift?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&e.push(BA("boolean"!==typeof this.floatingUIOptions.offset?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&e.push(VA(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(WA("boolean"!==typeof this.floatingUIOptions.size?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&e.push(zA("boolean"!==typeof this.floatingUIOptions.autoPlacement?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&e.push(qA("boolean"!==typeof this.floatingUIOptions.hide?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&e.push(GA("boolean"!==typeof this.floatingUIOptions.inline?this.floatingUIOptions.inline:void 0)),e}},{key:"virtualElement",get:function(){var e,t,n,r=this.editor.state.selection,i=null==(e=this.getReferencedVirtualElement)?void 0:e.call(this);if(i)return i;if(null==(n=null==(t=this.view)?void 0:t.dom)?void 0:n.parentNode){var o=Lw(this.view,r.from,r.to),a={getBoundingClientRect:function(){return o},getClientRects:function(){return[o]}};if(r instanceof Sm){var s=this.view.nodeDOM(r.from),l=s.dataset.nodeViewWrapper?s:s.querySelector("[data-node-view-wrapper]");l&&(s=l),s&&(a={getBoundingClientRect:function(){return s.getBoundingClientRect()},getClientRects:function(){return[s.getBoundingClientRect()]}})}if(r instanceof uD){var c=r.$anchorCell,u=r.$headCell,d=c?c.pos:u.pos,f=u?u.pos:c.pos,p=this.view.nodeDOM(d),h=this.view.nodeDOM(f);if(!p||!h)return;var m=p===h?p.getBoundingClientRect():function(e,t){var n=Math.min(e.top,t.top),r=Math.max(e.bottom,t.bottom),i=Math.min(e.left,t.left),o=Math.max(e.right,t.right);return new DOMRect(i,n,o-i,r-n)}(p.getBoundingClientRect(),h.getBoundingClientRect());a={getBoundingClientRect:function(){return m},getClientRects:function(){return[m]}}}return a}}},{key:"updatePosition",value:function(){var e=this;if(this.isVisible){var t=this.virtualElement;t&&$A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then((function(t){var n,r,i=t.x,o=t.y,a=t.strategy,s=t.middlewareData;e.isVisible&&!e.editor.isDestroyed&&e.element.isConnected&&((null==(n=s.hide)?void 0:n.referenceHidden)||(null==(r=s.hide)?void 0:r.escaped)?e.element.style.visibility="hidden":(e.element.style.visibility="visible",e.element.style.width="max-content",e.element.style.position=a,e.element.style.left="".concat(i,"px"),e.element.style.top="".concat(o,"px"),e.isVisible&&e.floatingUIOptions.onUpdate&&e.floatingUIOptions.onUpdate()))}))}}},{key:"update",value:function(e,t){var n=e.state,r=n.selection.from!==n.selection.to;if(this.updateDelay>0&&r)this.handleDebouncedUpdate(e,t);else{var i=!(null==t?void 0:t.selection.eq(e.state.selection)),o=!(null==t?void 0:t.doc.eq(e.state.doc));this.updateHandler(e,i,o,t)}}},{key:"getShouldShow",value:function(e){var t,n=this.view.state,r=n.selection.ranges,i=Math.min.apply(Math,(0,v.Z)(r.map((function(e){return e.$from.pos})))),o=Math.max.apply(Math,(0,v.Z)(r.map((function(e){return e.$to.pos}))));return(null==(t=this.shouldShow)?void 0:t.call(this,{editor:this.editor,element:this.element,view:this.view,state:n,oldState:e,from:i,to:o}))||!1}},{key:"show",value:function(){var e;if(!this.isVisible){this.element.style.visibility="visible",this.element.style.opacity="1";var t="function"===typeof this.appendTo?this.appendTo():this.appendTo;null==(e=null!=t?t:this.view.dom.parentElement)||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}}},{key:"hide",value:function(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}},{key:"updateOptions",value:function(e){var t;if(void 0!==e.updateDelay&&(this.updateDelay=e.updateDelay),void 0!==e.resizeDelay&&(this.resizeDelay=e.resizeDelay),void 0!==e.appendTo&&(this.appendTo=e.appendTo),void 0!==e.getReferencedVirtualElement&&(this.getReferencedVirtualElement=e.getReferencedVirtualElement),void 0!==e.shouldShow&&e.shouldShow&&(this.shouldShow=e.shouldShow),void 0!==e.options){var n=null!=(t=e.options.scrollTarget)?t:window;n!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=n,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions=(0,A.Z)((0,A.Z)({},this.floatingUIOptions),e.options)}}},{key:"destroy",value:function(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}}]),e}(),wD=function(e){return new Mm({key:"string"===typeof e.pluginKey?new Lm(e.pluginKey):e.pluginKey,view:function(t){return new xD((0,A.Z)({view:t},e))}})},kD=(Sk.create({name:"bubbleMenu",addOptions:function(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins:function(){return this.options.element?[wD({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}}),function(){function e(t){var n,r=this,i=t.editor,o=t.element,a=t.view,s=t.pluginKey,l=void 0===s?"floatingMenu":s,c=t.updateDelay,u=void 0===c?250:c,d=t.resizeDelay,f=void 0===d?60:d,p=t.options,h=t.appendTo,m=t.shouldShow;(0,ha.Z)(this,e),this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=function(e){var t=e.view,n=e.state.selection,i=n.$anchor,o=n.empty,a=1===i.depth,s=i.parent.isTextblock&&!i.parent.type.spec.code&&!i.parent.textContent&&0===i.parent.childCount&&!r.getTextContent(i.parent);return!!(t.hasFocus()&&o&&a&&s&&r.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=function(e,t,n,i){e.composing||!t&&!n||(r.getShouldShow(i)?(r.updatePosition(),r.show()):r.hide())},this.mousedownHandler=function(){r.preventHide=!0},this.focusHandler=function(){setTimeout((function(){return r.update(r.editor.view)}))},this.blurHandler=function(e){var t,n=e.event;r.preventHide?r.preventHide=!1:(null==n?void 0:n.relatedTarget)&&(null==(t=r.element.parentNode)?void 0:t.contains(n.relatedTarget))||(null==n?void 0:n.relatedTarget)!==r.editor.view.dom&&r.hide()},this.transactionHandler=function(e){var t=e.transaction.getMeta(r.pluginKey);"updatePosition"===t?r.updatePosition():t&&"object"===typeof t&&"updateOptions"===t.type?r.updateOptions(t.options):"hide"===t?r.hide():"show"===t&&(r.updatePosition(),r.show())},this.resizeHandler=function(){r.resizeDebounceTimer&&clearTimeout(r.resizeDebounceTimer),r.resizeDebounceTimer=window.setTimeout((function(){r.updatePosition()}),r.resizeDelay)},this.editor=i,this.element=o,this.view=a,this.pluginKey=l,this.updateDelay=u,this.resizeDelay=f,this.appendTo=h,this.scrollTarget=null!=(n=null==p?void 0:p.scrollTarget)?n:window,this.floatingUIOptions=(0,A.Z)((0,A.Z)({},this.floatingUIOptions),p),this.element.tabIndex=0,m&&(this.shouldShow=m),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(a,a.state),this.get
2ShouldShow()&&(this.show(),this.updatePosition())}return(0,ma.Z)(e,[{key:"getTextContent",value:function(e){return kw(e,{textSerializers:Sw(this.editor.schema)})}},{key:"middlewares",get:function(){var e=[];return this.floatingUIOptions.flip&&e.push(HA("boolean"!==typeof this.floatingUIOptions.flip?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&e.push(UA("boolean"!==typeof this.floatingUIOptions.shift?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&e.push(BA("boolean"!==typeof this.floatingUIOptions.offset?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&e.push(VA(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(WA("boolean"!==typeof this.floatingUIOptions.size?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&e.push(zA("boolean"!==typeof this.floatingUIOptions.autoPlacement?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&e.push(qA("boolean"!==typeof this.floatingUIOptions.hide?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&e.push(GA("boolean"!==typeof this.floatingUIOptions.inline?this.floatingUIOptions.inline:void 0)),e}},{key:"getShouldShow",value:function(e){var t,n=this.view.state,r=n.selection.ranges,i=Math.min.apply(Math,(0,v.Z)(r.map((function(e){return e.$from.pos})))),o=Math.max.apply(Math,(0,v.Z)(r.map((function(e){return e.$to.pos}))));return null==(t=this.shouldShow)?void 0:t.call(this,{editor:this.editor,view:this.view,state:n,oldState:e,from:i,to:o})}},{key:"updateOptions",value:function(e){var t;if(void 0!==e.updateDelay&&(this.updateDelay=e.updateDelay),void 0!==e.resizeDelay&&(this.resizeDelay=e.resizeDelay),void 0!==e.appendTo&&(this.appendTo=e.appendTo),void 0!==e.shouldShow&&e.shouldShow&&(this.shouldShow=e.shouldShow),void 0!==e.options){var n=null!=(t=e.options.scrollTarget)?t:window;n!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=n,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions=(0,A.Z)((0,A.Z)({},this.floatingUIOptions),e.options)}}},{key:"updatePosition",value:function(){var e,t,n=this;if(null==(t=null==(e=this.view)?void 0:e.dom)?void 0:t.parentNode){var r=this.editor.state.selection,i=Lw(this.view,r.from,r.to);$A({getBoundingClientRect:function(){return i},getClientRects:function(){return[i]}},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then((function(e){var t,r,i=e.x,o=e.y,a=e.strategy,s=e.middlewareData;(null==(t=s.hide)?void 0:t.referenceHidden)||(null==(r=s.hide)?void 0:r.escaped)?n.element.style.visibility="hidden":(n.element.style.visibility="visible",n.element.style.width="max-content",n.element.style.position=a,n.element.style.left="".concat(i,"px"),n.element.style.top="".concat(o,"px"),n.isVisible&&n.floatingUIOptions.onUpdate&&n.floatingUIOptions.onUpdate())}))}}},{key:"update",value:function(e,t){var n=!(null==t?void 0:t.selection.eq(e.state.selection)),r=!(null==t?void 0:t.doc.eq(e.state.doc));this.updateHandler(e,n,r,t)}},{key:"show",value:function(){var e;if(!this.isVisible){this.element.style.visibility="visible",this.element.style.opacity="1";var t="function"===typeof this.appendTo?this.appendTo():this.appendTo;null==(e=null!=t?t:this.view.dom.parentElement)||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}}},{key:"hide",value:function(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}},{key:"destroy",value:function(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}}]),e}()),SD=function(e){return new Mm({key:"string"===typeof e.pluginKey?new Lm(e.pluginKey):e.pluginKey,view:function(t){return new kD((0,A.Z)({view:t},e))}})},jD=(Sk.create({name:"floatingMenu",addOptions:function(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands:function(){var e=this;return{updateFloatingMenuPosition:function(){return function(t){var n=t.tr;return t.dispatch&&n.setMeta(e.options.pluginKey,"updatePosition"),!0}}}},addProseMirrorPlugins:function(){return this.options.element?[SD({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}}),["pluginKey","editor","updateDelay","resizeDelay","appendTo","shouldShow","getReferencedVirtualElement","options","children"]),CD=["pluginKey","editor","updateDelay","resizeDelay","appendTo","shouldShow","options","children"];function _D(e,t){return null!=e?e:new Lm(t)}var ED="undefined"!==typeof window?c.useLayoutEffect:c.useEffect,ND=new Set(["left","opacity","position","top","visibility","width"]),AD=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","o
2pacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),DD=new Set(["children","className","style"]),TD=new Set(["tabIndex"]),ID=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),PD={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function FD(e,t){return/^on[A-Z]/.test(e)&&"function"===typeof t}function OD(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}function MD(e){return TD.has(e)}function ZD(e,t,n){"tabIndex"!==t?e[t]=n:e.tabIndex=Number(n)}function RD(e,t,n){ND.has(t)||e.style.setProperty(OD(t),function(e,t){return"number"!==typeof t||0===t||e.startsWith("--")||AD.has(e)?String(t):"".concat(t,"px")}(t,n))}function LD(e,t,n){new Set([].concat((0,v.Z)(Object.keys(t)),(0,v.Z)(Object.keys(n)))).forEach((function(r){if(!DD.has(r)&&function(e){return e.startsWith("aria-")||e.startsWith("data-")||ID.has(e)}(r)&&!FD(r,t[r])&&!FD(r,n[r])){var i=t[r],o=n[r];if(i!==o){var a=function(e){return e.startsWith("aria-")||e.startsWith("data-"),e}(r);return null==o||!1===o?(MD(r)&&function(e,t){if("tabIndex"!==t){var n=e[t];e[t]="boolean"!==typeof n&&("number"!==typeof n?"":0)}else e.removeAttribute("tabindex")}(e,r),void e.removeAttribute(a)):!0===o?(MD(r)&&ZD(e,r,!0),void e.setAttribute(a,"")):void(MD(r)?ZD(e,r,o):e.setAttribute(a,String(o)))}}}))}function BD(e,t,n){var r=null!=t?t:{},i=null!=n?n:{};new Set([].concat((0,v.Z)(Object.keys(r)),(0,v.Z)(Object.keys(i)))).forEach((function(t){var n=r[t],o=i[t];n!==o&&(null!=o?RD(e,t,o):function(e,t){ND.has(t)||e.style.removeProperty(OD(t))}(e,t))}))}function zD(e,t,n){t.forEach((function(t){var n=t.eventName,r=t.listener,i=t.options;e.removeEventListener(n,r,i)}));var r=[];return Object.entries(n).forEach((function(t){var n=(0,p.Z)(t,2),i=n[0],o=n[1];if(FD(i,o)){var a=function(e){var t,n=e.endsWith("Capture"),r=(n?e.slice(0,-7):e).slice(2);return{eventName:null!=(t=PD[r])?t:r.toLowerCase(),options:n?{capture:!0}:void 0}}(i),s=a.eventName,l=a.options,c=function(t){o(function(e,t){var n=t.defaultPrevented,r=!1,i=Object.create(t);return Object.defineProperties(i,{nativeEvent:{value:t},currentTarget:{value:e},target:{value:t.target},persist:{value:function(){}},isDefaultPrevented:{value:function(){return n}},isPropagationStopped:{value:function(){return r}},preventDefault:{value:function(){n=!0,t.preventDefault()}},stopPropagation:{value:function(){r=!0,t.stopPropagation()}}}),i}(e,t))};e.addEventListener(s,c,l),r.push({eventName:s,listener:c,options:l})}})),r}function UD(e,t){var n=(0,c.useRef)({}),r=(0,c.useRef)([]);ED((function(){var i=n.current;return function(e,t,n){t!==n&&(n?e.className=n:e.removeAttribute("class"))}(e,i.className,t.className),BD(e,i.style,t.style),LD(e,i,t),r.current=zD(e,r.current,t),n.current=t,function(){r.current.forEach((function(t){var n=t.eventName,r=t.listener,i=t.options;e.removeEventListener(n,r,i)})),r.current=[]}}),[e,t])}var HD=c.forwardRef((function(e,t){var n=e.pluginKey,r=e.editor,i=e.updateDelay,o=e.resizeDelay,a=e.appendTo,s=e.shouldShow,l=void 0===s?null:s,u=e.getReferencedVirtualElement,d=e.options,f=e.children,h=(0,en.Z)(e,jD),m=(0,c.useRef)(document.createElement("div")),v=(0,c.useRef)(_D(n,"bubbleMenu")).current;UD(m.current,h),"function"===typeof t?t(m.current):t&&(t.current=m.current);var g=sj().editor,y=r||g,b={updateDelay:i,resizeDelay:o,appendTo:a,pluginKey:v,shouldShow:l,getReferencedVirtualElement:u,options:d},x=(0,c.useRef)(b);x.current=b;var w=(0,c.useState)(!1),k=(0,p.Z)(w,2),S=k[0],j=k[1],C=(0,c.useRef)(!0);return(0,c.useEffect)((function(){if(!(null==y?void 0:y.isDestroyed)){if(y){var e=m.current;e.style.visibility="hidden",e.style.position="absolute";var t=wD((0,A.Z)((0,A.Z)({},x.current),{},{editor:y,element:e}));y.registerPlugin(t);var n=x.current.pluginKey;return C.current=!0,j(!0),function(){j(!1),y.unregisterPlugin(n),window.requestAnimationFrame((function(){e.parentNode&&e.parentNode.removeChild(e)}))}}console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.")}}),[y]),(0,c.useEffect)((function(){S&&y&&!y.isDestroyed&&(C.current?C.current=!1:y.view.dispatch(y.state.tr.setMeta(v,{type:"updateOptions",options:x.current})))}),[S,y,i,o,l,d,a,u,v]),(0,Gi.createPortal)(f,m.current)})),WD=(c.forwardRef((function(e,t){var n=e.pluginKey,r=e.editor,i=e.updateDelay,o=e.resizeDelay,a=e.appendTo,s=e.shouldShow,l=void 0===s?null:s,u=e.options,d=e.children,f=(0,en.Z)(e,CD),h=(0,c.useRef)(document.createElement("div")),m=(0,c.useRef)(_D(n,"floatingMenu")).current;UD(h.current,f),"function"===typeof t?t(h.current):t&&(t.current=h.current);var v=sj().editor,g=r||v,y={updateDelay:i,resizeDelay:o,appendTo:a,pluginKey:m,shouldShow:l,options:u},b=(0,c.useRef)(y);b.current=y;var x=(0,c.useState)(!1),w=(0,p.Z)(x,2),k=w[0],S=w[1],j=(0,c.useRef)(!0);return(0,c.useEffect)((function(){if(!(null==g?void 0:g.isDestroyed)){if(g){var e=h.current;e.style.visibility="hidden",e.style.position="absolute";var t=SD((0,A.Z)((0,A.Z)({},b.current),{},{editor:g,element:e}));g.registerPlugin(t);var n=b.current.pluginKey;return j.current=!0,S(!0),function(){S(!1),g.unregisterPlugin(n),window.requestAnimationFrame((function(){e.parentNode&&e.parentNode.removeChild(e)}))}}console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.")}}),[g]),(0,c.useEffect)((function(){k&&g&&!g.isDestroyed&&(j.current?j.current=!1:g.view.dispatch(g.state.tr.setMeta(m,{type:"updateOptions",options:b.current})))}),[k,g,i,o,l,u,a,m]),(0,Gi.createPortal)(d,h.current)})),{});function qD(e,t){"string"!==typeof t&&(t=qD.defaultChars);var n=function(e){var t=WD[e];if(t)return t;t=WD[e]=[];for(var n=0;n<128;n++){var r=String.fromCharCode(n);t.push(r)}for(var i=0;i<e.length;i++){var o=e.charCodeAt(i);t[o]="%"+("0"+o.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,(function(e){for(var t="",r=0,i=e.length;r<i;r+=3){var o=parseInt(e.slice(r+1,r+3),16);if(o<128)t+=n[o];else{if(192===(224&o)&&r+3<i){var a=parseInt(e.slice(r+4,r+6),16);if(128===(192&a)){var s=o<<6&1984|63&a;t+=s<128?"\ufffd\ufffd":String.fromCharCode(s),r+=3;continue}}if(224===(240&o)&&r+6<i){var l=parseInt(e.slice(r+4,r+6),16),c=parseInt(e.slice(r+7,r+9),16);if(128===(192&l)&&128===(192&c)){var u=o<<12&61440|l<<6&4032|63&c;t+=u<2048||u>=55296&&u<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(u),r+=6;continue}}if(240===(248&o)&&r+9<i){var d=parseInt(e.slice(r+4,r+6),16),f=parseInt(e.slice(r+7,r+9),16),p=parseInt(e.slice(r+10,r+12),16);if(128===(192&d)&&128===(192&f)&&128===(192&p)){var h=o<<18&1835008|d<<12&258048|f<<6&4032|63&p;h<65536||h>1114111?t+="\ufffd\ufffd\ufffd\ufffd":(h-=65536,t+=String.fromCharCode(55296+(h>>10),56320+(1023&h))),r+=9;continue}}t+="\ufffd"}}return t}))}qD.defaultChars=";/?:@&=+$,#",qD.componentChars="";var VD=qD,GD={};function $D(e,t,n){"string"!==typeof t&&(n=t,t=$D.defaultChars),"undefined"===typeof n&&(n=!0);for(var r=function(e){var t=GD[e];if(t)return t;t=GD[e]=[];for(var n=0;n<128;n++){var r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(var i=0;i<e.length;i++)t[e.charCodeAt(i)]=e[i];return t}(t),i="",o=0,a=e.length;o<a;o++){var s=e.charCodeAt(o);if(n&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))i+=e.slice(o,o+3),o+=2;else if(s<128)i+=r[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){var l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD"}else i+=encodeURIComponent(e[o])}return i}$D.defaultChars=";/?:@&=+$,-_.!~*'()#",$D.componentChars="-_.!~*'()";var JD=$D;function KD(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}function YD(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var XD=/^([a-z0-9.+-]+:)/i,QD=/:[0-9]*$/,eT=/^(\/\/?(?!\/)[^\?\s]
2*)(\?[^\s]*)?$/,tT=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),nT=["'"].concat(tT),rT=["%","/","?",";","#"].concat(nT),iT=["/","?","#"],oT=/^[+a-z0-9A-Z_-]{0,63}$/,aT=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,sT={javascript:!0,"javascript:":!0},lT={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};YD.prototype.parse=function(e,t){var n,r,i,o=e;if(o=o.trim(),!t&&1===e.split("#").length){var a=eT.exec(o);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}var s=XD.exec(o);if(s&&(n=(s=s[0]).toLowerCase(),this.protocol=s,o=o.substr(s.length)),(t||s||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(i="//"===o.substr(0,2))||s&&sT[s]||(o=o.substr(2),this.slashes=!0)),!sT[s]&&(i||s&&!lT[s])){for(var l,c,u=-1,d=0;d<iT.length;d++)-1!==(r=o.indexOf(iT[d]))&&(-1===u||r<u)&&(u=r);-1!==(c=-1===u?o.lastIndexOf("@"):o.lastIndexOf("@",u))&&(l=o.slice(0,c),o=o.slice(c+1),this.auth=l),u=-1;for(var f=0;f<rT.length;f++)-1!==(r=o.indexOf(rT[f]))&&(-1===u||r<u)&&(u=r);-1===u&&(u=o.length),":"===o[u-1]&&u--;var p=o.slice(0,u);o=o.slice(u),this.parseHost(p),this.hostname=this.hostname||"";var h="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!h)for(var m=this.hostname.split(/\./),v=0,g=m.length;v<g;v++){var y=m[v];if(y&&!y.match(oT)){for(var b="",x=0,w=y.length;x<w;x++)y.charCodeAt(x)>127?b+="x":b+=y[x];if(!b.match(oT)){var k=m.slice(0,v),S=m.slice(v+1),j=y.match(aT);j&&(k.push(j[1]),S.unshift(j[2])),S.length&&(o=S.join(".")+o),this.hostname=k.join(".");break}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var C=o.indexOf("#");-1!==C&&(this.hash=o.substr(C),o=o.slice(0,C));var _=o.indexOf("?");return-1!==_&&(this.search=o.substr(_),o=o.slice(0,_)),o&&(this.pathname=o),lT[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},YD.prototype.parseHost=function(e){var t=QD.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var cT,uT,dT=function(e,t){if(e&&e instanceof YD)return e;var n=new YD;return n.parse(e,t),n},fT=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,pT=/[\$\+<->
2\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,hT=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,mT=/[\0-\x1F\x7F-\x9F]/,vT=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,gT=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,yT
vendor: 13,327 bytes, line 2
2=new Uint16Array('\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;
vendor: 34,219 bytes, line 2
2\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c
2'.split("").map((function(e){return e.charCodeAt(0)}))),bT=new Uint16Array("\u0200aglq\t\x15\x18\x1b\u026d\x0f\0\0\x12p;\u4026os;\u4027t;\u403et;\u403cuot;\u4022".split("").map((function(e){return e.charCodeAt(0)}))),xT=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),wT=null!==(cT=String.fromCodePoint)&&void 0!==cT?cT:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function kT(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=xT.get(e))&&void 0!==t?t:e}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(uT||(uT={}));var ST,jT,CT;function _T(e){return e>=uT.ZERO&&e<=uT.NINE}function ET(e){return e>=uT.UPPER_A&&e<=uT.UPPER_F||e>=uT.LOWER_A&&e<=uT.LOWER_F}function NT(e){return e===uT.EQUALS||function(e){return e>=uT.UPPER_A&&e<=uT.UPPER_Z||e>=uT.LOWER_A&&e<=uT.LOWER_Z||_T(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(ST||(ST={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(jT||(jT={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(CT||(CT={}));var AT=function(){function e(t,n,r){(0,ha.Z)(this,e),this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=jT.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=CT.Strict}return(0,ma.Z)(e,[{key:"startEntity",value:function(e){this.decodeMode=e,this.state=jT.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}},{key:"write",value:function(e,t){switch(this.state){case jT.EntityStart:return e.charCodeAt(t)===uT.NUM?(this.state=jT.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=jT.NamedEntity,this.stateNamedEntity(e,t));case jT.NumericStart:return this.stateNumericStart(e,t);case jT.NumericDecimal:return this.stateNumericDecimal(e,t);case jT.NumericHex:return this.stateNumericHex(e,t);case jT.NamedEntity:return this.stateNamedEntity(e,t)}}},{key:"stateNumericStart",value:function(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===uT.LOWER_X?(this.state=jT.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=jT.NumericDecimal,this.stateNumericDecimal(e,t))}},{key:"addToNumericResult",value:function(e,t,n,r){if(t!==n){var i=n-t;
2this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}},{key:"stateNumericHex",value:function(e,t){for(var n=t;t<e.length;){var r=e.charCodeAt(t);if(!_T(r)&&!ET(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}},{key:"stateNumericDecimal",value:function(e,t){for(var n=t;t<e.length;){var r=e.charCodeAt(t);if(!_T(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}},{key:"emitNumericEntity",value:function(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===uT.SEMI)this.consumed+=1;else if(this.decodeMode===CT.Strict)return 0;return this.emitCodePoint(kT(this.result),this.consumed),this.errors&&(e!==uT.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}},{key:"stateNamedEntity",value:function(e,t){for(var n=this.decodeTree,r=n[this.treeIndex],i=(r&ST.VALUE_LENGTH)>>14;t<e.length;t++,this.excess++){var o=e.charCodeAt(t);if(this.treeIndex=TT(n,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return 0===this.result||this.decodeMode===CT.Attribute&&(0===i||NT(o))?0:this.emitNotTerminatedNamedEntity();if(0!==(i=((r=n[this.treeIndex])&ST.VALUE_LENGTH)>>14)){if(o===uT.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==CT.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}},{key:"emitNotTerminatedNamedEntity",value:function(){var e,t=this.result,n=(this.decodeTree[t]&ST.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}},{key:"emitNamedEntityData",value:function(e,t,n){var r=this.decodeTree;return this.emitCodePoint(1===t?r[e]&~ST.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}},{key:"end",value:function(){var e;switch(this.state){case jT.NamedEntity:return 0===this.result||this.decodeMode===CT.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case jT.NumericDecimal:return this.emitNumericEntity(0,2);case jT.NumericHex:return this.emitNumericEntity(0,3);case jT.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case jT.EntityStart:return 0}}}]),e}();function DT(e){var t="",n=new AT(e,(function(e){return t+=wT(e)}));return function(e,r){for(var i=0,o=0;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);var a=n.write(e,o+1);if(a<0){i=o+n.end();break}i=o+a,o=0===a?i+1:i}var s=t+e.slice(i);return t="",s}}function TT(e,t,n,r){var i=(t&ST.BRANCH_LENGTH)>>7,o=t&ST.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){var a=r-o;return a<0||a>=i?-1:e[n+a]-1}for(var s=n,l=s+i-1;s<=l;){var c=s+l>>>1,u=e[c];if(u<r)s=c+1;else{if(!(u>r))return e[c+i];l=c-1}}return-1}var IT=DT(yT);DT(bT);function PT(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}new Map(PT
vendor: 10,610 bytes, line 2
2([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(
2PT([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(PT([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;
2"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(PT([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var FT=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);String.prototype.codePointAt;function OT(e,t){return function(n){for(var r,i=0,o="";r=e.exec(n);
2)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}var MT,ZT;OT(/[&<>'"]/g,FT),OT(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),OT(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));function RT(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(MT||(MT={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(ZT||(ZT={}));var LT=Object.prototype.hasOwnProperty;function BT(e,t){return LT.call(e,t)}function zT(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!==typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function UT(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function HT(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function WT(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var qT=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,VT=new RegExp(qT.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),GT=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function $T(e,t){if(35===t.charCodeAt(0)&&GT.test(t)){var n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return HT(n)?WT(n):e}var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:CT.Legacy;return IT(e,t)}(e);return r!==e?r:e}function JT(e){return e.indexOf("\\")<0?e:e.replace(qT,"$1")}function KT(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(VT,(function(e,t,n){return t||$T(e,n)}))}var YT=/[&<>"]/,XT=/[&<>"]/g,QT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function eI(e){return QT[e]}function tI(e){return YT.test(e)?e.replace(XT,eI):e}var nI=/[.?*+^$[\]\\(){}|-]/g;function rI(e){return e.replace(nI,"\\$&")}function iI(e){switch(e){case 9:case 32:return!0}return!1}function oI(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function aI(e){return fT.test(e)||pT.test(e)}function sI(e){return aI(WT(e))}function lI(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function cI(e){return e=e.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(e=e.replace(/\u1e9e/g,"\xdf")),e.toLowerCase().toUpperCase()}function uI(e){return 32===e||9===e||10===e||13===e}function dI(e){for(var t=0;t<e.length&&uI(e.charCodeAt(t));t++);for(var n=e.length-1;n>=t&&uI(e.charCodeAt(n));n--);return e.slice(t,n+1)}var fI={mdurl:r,ucmicro:i};function pI(e,t,n){var r,i,o,a,s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}var c=-1;return i&&(c=e.pos),e.pos=l,c}function hI(e,t,n){var r,i=t,o={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<n;){if(10===(r=e.charCodeAt(i)))return o;if(60===r)return o;if(62===r)return o.pos=i+1,o.str=KT(e.slice(t+1,i)),o.ok=!0,o;92===r&&i+1<n?i+=2:i++}return o}for(var a=0;i<n&&32!==(r=e.charCodeAt(i))&&!(r<32||127===r);)if(92===r&&i+1<n){if(32===e.charCodeAt(i+1))break;i+=2}else{if(40===r&&++a>32)return o;if(41===r){if(0===a)break;a--}i++}return t===i||0!==a||(o.str=KT(e.slice(t,i)),o.pos=i,o.ok=!0),o}function mI(e,t,n,r){var i,o=t,a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;var s=e.charCodeAt(o);if(34!==s&&39!==s&&40!==s)return a;t++,o++,40===s&&(s=41),a.marker=s}for(;o<n;){if((i=e.charCodeAt(o))===a.marker)return a.pos=o+1,a.str+=KT(e.slice(t,o)),a.ok=!0,a;if(40===i&&41===a.marker)return a;92===i&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=KT(e.slice(t,o)),a}var vI={};function gI(){this.rules=zT({},vI)}vI.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+tI(o.content)+"</code>"},vI.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+tI(e[t].content)+"</code></pre>\n"},vI.fence=function(e,t,n,r,i){var o,a=e[t],s=a.info?KT(a.info).trim():"",l="",c="";if(s){var u=s.split(/(\s+)/g);l=u[0],c=u.slice(2).join("")}if(0===(o=n.highlight&&n.highlight(a.content,l,c)||tI(a.content)).indexOf("<pre"))return o+"\n";if(s){var d=a.attrIndex("class"),f=a.attrs?a.attrs.slice():[];d<0?f.push(["class",n.langPrefix+l]):(f[d]=f[d].slice(),f[d][1]+=" "+n.langPrefix+l);var p={attrs:f};return"<pre><code".concat(i.renderAttrs(p),">").concat(o,"</code></pre>\n")}return"<pre><code".concat(i.renderAttrs(a),">").concat(o,"</code></pre>\n")},vI.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},vI.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},vI.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},vI.text=function(e,t){return tI(e[t].content)},vI.html_block=function(e,t){return e[t].content},vI.html_inline=function(e,t){return e[t].content},gI.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+tI(e.attrs[t][0])+'="'+tI(e.attrs[t][1])+'"';return r},gI.prototype.renderToken=function(e,t,n){var r=e[t],i="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===r.nesting?"</":"<")+r.tag,i+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(i+=" /");var o=!1;if(r.block&&(o=!0,1===r.nesting&&t+1<e.length)){var a=e[t+1];("inline"===a.type||a.hidden||-1===a.nesting&&a.tag===r.tag)&&(o=!1)}return i+=o?">\n":">"},gI.prototype.renderInline=function(e,t,n){for(var r="",i=this.rules,o=0,a=e.length;o<a;o++){var s=e[o].type;"undefined"!==typeof i[s]?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r},gI.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":r+=e[i].c
2ontent;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},gI.prototype.render=function(e,t,n){for(var r="",i=this.rules,o=0,a=e.length;o<a;o++){var s=e[o].type;"inline"===s?r+=this.renderInline(e[o].children,t,n):"undefined"!==typeof i[s]?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r};var yI=gI;function bI(){this.__rules__=[],this.__cache__=null}bI.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},bI.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},bI.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},bI.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},bI.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},bI.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},bI.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},bI.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},bI.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},bI.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var xI=bI;function wI(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}wI.prototype.attrIndex=function(e){if(!this.attrs)return-1;for(var t=this.attrs,n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},wI.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},wI.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},wI.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},wI.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};var kI=wI;function SI(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}SI.prototype.Token=kI;var jI=SI,CI=/\r\n?|\n/g,_I=/\0/g;function EI(e){return/^<\/a\s*>/i.test(e)}var NI=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,AI=/\((c|tm|r)\)/i,DI=/\((c|tm|r)\)/gi,TI={c:"\xa9",r:"\xae",tm:"\u2122"};function II(e,t){return TI[t.toLowerCase()]}function PI(e){for(var t=0,n=e.length-1;n>=0;n--){var r=e[n];"text"!==r.type||t||(r.content=r.content.replace(DI,II)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function FI(e){for(var t=0,n=e.length-1;n>=0;n--){var r=e[n];"text"!==r.type||t||NI.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}var OI=/['"]/,MI=/['"]/g,ZI="\u2019";function RI(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function LI(e,t){for(var n,r=[],i={},o=0;o<e.length;o++){var a=e[o],s=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,"text"===a.type){var l=a.content,c=0,u=l.length;e:for(;c<u;){MI.lastIndex=c;var d=MI.exec(l);if(!d)break;var f=!0,p=!0;c=d.index+1;var h="'"===d[0],m=32;if(d.index-1>=0)m=l.charCodeAt(d.index-1);else for(n=o-1;n>=0&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);
2n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}var v=32;if(c<u)v=l.charCodeAt(c);else for(n=o+1;n<e.length&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n++)if(e[n].content){v=e[n].content.charCodeAt(0);break}var g=lI(m)||sI(m),y=lI(v)||sI(v),b=oI(m),x=oI(v);if(x?f=!1:y&&(b||g||(f=!1)),b?p=!1:g&&(x||y||(p=!1)),34===v&&'"'===d[0]&&m>=48&&m<=57&&(p=f=!1),f&&p&&(f=g,p=y),f||p){if(p)for(n=r.length-1;n>=0;n--){var w=r[n];if(r[n].level<s)break;if(w.single===h&&r[n].level===s){w=r[n];var k=void 0,S=void 0;h?(k=t.md.options.quotes[2],S=t.md.options.quotes[3]):(k=t.md.options.quotes[0],S=t.md.options.quotes[1]),RI(i,o,d.index,S),RI(i,w.token,w.pos,k),r.length=n;continue e}}f?r.push({token:o,pos:d.index,single:h,level:s}):p&&h&&RI(i,o,d.index,ZI)}else h&&RI(i,o,d.index,ZI)}}}Object.keys(i).forEach((function(t){e[t].content=function(e,t){var n="",r=0;t.sort((function(e,t){return e.pos-t.pos}));for(var i=0;i<t.length;i++){var o=t[i];n+=e.slice(r,o.pos)+o.ch,r=o.pos+1}return n+e.slice(r)}(e[t].content,i[t])}))}var BI=[["normalize",function(e){var t;t=(t=e.src.replace(CI,"\n")).replace(_I,"\ufffd"),e.src=t}],["block",function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){for(var t=e.tokens,n=0,r=t.length;n<r;n++){var i=t[n];"inline"===i.type&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}],["linkify",function(e){var t,n=e.tokens;if(e.md.options.linkify)for(var r=0,i=n.length;r<i;r++)if("inline"===n[r].type&&e.md.linkify.pretest(n[r].content))for(var o=n[r].children,a=0,s=o.length-1;s>=0;s--){var l=o[s];if("link_close"!==l.type){if("html_inline"===l.type&&(t=l.content,/^<a[>\s]/i.test(t)&&a>0&&a--,EI(l.content)&&a++),!(a>0)&&"text"===l.type&&e.md.linkify.test(l.content)){var c=l.content,u=e.md.linkify.match(c),d=[],f=l.level,p=0;u.length>0&&0===u[0].index&&s>0&&"text_special"===o[s-1].type&&(u=u.slice(1));for(var h=0;h<u.length;h++){var m=u[h].url,v=e.md.normalizeLink(m);if(e.md.validateLink(v)){var g=u[h].text;g=u[h].schema?"mailto:"!==u[h].schema||/^mailto:/i.test(g)?e.md.normalizeLinkText(g):e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,"");var y=u[h].index;if(y>p){var b=new e.Token("text","",0);b.content=c.slice(p,y),b.level=f,d.push(b)}var x=new e.Token("link_open","a",1);x.attrs=[["href",v]],x.level=f++,x.markup="linkify",x.info="auto",d.push(x);var w=new e.Token("text","",0);w.content=g,w.level=f,d.push(w);var k=new e.Token("link_close","a",-1);k.level=--f,k.markup="linkify",k.info="auto",d.push(k),p=u[h].lastIndex}}if(p<c.length){var S=new e.Token("text","",0);S.content=c.slice(p),S.level=f,d.push(S)}n[r].children=o=UT(o,s,d)}}else for(s--;o[s].level!==l.level&&"link_open"!==o[s].type;)s--}}],["replacements",function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(AI.test(e.tokens[t].content)&&PI(e.tokens[t].children),NI.test(e.tokens[t].content)&&FI(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(var t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&OI.test(e.tokens[t].content)&&LI(e.tokens[t].children,e)}],["text_join",function(e){for(var t,n,r=e.tokens,i=r.length,o=0;o<i;o++)if("inline"===r[o].type){var a=r[o].children,s=a.length;for(t=0;t<s;t++)"text_special"===a[t].type&&(a[t].type="text");for(t=n=0;t<s;t++)"text"===a[t].type&&t+1<s&&"text"===a[t+1].type?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}]];function zI(){this.ruler=new xI;for(var e=0;e<BI.length;e++)this.ruler.push(BI[e][0],BI[e][1])}zI.prototype.process=function(e){for(var t=this.ruler.getRules(""),n=0,r=t.length;n<r;n++)t[n](e)},zI.prototype.State=jI;var UI=zI;function HI(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;for(var i=this.src,o=0,a=0,s=0,l=0,c=i.length,u=!1;a<c;a++){var d=i.charCodeAt(a);if(!u){if(iI(d)){s++,9===d?l+=4-l%4:l++;continue}u=!0}10!==d&&a!==c-1||(10!==d&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),u=!1,s=0,l=0,o=a+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}HI.prototype.push=function(e,t,n){var r=new kI(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},HI.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},HI.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},HI.prototype.skipSpaces=function(e){for(var t=this.src.length;e<t;
2e++){if(!iI(this.src.charCodeAt(e)))break}return e},HI.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!iI(this.src.charCodeAt(--e)))return e+1;return e},HI.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},HI.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},HI.prototype.getLines=function(e,t,n,r){if(e>=t)return"";for(var i=new Array(t-e),o=0,a=e;a<t;a++,o++){var s=0,l=this.bMarks[a],c=l,u=void 0;for(u=a+1<t||r?this.eMarks[a]+1:this.eMarks[a];c<u&&s<n;){var d=this.src.charCodeAt(c);if(iI(d))9===d?s+=4-(s+this.bsCount[a])%4:s++;else{if(!(c-l<this.tShift[a]))break;s++}c++}i[o]=s>n?new Array(s-n+1).join(" ")+this.src.slice(c,u):this.src.slice(c,u)}return i.join("")},HI.prototype.Token=kI;var WI=HI;function qI(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function VI(e){for(var t=[],n=e.length,r=0,i=e.charCodeAt(r),o=!1,a=0,s="";r<n;)124===i&&(o?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),o=92===i,r++,i=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function GI(e,t){var n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);if(42!==i&&45!==i&&43!==i)return-1;if(r<n&&!iI(e.src.charCodeAt(r)))return-1;return r}function $I(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;var o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(!((o=e.src.charCodeAt(i++))>=48&&o<=57)){if(41===o||46===o)break;return-1}if(i-n>=10)return-1}return i<r&&!iI(o=e.src.charCodeAt(i))?-1:i}var JI="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",KI="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",YI=new RegExp("^(?:"+JI+"|"+KI+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),XI=new RegExp("^(?:"+JI+"|"+KI+")"),QI=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(XI.source+"\\s*$"),/^$/,!1]];var eP=[["table",function(e,t,n,r){if(t+2>n)return!1;var i=t+1;if(e.sCount[i]<e.blkIndent)return!1;if(e.sCount[i]-e.blkIndent>=4)return!1;var o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;var a=e.src.charCodeAt(o++);if(124!==a&&45!==a&&58!==a)return!1;if(o>=e.eMarks[i])return!1;var s=e.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s&&!iI(s))return!1;if(45===a&&iI(s))return!1;for(;o<e.eMarks[i];){var l=e.src.charCodeAt(o);if(124!==l&&45!==l&&58!==l&&!iI(l))return!1;o++}for(var c=qI(e,t+1),u=c.split("|"),d=[],f=0;f<u.length;f++){var p=u[f].trim();if(!p){if(0===f||f===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(p))return!1;
258===p.charCodeAt(p.length-1)?d.push(58===p.charCodeAt(0)?"center":"right"):58===p.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(c=qI(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;(u=VI(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();var h=u.length;if(0===h||h!==d.length)return!1;if(r)return!0;var m=e.parentType;e.parentType="table";var v,g=e.md.block.ruler.getRules("blockquote"),y=[t,0];e.push("table_open","table",1).map=y,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(var b=0;b<u.length;b++){var x=e.push("th_open","th",1);d[b]&&(x.attrs=[["style","text-align:"+d[b]]]);var w=e.push("inline","",0);w.content=u[b].trim(),w.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);var k=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){for(var S=!1,j=0,C=g.length;j<C;j++)if(g[j](e,i,n,!0)){S=!0;break}if(S)break;if(!(c=qI(e,i).trim()))break;if(e.sCount[i]-e.blkIndent>=4)break;if((u=VI(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),(k+=h-u.length)>65536)break;i===t+2&&(e.push("tbody_open","tbody",1).map=v=[t+2,0]),e.push("tr_open","tr",1).map=[i,i+1];for(var _=0;_<h;_++){var E=e.push("td_open","td",1);d[_]&&(E.attrs=[["style","text-align:"+d[_]]]);var N=e.push("inline","",0);N.content=u[_]?u[_].trim():"",N.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return v&&(e.push("tbody_close","tbody",-1),v[1]=i),e.push("table_close","table",-1),y[1]=i,e.parentType=m,e.line=i,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;for(var r=t+1,i=r;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}e.line=i;var o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){var i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(i+3>o)return!1;var a=e.src.charCodeAt(i);if(126!==a&&96!==a)return!1;var s=i,l=(i=e.skipChars(i,a))-s;if(l<3)return!1;var c=e.src.slice(s,i),u=e.src.slice(i,o);if(96===a&&u.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;for(var d=t,f=!1;!(++d>=n)&&!((i=s=e.bMarks[d]+e.tShift[d])<(o=e.eMarks[d])&&e.sCount[d]<e.blkIndent);)if(e.src.charCodeAt(i)===a&&!(e.sCount[d]-e.blkIndent>=4)&&!((i=e.skipChars(i,a))-s<l)&&!((i=e.skipSpaces(i))<o)){f=!0;break}l=e.sCount[t],e.line=d+(f?1:0);var p=e.push("fence","code",0);return p.info=u,p.content=e.getLines(t+1,d,l,!0),p.markup=c,p.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){var i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(i))return!1;if(r)return!0;var s=[],l=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";var p,h=!1;for(p=t;p<n;p++){var m=e.sCount[p]<e.blkIndent;if((i=e.bMarks[p]+e.tShift[p])>=(o=e.eMarks[p]))break;if(62!==e.src.charCodeAt(i++)||m){if(h)break;for(var v=!1,g=0,y=d.length;g<y;g++)if(d[g](e,p,n,!0)){v=!0;break}if(v){e.lineMax=p,0!==e.blkIndent&&(s.push(e.bMarks[p]),l.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),l.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}else{var b=e.sCount[p]+1,x=void 0,w=void 0;32===e.src.charCodeAt(i)?(i++,b++,w=!1,x=!0):9===e.src.charCodeAt(i)?(x=!0,(e.bsCount[p]+b)%4===3?(i++,b++,w=!1):w=!0):x=!1;var k=b;for(s.push(e.bMarks[p]),e.bMarks[p]=i;i<o;){var S=e.src.charCodeAt(i);if(!iI(S))break;9===S?k+=4-(k+e.bsCount[p]+(w?1:0))%4:k++,i++}h=i>=o,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(x?1:0),c.push(e.sCount[p]),e.sCount[p]=k-b,u.push(e.tShift[p]),e.tShift[p]=i-e.bMarks[p]}}var j=e.blkIndent;e.blkIndent=0;var C=e.push("blockquote_open","blockquote",1);C.markup=">";var _=[t,0];C.map=_,e.md.block.tokenize(e,t,p),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=a,e.parentType=f,_[1]=e.line;for(var E=0;E<u.length;
2E++)e.bMarks[E+t]=s[E],e.tShift[E+t]=u[E],e.sCount[E+t]=c[E],e.bsCount[E+t]=l[E];return e.blkIndent=j,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){var i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;var o=e.bMarks[t]+e.tShift[t],a=e.src.charCodeAt(o++);if(42!==a&&45!==a&&95!==a)return!1;for(var s=1;o<i;){var l=e.src.charCodeAt(o++);if(l!==a&&!iI(l))return!1;l===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;var c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(a)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){var i,o,a,s,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;var u,d,f,p=!1;if(r&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(p=!0),(f=$I(e,l))>=0){if(u=!0,a=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(a,f-1)),p&&1!==d)return!1}else{if(!((f=GI(e,l))>=0))return!1;u=!1}if(p&&e.skipSpaces(f)>=e.eMarks[l])return!1;if(r)return!0;var h=e.src.charCodeAt(f-1),m=e.tokens.length;u?(s=e.push("ordered_list_open","ol",1),1!==d&&(s.attrs=[["start",d]])):s=e.push("bullet_list_open","ul",1);var v=[l,0];s.map=v,s.markup=String.fromCharCode(h);var g=!1,y=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l<n;){o=f,i=e.eMarks[l];for(var x=e.sCount[l]+f-(e.bMarks[l]+e.tShift[l]),w=x;o<i;){var k=e.src.charCodeAt(o);if(9===k)w+=4-(w+e.bsCount[l])%4;else{if(32!==k)break;w++}o++}var S=o,j=void 0;(j=S>=i?1:w-x)>4&&(j=1);var C=x+j;(s=e.push("list_item_open","li",1)).markup=String.fromCharCode(h);var _=[l,0];s.map=_,u&&(s.info=e.src.slice(a,f-1));var E=e.tight,N=e.tShift[l],A=e.sCount[l],D=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=C,e.tight=!0,e.tShift[l]=S-e.bMarks[l],e.sCount[l]=w,S>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!g||(c=!1),g=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=D,e.tShift[l]=N,e.sCount[l]=A,e.tight=E,(s=e.push("list_item_close","li",-1)).markup=String.fromCharCode(h),l=e.line,_[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;for(var T=!1,I=0,P=y.length;I<P;I++)if(y[I](e,l,n,!0)){T=!0;break}if(T)break;if(u){if((f=$I(e,l))<0)break;a=e.bMarks[l]+e.tShift[l]}else if((f=GI(e,l))<0)break;if(h!==e.src.charCodeAt(f-1))break}return(s=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(h),v[1]=l,e.line=l,e.parentType=b,c&&function(e,t){for(var n=e.level+2,r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){var i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(i))return!1;function s(t){var n=e.lineMax;if(t>=n||e.isEmpty(t))return null;var r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){var i=e.md.block.ruler.getRules("reference"),o=e.parentType;e.parentType="reference";for(var a=!1,s=0,l=i.length;s<l;s++)if(i[s](e,t,n,!0)){a=!0;break}if(e.parentType=o,a)return null}var c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(c,u+1)}var l=e.src.slice(i,o+1);o=l.length;var c=-1;for(i=1;i<o;i++){var u=l.charCodeAt(i);if(91===u)return!1;if(93===u){c=i;break}if(10===u){var d=s(a);null!==d&&(o=(l+=d).length,a++)}else if(92===u&&++i<o&&10===l.charCodeAt(i)){var f=s(a);null!==f&&(o=(l+=f).length,a++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(i=c+2;i<o;i++){var p=l.charCodeAt(i);if(10===p){var h=s(a);null!==h&&(o=(l+=h).length,a++)}else if(!iI(p))break}var m=e.md.helpers.parseLinkDestination(l,i,o);if(!m.ok)return!1;var v=e.md.normalizeLink(m.str);if(!e.md.validateLink(v))return!1;for(var g=i=m.pos,y=a,b=i;i<o;i++){var x=l.charCodeAt(i);if(10===x){var w=s(a);null!==w&&(o=(l+=w).length,a++)}else if(!iI(x))break}for(var k,S=e.md.helpers.parseLinkTitle(l,i,o);S.can_continue;){var j=s(a);if(null===j)break;i=o,o=(l+=j).length,a++,S=e.md.helpers.parseLinkTitle(l,i,o,S)}for(i<o&&b!==i&&S.ok?(k=S.str,i=S.pos):(k="",i=g,a=y);i<o;){if(!iI(l.charCodeAt(i)))break;i++}if(i<o&&10!==l.charCodeAt(i)&&k)for(k="",i=g,a=y;i<o;){if(!iI(l.charCodeAt(i)))break;i++}if(i<o&&10!==l.charCodeAt(i))return!1;var C=cI(l.slice(1,c));return!!C&&(r||("undefined"===typeof e.env.references&&(e.env.references={}),"undefined"===typeof e.env.references[C]&&(e.env.references[C]={title:k,href:v}),e.line=a),!0)}],["html_block",function(e,t,n,r){var i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;
2if(60!==e.src.charCodeAt(i))return!1;for(var a=e.src.slice(i,o),s=0;s<QI.length&&!QI[s][0].test(a);s++);if(s===QI.length)return!1;if(r)return QI[s][2];var l=t+1,c=QI[s][1].test("");if(!QI[s][1].test(a))for(;l<n&&(!(e.sCount[l]<e.blkIndent)||!c&&e.isEmpty(l));l++)if(i=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],a=e.src.slice(i,o),QI[s][1].test(a)){0!==a.length&&l++;break}e.line=l;var u=e.push("html_block","",0);return u.map=[t,l],u.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){var i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;var a=e.src.charCodeAt(i);if(35!==a||i>=o)return!1;var s=1;for(a=e.src.charCodeAt(++i);35===a&&i<o&&s<=6;)s++,a=e.src.charCodeAt(++i);if(s>6||i<o&&!iI(a))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);var l=e.skipCharsBack(o,35,i);l>i&&iI(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;var c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];var u=e.push("inline","",0);return u.content=dI(e.src.slice(i,o)),u.map=[t,e.line],u.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){var r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;var i=e.parentType;e.parentType="paragraph";for(var o,a=0,s=t+1;s<n&&!e.isEmpty(s);s++)if(!(e.sCount[s]-e.blkIndent>3)){if(e.sCount[s]>=e.blkIndent){var l=e.bMarks[s]+e.tShift[s],c=e.eMarks[s];if(l<c&&(45===(o=e.src.charCodeAt(l))||61===o)&&(l=e.skipChars(l,o),(l=e.skipSpaces(l))>=c)){a=61===o?1:2;break}}if(!(e.sCount[s]<0)){for(var u=!1,d=0,f=r.length;d<f;d++)if(r[d](e,s,n,!0)){u=!0;break}if(u)break}}if(!a)return e.parentType=i,!1;var p=dI(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;var h=e.push("heading_open","h"+String(a),1);h.markup=String.fromCharCode(o),h.map=[t,e.line];var m=e.push("inline","",0);return m.content=p,m.map=[t,e.line-1],m.children=[],e.push("heading_close","h"+String(a),-1).markup=String.fromCharCode(o),e.parentType=i,!0}],["paragraph",function(e,t,n){var r=e.md.block.ruler.getRules("paragraph"),i=e.parentType,o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++)if(!(e.sCount[o]-e.blkIndent>3)&&!(e.sCount[o]<0)){for(var a=!1,s=0,l=r.length;s<l;s++)if(r[s](e,o,n,!0)){a=!0;break}if(a)break}var c=dI(e.getLines(t,o,e.blkIndent,!1));e.line=o,e.push("paragraph_open","p",1).map=[t,e.line];var u=e.push("inline","",0);return u.content=c,u.map=[t,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function tP(){this.ruler=new xI;for(var e=0;e<eP.length;e++)this.ruler.push(eP[e][0],eP[e][1],{alt:(eP[e][2]||[]).slice()})}tP.prototype.tokenize=function(e,t,n){for(var r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting,a=t,s=!1;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=o){e.line=n;break}for(var l=e.line,c=!1,u=0;u<i;u++)if(c=r[u](e,a,n,!1)){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},tP.prototype.parse=function(e,t,n,r){if(e){var i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)}},tP.prototype.State=WI;var nP=tP;function rP(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}rP.prototype.pushPending=function(){var e=new kI("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},rP.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new kI(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},rP.prototype.scanDelims=function(e,t){var n,r=this.posMax,i=this.src.charCo
2deAt(e);if(0===e)n=32;else if(1===e)55296===(63488&(n=this.src.charCodeAt(0)))&&(n=65533);else if(56320===(64512&(n=this.src.charCodeAt(e-1)))){var o=this.src.charCodeAt(e-2);n=55296===(64512&o)?65536+(o-55296<<10)+(n-56320):65533}else 55296===(64512&n)&&(n=65533);for(var a=e;a<r&&this.src.charCodeAt(a)===i;)a++;var s=a-e,l=a<r?this.src.charCodeAt(a):32;if(55296===(64512&l)){var c=this.src.charCodeAt(a+1);l=56320===(64512&c)?65536+(l-55296<<10)+(c-56320):65533}else 56320===(64512&l)&&(l=65533);var u=lI(n)||sI(n),d=lI(l)||sI(l),f=oI(n),p=oI(l),h=!p&&(!d||f||u),m=!f&&(!u||p||d);return{can_open:h&&(t||!m||u),can_close:m&&(t||!h||d),length:s}},rP.prototype.Token=kI;var iP=rP;function oP(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var aP=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;for(var sP=[],lP=0;lP<256;lP++)sP.push(0);function cP(e,t){for(var n,r=[],i=t.length,o=0;o<i;o++){var a=t[o];if(126===a.marker&&-1!==a.end){var s=t[a.end];(n=e.tokens[a.token]).type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",(n=e.tokens[s.token]).type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[s.token-1].type&&"~"===e.tokens[s.token-1].content&&r.push(s.token-1)}}for(;r.length;){for(var l=r.pop(),c=l+1;c<e.tokens.length&&"s_close"===e.tokens[c].type;)c++;l!==--c&&(n=e.tokens[c],e.tokens[c]=e.tokens[l],e.tokens[l]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){sP[e.charCodeAt(0)]=1}));var uP={tokenize:function(e,t){var n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;var i=e.scanDelims(e.pos,!0),o=i.length,a=String.fromCharCode(r);if(o<2)return!1;o%2&&(e.push("text","",0).content=a,o--);for(var s=0;s<o;s+=2)e.push("text","",0).content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},postProcess:function(e){var t=e.tokens_meta,n=e.tokens_meta.length;cP(e,e.delimiters);for(var r=0;r<n;r++)t[r]&&t[r].delimiters&&cP(e,t[r].delimiters)}};function dP(e,t){for(var n=t.length-1;n>=0;n--){var r=t[n];if((95===r.marker||42===r.marker)&&-1!==r.end){var i=t[r.end],o=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=o?"strong_open":"em_open",s.tag=o?"strong":"em",s.nesting=1,s.markup=o?a+a:a,s.content="";var l=e.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?a+a:a,l.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}}var fP={tokenize:function(e,t){var n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;for(var i=e.scanDelims(e.pos,42===r),o=0;o<i.length;o++){e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0},postProcess:function(e){var t=e.tokens_meta,n=e.tokens_meta.length;dP(e,e.delimiters);for(var r=0;r<n;r++)t[r]&&t[r].delimiters&&dP(e,t[r].delimiters)}};var pP=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,hP=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;var mP=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,vP=/^&([a-z][a-z0-9]{1,31});/i;function gP(e){var t={},n=e.length;if(n)for(var r=0,i=-2,o=[],a=0;a<n;a++){var s=e[a];if(o.push(0),e[r].marker===s.marker&&i===s.token-1||(r=a),i=s.token,s.length=s.length||0,s.close){t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);for(var l=t[s.marker][(s.open?3:0)+s.length%3],c=r-o[r]-1,u=c;c>l;c-=o[c]+1){var d=e[c];if(d.marker===s.marker&&(d.open&&d.end<0)){var f=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3===0&&s.length%3===0||(f=!0)),!f){var p=c>0&&!e[c-1].open?o[c-1]+1:0;o[a]=a-c+p,o[c]=p,s.open=!1,d.end=a,d.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=u)}}}var yP=[["text",function(e,t){for(var n=e.pos;
2n<e.posMax&&!oP(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;var n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;var r=e.pending.match(aP);if(!r)return!1;var i=r[1],o=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!o)return!1;var a=o.url;if(a.length<=i.length)return!1;for(var s=a.length;s>0&&42===a.charCodeAt(s-1);)s--;s!==a.length&&(a=a.slice(0,s));var l=e.md.normalizeLink(a);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);var c=e.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);var u=e.push("link_close","a",-1);u.markup="linkify",u.info="auto"}return e.pos+=a.length-i.length,!0}],["newline",function(e,t){var n=e.pos;if(10!==e.src.charCodeAt(n))return!1;var r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){for(var o=r-1;o>=1&&32===e.pending.charCodeAt(o-1);)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<i&&iI(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){var n=e.pos,r=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(++n>=r)return!1;var i=e.src.charCodeAt(n);if(10===i){for(t||e.push("hardbreak","br",0),n++;n<r&&iI(i=e.src.charCodeAt(n));)n++;return e.pos=n,!0}var o=e.src[n];if(i>=55296&&i<=56319&&n+1<r){var a=e.src.charCodeAt(n+1);a>=56320&&a<=57343&&(o+=e.src[n+1],n++)}var s="\\"+o;if(!t){var l=e.push("text_special","",0);i<256&&0!==sP[i]?l.content=o:l.content=s,l.markup=s,l.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){var n=e.pos;if(96!==e.src.charCodeAt(n))return!1;var r=n;n++;for(var i=e.posMax;n<i&&96===e.src.charCodeAt(n);)n++;var o=e.src.slice(r,n),a=o.length;if(e.backticksScanned&&(e.backticks[a]||0)<=r)return t||(e.pending+=o),e.pos+=a,!0;for(var s,l=n;-1!==(s=e.src.indexOf("`",l));){for(l=s+1;l<i&&96===e.src.charCodeAt(l);)l++;var c=l-s;if(c===a){if(!t){var u=e.push("code_inline","code",0);u.markup=o,u.content=e.src.slice(n,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[c]=s}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=a,!0}],["strikethrough",uP.tokenize],["emphasis",fP.tokenize],["link",function(e,t){var n,r,i,o,a="",s="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;var u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;var h=p+1;if(h<d&&40===e.src.charCodeAt(h)){for(c=!1,h++;h<d&&(iI(n=e.src.charCodeAt(h))||10===n);h++);if(h>=d)return!1;if(l=h,(i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax)).ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?h=i.pos:a="",l=h;h<d&&(iI(n=e.src.charCodeAt(h))||10===n);h++);if(i=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<d&&l!==h&&i.ok)for(s=i.str,h=i.pos;h<d&&(iI(n=e.src.charCodeAt(h))||10===n);h++);}(h>=d||41!==e.src.charCodeAt(h))&&(c=!0),h++}if(c){if("undefined"===typeof e.env.references)return!1;if(h<d&&91===e.src.charCodeAt(h)?(l=h+1,(h=e.md.helpers.parseLinkLabel(e,h))>=0?r=e.src.slice(l,h++):h=p+1):h=p+1,r||(r=e.src.slice(f,p)),!(o=e.env.references[cI(r)]))return e.pos=u,!1;a=o.href,s=o.title}if(!t){e.pos=f,e.posMax=p;var m=[["href",a]];e.push("link_open","a",1).attrs=m,s&&m.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=d,!0}],["image",function(e,t){var n,r,i,o,a,s,l,c,u="",d=e.pos,f=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;var p=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if((o=h+1)<f&&40===e.src.charCodeAt(o)){for(o++;o<f&&(iI(n=e.src.charCodeAt(o))||10===n);o++);if(o>=f)return!1;for(c=o,(s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax)).ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?o=s.pos:u=""),c=o;
2o<f&&(iI(n=e.src.charCodeAt(o))||10===n);o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<f&&c!==o&&s.ok)for(l=s.str,o=s.pos;o<f&&(iI(n=e.src.charCodeAt(o))||10===n);o++);else l="";if(o>=f||41!==e.src.charCodeAt(o))return e.pos=d,!1;o++}else{if("undefined"===typeof e.env.references)return!1;if(o<f&&91===e.src.charCodeAt(o)?(c=o+1,(o=e.md.helpers.parseLinkLabel(e,o))>=0?i=e.src.slice(c,o++):o=h+1):o=h+1,i||(i=e.src.slice(p,h)),!(a=e.env.references[cI(i)]))return e.pos=d,!1;u=a.href,l=a.title}if(!t){r=e.src.slice(p,h);var m=[];e.md.inline.parse(r,e.md,e.env,m);var v=e.push("image","img",0),g=[["src",u],["alt",""]];v.attrs=g,v.children=m,v.content=r,l&&g.push(["title",l])}return e.pos=o,e.posMax=f,!0}],["autolink",function(e,t){var n=e.pos;if(60!==e.src.charCodeAt(n))return!1;for(var r=e.pos,i=e.posMax;;){if(++n>=i)return!1;var o=e.src.charCodeAt(n);if(60===o)return!1;if(62===o)break}var a=e.src.slice(r+1,n);if(hP.test(a)){var s=e.md.normalizeLink(a);if(!e.md.validateLink(s))return!1;if(!t){var l=e.push("link_open","a",1);l.attrs=[["href",s]],l.markup="autolink",l.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);var c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=a.length+2,!0}if(pP.test(a)){var u=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(u))return!1;if(!t){var d=e.push("link_open","a",1);d.attrs=[["href",u]],d.markup="autolink",d.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);var f=e.push("link_close","a",-1);f.markup="autolink",f.info="auto"}return e.pos+=a.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;var n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;var i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!function(e){var t=32|e;return t>=97&&t<=122}(i))return!1;var o,a=e.src.slice(r).match(YI);if(!a)return!1;if(!t){var s=e.push("html_inline","",0);s.content=a[0],o=s.content,/^<a[>\s]/i.test(o)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(s.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}],["entity",function(e,t){var n,r=e.pos,i=e.posMax;if(38!==e.src.charCodeAt(r))return!1;if(r+1>=i)return!1;if(35===e.src.charCodeAt(r+1)){var o=e.src.slice(r).match(mP);if(o){if(!t){var a="x"===o[1][0].toLowerCase()?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=HT(a)?WT(a):WT(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{var l=e.src.slice(r).match(vP);if(l){var c=(n=l[0],IT(n,CT.Strict));if(c!==l[0]){if(!t){var u=e.push("text_special","",0);u.content=c,u.markup=l[0],u.info="entity"}return e.pos+=l[0].length,!0}}}return!1}]],bP=[["balance_pairs",function(e){var t=e.tokens_meta,n=e.tokens_meta.length;gP(e.delimiters);for(var r=0;r<n;r++)t[r]&&t[r].delimiters&&gP(t[r].delimiters)}],["strikethrough",uP.postProcess],["emphasis",fP.postProcess],["fragments_join",function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}]];function xP(){this.ruler=new xI;for(var e=0;e<yP.length;e++)this.ruler.push(yP[e][0],yP[e][1]);this.ruler2=new xI;for(var t=0;t<bP.length;t++)this.ruler2.push(bP[t][0],bP[t][1])}xP.prototype.skipToken=function(e){var t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,o=e.cache;if("undefined"===typeof o[t]){var a=!1;if(e.level<i){for(var s=0;s<r;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos}else e.pos=o[t]},xP.prototype.tokenize=function(e){for(var t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;e.pos<r;){var o=e.pos,a=!1;if(e.level<i)for(var s=0;s<n;s++)if(a=t[s](e,!1)){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},xP.prototype.parse=function(e,t,n,r){var i=new this.State(e,t,n,r);this.tokenize(i);for(var o=this.ruler2.getRules(""),a=o.length,s=0;s<a;s++)o[s](i)},xP.prototype.State=iP;var wP=xP;
2function kP(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function SP(e){return Object.prototype.toString.call(e)}function jP(e){return"[object Function]"===SP(e)}function CP(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var _P={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var EP={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},NP="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",AP="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function DP(e){var t=e.re=function(e){var t={};e=e||{},t.src_Any=hT.source,t.src_Cc=mT.source,t.src_Z=gT.source,t.src_P=fT.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><\uff5c]";return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:
2/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(NP),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===SP(n))return!function(e){return"[object RegExp]"===SP(e)}(n.validate)?jP(n.validate)?r.validate=n.validate:o(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(jP(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===SP(e)}(n)?o(t,n):i.push(t)}})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(CP).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i")}function TP(e,t,n,r){var i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function IP(e,t){if(!(this instanceof IP))return new IP(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||_P.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=kP({},_P,t),this.__schemas__=kP({},EP,e),this.__compiled__={},this.__tlds__=AP,this.__tlds_replaced__=!1,this.re={},DP(this)}IP.prototype.add=function(e,t){return this.__schemas__[e]=t,DP(this),this},IP.prototype.set=function(e){return this.__opts__=kP(this.__opts__,e),this},IP.prototype.test=function(e){if(!e.length)return!1;var t,n;if(this.re.schema_test.test(e))for((n=this.re.schema_search).lastIndex=0;null!==(t=n.exec(e));)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&e.search(this.re.host_fuzzy_test)>=0&&null!==e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))||!!(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==e.match(this.re.email_fuzzy))},IP.prototype.pretest=function(e){return this.re.pretest.test(e)},IP.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},IP.prototype.match=function(e){var t,n,r,i=[],o=[],a=[],s=[];function l(e,t){return e?t?e.index!==t.index?e.index<t.index?e:t:e.lastIndex>=t.lastIndex?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for((r=this.re.schema_search).lastIndex=0;null!==(t=r.exec(e));)(n=this.testSchemaAt(e,t[2],r.lastIndex))&&o.push({schema:t[2],index:t.index+t[1].length,lastIndex:t.index+t[0].length+n});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for((r=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global).lastIndex=0;null!==(t=r.exec(e));)a.push({schema:"",index:t.index+t[1].length,lastIndex:t.index+t[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for((r=this.re.email_fuzzy_global).lastIndex=0;null!==(t=r.exec(e));)s.push({schema:"mailto:",index:t.index+t[1].length,lastIndex:t.index+t[0].length});for(var c=[0,0,0],u=0;;){var d=[o[c[0]],s[c[1]],a[c[2]]],f=l(l(d[0],d[1]),d[2]);if(!f)break;
2if(f===d[0]?c[0]++:f===d[1]?c[1]++:c[2]++,!(f.index<u)){var p=new TP(e,f.schema,f.index,f.lastIndex);this.__compiled__[p.schema].normalize(p,this),i.push(p),u=f.lastIndex}}return i.length?i:null},IP.prototype.matchAtStart=function(e){if(!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;var r=new TP(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},IP.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),DP(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,DP(this),this)},IP.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},IP.prototype.onCompile=function(){};var PP=IP,FP=2147483647,OP=36,MP=/^xn--/,ZP=/[^\0-\x7F]/,RP=/[\x2E\u3002\uFF0E\uFF61]/g,LP={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},BP=Math.floor,zP=String.fromCharCode;function UP(e){throw new RangeError(LP[e])}function HP(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var i=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(RP,".")).split("."),t).join(".");return r+i}function WP(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}var qP=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},VP=function(e,t,n){var r=0;for(e=n?BP(e/700):e>>1,e+=BP(e/t);e>455;r+=OP)e=BP(e/35);return BP(r+36*e/(e+38))},GP=function(e){var t,n=[],r=e.length,i=0,o=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var l=0;l<s;++l)e.charCodeAt(l)>=128&&UP("not-basic"),n.push(e.charCodeAt(l));for(var c=s>0?s+1:0;c<r;){for(var u=i,d=1,f=OP;;f+=OP){c>=r&&UP("invalid-input");var p=(t=e.charCodeAt(c++))>=48&&t<58?t-48+26:t>=65&&t<91?t-65:t>=97&&t<123?t-97:OP;p>=OP&&UP("invalid-input"),p>BP((FP-i)/d)&&UP("overflow"),i+=p*d;var h=f<=a?1:f>=a+26?26:f-a;if(p<h)break;var m=OP-h;d>BP(FP/m)&&UP("overflow"),d*=m}var v=n.length+1;a=VP(i-u,v,0==u),BP(i/v)>FP-o&&UP("overflow"),o+=BP(i/v),i%=v,n.splice(i++,0,o)}return String.fromCodePoint.apply(String,n)},$P=function(e){var t,n=[],r=(e=WP(e)).length,i=128,o=0,a=72,s=(0,ua.Z)(e);try{for(s.s();!(t=s.n()).done;){var l=t.value;l<128&&n.push(zP(l))}}catch(j){s.e(j)}finally{s.f()}var c=n.length,u=c;for(c&&n.push("-");u<r;){var d,f=FP,p=(0,ua.Z)(e);try{for(p.s();!(d=p.n()).done;){var h=d.value;h>=i&&h<f&&(f=h)}}catch(j){p.e(j)}finally{p.f()}var m=u+1;f-i>BP((FP-o)/m)&&UP("overflow"),o+=(f-i)*m,i=f;var v,g=(0,ua.Z)(e);try{for(g.s();!(v=g.n()).done;){var y=v.value;if(y<i&&++o>FP&&UP("overflow"),y===i){for(var b=o,x=OP;;x+=OP){var w=x<=a?1:x>=a+26?26:x-a;if(b<w)break;var k=b-w,S=OP-w;n.push(zP(qP(w+k%S,0))),b=BP(k/S)}n.push(zP(qP(b,0))),a=VP(o,m,u===c),o=0,++u}}}catch(j){g.e(j)}finally{g.f()}++o,++i}return n.join("")},JP={version:"2.3.1",ucs2:{decode:WP,encode:function(e){return String.fromCodePoint.apply(String,(0,v.Z)(e))}},decode:GP,encode:$P,toASCII:function(e){return HP(e,(function(e){return ZP.test(e)?"xn--"+$P(e):e}))},toUnicode:function(e){return HP(e,(function(e){return MP.test(e)?GP(e.slice(4).toLowerCase()):e}))}},KP=JP,YP={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},XP=/^(vbscript|javascript|file|data):/,QP=/^data:image\/(gif|png|jpeg|webp);/;function eF(e){var t=e.trim().toLowerCase();return!XP.test(t)||QP.test(t)}var tF=["http:","https:","mailto:"];function nF(e){var t=dT(e,!0);if(t.hostname&&(!t.protocol||tF.indexOf(t.protocol)>=0))try{t.hostname=KP.toASCII(t.hostname)}catch(n){}return JD(KD(t))}function rF(e){var t=dT(e,!0);if(t.hostname&&(!t.protocol||tF.indexOf(t.protocol)>=0))try{t.hostname=KP.toUnicode(t.hostname)}catch(n){}return VD(KD(t),VD.defaultChars+"%")}function iF(e,t){if(!(this instanceof iF))return new iF(e,t);t||RT(e)||(t=e||{},e="default"),this.inline=new wP,this.block=new nP,this.core=new UI,this.renderer=new yI,this.linkify=new PP,this.validateLink=eF,this.normalizeLink=nF,this.normalizeLinkText=rF,this.utils=o,this.helpers=zT({},a),this.options={},this.configure(e),t&&this.set(t)}iF.prototype.set=function(e){return zT(this.options,e),this},iF.prototype.configure=function(e){var t=this;if(RT(e)){var n=e;if(!(e=YP[n]))throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEac
2h((function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)})),this},iF.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},iF.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},iF.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},iF.prototype.parse=function(e,t){if("string"!==typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},iF.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},iF.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},iF.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var oF=iF,aF=new ch({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:function(){return["p",0]}},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM:function(){return["blockquote",0]}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return["div",["hr"]]}},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:function(e){return["h"+e.attrs.level,0]}},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:function(e){return{params:e.getAttribute("data-params")||""}}}],toDOM:function(e){return["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]}},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs:function(e){return{order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")}}}],toDOM:function(e){return["ol",{start:1==e.attrs.order?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]}},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:function(e){return{tight:e.hasAttribute("data-tight")}}}],toDOM:function(e){return["ul",{"data-tight":e.attrs.tight?"true":null},0]}},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM:function(){return["li",0]}},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:function(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")}}}],toDOM:function(e){return["img",e.attrs]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:function(){return["br"]}}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:function(e){return"em"==e.type.name}}],toDOM:function(){return["em"]}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:function(e){return"normal"!=e.style.fontWeight&&null}},{style:"font-weight=400",clearMark:function(e){return"strong"==e.type.name}},{style:"font-weight",getAttrs:function(e){return/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}}],toDOM:function(){return["strong"]}},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:function(e){return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM:function(e){return["a",e.attrs]}},code:{code:!0,parseDOM:[{tag:"code"}],toDOM:function(){return["code"]}}}});var sF=function(){function e(t,n){(0,ha.Z)(this,e),this.schema=t,this.tokenHandlers=n,this.stack=[{type:t.topNodeType,attrs:null,content:[],marks:Sp.none}]}return(0,ma.Z)(e,[{key:"top",value:function(){return this.stack[this.stack.length-1]}},{key:"push",value:function(e){this.stack.length&&this.top().content.push(e)}},{key:"addText",value:function(e){if(e){var t,n=this.top(),r=n.content,i=r[r.length-1],o=this.schema.text(e,n.marks);i&&(t=function(e,t){if(e.isText&&t.isText&&Sp.sameSet(e.marks,t.marks))return e.withText(e.text+t.text)}(i,o))?r[r.length-1]=t:r.push(o)}}},{key:"openMark",value:function(e){var t=this.top();t.marks=e.addToSet(t.marks)}},{key:"closeMark",value:function(e){var t=this.top();t.marks=e.removeFromSet(t.marks)}},{key:"parseTokens",value:function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.tokenHandlers[n.type];if(!r)throw new Error("Token type `"+n.type+"` not supported by Markdown parser");r(this,n,e,t)}}},{key:"addNode",value:function(e,t,n){var r=this.top(),i=e.createAndFill(t,n,r?r.marks:[]);return i?(this.push(i),i):null}},{key:"openNode",value:function(e,t){this.stack.push({type:e,attrs:t,content:[],marks:Sp.none})}},{key:"closeNode",value:function(){var e=this.stack.pop();return this.addNode(e.type,e.attrs,e.content)}}]),e}();function lF(e,t,n,r){return e.getAttrs?e.getAttrs(t,n,r):e.attrs instanceof Function?e.attrs(t):e.attrs}function cF(e,t){return e.noCloseToken||"code_inline"==t||"code_block"==t||"fence"==t}function uF(e){return"\n"==e[e.length-1]?e.slice(0,e.length-1):e}function dF(){}var fF=function(){function e(t,n,r){(0,ha.Z)(this,e),this.schema=t,this.tokenizer=n,this.tokens=r,this.tokenHandlers=function(e,t){var n=Object.create(null),r=function(){var r=t[i];
2if(r.block){var o=e.nodeType(r.block);cF(r,i)?n[i]=function(e,t,n,i){e.openNode(o,lF(r,t,n,i)),e.addText(uF(t.content)),e.closeNode()}:(n[i+"_open"]=function(e,t,n,i){return e.openNode(o,lF(r,t,n,i))},n[i+"_close"]=function(e){return e.closeNode()})}else if(r.node){var a=e.nodeType(r.node);n[i]=function(e,t,n,i){return e.addNode(a,lF(r,t,n,i))}}else if(r.mark){var s=e.marks[r.mark];cF(r,i)?n[i]=function(e,t,n,i){e.openMark(s.create(lF(r,t,n,i))),e.addText(uF(t.content)),e.closeMark(s)}:(n[i+"_open"]=function(e,t,n,i){return e.openMark(s.create(lF(r,t,n,i)))},n[i+"_close"]=function(e){return e.closeMark(s)})}else{if(!r.ignore)throw new RangeError("Unrecognized parsing spec "+JSON.stringify(r));cF(r,i)?n[i]=dF:(n[i+"_open"]=dF,n[i+"_close"]=dF)}};for(var i in t)r();return n.text=function(e,t){return e.addText(t.content)},n.inline=function(e,t){return e.parseTokens(t.children)},n.softbreak=n.softbreak||function(e){return e.addText(" ")},n}(t,r)}return(0,ma.Z)(e,[{key:"parse",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new sF(this.schema,this.tokenHandlers);r.parseTokens(this.tokenizer.parse(e,n));do{t=r.closeNode()}while(r.stack.length);return t||this.schema.topNodeType.createAndFill()}}]),e}();function pF(e,t){for(;++t<e.length;)if("list_item_open"!=e[t].type)return e[t].hidden;return!1}new fF(aF,oF("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:function(e,t,n){return{tight:pF(t,n)}}},ordered_list:{block:"ordered_list",getAttrs:function(e,t,n){return{order:+e.attrGet("start")||1,tight:pF(t,n)}}},heading:{block:"heading",getAttrs:function(e){return{level:+e.tag.slice(1)}}},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:function(e){return{params:e.info||""}},noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:function(e){return{src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null}}},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:function(e){return{href:e.attrGet("href"),title:e.attrGet("title")||null}}},code_inline:{mark:"code",noCloseToken:!0}});var hF={open:"",close:"",mixable:!0},mF=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,ha.Z)(this,e),this.nodes=t,this.marks=n,this.options=r}return(0,ma.Z)(e,[{key:"serialize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object.assign({},this.options,t);var n=new yF(this.nodes,this.marks,t);return n.renderContent(e),n.out}}]),e}(),vF=new mF({blockquote:function(e,t){e.wrapBlock("> ",null,t,(function(){return e.renderContent(t)}))},code_block:function(e,t){var n=t.textContent.match(/`{3,}/gm),r=n?n.sort().slice(-1)[0]+"`":"```";e.write(r+(t.attrs.params||"")+"\n"),e.text(t.textContent,!1),e.write("\n"),e.write(r),e.closeBlock(t)},heading:function(e,t){e.write(e.repeat("#",t.attrs.level)+" "),e.renderInline(t,!1),e.closeBlock(t)},horizontal_rule:function(e,t){e.write(t.attrs.markup||"---"),e.closeBlock(t)},bullet_list:function(e,t){e.renderList(t,"  ",(function(){return(t.attrs.bullet||"*")+" "}))},ordered_list:function(e,t){var n=t.attrs.order||1,r=String(n+t.childCount-1).length,i=e.repeat(" ",r+2);e.renderList(t,i,(function(t){var i=String(n+t);return e.repeat(" ",r-i.length)+i+". "}))},list_item:function(e,t){e.renderContent(t)},paragraph:function(e,t){e.renderInline(t),e.closeBlock(t)},image:function(e,t){e.write("!["+e.esc(t.attrs.alt||"")+"]("+t.attrs.src.replace(/[\(\)]/g,"\\$&")+(t.attrs.title?' "'+t.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break:function(e,t,n,r){for(var i=r+1;i<n.childCount;i++)if(n.child(i).type!=t.type)return void e.write("\\\n")},text:function(e,t){e.text(t.text,!e.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open:function(e,t,n,r){return e.inAutolink=function(e,t,n){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1;var r=t.child(n);return!(!r.isText||r.text!=e.attrs.href||r.marks[r.marks.length-1]!=e)&&(n==t.childCount-1||!e.isInSet(t.child(n+1).marks))}
2(t,n,r),e.inAutolink?"<":"["},close:function(e,t,n,r){var i=e.inAutolink;return e.inAutolink=void 0,i?">":"]("+t.attrs.href.replace(/[\(\)"]/g,"\\$&")+(t.attrs.title?' "'.concat(t.attrs.title.replace(/"/g,'\\"'),'"'):"")+")"},mixable:!0},code:{open:function(e,t,n,r){return gF(n.child(r),-1)},close:function(e,t,n,r){return gF(n.child(r-1),1)},escape:!1}});function gF(e,t){var n,r=/`+/g,i=0;if(e.isText)for(;n=r.exec(e.text);)i=Math.max(i,n[0].length);for(var o=i>0&&t>0?" `":"`",a=0;a<i;a++)o+="`";return i>0&&t<0&&(o+=" "),o}var yF=function(){function e(t,n,r){(0,ha.Z)(this,e),this.nodes=t,this.marks=n,this.options=r,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,"undefined"==typeof this.options.tightLists&&(this.options.tightLists=!1),"undefined"==typeof this.options.hardBreakNodeName&&(this.options.hardBreakNodeName="hard_break")}return(0,ma.Z)(e,[{key:"flushClose",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;if(this.closed){if(this.atBlank()||(this.out+="\n"),e>1){var t=this.delim,n=/\s+$/.exec(t);n&&(t=t.slice(0,t.length-n[0].length));for(var r=1;r<e;r++)this.out+=t+"\n"}this.closed=null}}},{key:"getMark",value:function(e){var t=this.marks[e];if(!t){if(!1!==this.options.strict)throw new Error("Mark type `".concat(e,"` not supported by Markdown renderer"));t=hF}return t}},{key:"wrapBlock",value:function(e,t,n,r){var i=this.delim;this.write(null!=t?t:e),this.delim+=e,r(),this.delim=i,this.closeBlock(n)}},{key:"atBlank",value:function(){return/(^|\n)$/.test(this.out)}},{key:"ensureNewLine",value:function(){this.atBlank()||(this.out+="\n")}},{key:"write",value:function(e){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),e&&(this.out+=e)}},{key:"closeBlock",value:function(e){this.closed=e}},{key:"text",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.split("\n"),r=0;r<n.length;r++)this.write(),!t&&"["==n[r][0]&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=t?this.esc(n[r],this.atBlockStart):n[r],r!=n.length-1&&(this.out+="\n")}},{key:"render",value:function(e,t,n){if(this.nodes[e.type.name])this.nodes[e.type.name](this,e,t,n);else{if(!1!==this.options.strict)throw new Error("Token type `"+e.type.name+"` not supported by Markdown renderer");e.type.isLeaf||(e.type.inlineContent?this.renderInline(e):this.renderContent(e),e.isBlock&&this.closeBlock(e))}}},{key:"renderContent",value:function(e){var t=this;e.forEach((function(n,r,i){return t.render(n,e,i)}))}},{key:"renderInline",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.atBlockStart=n;var r=[],i="",o=function(n,o,a){var s=n?n.marks:[];n&&n.type.name===t.options.hardBreakNodeName&&(s=s.filter((function(t){if(a+1==e.childCount)return!1;var n=e.child(a+1);return t.isInSet(n.marks)&&(!n.isText||/\S/.test(n.text))})));var l=i;if(i="",n&&n.isText&&s.some((function(e){var n=t.getMark(e.type.name);return n&&n.expelEnclosingWhitespace&&!e.isInSet(r)}))){var c=/^(\s*)(.*)$/m.exec(n.text),u=(0,p.Z)(c,3),d=(u[0],u[1]),f=u[2];d&&(l+=d,(n=f?n.withText(f):null)||(s=r))}if(n&&n.isText&&s.some((function(n){var r=t.getMark(n.type.name);return r&&r.expelEnclosingWhitespace&&!t.isMarkAhead(e,a+1,n)}))){var h=/^(.*?)(\s*)$/m.exec(n.text),m=(0,p.Z)(h,3),v=(m[0],m[1]),g=m[2];g&&(i=g,(n=v?n.withText(v):null)||(s=r))}var y=s.length?s[s.length-1]:null,b=y&&!1===t.getMark(y.type.name).escape,x=s.length-(b?1:0);e:for(var w=0;w<x;w++){var k=s[w];if(!t.getMark(k.type.name).mixable)break;for(var S=0;S<r.length;S++){var j=r[S];if(!t.getMark(j.type.name).mixable)break;if(k.eq(j)){w>S?s=s.slice(0,S).concat(k).concat(s.slice(S,w)).concat(s.slice(w+1,x)):S>w&&(s=s.slice(0,w).concat(s.slice(w+1,S)).concat(k).concat(s.slice(S,x)));continue e}}}for(var C=0;C<Math.min(r.length,x)&&s[C].eq(r[C]);)++C;for(;C<r.length;)t.text(t.markString(r.pop(),!1,e,a),!1);if(l&&t.text(l),n){for(;r.length<x;){var _=s[r.length];r.push(_),t.text(t.markString(_,!0,e,a),!1),t.atBlockStart=!1}b&&n.isText?t.text(t.markString(y,!0,e,a)+n.text+t.markString(y,!1,e,a+1),!1):t.render(n,e,a),t.atBlockStart=!1}(null===n||void 0===n?void 0:n.isText)&&n.nodeSize>0&&(t.atBlockStart=!1)};e.forEach(o),o(null,0,e.childCount),this.atBlockStart=!1}},{key:"renderList",value:function(e,t,n){var r=this;this.closed&&this.closed.type==e.type?this.flushClose(3):this.inTightList&&this.flushClose(1);var i="undefined"!=typeof e.attrs.tight?e.attrs.tight:this.options.tightLists,o=this.inTightList;this.inTightList=i,e.forEach((function(o,a,s){s&&i&&r.flushClose(1),r.wrapBlock(t,n(s),e,(function(){return r.render(o,e,s)}))})),this.inTightList=o}},{key:"esc",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.replace(/[`*\\~\[\]_]/g,(function(t,n){return"_"==t&&n>0&&n+1<e.length&&e[n-1].match(/\w/)&&e[n+1].match(/\w/)?t:"\\"+t})),t&&(e=e.replace(/^(\+[ ]|[\-*>])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(e=e.replace(this.options.escapeExtraCharacters,"\\$&")),e}},{key:"quote",value:function(e){var t=-1==e.indexOf('"')?'""':-1==e.indexOf("'")?"''":"
2()";return t[0]+e+t[1]}},{key:"repeat",value:function(e,t){for(var n="",r=0;r<t;r++)n+=e;return n}},{key:"markString",value:function(e,t,n,r){var i=this.getMark(e.type.name),o=t?i.open:i.close;return"string"==typeof o?o:o(this,e,n,r)}},{key:"getEnclosingWhitespace",value:function(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}},{key:"isMarkAhead",value:function(e,t,n){for(;;t++){if(t>=e.childCount)return!1;var r=e.child(t);if(r.type.name!=this.options.hardBreakNodeName)return n.isInSet(r.marks);t++}}}]),e}(),bF=n(2087),xF=Object.defineProperty,wF=function(e,t,n){return function(e,t,n){t in e?xF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!==typeof t?t+"":t,n),n},kF=Sk.create({name:"markdownTightLists",addOptions:function(){return{tight:!0,tightClass:"tight",listTypes:["bulletList","orderedList"]}},addGlobalAttributes:function(){var e=this;return[{types:this.options.listTypes,attributes:{tight:{default:this.options.tight,parseHTML:function(e){return"true"===e.getAttribute("data-tight")||!e.querySelector("p")},renderHTML:function(t){return{class:t.tight?e.options.tightClass:null,"data-tight":t.tight?"true":null}}}}}]},addCommands:function(){var e=this;return{toggleTight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(n){var r=n.editor,i=n.commands;return e.options.listTypes.some((function(e){return function(e){if(!r.isActive(e))return!1;var n=r.getAttributes(e);return i.updateAttributes(e,{tight:null!==t&&void 0!==t?t:!(null!==n&&void 0!==n&&n.tight)})}(e)}))}}}}}),SF=oF();function jF(e,t){return SF.inline.State.prototype.scanDelims.call({src:e,posMax:e.length}),new SF.inline.State(e,null,null,[]).scanDelims(t,!0)}function CF(e,t,n,r){var i=e.substring(0,n)+e.substring(n+t.length);return i=i.substring(0,n+r)+t+i.substring(n+r)}function _F(e,t,n,r){var i={text:e,from:n,to:r};return i=function(e,t,n,r){for(var i=n,o=e;i<r&&!jF(o,i).can_open;)o=CF(o,t,i,1),i++;return{text:o,from:i,to:r}}(i.text,t,i.from,i.to),i=function(e,t,n,r){for(var i=r,o=e;i>n&&!jF(o,i).can_close;)o=CF(o,t,i,-1),i--;return{text:o,from:n,to:i}}(i.text,t,i.from,i.to),i.to-i.from<t.length+1&&(i.text=i.text.substring(0,i.from)+i.text.substring(i.to+t.length)),i.text}var EF=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i){var o;return(0,ha.Z)(this,n),o=t.call(this,e,r,null!==i&&void 0!==i?i:{}),wF((0,Ec.Z)(o),"inTable",!1),o.inlines=[],o}return(0,ma.Z)(n,[{key:"render",value:function(e,t,r){(0,pp.Z)((0,hp.Z)(n.prototype),"render",this).call(this,e,t,r);var i=this.inlines[this.inlines.length-1];if(null!==i&&void 0!==i&&i.start&&null!==i&&void 0!==i&&i.end){var o=this.normalizeInline(i),a=o.delimiter,s=o.start,l=o.end;this.out=_F(this.out,a,s,l),this.inlines.pop()}}},{key:"markString",value:function(e,t,r,i){var o=this.marks[e.type.name];if(o.expelEnclosingWhitespace)if(t)this.inlines.push({start:this.out.length,delimiter:o.open});else{var a=this.inlines.pop();this.inlines.push((0,A.Z)((0,A.Z)({},a),{},{end:this.out.length}))}return(0,pp.Z)((0,hp.Z)(n.prototype),"markString",this).call(this,e,t,r,i)}},{key:"normalizeInline",value:function(e){var t=e.start;for(e.end;this.out.charAt(t).match(/\s/);)t++;return(0,A.Z)((0,A.Z)({},e),{},{start:t})}}]),n}(yF),NF=vk.create({name:"markdownHTMLMark",addStorage:function(){return{markdown:{serialize:{open:function(e,t){var n,r;return this.editor.storage.markdown.options.html?null!==(n=null===(r=AF(t))||void 0===r?void 0:r[0])&&void 0!==n?n:"":(console.warn('Tiptap Markdown: "'.concat(t.type.name,'" mark is only available in html mode')),"")},close:function(e,t){var n,r;return this.editor.storage.markdown.options.html&&null!==(n=null===(r=AF(t))||void 0===r?void 0:r[1])&&void 0!==n?n:""}},parse:{}}}}});function AF(e){var t=e.type.schema,n=t.text(" ",[e]),r=sw(bp.from(n),t).match(/^(<.*?>) (<\/.*?>)$/);return r?[r[1],r[2]]:null}function DF(e){var t="<body>".concat(e,"</body>");return(new window.DOMParser).parseFromString(t,"text/html").body}var TF=Yk.create({name:"markdownHTMLNode",addStorage:function(){return{markdown:{serialize:function(e,t,n){this.editor.storage.markdown.options.html?e.write(function(e,t){var n=e.type.schema,r=sw(bp.from(e),n);
2if(e.isBlock&&(t instanceof bp||t.type.name===n.topNodeType.name))return function(e){var t=DF(e),n=t.firstElementChild;return n.innerHTML=n.innerHTML.trim()?"\n".concat(n.innerHTML,"\n"):"\n",n.outerHTML}(r);return r}(t,n)):(console.warn('Tiptap Markdown: "'.concat(t.type.name,'" node is only available in html mode')),e.write("[".concat(t.type.name,"]"))),t.isBlock&&e.closeBlock(t)},parse:{}}}}});var IF=Yk.create({name:"blockquote"}).extend({addStorage:function(){return{markdown:{serialize:vF.nodes.blockquote,parse:{}}}}}),PF=Yk.create({name:"bulletList"}).extend({addStorage:function(){return{markdown:{serialize:function(e,t){var n=this;return e.renderList(t,"  ",(function(){return(n.editor.storage.markdown.options.bulletListMarker||"-")+" "}))},parse:{}}}}}),FF=Yk.create({name:"codeBlock"}).extend({addStorage:function(){return{markdown:{serialize:function(e,t){e.write("```"+(t.attrs.language||"")+"\n"),e.text(t.textContent,!1),e.ensureNewLine(),e.write("```"),e.closeBlock(t)},parse:{setup:function(e){var t;e.set({langPrefix:null!==(t=this.options.languageClassPrefix)&&void 0!==t?t:"language-"})},updateDOM:function(e){e.innerHTML=e.innerHTML.replace(/\n<\/code><\/pre>/g,"</code></pre>")}}}}}}),OF=Yk.create({name:"hardBreak"}).extend({addStorage:function(){return{markdown:{serialize:function(e,t,n,r){for(var i=r+1;i<n.childCount;i++)if(n.child(i).type!=t.type)return void e.write(e.inTable?TF.storage.markdown.serialize.call(this,e,t,n):"\\\n")},parse:{}}}}}),MF=Yk.create({name:"heading"}).extend({addStorage:function(){return{markdown:{serialize:vF.nodes.heading,parse:{}}}}}),ZF=Yk.create({name:"horizontalRule"}).extend({addStorage:function(){return{markdown:{serialize:vF.nodes.horizontal_rule,parse:{}}}}}),RF=Yk.create({name:"image"}).extend({addStorage:function(){return{markdown:{serialize:vF.nodes.image,parse:{}}}}}),LF=Yk.create({name:"listItem"}).extend({addStorage:function(){return{markdown:{serialize:vF.nodes.list_item,parse:{}}}}});var BF=Yk.create({name:"orderedList"}).extend({addStorage:function(){return{markdown:{serialize:function(e,t,n,r){var i=t.attrs.start||1,o=String(i+t.childCount-1).length,a=e.repeat(" ",o+2),s=function(e,t,n){for(var r=0;n-r>0&&t.child(n-r-1).type.name===e.type.name;r++);return r}(t,n,r),l=s%2?") ":". ";e.renderList(t,a,(function(t){var n=String(i+t);return e.repeat(" ",o-n.length)+n+l}))},parse:{}}}}}),zF=Yk.create({name:"paragraph"}).extend({addStorage:function(){return{markdown:{serialize:vF.nodes.paragraph,parse:{}}}}});function UF(e){var t,n;return null!==(t=null===e||void 0===e||null===(n=e.content)||void 0===n?void 0:n.content)&&void 0!==t?t:[]}var HF=Yk.create({name:"table"}).extend({addStorage:function(){return{markdown:{serialize:function(e,t,n){!function(e){var t=UF(e),n=t[0],r=t.slice(1);if(UF(n).some((function(e){return"tableHeader"!==e.type.name||WF(e)||e.childCount>1})))return!1;if(r.some((function(e){return UF(e).some((function(e){return"tableHeader"===e.type.name||WF(e)||e.childCount>1}))})))return!1;return!0}(t)?TF.storage.markdown.serialize.call(this,e,t,n):(e.inTable=!0,t.forEach((function(t,n,r){if(e.write("| "),t.forEach((function(t,n,r){r&&e.write(" | ");var i=t.firstChild;i.textContent.trim()&&e.renderInline(i)})),e.write(" |"),e.ensureNewLine(),!r){var i=Array.from({length:t.childCount}).map((function(){return"---"})).join(" | ");e.write("| ".concat(i," |")),e.ensureNewLine()}})),e.closeBlock(t),e.inTable=!1)},parse:{}}}}});function WF(e){return e.attrs.colspan>1||e.attrs.rowspan>1}var qF=Yk.create({name:"taskItem"}).extend({addStorage:function(){return{markdown:{serialize:function(e,t){var n=t.attrs.checked?"[x]":"[ ]";e.write("".concat(n," ")),e.renderContent(t)},parse:{updateDOM:function(e){(0,v.Z)(e.querySelectorAll(".task-list-item")).forEach((function(e){var t=e.querySelector("input");e.setAttribute("data-type","taskItem"),t&&(e.setAttribute("data-checked",t.checked),t.remove())}))}}}}}}),VF=Yk.create({name:"taskList"}).extend({addStorage:function(){return{markdown:{serialize:PF.storage.markdown.serialize,parse:{setup:function(e){e.use(bF)},updateDOM:function(e){(0,v.Z)(e.querySelectorAll(".contains-task-list")).forEac
2h((function(e){e.setAttribute("data-type","taskList")}))}}}}}}),GF=Yk.create({name:"text"}).extend({addStorage:function(){return{markdown:{serialize:function(e,t){e.text(function(e){return null===e||void 0===e?void 0:e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}(t.text))},parse:{}}}}}),$F=vk.create({name:"bold"}).extend({addStorage:function(){return{markdown:{serialize:vF.marks.strong,parse:{}}}}}),JF=vk.create({name:"code"}).extend({addStorage:function(){return{markdown:{serialize:vF.marks.code,parse:{}}}}}),KF=vk.create({name:"italic"}).extend({addStorage:function(){return{markdown:{serialize:vF.marks.em,parse:{}}}}}),YF=vk.create({name:"link"}).extend({addStorage:function(){return{markdown:{serialize:vF.marks.link,parse:{}}}}}),XF=vk.create({name:"strike"}).extend({addStorage:function(){return{markdown:{serialize:{open:"~~",close:"~~",expelEnclosingWhitespace:!0},parse:{}}}}}),QF=[IF,PF,FF,OF,MF,ZF,TF,RF,LF,BF,zF,HF,qF,VF,GF,$F,JF,NF,KF,YF,XF];function eO(e){var t,n,r=null===(t=e.storage)||void 0===t?void 0:t.markdown,i=null===(n=QF.find((function(t){return t.name===e.name})))||void 0===n?void 0:n.storage.markdown;return r||i?(0,A.Z)((0,A.Z)({},i),r):null}var tO=function(){function e(t){(0,ha.Z)(this,e),wF(this,"editor",null),this.editor=t}return(0,ma.Z)(e,[{key:"serialize",value:function(e){var t=new EF(this.nodes,this.marks,{hardBreakNodeName:OF.name});return t.renderContent(e),t.out}},{key:"nodes",get:function(){var e,t=this;return(0,A.Z)((0,A.Z)({},Object.fromEntries(Object.keys(this.editor.schema.nodes).map((function(e){return[e,t.serializeNode(TF)]})))),Object.fromEntries(null!==(e=this.editor.extensionManager.extensions.filter((function(e){return"node"===e.type&&t.serializeNode(e)})).map((function(e){return[e.name,t.serializeNode(e)]})))&&void 0!==e?e:[]))}},{key:"marks",get:function(){var e,t=this;return(0,A.Z)((0,A.Z)({},Object.fromEntries(Object.keys(this.editor.schema.marks).map((function(e){return[e,t.serializeMark(NF)]})))),Object.fromEntries(null!==(e=this.editor.extensionManager.extensions.filter((function(e){return"mark"===e.type&&t.serializeMark(e)})).map((function(e){return[e.name,t.serializeMark(e)]})))&&void 0!==e?e:[]))}},{key:"serializeNode",value:function(e){var t;return null===(t=eO(e))||void 0===t||null===(t=t.serialize)||void 0===t?void 0:t.bind({editor:this.editor,options:e.options})}},{key:"serializeMark",value:function(e){var t,n=null===(t=eO(e))||void 0===t?void 0:t.serialize;return n?(0,A.Z)((0,A.Z)({},n),{},{open:"function"===typeof n.open?n.open.bind({editor:this.editor,options:e.options}):n.open,close:"function"===typeof n.close?n.close.bind({editor:this.editor,options:e.options}):n.close}):null}}]),e}(),nO=function(){function e(t,n){(0,ha.Z)(this,e),wF(this,"editor",null),wF(this,"md",null);var r=n.html,i=n.linkify,o=n.breaks;this.editor=t,this.md=this.withPatchedRenderer(oF({html:r,linkify:i,breaks:o}))}return(0,ma.Z)(e,[{key:"parse",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).inline;if("string"===typeof e){this.editor.extensionManager.extensions.forEach((function(e){var n;return null===(n=eO(e))||void 0===n||null===(n=n.parse)||void 0===n||null===(n=n.setup)||void 0===n?void 0:n.call({editor:t.editor,options:e.options},t.md)}));var r=DF(this.md.render(e));return this.editor.extensionManager.extensions.forEach((function(e){var n;return null===(n=eO(e))||void 0===n||null===(n=n.parse)||void 0===n||null===(n=n.updateDOM)||void 0===n?void 0:n.call({editor:t.editor,options:e.options},r)})),this.normalizeDOM(r,{inline:n,content:e}),r.innerHTML}return e}},{key:"normalizeDOM",value:function(e,t){var n=t.inline,r=t.content;return this.normalizeBlocks(e),e.querySelectorAll("*").forEach((function(e){var t;(null===(t=e.nextSibling)||void 0===t?void 0:t.nodeType)!==Node.TEXT_NODE||e.closest("pre")||(e.nextSibling.textContent=e.nextSibling.textContent.replace(/^\n/,""))})),n&&this.normalizeInline(e,r),e}},{key:"normalizeBlocks",value:function(e){var t=Object.values(this.editor.schema.nodes).filter((function(e){return e.isBlock})).map((function(e){var t;return null===(t=e.spec.parseDOM)||void 0===t?void 0:t.map((function(e){return e.tag}))}
2)).flat().filter(Boolean).join(",");t&&(0,v.Z)(e.querySelectorAll(t)).forEach((function(e){e.parentElement.matches("p")&&function(e){for(var t=e.parentElement,n=t.cloneNode();t.firstChild&&t.firstChild!==e;)n.appendChild(t.firstChild);n.childNodes.length>0&&t.parentElement.insertBefore(n,t),t.parentElement.insertBefore(e,t),0===t.childNodes.length&&t.remove()}(e)}))}},{key:"normalizeInline",value:function(e,t){var n;if(null!==(n=e.firstElementChild)&&void 0!==n&&n.matches("p")){var r,i,o,a,s=e.firstElementChild,l=s.nextElementSibling,c=null!==(r=null===(i=t.match(/^\s+/))||void 0===i?void 0:i[0])&&void 0!==r?r:"",u=l?"":null!==(o=null===(a=t.match(/\s+$/))||void 0===a?void 0:a[0])&&void 0!==o?o:"";if(t.match(/^\n\n/))return void(s.innerHTML="".concat(s.innerHTML).concat(u));!function(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}(s),e.innerHTML="".concat(c).concat(e.innerHTML).concat(u)}}},{key:"withPatchedRenderer",value:function(e){var t=function(e){return function(){var t=e.apply(void 0,arguments);return"\n"===t?t:"\n"===t[t.length-1]?t.slice(0,-1):t}};return e.renderer.rules.hardbreak=t(e.renderer.rules.hardbreak),e.renderer.rules.softbreak=t(e.renderer.rules.softbreak),e.renderer.rules.fence=t(e.renderer.rules.fence),e.renderer.rules.code_block=t(e.renderer.rules.code_block),e.renderer.renderToken=t(e.renderer.renderToken.bind(e.renderer)),e}}]),e}(),rO=Sk.create({name:"markdownClipboard",addOptions:function(){return{transformPastedText:!1,transformCopiedText:!1}},addProseMirrorPlugins:function(){var e=this;return[new Mm({key:new Lm("markdownClipboard"),props:{clipboardTextParser:function(t,n,r){if(r||!e.options.transformPastedText)return null;var i=e.editor.storage.markdown.parser.parse(t,{inline:!0});return dh.fromSchema(e.editor.schema).parseSlice(DF(i),{preserveWhitespace:!0,context:n})},clipboardTextSerializer:function(t){return e.options.transformCopiedText?e.editor.storage.markdown.serializer.serialize(t.content):null}}})]}}),iO=Sk.create({name:"markdown",priority:50,addOptions:function(){return{html:!0,tightLists:!0,tightListClass:"tight",bulletListMarker:"-",linkify:!1,breaks:!1,transformPastedText:!1,transformCopiedText:!1}},addCommands:function(){var e=kk.Commands.config.addCommands();return{setContent:function(t,n){return function(r){return e.setContent(r.editor.storage.markdown.parser.parse(t),n)(r)}},insertContentAt:function(t,n,r){return function(i){return e.insertContentAt(t,i.editor.storage.markdown.parser.parse(n,{inline:!0}),r)(i)}}}},onBeforeCreate:function(){var e=this;this.editor.storage.markdown={options:(0,A.Z)({},this.options),parser:new nO(this.editor,this.options),serializer:new tO(this.editor),getMarkdown:function(){return e.editor.storage.markdown.serializer.serialize(e.editor.state.doc)}},this.editor.options.initialContent=this.editor.options.content,this.editor.options.content=this.editor.storage.markdown.parser.parse(this.editor.options.content)},onCreate:function(){this.editor.options.content=this.editor.options.initialContent,delete this.editor.options.initialContent},addStorage:function(){return{}},addExtensions:function(){return[kF.configure({tight:this.options.tightLists,tightClass:this.options.tightListClass}),rO.configure({transformPastedText:this.options.transformPastedText,transformCopiedText:this.options.transformCopiedText})]}}),oO='"Jost", system-ui, sans-serif',aO=["http:","https:","mailto:"],sO={display:"block",marginBottom:6,color:"#05081E",fontFamily:oO,fontSize:13,fontWeight:500,lineHeight:"16px"},lO={width:"100%",boxSizing:"border-box",padding:"10px 12px",borderWidth:1,borderStyle:"solid",borderColor:"#E2E3E6",borderRadius:8,outline:"none",color:"#05081E",fontFamily:oO,fontSize:14,lineHeight:"20px"},cO=function(e){var t=e.initialText,n=e.initialUrl,r=e.editing,i=e.onSubmit,o=e.onCancel,a=(0,c.useState)(t||""),s=(0,p.Z)(a,2),l=s[0],u=s[1],d=(0,c.useState)(n||""),f=(0,p.Z)(d,2),h=f[0],m=f[1],v=(0,c.useState)(null),g=(0,p.Z)(v,2),y=g[0],b=g[1],x=(0,c.useRef)(null),w=(0,c.useRef)(null),k=(0,c.useRef)(!1);(0,c.useEffect)((function(){var e=!(!t||!t.trim())?w.current:x.current;e&&e.focus()}),[t]),(0,c.useEffect)((function(){var e=function(e){"Escape"===e.key&&o()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[o]),(0,c.useEffect)((function(){var e=document.body.style.overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}}),[]);return(0,Gi.createPortal)((0,F.jsx)("div",{role:"presentation",onMouseDown:function(e){k.current=e.target===e.currentTarget},onClick:function(e){k.current&&e.target===e.currentTarget&&o()},style:{position:"fixed",inset:0,zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",padding:16,backgroundColor:"rgba(5, 8, 30, 0.45)"},children:(0,F.jsxs)("form",{role:"dialog","aria-modal":"true","aria-label":r?"Edit link":"Insert link",onSubmit:function(e){e.preventDefault();var t=function(e){var t=e.trim();if(!t)return{error:"Add a web address."};var n,r=/^[a-z][a-z0-9+.-]*:/i.test(t)?t:"https://".concat(t);try{n=new URL(r)}catch(i){return{error:"That doesn't look like a valid web address."}}return aO.includes(n.protocol.toLowerCase())?/^https?:$/i.test(n.protocol)&&!n.hostname.includes(".")?{error:"Enter a full web address, like example.com."}:{url:r}:{error:"Links must be a web (http/https) or mailto address."}}(h);if(t.error)return b(t.error),void(w.current&&w.current.focus());i({text:l.trim(),url:t.url})},style:{width:"100%",maxWidth:380,boxSizing:"border-box",padding:20,backgroundColor:"#FFFFFF",borderRadius:12,boxShadow:"0 12px 32px rgba(5, 8, 30, 0.22)",fontFamily:oO},children:[(0,F.jsx)("div",{style:{marginBottom:16,color:"#05081E",fontSize:16,fontWeight:600,lineHeight:"22px"},children:r?"Edit link":"Insert link"}),(0,F.jsxs)("div",{style:{marginBottom:14},children:[(0,F.jsx)("label",{htmlFor:"bpb-link-text",style:sO,children:"Link text"}),(0,F.jsx)("input",{id:"bpb-link-text",ref:x,type:"text",value:l,onCh
2ange:function(e){return u(e.target.value)},placeholder:"Text to display",style:lO})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)("label",{htmlFor:"bpb-link-url",style:sO,children:"Web address"}),(0,F.jsx)("input",{id:"bpb-link-url",ref:w,type:"text",value:h,onChange:function(e){m(e.target.value),y&&b(null)},placeholder:"example.com",style:(0,A.Z)((0,A.Z)({},lO),{},{borderColor:y?"#C0392B":"#E2E3E6"})})]}),y&&(0,F.jsx)("div",{style:{marginTop:8,color:"#C0392B",fontFamily:oO,fontSize:13,lineHeight:"18px"},children:y}),(0,F.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:8,marginTop:20},children:[(0,F.jsx)("button",{type:"button",onClick:o,style:{background:"none",border:"none",borderRadius:999,padding:"9px 16px",color:"#696B78",fontFamily:oO,fontSize:13,fontWeight:500,lineHeight:"16px",cursor:"pointer"},children:"Cancel"}),(0,F.jsx)("button",{type:"submit",style:{border:"none",borderRadius:999,padding:"9px 20px",backgroundColor:"#FFD621",color:"#05081E",fontFamily:oO,fontSize:13,fontWeight:600,lineHeight:"16px",cursor:"pointer"},children:r?"Save link":"Insert link"})]})]})}),document.body)},uO=1e5,dO={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},fO=function(){return(0,F.jsxs)("svg",(0,A.Z)((0,A.Z)({viewBox:"0 0 24 24"},dO),{},{"aria-hidden":"true",children:[(0,F.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),(0,F.jsx)("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]}))},pO=function(){return(0,F.jsxs)("svg",(0,A.Z)((0,A.Z)({viewBox:"0 0 24 24"},dO),{},{"aria-hidden":"true",children:[(0,F.jsx)("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),(0,F.jsx)("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),(0,F.jsx)("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),(0,F.jsx)("circle",{cx:"3.5",cy:"6",r:"1.2",fill:"currentColor",stroke:"none"}),(0,F.jsx)("circle",{cx:"3.5",cy:"12",r:"1.2",fill:"currentColor",stroke:"none"}),(0,F.jsx)("circle",{cx:"3.5",cy:"18",r:"1.2",fill:"currentColor",stroke:"none"})]}))},hO=function(){return(0,F.jsxs)("svg",(0,A.Z)((0,A.Z)({viewBox:"0 0 24 24"},dO),{},{"aria-hidden":"true",children:[(0,F.jsx)("line",{x1:"10",y1:"6",x2:"21",y2:"6"}),(0,F.jsx)("line",{x1:"10",y1:"12",x2:"21",y2:"12"}),(0,F.jsx)("line",{x1:"10",y1:"18",x2:"21",y2:"18"}),(0,F.jsx)("path",{d:"M4 4h1v4"}),(0,F.jsx)("path",{d:"M3 8h2"}),(0,F.jsx)("path",{d:"M3.5 13.5h1.5v2H3.5"}),(0,F.jsx)("path",{d:"M3.5 13.5q0-.5.75-.5T5 13.5"}),(0,F.jsx)("path",{d:"M3.5 18.5H5"})]}))},mO=function(){return(0,F.jsx)("span",{className:"bpb-rte__divider","aria-hidden":"true"})},vO=function(e){var t=e.value,n=e.onChange,r=e.onBlur,i=e.error,o=e.touched,a=e.textareaRef,s=e.placeholder,l=void 0===s?"Share your hunt, ask a question, or request a critique.":s,u=(0,c.useState)(null),d=(0,p.Z)(u,2),f=d[0],h=d[1],m=(0,c.useRef)(n),v=(0,c.useRef)(r);m.current=n,v.current=r;var g=(0,c.useRef)(t||""),y=oj({extensions:[w_.configure({strike:!1,underline:!1,heading:{levels:[1,2,3]},link:!1}),Wj.configure({openOnClick:!1,autolink:!0,linkOnPaste:!0,defaultProtocol:"https",protocols:["http","https"],shouldAutoLink:function(e){return function(e){if(!e)return!1;try{var t=/^[a-z][a-z0-9+.-]*:/i.test(e)?e:"https://".concat(e),n=new URL(t).protocol;return"http:"===n||"https:"===n}catch(r){return!1}}(e)}}),A_.configure({suggestion:Z_()}),iO.configure({html:!1,tightLists:!0,linkify:!1,breaks:!1}),k_.configure({placeholder:l})],content:t||"",onUpdate:function(e){var t=e.editor.storage.markdown.getMarkdown();g.current=t,m.current(t)},onBlur:function(){v.current&&v.current()}});(0,c.useEffect)((function(){if(y){var e=y.view.dom;return a&&(a.current=e),function(){a&&a.current===e&&(a.current=null)}}}),[y,a]),(0,c.useEffect)((function(){if(y){var e=t||"";e!==g.current&&(e!==y.storage.markdown.getMarkdown()?(y.commands.setContent(e,{emitUpdate:!1}),g.current=e):g.current=e)}}),[y,t]);var b=tj({editor:y,selector:function(e){var t=e.editor;return{bold:!!t&&t.isActive("bold"),italic:!!t&&t.isActive("italic"),link:!!t&&t.isActive("link"),h1:!!t&&t.isActive("heading",{level:1}),h2:!!t&&t.isActive("heading",{level:2}),h3:!!t&&t.isActive("heading",{level:3}),bulletList:!!t&&t.isActive("bulletList"),orderedList:!!t&&t.isActive("orderedList")}}}),x=function(e){return e.preventDefault()},w=(0,c.useCallback)((function(){if(y){var e=y.state,t=e.selection,n=t.from,r=t.to,i=t.empty,o=y.getAttributes("link");if(o&&o.href){var a=px(e.doc.resolve(n),e.schema.marks.link);if(a){var s=e.doc.textBetween(a.from,a.to,"");return void h({text:s,url:o.href,range:[a.from,a.to],editing:!0})}}var l=i?"":e.doc.textBetween(n,r,"");h({text:l,url:"",range:[n,r],editing:!1})}}),[y]),k=(0,c.useCallback)((function(){y&&y.chain().focus().extendMarkRange("link").unsetLink().run()}),[y]);if(!y)return null;var S=function(e){return"bpb-rte__btn".concat(e?" is-active":"")},j=t||"",C=j.length>uO;return(0,F.jsxs)("div",{children:[(0,F.jsxs)("div",{className:"bpb-rte".concat(o&&i?" bpb-rte--error":""),children:[(0,F.jsxs)("div",{className:"bpb-rte__toolbar",role:"group","aria-label":"Formatting",children:[(0,F.jsx)("button",{type:"button",className:"".concat(S(b.bold)," bpb-rte__btn--b"),"aria-label":"Bold","aria-pressed":b.bold,onMouseDown:x,onClick:function(){return y.chain().focus().toggleBold().run()},children:"B"}),(0,F.jsx)("button",{type:"button",className:"".concat(S(b.italic)," bpb-rte__btn--i"),"aria-label":"Italic","aria-pressed":b.italic,onMouseDown:x,onClick:function(){return y.chain().focus().toggleItalic().run()},children:"I"}),(0,F.jsx)(mO,{}),(0,F.jsx)("button",{type:"button",className:S(b.link),"aria-label":"Insert link","aria-pressed":b.link,onMouseDown:x,onClick:w,children:(0,F.jsx)(fO,{})}),(0,F.jsx)(mO,{}),(0,F.jsx)("button",{type:"button",className:"".concat(S(b.h1)," bpb-rte__btn--h"),"aria-label":"Heading 1","aria-pressed":b.h1,onMouseDown:x,onClick:function(){return y.chain().focus().toggleHeading({level:1}).run()},children:"H1"}),(0,F.jsx)("button",{type:"button",className:"".concat(S(b.h2)," bpb-rte__btn--h"),"aria-label":"Heading 2","aria-pressed":b.h2,onMouseDown:x,onClick:function(){return y.chain().focus().toggleHeading({level:2}).run()},children:"H2"}),(0,F.jsx)("button",{type:"button",className:"".concat(S(b.h3)," bpb-rte__btn--h"),"aria-label":"Heading 3","aria-pressed":b.h3,onMouseDown:x,onClick:function(){return y.chain().focus().toggleHeading({level:3}).run()},children:"H3"}),(0,F.jsx)(mO,{}),(0,F.jsx)("button",{type:"button",className:S(b.bulletList),"aria-label":"Bulleted list","aria-pressed":b.bulletList,onMouseDown:x,onClick:function(){return y.chain().focus().toggleBulletList().run()},children:(0,F.jsx)(pO,{})}),(0,F.jsx)("button",{type:"button",className:S(b.orderedList),"aria-label":"Numbered list","aria-pressed":b.orderedList,onMouseDown:x,onClick:function(){return y.chain().focus().toggleOrderedList().run()},children:(0,F.jsx)(hO,{})})]}),(0,F.jsx)(XS,{className:"bpb-rte__content",editor:y}),(0,F.jsx)(HD,{editor:y,pluginKey:"bpbLinkMenu",shouldShow:function(e){var t=e.editor;return!f&&t.isActive("link")},options:{placement:"bottom",offset:8},children:(0,F.jsxs)("div",{className:"bpb-rte__linkmenu",role:"group","aria-label":"Link actions",children:[(0,F.jsx)("button",{type:"button",className:"bpb-rte__linkmenu-btn",onMouseDown:x,onClick:w,children:"Edit link"}),(0,F.jsx)("span",{className:"bpb-rte__linkmenu-sep","aria-hidden":"true"}),(0,F.jsx)("button",{type:"button",className:"bpb-rte__linkmenu-btn",onMouseDown:x,onClick:k,children:"Unlink"})]})})]}),(0,F.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",gap:12,marginTop:6},children:[(0,F.jsx)("div",{style:{flex:"1 1 auto"},children:o&&i&&(0,F.jsx)("div",{style:{color:"#C0392B",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,lineHeight:"18px"},children:i})}),(0,F.jsxs)("span",{style:{flexShrink:0,color:C?"#C0392B":"#9B9CA5",fontFamily:'"Jost", system-ui, sans-serif',fontSize:12,lineHeight:"18px"}
2,children:[j.length.toLocaleString()," / ",uO.toLocaleString()]})]}),f&&(0,F.jsx)(cO,{initialText:f.text,initialUrl:f.url,editing:f.editing,onSubmit:function(e){var t=e.text,n=e.url;if(y&&f){var r=(0,p.Z)(f.range,2),i=r[0],o=r[1],a=t||n;y.chain().focus().insertContentAt({from:i,to:o},[{type:"text",text:a,marks:[{type:"link",attrs:{href:n}}]}]).run(),h(null)}},onCancel:function(){h(null),y&&y.commands.focus()}})]})},gO=n(1749),yO=n(3056),bO=n(6689),xO=n(6856),wO={display:"block",marginBottom:4,color:"#6B6B70",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:600,letterSpacing:"0.06em",lineHeight:"16px",textTransform:"uppercase"},kO={marginBottom:10,color:"#8A8A90",fontFamily:'"Jost", system-ui, sans-serif',fontSize:12,lineHeight:"16px"},SO={marginTop:8,color:"#C0392B",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,lineHeight:"18px"},jO=function(e){var t=e.photos,n=e.onAdd,r=e.marginTop,i=void 0===r?0:r,o=(0,c.useRef)(null),a=t.length>=6;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("input",{ref:o,type:"file",accept:"image/jpeg,image/png,image/heic,image/heif,.heic,.heif",multiple:!0,onChange:function(e){n(e.target.files),e.target.value=""},style:{display:"none"}}),(0,F.jsxs)("button",{type:"button",onClick:function(){return o.current&&o.current.click()},disabled:a,style:{marginTop:i,display:"inline-flex",alignItems:"center",gap:8,paddingTop:10,paddingBottom:10,paddingLeft:16,paddingRight:16,backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"dashed",borderColor:a?"#E2E3E6":"#9B9CA5",borderRadius:8,cursor:a?"not-allowed":"pointer",color:a?"#9B9CA5":"#05081E",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:500},children:[(0,F.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:a?"#9B9CA5":"#05081E",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,F.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),a?"Photo limit reached (".concat(6,")"):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"bpb-composer-add-label-pointer",children:"Browse or drag photos"}),(0,F.jsx)("span",{className:"bpb-composer-add-label-touch",children:"Add photos"})]})]})]})},CO=function(e){var t=e.photos,n=e.onAdd,r=e.onRemove,i=e.onReorder,o=e.error,a=e.showAddButton,s=void 0===a||a,l=Math.max(1,Math.ceil(t.length/3));return(0,F.jsxs)("div",{children:[(0,F.jsx)("label",{style:wO,children:"Photos"}),(0,F.jsxs)("div",{style:kO,children:["Optional. Up to ",6," photos, JPEG, PNG, or HEIC, 33MB max each."," ",(0,F.jsx)("span",{className:"bpb-composer-drag-hint",children:"Drag photos in to add, or "}),"drag to reorder."]}),t.length>0&&(0,F.jsx)(gO.d,{onChange:function(e,n,r){i((0,yO.L)(t,n,r))},children:(0,F.jsx)(bO.$,{id:"bpb-composer-photos",boxesPerRow:3,rowHeight:132,style:{height:132*l},children:t.map((function(e,t){return(0,F.jsx)(xO.P,{children:(0,F.jsxs)("div",{style:{position:"relative",width:"100%",height:"100%",padding:4,boxSizing:"border-box",cursor:"grab"},children:[(0,F.jsx)("img",{src:e.displayUrl,alt:"",draggable:!1,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:8,backgroundColor:"#F2F3F4",display:"block"}}),(0,F.jsx)("span",{style:{position:"absolute",left:10,top:10,minWidth:20,height:20,paddingLeft:4,paddingRight:4,display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(5,8,30,0.75)",color:"#FFFFFF",borderRadius:9999,fontFamily:'"Jost", system-ui, sans-serif',fontSize:12,fontWeight:500},children:t+1}),(0,F.jsx)("button",{type:"button","aria-label":"Remove photo ".concat(t+1),onClick:function(){return r(e.key)},onPointerDown:function(e){return e.stopPropagation()},style:{position:"absolute",right:10,top:10,width:24,height:24,display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(5,8,30,0.75)",border:"none",borderRadius:9999,color:"#FFFFFF",cursor:"pointer",padding:0},children:(0,F.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#FFFFFF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,F.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})},e.key)}))})}),s&&(0,F.jsx)(jO,{photos:t,onAdd:n,marginTop:t.length>0?4:0}),o&&(0,F.jsx)("div",{style:SO,children:o})]})},_O={borderRadius:10,border:"1px solid #E8E8EA",backgroundColor:"#FFFDF0"},EO={margin:0,fontFamily:'"Jost", system-ui, sans-serif',fontSize:15,fontWeight:600,lineHeight:"20px",color:"#05081E"},NO={margin:0,marginTop:2,fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:400,lineHeight:"20px",color:"#05081E"},AO={display:"block",width:"100%",textAlign:"left",padding:"10px 12px",borderRadius:8,borderWidth:1,borderStyle:"solid",cursor:"pointer",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",color:"#05081E"},DO={margin:0,fontFamily:'"Jost", system-ui, sans-serif',fontSize:12,fontWeight:400,lineHeight:"16px",color:"#6B6C75"},TO={flexShrink:0,border:"none",background:"none",padding:8,margin:-8,cursor:"pointer",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:500,lineHeight:"18px"},IO=function(){return(0,F.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",focusable:"false",children:[(0,F.jsx)("path",{d:"M7 1a4.2 4.2 0 0 0-2.4 7.65c.4.3.65.75.65 1.25v.35h3.5v-.35c0-.5.24-.95.65-1.25A4.2 4.2 0 0 0 7 1Z",fill:"none",stroke:"#8A7300",strokeWidth:"1.3",strokeLinejoin:"round"}),(0,F.jsx)("path",{d:"M5.6 12.3h2.8",fill:"none",stroke:"#8A7300",strokeWidth:"1.3",strokeLinecap:"round"})]})},PO=function(e){var t=e.feedback,n=e.suggestions,r=e.onAccept,i=e.onDismiss;return t&&Array.isArray(n)&&0!==n.length?(0,F.jsxs)("div",{id:"bpb-post-title-coach",className:"bpb-title-coach",role:"status","aria-live":"polite",style:_O,children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",ga
2p:10},children:[(0,F.jsx)("div",{className:"bpb-title-coach-tile","aria-hidden":"true",children:(0,F.jsx)(IO,{})}),(0,F.jsxs)("div",{style:{flex:1,minWidth:0,marginTop:4},children:[(0,F.jsx)("p",{className:"bpb-title-coach-header",style:EO,children:"Strong title = more responses"}),(0,F.jsx)("p",{className:"bpb-title-coach-feedback",style:NO,children:t})]})]}),(0,F.jsx)("div",{className:"bpb-title-coach-suggestions",style:{display:"flex",flexDirection:"column",gap:8,marginTop:12},children:n.map((function(e,t){return(0,F.jsx)("button",{type:"button",className:"bpb-title-coach-suggestion",onClick:function(){return r(e,t)},style:AO,children:e},"".concat(t,"-").concat(e))}))}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,marginTop:12},children:[(0,F.jsx)("p",{className:"bpb-title-coach-microcopy",style:DO,children:"Tap one to use it, or keep yours."}),(0,F.jsx)("button",{type:"button",className:"bpb-title-coach-dismiss",onClick:i,"aria-label":"No thanks, hide title suggestions for this post",style:TO,children:"No thanks"})]})]}):null},FO=function(e){var t=e.coach,n=e.onAccept,r=e.onDismiss,i=(0,c.useState)("closed"),o=(0,p.Z)(i,2),a=o[0],s=o[1],l=(0,c.useState)(null),u=(0,p.Z)(l,2),d=u[0],f=u[1],h=(0,c.useRef)(null),m=(0,c.useRef)("closed"),v=(0,c.useCallback)((function(e){m.current=e,s(e)}),[]),g=(0,c.useRef)(0);(0,c.useEffect)((function(){var e=h.current;if(h.current=t,t){if(f(t),!e||"open"!==m.current){v("closed");var n=setTimeout((function(){return v("open")}),400),r=requestAnimationFrame((function(){var e=requestAnimationFrame((function(){clearTimeout(n),v("open")}));g.current=e}));return g.current=r,function(){cancelAnimationFrame(g.current),clearTimeout(n)}}}else e&&v("closing")}),[t,v]),(0,c.useEffect)((function(){if("closing"===a){var e=setTimeout((function(){v("closed"),f(null)}),function(){try{return"undefined"!==typeof window&&"function"===typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch(e){return!1}}()?150:350);return function(){return clearTimeout(e)}}}),[a,v]);var y="closing"===a,b=["bpb-title-coach-slot","open"===a?"bpb-title-coach-slot--open":"",y?"bpb-title-coach-slot--closing":""].filter(Boolean).join(" ");return(0,F.jsx)("div",{className:b,children:(0,F.jsx)("div",{className:"bpb-title-coach-slot__inner",inert:y?"":void 0,children:d&&(0,F.jsx)(PO,{feedback:d.feedback,suggestions:d.suggestions,onAccept:n,onDismiss:r})})})},OO=function(e,t,n){var r="string"===typeof e?e.trim():"",i="string"===typeof t?t.trim():"";return r.length>=8&&i.length>=n},MO=function(e){var t=e.title,n=e.body,r=e.category,i=e.enabled,o=void 0===i||i,a=e.postId,s=(0,c.useState)(null),l=(0,p.Z)(s,2),u=l[0],h=l[1],m=(0,c.useRef)(!1),v=(0,c.useRef)(0),g=(0,c.useRef)(!1),y=(0,c.useRef)(!1),b=(0,c.useRef)(null),x=(0,c.useRef)(0),w=(0,c.useRef)(!1),k=(0,c.useRef)(!1),S=(0,c.useRef)(!0),j=(0,c.useRef)(new Set),C=(0,c.useRef)({title:t,body:n,category:r,enabled:o});(0,c.useEffect)((function(){C.current={title:t,body:n,category:r,enabled:o}}),[t,n,r,o]),(0,c.useEffect)((function(){m.current=!1,v.current+=1,g.current=!1,y.current=!1,b.current=null,x.current=0,w.current=!1,k.current=!1,j.current=new Set,h(null)}),[a]),(0,c.useEffect)((function(){return S.current=!0,function(){S.current=!1}}),[]);var _=(0,c.useCallback)((function(){m.current=!0}),[]),E=(0,c.useCallback)((function(){return m.current&&!g.current&&!w.current&&!k.current&&x.current<3}),[]),N=(0,c.useCallback)(function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r,i,o,a,s,l,c,u,f,p,m;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.title,o=t.body,a=t.category,S.current&&E()){e.next=3;break}return e.abrupt("return");case 3:if(s="string"===typeof i?i.trim():"",!j.current.has(s.toLowerCase())){e.next=6;break}return e.abrupt("return");case 6:return g.current=!0,x.current+=1,v.current+=1,l=v.current,c=null,e.prev=11,e.next=14,(0,he.vn)({title:s,body:o,category:a});case 14:p=e.sent,c=null!==(u=null===p||void 0===p||null===(f=p.data)||void 0===f?void 0:f.data)&&void 0!==u?u:null,e.next=21;break;case 18:return e.prev=18,e.t0=e.catch(11),e.abrupt("return");case 21:if(S.current){e.next=23;break}return e.abrupt("return");case 23:if(v.current===l){e.next=25;break}return e.abrupt("return");case 25:if(!w.current){e.next=27;break}return e.abrupt("return");case 27:if(null===(n=c)||void 0===n||!n.disabled){e.next=30;break}return k.current=!0,e.abrupt("return");
2case 30:if(("string"===typeof C.current.title?C.current.title.trim():"")===s||y.current){e.next=35;break}return y.current=!0,g.current=!1,e.abrupt("return");case 35:if("coach"===(null===(r=c)||void 0===r?void 0:r.verdict)&&Array.isArray(c.suggestions)){e.next=37;break}return e.abrupt("return");case 37:if(m=c.suggestions.filter((function(e){return"string"===typeof e&&e.trim().length})),m.length){e.next=40;break}return e.abrupt("return");case 40:m.forEach((function(e){return j.current.add(e.trim().toLowerCase())})),h({feedback:c.feedback,suggestions:m});case 42:case"end":return e.stop()}}),e,null,[[11,18]])})));return function(t){return e.apply(this,arguments)}}(),[E]);(0,c.useEffect)((function(){var e=b.current;b.current=n,o&&null!==e&&n!==e&&E()&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=e.body;return OO(t,n,300)}({title:t,body:n})&&N({title:t,body:n,category:r})}),[t,n,r,o,E,N]);var A=(0,c.useCallback)((function(){var e=C.current,t=e.title,n=e.body,r=e.category;e.enabled&&E()&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=e.body;return OO(t,n,140)}({title:t,body:n})&&N({title:t,body:n,category:r})}),[E,N]);return{coach:u,noteTyping:_,noteFieldBlur:A,acceptSuggestion:(0,c.useCallback)((function(){h(null)}),[]),dismiss:(0,c.useCallback)((function(){w.current=!0,h(null)}),[])}},ZO=["image/jpeg","image/png","image/heic","image/heif"],RO={display:"block",marginBottom:8,color:"#6B6B70",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:600,letterSpacing:"0.06em",lineHeight:"16px",textTransform:"uppercase"},LO={marginTop:6,color:"#C0392B",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,lineHeight:"18px"},BO={color:"#696B78",fontFamily:'"Jost", system-ui, sans-serif',fontSize:15,lineHeight:"24px"},zO=[{title:"Lead with your question or point.",body:"People scan. Put the most important thing in the first line."},{title:"Photos make posts better.",body:"Drag any images right into the post. Up to 6 per post."},{title:"Keep long posts skimmable.",body:"Break long posts into short paragraphs so they're easy to scan."}],UO=["Shot this for this week's hunt. Curious what catches your eye.","My take on this week's hunt. What would you have done differently?","Fresh from this week's hunt. Open to honest thoughts.","Hunted this one this week. What stands out to you?","Just hunted this. Would love your eyes on it.","Here's my photo from this week's hunt. What's working and what isn't?","Took this for the hunt. Tell me what you see.","My hunted photo this week. Honest thoughts welcome.","Where would you take this one next?","What would you change here?"],HO=["My shot this week","One from this week's hunt","My take on this week's hunt","Fresh from the hunt","This week's hunt, my try"],WO=function(e){return e[Math.floor(Math.random()*e.length)]},qO=function(){var e=(0,h.s0)(),t=(0,h.TH)(),n=(0,h.UO)().postId,r=!!n,i=(0,c.useState)("undefined"!==typeof window&&window.matchMedia("(max-width: 767px)").matches),o=(0,p.Z)(i,2),a=o[0],s=o[1];(0,c.useEffect)((function(){if("undefined"!==typeof window){var e=window.matchMedia("(max-width: 767px)"),t=function(e){return s(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}}),[]),(0,c.useLayoutEffect)((function(){try{window.scrollTo({top:0,left:0,behavior:"instant"})}catch(e){}}),[n]);var l=(0,c.useRef)(t.state&&t.state.source||null),u=(0,c.useRef)(r?null:t.state&&t.state.prefillFromHunt||null),m=(0,c.useState)((function(){return u.current?{category:"critique",title:WO(HO),body:WO(UO)}:null})),y=(0,p.Z)(m,1)[0],x=(0,c.useCallback)((function(r){r&&r.preventDefault(),t.key&&"default"!==t.key?e(-1):e("/board/post/".concat(n))}),[e,t.key,n]),w=(0,c.useState)((function(){var e=u.current;return e&&e.photoId&&e.photoUrl?[{kind:"hunt-ref",key:"hunt-".concat(e.photoId),photoId:e.photoId,displayUrl:e.photoUrl}]:[]})),k=(0,p.Z)(w,2),S=k[0],C=k[1],_=(0,c.useState)(null),E=(0,p.Z)(_,2),N=E[0],D=E[1],T=(0,c.useState)(null),I=(0,p.Z)(T,2),P=I[0],O=I[1],M=(0,c.useState)(!1),Z=(0,p.Z)(M,2),R=Z[0],L=Z[1],B=(0,c.useRef)(0),z=function(e){var t=e.dataTransfer&&e.dataTransfer.types;return!!t&&Array.from(t).includes("Files")},U=(0,c.useRef)(null),H=(0,c.useRef)(null),W=(0,c.useRef)(null),q=(0,c.useState)(r?"loading":"ready"),V=(0,p.Z)(q,2),G=V[0],$=V[1],J=(0,c.useState)(null),K=(0,p.Z)(J,2),Y=K[0],X=K[1],Q=(0,c.useState)([]),ee=(0,p.Z)(Q,2),te=ee[0],ne=ee[1],re=(0,c.useState)(0),ie=(0,p.Z)(re,2),oe=ie[0],ae=ie[1],se=(0,c.useMemo)((function(){var e=(0,b.a)(localStorage.getItem("Data"));return e&&e.userid}),[]),le=(0,c.useRef)(S);le.current=S,(0,c.useEffect)((function(){return function(){le.current.forEach((function(e){"new"===e.kind&&URL.revokeObjectURL(e.displayUrl)}))}}),[]),(0,c.useEffect)((function(){if(r){var e=!1;return $("loading"),(0,he.wD)({postId:n,managesReadState:!0}).then((function(t){if(!e){var n=t&&t.data&&t.data.data&&t.data.data.post;if(n){var r=n.User||n.author||{};if(se&&r.id===se&&!n.is_locked){X({category:n.category||"",title:n.title||"",body:n.body||""});var i=Array.isArray(n.post_photos)?n.post_photos:[];C(i.map((function(e){return{kind:"existing",key:"existing-".concat(e.id),id:e.id,displayUrl:e.photo_url}}))),ne(i.map((function(e){return e.id}))),$("ready")}else $("blocked")}else $("blocked")}}
2)).catch((function(t){if(!e){var n=t&&t.response&&t.response.status;$(404===n?"blocked":"error")}})),function(){e=!0}}}),[r,n,se,oe]);var ce=(0,c.useState)(!1),ue=(0,p.Z)(ce,2),de=ue[0],fe=ue[1];(0,c.useEffect)((function(){if(!r){var e=!1;return(0,he.vq)().then((function(t){e||!1===(t&&t.data&&t.data.data||{}).hasPosted&&fe(!0)})).catch((function(){})),function(){e=!0}}}),[r]);var pe=(0,c.useRef)(!1);(0,c.useEffect)((function(){if(!r&&!pe.current){pe.current=!0;try{var e=(0,b.a)(localStorage.getItem("Data"))||{},t=e.userid||e.userId||null;j.Z.getInstance().logEvent("Board Composer Opened",{UserID:t,auth_state:t?"logged_in":"logged_out",nav_origin:l.current||"direct"})}catch(n){}}}),[r]);var me=(0,Lt.TA)({initialValues:Y||y||{category:"",title:"",body:""},enableReinitialize:!0,validationSchema:Bt.zk,onSubmit:function(){var t=(0,f.Z)((0,d.Z)().mark((function t(i){var o,a,s,c,f,p,h,m,v,g,y;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(O(null),t.prev=1,!r){t.next=16;break}return(o=new FormData).append("postId",n),o.append("category",i.category),o.append("title",i.title.trim()),o.append("body",i.body.trim()),a=S.some((function(e){return"new"===e.kind})),s=S.filter((function(e){return"existing"===e.kind})).map((function(e){return e.id})),c=!a&&s.length===te.length&&s.every((function(e,t){return e===te[t]})),c||(f=S.map((function(e){return"existing"===e.kind?{kind:"existing",id:e.id}:{kind:"new",clientKey:e.clientKey}})),o.append("orderedPhotos",JSON.stringify(f)),S.forEach((function(e){"new"===e.kind&&o.append("photo_".concat(e.clientKey),e.file)}))),t.next=14,(0,he.IW)(o);case 14:return x(),t.abrupt("return");case 16:return(p=new FormData).append("category",i.category),p.append("title",i.title.trim()),p.append("body",i.body.trim()),S.forEach((function(e){"new"===e.kind?p.append("photos",e.file):"hunt-ref"===e.kind&&p.append("sourcePhotoId",e.photoId)})),u.current&&p.append("source","hunt_share"),t.next=24,(0,he.iz)(p);case 24:if(h=t.sent,m=h&&h.data&&h.data.data&&h.data.data.post&&h.data.data.post.id){t.next=29;break}return O("Your post was created, but we could not open it. Check the Board."),t.abrupt("return");case 29:try{v=(0,b.a)(localStorage.getItem("Data"))||{},g=v.userid||v.userId||null,j.Z.getInstance().logEvent("Board Thread Created",{UserID:g,auth_state:g?"logged_in":"logged_out",post_id:m,category:i.category,has_image:S.length>0,char_len:i.body.trim().length,source:l.current||"direct",post_source:h&&h.data&&h.data.data&&h.data.data.post_source||(u.current?"hunt_share":"direct")})}catch(d){}e("/board/post/".concat(m),{replace:!0,state:{source:"author_created"}}),t.next=37;break;case 33:t.prev=33,t.t0=t.catch(1),y=t.t0&&t.t0.response&&t.t0.response.data&&t.t0.response.data.message,O("string"===typeof y&&y?y:r?"Something went wrong saving your changes. Please try again.":"Something went wrong publishing your post. Please try again.");case 37:case"end":return t.stop()}}),t,null,[[1,33]])})));return function(e){return t.apply(this,arguments)}}()}),ve=function(e){D(null);var t=Array.from(e||[]);if(t.length){for(var n=[],r=null,i=0,o=t;i<o.length;i++){var a=o[i];if(S.length+n.length>=6){r="You can attach up to ".concat(6," photos.");break}if(ZO.includes(a.type)||(0,Nn.zr)(a))if(a.size>34603008)r="Each photo must be 33MB or smaller.";else{var s="undefined"!==typeof crypto&&crypto.randomUUID?crypto.randomUUID():"k".concat(Date.now()).concat(Math.random().toString(36).slice(2));n.push({kind:"new",key:"new-".concat(s),clientKey:s,file:a,displayUrl:(0,Nn.zr)(a)?Nn.Bk:URL.createObjectURL(a)})}else r="Photos must be JPEG, PNG, or HEIC."}n.length&&C((function(e){return[].concat((0,v.Z)(e),n)})),r&&D(r)}},ge=MO({title:me.values.title,body:me.values.body,category:me.values.category,enabled:!r,postId:n}),ye=ge.coach,be=ge.noteTyping,xe=ge.noteFieldBlur,we=ge.acceptSuggestion,ke=ge.dismiss,Se=(0,c.useCallback)((function(e,t){me.setFieldValue("title",e),me.setFieldTouched("title",!0,!1),we();try{var n;null===(n=H.current)||void 0===n||n.focus()}catch(i){}try{var r=(0,b.a)(localStorage.getItem("Data"))||{};j.Z.getInstance().logEvent("Board Title Coach Suggestion Accepted",{UserID:r.userid||r.userId||null,suggestion_index:t})}catch(o){}}),[me,we]),je=(0,c.useCallback)((function(){ke();try{var e;null===(e=H.current)||void 0===e||e.focus()}catch(n){}try{var t=(0,b.a)(localStorage.getItem("Data"))||{};j.Z.getInstance().logEvent("Board Title Coach Dismissed",{UserID:t.userid||t.userId||null})}catch(r){}}),[ke]),Ce=(0,c.useCallback)((function(e){var t=W.current;(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=e.shiftKey,r=void 0!==n&&n,i=e.altKey,o=void 0!==i&&i,a=e.ctrlKey,s=void 0!==a&&a,l=e.metaKey,c=void 0!==l&&l,u=e.isComposing,d=void 0!==u&&u,f=e.coachVisible,p=void 0!==f&&f,h=e.bodyReady;return"Tab"===t&&!(r||o||s||c)&&!d&&!p&&!(void 0===h||!h)})({key:e.key,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,isComposing:Boolean(e.nativeEvent&&e.nativeEvent.isComposing),coachVisible:Boolean(ye&&ye.feedback&&Array.isArray(ye.suggestions)&&ye.suggestions.length>0),bodyReady:Boolean(t)})&&(e.preventDefault(),t.focus())}),[ye]),_e=(0,c.useRef)(null);(0,c.useEffect)((function(){if(ye&&_e.current!==ye){_e.current=ye;try{var e=(0,b.a)(localStorage.getItem("Data"))||{};j.Z.getInstance().logEvent("Board Title Coach Shown",{UserID:e.userid||e.userId||null,category:me.values.category||null,suggestion_count:ye.suggestions.length})}catch(t){}}}),[ye,me.values.category]);var Ee=(0,c.useRef)(0);(0,c.useEffect)((function(){if(me.submitCount!==Ee.current&&0!==me.submitCount&&!me.isSubmitting&&(Ee.current=me.submitCount,!me.isValid)){var e=[{field:"category",el:U.current},{field:"title",el:H.current},{field:"body",el:W.current}].find((function(e){var t=e.field,n=e.el;return me.errors[t]&&n}));if(e){try{e.el.focus({preventScroll:!0})}catch(t){e.el.focus()}e.el.scrollIntoView({behavior:"smooth",block:"center"})}}}
2),[me.submitCount,me.isValid,me.isSubmitting,me.errors]);var Ne=r?"/board/post/".concat(n):"/board",Ae=r?"Back to post":"Back to Board",De=!r||"ready"===G,Te=me.submitCount>0&&!me.isValid,Ie=a?r?me.isSubmitting?"Saving\u2026":"Save":me.isSubmitting?"Publishing\u2026":"Publish":r?me.isSubmitting?"Saving\u2026":"Save changes":me.isSubmitting?"Publishing\u2026":"Publish post",Pe=(0,F.jsx)("button",{type:"submit",disabled:me.isSubmitting,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingTop:12,paddingBottom:12,paddingLeft:28,paddingRight:28,backgroundColor:"#FFD621",border:"none",borderRadius:9999,color:"#1A1A1A",cursor:me.isSubmitting?"wait":"pointer",opacity:me.isSubmitting?.6:1,fontFamily:'"Jost", system-ui, sans-serif',fontSize:15,fontWeight:600},children:Ie}),Fe=(0,F.jsx)(g.rU,{to:Ne,onClick:r?x:void 0,style:{color:"#6B6B70",textDecoration:"none",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:a?400:500},children:"Cancel"}),Oe=(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[(0,F.jsx)(jO,{photos:S,onAdd:ve}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginLeft:"auto",flexShrink:0},children:[Fe,Pe]})]}),Me=(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[Pe,Fe]});return(0,F.jsx)("div",{style:{paddingTop:24,paddingBottom:60},children:(0,F.jsxs)("div",{style:{maxWidth:1212,marginLeft:"auto",marginRight:"auto",boxSizing:"border-box",paddingLeft:16,paddingRight:16},children:[(0,F.jsxs)(g.rU,{to:Ne,onClick:r?x:void 0,style:{display:"inline-flex",alignItems:"center",gap:6,marginBottom:16,color:"#05081E",textDecoration:"none",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:500},children:[(0,F.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#05081E",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[(0,F.jsx)("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),(0,F.jsx)("polyline",{points:"12 19 5 12 12 5"})]}),Ae]}),r&&"loading"===G&&(0,F.jsx)("p",{style:BO,children:"Loading the post\u2026"}),r&&"blocked"===G&&(0,F.jsx)("p",{style:BO,children:"This post can't be edited. It may have been removed, the thread may be locked, or it isn't one of your posts."}),r&&"error"===G&&(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{style:BO,children:"Something went wrong loading this post. Please try again."}),(0,F.jsx)("button",{type:"button",onClick:function(){return ae((function(e){return e+1}))},style:{marginTop:8,background:"none",border:"none",padding:0,color:"#01655A",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:500,cursor:"pointer"},children:"Try again"})]}),De&&(0,F.jsxs)("div",{className:"bpb-composer-row",style:{display:"flex",flexWrap:"wrap",alignItems:"flex-start",rowGap:32,columnGap:40},children:[(0,F.jsxs)("div",{style:{width:"100%"},children:[(0,F.jsx)("h1",{className:"bpb-composer-h1",children:r?"Edit Post":"New Post"}),!r&&u.current&&(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:8},children:[(0,F.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0},"aria-hidden":"true",children:[(0,F.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"#6B6C75",strokeWidth:"2"}),(0,F.jsx)("circle",{cx:"12",cy:"12",r:"5",fill:"none",stroke:"#6B6C75",strokeWidth:"2"}),(0,F.jsx)("circle",{cx:"12",cy:"12",r:"1",fill:"#6B6C75"})]}),(0,F.jsx)("span",{style:{fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:400,lineHeight:"18px",color:"#6B6C75"},children:"We set this up from your hunt shot. Edit anything."})]}),!r&&de&&(0,F.jsxs)(g.rU,{to:"/board/welcome",onClick:function(){window.scrollTo(0,0)},style:{display:"inline-flex",alignItems:"center",gap:6,marginTop:10,textDecoration:"none",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:400,lineHeight:"18px",color:"#696B78"},children:["New here? Tips & Rules",(0,F.jsx)("span",{style:{fontWeight:600,color:"#E8B800"},"aria-hidden":"true",children:"\u2192"})]})]}),(0,F.jsxs)("form",{onSubmit:me.handleSubmit,noValidate:!0,className:"bpb-composer-main",onDragEnter:function(e){z(e)&&(e.preventDefault(),B.current+=1,L(!0))},onDragOver:function(e){z(e)&&e.preventDefault()},onDragLeave:function(e){z(e)&&(B.current=Math.max(0,B.current-1),0===B.current&&L(!1))},onDrop:function(e){z(e)&&(e.preventDefault(),B.current=0,L(!1),e.dataTransfer.files&&e.dataTransfer.files.length>0&&ve(e.dataTransfer.files))},style:{position:"relative",flexGrow:1,flexShrink:1,flexBasis:0,minWidth:0,maxWidth:820,boxSizing:"border-box",backgroundColor:"#FFFFFF",borderWidth:1,borderStyle:"solid",borderColor:"#E8E8EA",borderRadius:12,paddingTop:32,paddingBottom:32,paddingLeft:32,paddingRight:32},children:[R&&(0,F.jsx)("div",{"aria-hidden":"true",style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 244, 184, 0.92)",borderWidth:2,borderStyle:"dashed",borderColor:"#FFD621",borderRadius:12,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",zIndex:10},children:(0,F.jsx)("div",{style:{color:"#1A1A1A",fontFamily:'"Jost", system-ui, sans-serif',fontSize:20,fontWeight:600,textAlign:"center",paddingLeft:24,paddingRight:24},children:"Drop photos to add them"})}),(0,F.jsxs)("div",{className:"bpb-composer-form-fields",style:{display:"flex",flexDirection:"column",gap:24},children:[(0,F.jsx)(aN,{value:me.values.category,onChange:function(e){return me.setFieldValue("category",e)},onBlur:function(){return me.setFieldTouched("category",!0)},error:me.errors.category,touched:me.touched.category,labelRef:U}),(0,F.jsxs)("div",{children:[(0,F.jsx)("label",{htmlFor:"bpb-post-title",style:RO,children:"Title"}),(0,F.jsx)("input",{id:"bpb-post-title",ref:H,name:"title",type:"text",maxLength:200,value:me.values.title,onChange:function(e){be(),me.handleChange(e)},onKeyDown:Ce,onBlur:function(e){me.handleBlur(e),xe()},placeholder:"Give your post a clear title","aria-invalid":Boolean(me.touched.title&&me.errors.title),"aria-describedby":[me.touched.title&&me.errors.title?"bpb-post-title-error":null,"bpb-post-title-helper",ye?"bpb-post-title-coach":null].filter(
2Boolean).join(" "),style:{width:"100%",boxSizing:"border-box",paddingTop:12,paddingBottom:12,paddingLeft:12,paddingRight:12,borderWidth:1,borderStyle:"solid",borderColor:me.touched.title&&me.errors.title?"#C0392B":"#D8D8DC",borderRadius:8,color:"#1A1A1A",fontFamily:'"Jost", system-ui, sans-serif',fontSize:20,fontWeight:500,lineHeight:"24px"}}),(0,F.jsxs)("div",{style:{marginTop:6},children:[me.touched.title&&me.errors.title&&(0,F.jsx)("div",{id:"bpb-post-title-error",style:(0,A.Z)((0,A.Z)({},LO),{},{marginBottom:4}),children:me.errors.title}),(0,F.jsx)("div",{id:"bpb-post-title-helper",style:{fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:400,lineHeight:"18px",color:"#6B6C75"},children:Ei.YE}),(0,F.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:4},children:(0,F.jsxs)("span",{style:{flexShrink:0,color:"#9B9CA5",fontFamily:'"Jost", system-ui, sans-serif',fontSize:12,lineHeight:"18px"},children:[me.values.title.length," / 200"]})}),(0,F.jsx)(FO,{coach:ye,onAccept:Se,onDismiss:je})]})]}),(0,F.jsx)(vO,{value:me.values.body,onChange:function(e){be(),me.setFieldValue("body",e)},onBlur:function(){me.setFieldTouched("body",!0),xe()},error:me.errors.body,touched:me.touched.body,textareaRef:W}),(0,F.jsx)(CO,{photos:S,onAdd:ve,onRemove:function(e){D(null),C((function(t){var n=t.find((function(t){return t.key===e}));return n&&"new"===n.kind&&URL.revokeObjectURL(n.displayUrl),t.filter((function(t){return t.key!==e}))}))},onReorder:function(e){return C(e)},error:N,showAddButton:!a}),P&&(0,F.jsx)("div",{style:{padding:12,backgroundColor:"#FCEBEA",borderWidth:1,borderStyle:"solid",borderColor:"#E8B9B4",borderRadius:8,color:"#C0392B",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,lineHeight:"20px"},children:P}),(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[a?Oe:Me,Te&&(0,F.jsx)("div",{role:"alert","aria-live":"assertive",style:{color:"#C0392B",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,lineHeight:"18px"},children:r?"Please fix the errors above to save changes.":"Please fix the errors above to publish."})]})]})]}),(0,F.jsx)("aside",{className:"bpb-composer-tips",style:{width:320,flexShrink:0},children:(0,F.jsxs)("div",{className:"bpb-composer-tips-card",children:[(0,F.jsx)("div",{style:{marginBottom:14,color:"#6B6B70",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,fontWeight:600,letterSpacing:"0.06em",lineHeight:"16px",textTransform:"uppercase"},children:"Posting tips"}),(0,F.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:zO.map((function(e,t){return(0,F.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:10},children:[(0,F.jsx)("div",{style:{flexShrink:0,marginTop:1,display:"flex",alignItems:"center",justifyContent:"center",width:18,height:18,borderRadius:"50%",backgroundColor:"#FFF4B8",color:"#7C6940",fontFamily:'"Jost", system-ui, sans-serif',fontSize:11,fontWeight:700,lineHeight:"14px"},children:t+1}),(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{style:{color:"#1A1A1A",fontFamily:'"Jost", system-ui, sans-serif',fontSize:14,fontWeight:600,lineHeight:"130%"},children:e.title}),(0,F.jsx)("div",{style:{marginTop:2,color:"#6B6B70",fontFamily:'"Jost", system-ui, sans-serif',fontSize:13,lineHeight:"145%"},children:e.body})]})]},e.title)}))})]})})]})]})})},VO=function(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ce.Z,{}),(0,F.jsx)("main",{className:"site-content",id:"main",style:{paddingTop:0,backgroundColor:"#FAFAF7",minHeight:"calc(100vh - 80px)"},children:(0,F.jsx)(qO,{})})]})},GO=n(7005),$O=n(8040),JO=n(2260),KO=function(){var e=(0,c.useState)(""),t=(0,p.Z)(e,2),n=(t[0],t[1]),r=(0,c.useState)(""),i=(0,p.Z)(r,2),o=i[0],a=i[1],s=(0,c.useState)(""),l=(0,p.Z)(s,2),u=(l[0],l[1]),h=(0,c.useState)(""),m=(0,p.Z)(h,2),v=m[0],g=m[1],w=(0,c.useState)(!1),k=(0,p.Z)(w,2),S=k[0],C=k[1],_=(0,c.useState)({x:0,y:0}),E=(0,p.Z)(_,2),N=E[0],A=E[1],D=(0,c.useState)(1),T=(0,p.Z)(D,2),I=T[0],P=T[1],O=(0,c.useState)(0),M=(0,p.Z)(O,2),Z=M[0],R=M[1],L=(0,c.useState)(null),B=(0,p.Z)(L,2),z=B[0],U=B[1],H=(0,c.useState)(""),W=(0,p.Z)(H,2),q=W[0],V=W[1],G=(0,c.useState)("210px"),$=(0,p.Z)(G,2),J=$[0],K=$[1],Y=(0,c.useState)({width:458,height:120}),X=(0,p.Z)(Y,2),Q=X[0],ee=X[1],te=(0,y.I0)(),ne=localStorage.getItem("Data"),re=(0,b.a)(ne),ie=re.token,oe=re.userid;(0,y.v9)((function(e){return e.Modal.MeApiState}));(0,c.useEffect)((function(){window.innerWidth<=990&&(K("180px"),ee({width:280,height:100}))}),[]);var ae=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,r,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,$O.ZP)(o,z);case 3:t=e.sent,r=t.file,i=t.url,u(i),n(r),te(x.N.setCoverCropImg({cropImgPath:i,cropImg:r})),a(""),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(0);case 14:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),se=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,r,i,s,l,c;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),e.prev=1,t=(new Date).getTime(),e.next=5,(0,$O.ZP)(o,z);case 5:return r=e.sent,i=r.file,s=r.url,u(s),n(i),(l=new FormData).append("photoUrl",i,"profile_image_".concat(t,".jpeg")),c={Authorization:"Bearer ".concat(ie)},e.next=15,Se.Z.post("".concat("https://bigbesos.com","/user/uploadCoverPhoto"),l,{headers:c,onUploadProgress:function(e){V(Math.round(e.loaded/e.total*100))}});case 15:e.sent,j.Z.getInstance().logEvent("Cover Image Add"),ae(),st().fire("","Upload successfully!","success"),j.Z.getInstance().logEvent("Cover Image Add",{UserID:oe}),a(""),C(!1),te(x.N.setCoverPhotoUploadModalState(!1)),e.next=29;break;case 25:e.prev=25,e.t0=e.catch(1),console.log(e.t0),C(!1);case 29:case"end":return e.stop()}}),e,null,[[1,25]])})));return function(){return e.apply(this,arguments)}}(),le=["image/jpeg","image/png","image/heic","image/heif"],ce=function(){te(x.N.setCoverPhotoUploadModalState(!1))},ue=(0,gt.Z)(ce);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"backdrop"}),(0,F.jsx)("div",{className:"modal fade bph-modal show",id:"profileUploadModal",tabIndex:-1,"aria-labelledby":"profileUploadModal","aria-hidden":"true",style:{display:"block"},children:(0,F.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,F.jsx)("div",{className:"modal-content",children:(0,F.jsx)("div",{className:"modal-body",children:(0,F.jsx)("div",{className:"onboarding_modal photoUpload_modal profileUpload",children:(0,F.jsxs)("div",{className:"modal_inner",ref:ue,children:[(0,F.jsx)("button",{type:"button",className:"btn-close profile-img-modal-close_btn","data-bs-dismiss":"modal","aria-label":"Close",onClick:ce}),(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex",children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,F.jsxs)("div",{className:"modal_content",children:[(0,F.jsx)("div",{className:"modal_title",children:(0,F.jsxs)("h2",{className:"title",style:{fontSize:"35px"},children:[(0,F.jsx)("img",{src:"/assets/img/icons/upload.svg",alt:"img"}),"Upload your cover image"]})}
2),(0,F.jsxs)("div",{className:"file-upload",children:[!o&&(0,F.jsx)("p",{className:"subtitle profile-upload-before-title",children:"Add a cover image to your profile to give it your style and show Big Photo Hunters your work."}),o&&(0,F.jsx)("p",{className:"subtitle profile-upload-after-title",style:{display:"block"},children:"Position your image in the rectangle"}),v&&(0,F.jsxs)("p",{className:"eerror",style:{textAlign:"center"},children:[v," "]}),!o&&(0,F.jsxs)("div",{className:"profile-image-upload-wrap",children:[(0,F.jsx)("input",{className:"profile-upload-input",type:"file",onChange:function(e){g("");var t=e.target.files[0];if(le.includes(t.type)||(0,Nn.zr)(t)){var n=new Image;n.src=URL.createObjectURL(t),n.onload=(0,f.Z)((0,d.Z)().mark((function e(){var r,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.decode();case 2:if(r=n.width,i=n.height,!(r>6500||i>6500)){e.next=8;break}return g("Please ensure the edges of your photo are less than 6500 pixels."),e.abrupt("return");case 8:if(!(t.size>209715200)){e.next=13;break}return g("Please ensure that your file is less than 200MB."),e.abrupt("return");case 13:(o=new FileReader).onload=function(){a(o.result)},o.readAsDataURL(t);case 16:case"end":return e.stop()}}),e)}))),n.onerror=function(){(0,Nn.zr)(t)?g("This browser can't crop HEIC photos. Please upload a JPG or PNG here, or upload from your phone \u2014 HEIC works there."):g("Sorry, we could not read that image file. Please try a different photo.")}}else g("Please upload only JPG, PNG, or HEIC files.")}}),(0,F.jsxs)("div",{className:"drag-text",children:[(0,F.jsx)("h4",{className:"title",children:"Drag and drop your photo here"}),(0,F.jsx)("span",{className:"or",children:"or"}),(0,F.jsx)("button",{className:"file-upload-btn btn",type:"button",onClick:function(){document.querySelector(".profile-upload-input").click()},children:"Upload from device"}),(0,F.jsx)("span",{className:"support_note",children:"Max 50 megapixel, longest edge 6500 px. JPG, PNG, or HEIC format only"})]})]}),o&&(0,F.jsxs)("div",{children:[(0,F.jsx)(GO.ZP,{image:o,crop:N,zoom:I,rotation:Z,cropShape:"rect",onZoomChange:P,onRotationChange:R,onCropChange:A,onCropComplete:function(e,t){U(t)},cropSize:Q,objectFit:"horizontal-cover",style:{containerStyle:{height:"".concat(J),width:"100%",position:"relative"}}}),(0,F.jsx)("div",{className:"slider_container",children:!S&&(0,F.jsx)(JO.Z,{min:1,max:3,step:.1,value:I,onChange:function(e,t){return P(t)}})}),(0,F.jsxs)("div",{className:"profile-image-title-wrap",style:{display:"flex",flexDirection:"column",minWidth:"200px",margin:"auto",alignItems:"center"},children:[S?(0,F.jsx)("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:(0,F.jsx)("div",{className:"progress-bar bg-warning",role:"progressbar",style:{width:"".concat(q,"%"),color:"black"},"aria-valuenow":q,"aria-valuemin":0,"aria-valuemax":100,children:"".concat(q,"%")})}):(0,F.jsx)("button",{style:{minWidth:"200px"},type:"button",className:"btn",onClick:se,children:"Upload"}),!S&&(0,F.jsx)("label",{className:"remove-profile-image",style:{marginTop:"10px"},onClick:function(){a("")},children:"Select a different photo"})]})]})]})]})]})})})})})})]})},YO=Object.create(null);YO.open="0",YO.close="1",YO.ping="2",YO.pong="3",YO.message="4",YO.upgrade="5",YO.noop="6";var XO=Object.create(null);Object.keys(YO).forEach((function(e){XO[YO[e]]=e}));var QO,eM={type:"error",data:"parser error"},tM="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),nM="function"===typeof ArrayBuffer,rM=function(e){return"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},iM=function(e,t,n){var r=e.type,i=e.data;return tM&&i instanceof Blob?t?n(i):oM(i,n):nM&&(i instanceof ArrayBuffer||rM(i))?t?n(i):oM(new Blob([i]),n):n(YO[r]+(i||""))},oM=function(e,t){var n=new FileReader;return n.onload=function(){var e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function aM(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}for(var sM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",lM="undefined"===typeof Uint8Array?[]:new Uint8Array(256),cM=0;cM<64;cM++)lM[sM.charCodeAt(cM)]=cM;var uM,dM="function"===typeof ArrayBuffer,fM=function(e,t){if("string"!==typeof e)return{type:"message",data:hM(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:pM(e.substring(1),t)}:XO[n]?e.length>1?{type:XO[n],data:e.substring(1)}:{type:XO[n]}:eM},pM=function(e,t){if(dM){var n=function(e){var t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=new ArrayBuffer(a),u=new Uint8Array(c);for(t=0;t<s;t+=4)n=lM[e.charCodeAt(t)],r=lM[e.charCodeAt(t+1)],i=lM[e.charCodeAt(t+2)],o=lM[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c}(e);return hM(n,t)}return{base64:!0,data:e}},hM=function(e,t){return"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer},mM=String.fromCharCode(30);function vM(){return new TransformStream({transform:function(e,t){!function(e,t){tM&&e.data instanceof Blob?e.data.arrayBuffer().then(aM).then(t):nM&&(e.data instanceof ArrayBuffer||rM(e.data))?t(aM(e.data)):iM(e,!1,(function(e){QO||(QO=new TextEncoder),t(QO.encode(e))}))}(e,(function(n){var r,i=n.length;if(i<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,i);else if(i<65536){r=new Uint8Array(3);var o=new DataView(r.buffer);o.setUint8(0,126),o.setUint16(1,i)}else{r=new Uint8Array(9);var a=new DataView(r.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(i))}e.data&&"string"!==typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)}))}})}function gM(e){return e.reduce((function(e,t){return e+t.length}),0)}function yM(e,t){if(e[0].length===t)return e.shift();for(var n=new Uint8Array(t),r=0,i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function bM(e){if(e)return function(e){for(var t in bM.prototype)e[t]=bM.prototype[t];return e}(e)}bM.prototype.on=bM.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},bM.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},bM.prototype.off=bM.prototype.removeListener=bM.prototype.removeAllListeners=bM.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},bM.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},bM.prototype.emitReserved=bM.prototype.emit,bM.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},bM.prototype.hasListeners=function(e){return!!this.listeners(e).length};var xM="undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")();function wM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}var kM=xM.setTimeout,SM=xM.clearTimeout;function jM(e,t){t.useNativeTimers?(e.setTimeoutFn=kM.bind(xM),e.clearTimeoutFn=SM.bind(xM)):(e.setTimeoutFn=xM.setTimeout.bind(xM),e.clearTimeoutFn=xM.clearTimeout.bind(xM))}var CM,_M=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r,i){var o;return(0,ha.Z)(this,n),(o=t.call(this,e)).description=r,o.context=i,o.type="TransportError",o}return(0,ma.Z)(n)}((0,ba.Z)(Error)),EM=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e){var r;return(0,ha.Z)(this,n),(r=t.call(this)).writable=!1,jM((0,Ec.Z)(r),e),r.opts=e,r.query=e.query,r.socket=e.socket,r}return(0,ma.Z)(n,[{key:"onError",value:function(e,t,r){return(0,pp.Z)((0,hp.Z)(n.prototype),"emitReserved",this).call(this,"error",new _M(e,t,r)),this}},{key:"open",value:function(){return this.readyState="opening",this.doOpen(),this}},{key:"close",value:function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}},{key:"send",value:function(e){"open"===this.readyState&&this.write(e)}},{key:"onOpen",value:function(){this.readyState="open",this.writable=!0,(0,pp.Z)((0,hp.Z)(n.prototype),"emitReserved",this).call(this,"open")}}
2,{key:"onData",value:function(e){var t=fM(e,this.socket.binaryType);this.onPacket(t)}},{key:"onPacket",value:function(e){(0,pp.Z)((0,hp.Z)(n.prototype),"emitReserved",this).call(this,"packet",e)}},{key:"onClose",value:function(e){this.readyState="closed",(0,pp.Z)((0,hp.Z)(n.prototype),"emitReserved",this).call(this,"close",e)}},{key:"pause",value:function(e){}},{key:"createUri",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}},{key:"_hostname",value:function(){var e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}},{key:"_port",value:function(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}},{key:"_query",value:function(e){var t=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}]),n}(bM),NM="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),AM=64,DM={},TM=0,IM=0;function PM(e){var t="";do{t=NM[e%AM]+t,e=Math.floor(e/AM)}while(e>0);return t}function FM(){var e=PM(+new Date);return e!==CM?(TM=0,CM=e):e+"."+PM(TM++)}for(;IM<AM;IM++)DM[NM[IM]]=IM;var OM=!1;try{OM="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(oL){}var MM=OM;function ZM(e){var t=e.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!t||MM))return new XMLHttpRequest}catch(n){}if(!t)try{return new(xM[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function RM(){}var LM=null!=new ZM({xdomain:!1}).responseType,BM=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e){var r;if((0,ha.Z)(this,n),(r=t.call(this,e)).polling=!1,"undefined"!==typeof location){var i="https:"===location.protocol,o=location.port;o||(o=i?"443":"80"),r.xd="undefined"!==typeof location&&e.hostname!==location.hostname||o!==e.port}var a=e&&e.forceBase64;return r.supportsBinary=LM&&!a,r.opts.withCredentials&&(r.cookieJar=void 0),r}return(0,ma.Z)(n,[{key:"name",get:function(){return"polling"}},{key:"doOpen",value:function(){this.poll()}},{key:"pause",value:function(e){var t=this;this.readyState="pausing";var n=function(){t.readyState="paused",e()};if(this.polling||!this.writable){var r=0;this.polling&&(r++,this.once("pollComplete",(function(){--r||n()}))),this.writable||(r++,this.once("drain",(function(){--r||n()})))}else n()}},{key:"poll",value:function(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}},{key:"onData",value:function(e){var t=this;(function(e,t){for(var n=e.split(mM),r=[],i=0;i<n.length;i++){var o=fM(n[i],t);if(r.push(o),"error"===o.type)break}return r})(e,this.socket.binaryType).forEach((function(e){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose({description:"transport closed by the server"}),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}},{key:"doClose",value:function(){var e=this,t=function(){e.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}},{key:"write",value:function(e){var t=this;this.writable=!1,function(e,t){var n=e.length,r=new Array(n),i=0;e.forEach((function(e,o){iM(e,!1,(function(e){r[o]=e,++i===n&&t(r.join(mM))}))}))}(e,(function(e){t.doWrite(e,(function(){t.writable=!0,t.emitReserved("drain")}))}))}},{key:"uri",value:function(){var e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=FM()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new zM(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(function(e,t){n.onError("xhr post error",e,t)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t,n){e.onError("xhr poll error",t,n)})),this.pollXhr=t}}]),n}(EM),zM=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r){var i;return(0,ha.Z)(this,n),i=t.call(this),jM((0,Ec.Z)(i),r),i.opts=r,i.method=r.method||"GET",i.uri=e,i.data=void 0!==r.data?r.data:null,i.create(),i}return(0,ma.Z)(n,[{key:"create",value:function(){var e,t=this,r=wM(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this.opts.xd;var i=this.xhr=new ZM(r);try{i.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(var o in i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&i.setRequestHeader(o,this.opts.extraHeaders[o])}catch(a){}if("POST"===this.method)try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(a){}try{i.setRequestHeader("Accept","*/*")}catch(a){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(i.timeout=this.opts.requestTimeout),i.onreadystatechange=function(){var e;3===i.readyState&&(null===(e=t.opts.cookieJar)||void 0===e||e.parseCookies(i)),4===i.readyState&&(200===i.status||1223===i.status?t.onLoad():t.setTimeoutFn((function(){t.onError("number"===typeof i.status?i.status:0)}),0))},i.send(this.data)}catch(a){return void this.setTimeoutFn((function(){t.onError(a)}),0)}"undefined"!==typeof document&&(this.index=n.requestsCount++,n.requests[this.index]=this)}},{key:"onError",value:function(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}},{key:"cleanup",value:function(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=RM,e)try{this.xhr.abort()}catch(t){}"undefined"!==typeof document&&delete n.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}},{key:"abort",value:function(){this.cleanup()}}]),n}(bM);if(zM.requestsCount=0,zM.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",UM);else if("function"===typeof addEventListener){addEventListener("onpagehide"in xM?"pagehide":"unload",UM,!1)}function UM(){for(var e in zM.requests)zM.requests.hasOwnProperty(e)&&zM.requests[e].abort()}var HM="function"===typeof Promise&&"function"===typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},WM=xM.WebSocket||xM.MozWebSocket,qM="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),VM=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e){var r;return(0,ha.Z)(this,n),(r=t.call(this,e)).supportsBinary=!e.forceBase64,r}return(0,ma.Z)(n,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=qM?{}:wM(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=qM?new WM(e,t,n):t?new WM(e,t):new WM(e)}catch(oL){return this.emitReserved("error",oL)}
2this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=function(t){return e.onClose({description:"websocket connection closed",context:t})},this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(){var n=e[r],i=r===e.length-1;iM(n,t.supportsBinary,(function(e){try{t.ws.send(e)}catch(n){}i&&HM((function(){t.writable=!0,t.emitReserved("drain")}),t.setTimeoutFn)}))},r=0;r<e.length;r++)n()}},{key:"doClose",value:function(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}},{key:"uri",value:function(){var e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=FM()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},{key:"check",value:function(){return!!WM}}]),n}(EM),GM=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(){return(0,ha.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"name",get:function(){return"webtransport"}},{key:"doOpen",value:function(){var e=this;"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((function(){e.onClose()})).catch((function(t){e.onError("webtransport error",t)})),this.transport.ready.then((function(){e.transport.createBidirectionalStream().then((function(t){var n=function(e,t){uM||(uM=new TextDecoder);var n=[],r=0,i=-1,o=!1;return new TransformStream({transform:function(a,s){for(n.push(a);;){if(0===r){if(gM(n)<1)break;var l=yM(n,1);o=128===(128&l[0]),i=127&l[0],r=i<126?3:126===i?1:2}else if(1===r){if(gM(n)<2)break;var c=yM(n,2);i=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(2===r){if(gM(n)<8)break;var u=yM(n,8),d=new DataView(u.buffer,u.byteOffset,u.length),f=d.getUint32(0);if(f>Math.pow(2,21)-1){s.enqueue(eM);break}i=f*Math.pow(2,32)+d.getUint32(4),r=3}else{if(gM(n)<i)break;var p=yM(n,i);s.enqueue(fM(o?p:uM.decode(p),t)),r=0}if(0===i||i>e){s.enqueue(eM);break}}}})}(Number.MAX_SAFE_INTEGER,e.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=vM();i.readable.pipeTo(t.writable),e.writer=i.writable.getWriter();!function t(){r.read().then((function(n){var r=n.done,i=n.value;r||(e.onPacket(i),t())})).catch((function(e){}))}();var o={type:"open"};e.query.sid&&(o.data='{"sid":"'.concat(e.query.sid,'"}')),e.writer.write(o).then((function(){return e.onOpen()}))}))})))}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(){var n=e[r],i=r===e.length-1;t.writer.write(n).then((function(){i&&HM((function(){t.writable=!0,t.emitReserved("drain")}),t.setTimeoutFn)}))},r=0;r<e.length;r++)n()}},{key:"doClose",value:function(){var e;null===(e=this.transport)||void 0===e||e.close()}}]),n}(EM),$M={websocket:VM,webtransport:GM,polling:BM},JM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,KM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function YM(e){if(e.length>2e3)throw"URI too long";var t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));for(var i=JM.exec(e||""),o={},a=14;a--;)o[KM[a]]=i[a]||"";return-1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){var n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,o.path),o.queryKey=function(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,o.query),o}var XM=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,ha.Z)(this,n),(r=t.call(this)).binaryType="arraybuffer",r.writeBuffer=[],e&&"object"===typeof e&&(i=e,e=null),e?(e=YM(e),i.hostname=e.host,i.secure="https"===e.protocol||"wss"===e.protocol,i.port=e.port,e.query&&(i.query=e.query)):i.host&&(i.hostname=YM(i.host).host),jM((0,Ec.Z)(r),i),r.secure=null!=i.secure?i.secure:"undefined"!==typeof location&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=r.secure?"443":"80"),r.hostname=i.hostname||("undefined"!==typeof location?location.hostname:"localhost"),r.port=i.port||("undefined"!==typeof location&&location.port?location.port:r.secure?"443":"80"),r.transports=i.transports||["polling","websocket","webtransport"],r.writeBuffer=[],r.prevBufferLen=0,r.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),r.opts.path=r.opts.path.replace(/\/$/,"")+(r.opts.addTrailingSlash?"/":""),"string"===typeof r.opts.query&&(r.opts.query=function(e){for(var t={},n=e.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");
2t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}(r.opts.query)),r.id=null,r.upgrades=null,r.pingInterval=null,r.pingTimeout=null,r.pingTimeoutTimer=null,"function"===typeof addEventListener&&(r.opts.closeOnBeforeunload&&(r.beforeunloadEventListener=function(){r.transport&&(r.transport.removeAllListeners(),r.transport.close())},addEventListener("beforeunload",r.beforeunloadEventListener,!1)),"localhost"!==r.hostname&&(r.offlineEventListener=function(){r.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",r.offlineEventListener,!1))),r.open(),r}return(0,ma.Z)(n,[{key:"createTransport",value:function(e){var t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);var n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new $M[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&n.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(r){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(e){return t.onClose("transport close",e)}))}},{key:"probe",value:function(e){var t=this,r=this.createTransport(e),i=!1;n.priorWebsocketSuccess=!1;var o=function(){i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",(function(e){if(!i)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",r),!r)return;n.priorWebsocketSuccess="websocket"===r.name,t.transport.pause((function(){i||"closed"!==t.readyState&&(d(),t.setTransport(r),r.send([{type:"upgrade"}]),t.emitReserved("upgrade",r),r=null,t.upgrading=!1,t.flush())}))}else{var o=new Error("probe error");o.transport=r.name,t.emitReserved("upgradeError",o)}})))};function a(){i||(i=!0,d(),r.close(),r=null)}var s=function(e){var n=new Error("probe error: "+e);n.transport=r.name,a(),t.emitReserved("upgradeError",n)};function l(){s("transport closed")}function c(){s("socket closed")}function u(e){r&&e.name!==r.name&&a()}var d=function(){r.removeListener("open",o),r.removeListener("error",s),r.removeListener("close",l),t.off("close",c),t.off("upgrading",u)};r.once("open",o),r.once("error",s),r.once("close",l),this.once("close",c),this.once("upgrading",u),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((function(){i||r.open()}),200):r.open()}},{key:"onOpen",value:function(){if(this.readyState="open",n.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade)for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},{key:"onPacket",value:function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}},{key:"onHandshake",value:function(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}},{key:"resetPingTimeout",value:function(){var e=this;this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((function(){e.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}},{key:"onDrain",value:function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}},{key:"flush",value:function(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){var e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}},{key:"getWritablePackets",value:function(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;for(var e,t=1,n=0;n<this.writeBuffer.length;n++){var r=this.writeBuffer[n].data;if(r&&(t+="string"===typeof(e=r)?function(e){for(var t=0,n=0,r=0,i=e.length;r<i;r++)(t=e.charCodeAt(r))<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(e):Math.ceil(1.33*(e.byteLength||e.size))),n>0&&t>this.maxPayload)return this.writeBuffer.slice(0,n);t+=2}return this.writeBuffer}},{key:"write",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"send",value:function(e,t,n){return this.sendPacket("message",e,t,n),this}},{key:"sendPacket",value:function(e,t,n,r){if("function"===typeof t&&(r=t,t=void 0),"function"===typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}}},{key:"close",value:function(){var e=this,t=function(){e.onClose("forced close"),e.transport.close()},n=function n(){e.off("upgrade",n),e.off("upgradeError",n),t()},r=function(){e.once("upgrade",n),e.once("upgradeError",n)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){e.upgrading?r():t()})):this.upgrading?r():t()),this}},{key:"onError",value:function(e){n.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}},{key:"onClose",value:function(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}},{key:"filterUpgrades",value:function(e){for(var t=[],n=0,r=e.length;n<r;
2n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}]),n}(bM);XM.protocol=4;XM.protocol;var QM="function"===typeof ArrayBuffer,eZ=function(e){return"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer},tZ=Object.prototype.toString,nZ="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===tZ.call(Blob),rZ="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===tZ.call(File);function iZ(e){return QM&&(e instanceof ArrayBuffer||eZ(e))||nZ&&e instanceof Blob||rZ&&e instanceof File}function oZ(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(var n=0,r=e.length;n<r;n++)if(oZ(e[n]))return!0;return!1}if(iZ(e))return!0;if(e.toJSON&&"function"===typeof e.toJSON&&1===arguments.length)return oZ(e.toJSON(),!0);for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&oZ(e[i]))return!0;return!1}function aZ(e){var t=[],n=e.data,r=e;return r.data=sZ(n,t),r.attachments=t.length,{packet:r,buffers:t}}function sZ(e,t){if(!e)return e;if(iZ(e)){var n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){for(var r=new Array(e.length),i=0;i<e.length;i++)r[i]=sZ(e[i],t);return r}if("object"===typeof e&&!(e instanceof Date)){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(o[a]=sZ(e[a],t));return o}return e}function lZ(e,t){return e.data=cZ(e.data,t),delete e.attachments,e}function cZ(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"===typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(var n=0;n<e.length;n++)e[n]=cZ(e[n],t);else if("object"===typeof e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=cZ(e[r],t));return e}var uZ,dZ=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],fZ=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(uZ||(uZ={}));var pZ=function(){function e(t){(0,ha.Z)(this,e),this.replacer=t}return(0,ma.Z)(e,[{key:"encode",value:function(e){return e.type!==uZ.EVENT&&e.type!==uZ.ACK||!oZ(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===uZ.EVENT?uZ.BINARY_EVENT:uZ.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}},{key:"encodeAsString",value:function(e){var t=""+e.type;return e.type!==uZ.BINARY_EVENT&&e.type!==uZ.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}},{key:"encodeAsBinary",value:function(e){var t=aZ(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}]),e}();function hZ(e){return"[object Object]"===Object.prototype.toString.call(e)}var mZ=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e){var r;return(0,ha.Z)(this,n),(r=t.call(this)).reviver=e,r}return(0,ma.Z)(n,[{key:"add",value:function(e){var t;if("string"===typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");var r=(t=this.decodeString(e)).type===uZ.BINARY_EVENT;r||t.type===uZ.BINARY_ACK?(t.type=r?uZ.EVENT:uZ.ACK,this.reconstructor=new vZ(t),0===t.attachments&&(0,pp.Z)((0,hp.Z)(n.prototype),"emitReserved",this).call(this,"decoded",t)):(0,pp.Z)((0,hp.Z)(n.prototype),"emitReserved",this).call(this,"decoded",t)}else{if(!iZ(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,(0,pp.Z)((0,hp.Z)(n.prototype),"emitReserved",this).call(this,"decoded",t))}}},{key:"decodeString",value:function(e){var t=0,r={type:Number(e.charAt(0))};if(void 0===uZ[r.type])throw new Error("unknown packet type "+r.type);if(r.type===uZ.BINARY_EVENT||r.type===uZ.BINARY_ACK){for(var i=t+1;"-"!==e.charAt(++t)&&t!=e.length;);var o=e.substring(i,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(o)}if("/"===e.charAt(t+1)){for(var a=t+1;++t;){if(","===e.charAt(t))break;if(t===e.length)break}r.nsp=e.substring(a,t)}else r.nsp="/";var s=e.charAt(t+1);if(""!==s&&Number(s)==s){for(var l=t+1;++t;){var c=e.charAt(t);if(null==c||Number(c)!=c){--t;break}if(t===e.length)break}r.id=Number(e.substring(l,t+1))}if(e.charAt(++t)){var u=this.tryParse(e.substr(t));if(!n.isPayloadValid(r.type,u))throw new Error("invalid payload");r.data=u}return r}},{key:"tryParse",value:function(e){try{return JSON.parse(e,this.reviver)}catch(t){return!1}}},{key:"destroy",value:function(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}],[{key:"isPayloadValid",value:function(e,t){switch(e){case uZ.CONNECT:return hZ(t);case uZ.DISCONNECT:return void 0===t;case uZ.CONNECT_ERROR:return"string"===typeof t||hZ(t);case uZ.EVENT:case uZ.BINARY_EVENT:return Array.isArray(t)&&("number"===typeof t[0]||"string"===typeof t[0]&&-1===dZ.indexOf(t[0]));case uZ.ACK:case uZ.BINARY_ACK:return Array.isArray(t)}}}]),n}(bM),vZ=function(){function e(t){(0,ha.Z)(this,e),this.packet=t,this.buffers=[],this.reconPack=t}return(0,ma.Z)(e,[{key:"takeBinaryData",value:function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=lZ(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}},{key:"finishedReconstruction",value:function(){this.reconPack=null,this.buffers=[]}}]),e}();function gZ(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var yZ=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),bZ=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);
2function n(e,r,i){var o;return(0,ha.Z)(this,n),(o=t.call(this)).connected=!1,o.recovered=!1,o.receiveBuffer=[],o.sendBuffer=[],o._queue=[],o._queueSeq=0,o.ids=0,o.acks={},o.flags={},o.io=e,o.nsp=r,i&&i.auth&&(o.auth=i.auth),o._opts=Object.assign({},i),o.io._autoConnect&&o.open(),o}return(0,ma.Z)(n,[{key:"disconnected",get:function(){return!this.connected}},{key:"subEvents",value:function(){if(!this.subs){var e=this.io;this.subs=[gZ(e,"open",this.onopen.bind(this)),gZ(e,"packet",this.onpacket.bind(this)),gZ(e,"error",this.onerror.bind(this)),gZ(e,"close",this.onclose.bind(this))]}}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.unshift("message"),this.emit.apply(this,t),this}},{key:"emit",value:function(e){if(yZ.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;var i={type:uZ.EVENT,data:n,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"===typeof n[n.length-1]){var o=this.ids++,a=n.pop();this._registerAckCallback(o,a),i.id=o}var s=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!s||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}},{key:"_registerAckCallback",value:function(e,t){var n,r=this,i=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0!==i){var o=this.io.setTimeoutFn((function(){delete r.acks[e];for(var n=0;n<r.sendBuffer.length;n++)r.sendBuffer[n].id===e&&r.sendBuffer.splice(n,1);t.call(r,new Error("operation has timed out"))}),i);this.acks[e]=function(){r.io.clearTimeoutFn(o);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.apply(r,[null].concat(n))}}else this.acks[e]=t}},{key:"emitWithAck",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise((function(n,i){r.push((function(e,t){return o?e?i(e):n(t):n(e)})),t.emit.apply(t,[e].concat(r))}))}},{key:"_addToQueue",value:function(e){var t,n=this;"function"===typeof e[e.length-1]&&(t=e.pop());var r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((function(e){if(r===n._queue[0]){if(null!==e)r.tryCount>n._opts.retries&&(n._queue.shift(),t&&t(e));else if(n._queue.shift(),t){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];t.apply(void 0,[null].concat(o))}return r.pending=!1,n._drainQueue()}})),this._queue.push(r),this._drainQueue()}},{key:"_drainQueue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.connected&&0!==this._queue.length){var t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}}},{key:"packet",value:function(e){e.nsp=this.nsp,this.io._packet(e)}},{key:"onopen",value:function(){var e=this;"function"==typeof this.auth?this.auth((function(t){e._sendConnectPacket(t)})):this._sendConnectPacket(this.auth)}},{key:"_sendConnectPacket",value:function(e){this.packet({type:uZ.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}},{key:"onerror",value:function(e){this.connected||this.emitReserved("connect_error",e)}},{key:"onclose",value:function(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}},{key:"onpacket",value:function(e){if(e.nsp===this.nsp)switch(e.type){case uZ.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case uZ.EVENT:case uZ.BINARY_EVENT:this.onevent(e);break;case uZ.ACK:case uZ.BINARY_ACK:this.onack(e);break;case uZ.DISCONNECT:this.ondisconnect();break;case uZ.CONNECT_ERROR:this.destroy();var t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}},{key:"onevent",value:function(e){var t=e.data||[];
2null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}},{key:"emitEvent",value:function(e){if(this._anyListeners&&this._anyListeners.length){var t,r=this._anyListeners.slice(),i=(0,ua.Z)(r);try{for(i.s();!(t=i.n()).done;){t.value.apply(this,e)}}catch(oL){i.e(oL)}finally{i.f()}}(0,pp.Z)((0,hp.Z)(n.prototype),"emit",this).apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}},{key:"ack",value:function(e){var t=this,n=!1;return function(){if(!n){n=!0;for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t.packet({type:uZ.ACK,id:e,data:i})}}}},{key:"onack",value:function(e){var t=this.acks[e.id];"function"===typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}},{key:"onconnect",value:function(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}},{key:"emitBuffered",value:function(){var e=this;this.receiveBuffer.forEach((function(t){return e.emitEvent(t)})),this.receiveBuffer=[],this.sendBuffer.forEach((function(t){e.notifyOutgoingListeners(t),e.packet(t)})),this.sendBuffer=[]}},{key:"ondisconnect",value:function(){this.destroy(),this.onclose("io server disconnect")}},{key:"destroy",value:function(){this.subs&&(this.subs.forEach((function(e){return e()})),this.subs=void 0),this.io._destroy(this)}},{key:"disconnect",value:function(){return this.connected&&this.packet({type:uZ.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}},{key:"close",value:function(){return this.disconnect()}},{key:"compress",value:function(e){return this.flags.compress=e,this}},{key:"volatile",get:function(){return this.flags.volatile=!0,this}},{key:"timeout",value:function(e){return this.flags.timeout=e,this}},{key:"onAny",value:function(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}},{key:"prependAny",value:function(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}},{key:"offAny",value:function(e){if(!this._anyListeners)return this;if(e){for(var t=this._anyListeners,n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}},{key:"listenersAny",value:function(){return this._anyListeners||[]}},{key:"onAnyOutgoing",value:function(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}},{key:"prependAnyOutgoing",value:function(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}},{key:"offAnyOutgoing",value:function(e){if(!this._anyOutgoingListeners)return this;if(e){for(var t=this._anyOutgoingListeners,n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}},{key:"listenersAnyOutgoing",value:function(){return this._anyOutgoingListeners||[]}},{key:"notifyOutgoingListeners",value:function(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){var t,n=this._anyOutgoingListeners.slice(),r=(0,ua.Z)(n);try{for(r.s();!(t=r.n()).done;){t.value.apply(this,e.data)}}catch(oL){r.e(oL)}finally{r.f()}}}}]),n}(bM);function xZ(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}xZ.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},xZ.prototype.reset=function(){this.attempts=0},xZ.prototype.setMin=function(e){this.ms=e},xZ.prototype.setMax=function(e){this.max=e},xZ.prototype.setJitter=function(e){this.jitter=e};var wZ=function(e){(0,ga.Z)(n,e);var t=(0,ya.Z)(n);function n(e,r){var i,o;(0,ha.Z)(this,n),(i=t.call(this)).nsps={},i.subs=[],e&&"object"===typeof e&&(r=e,e=void 0),(r=r||{}).path=r.path||"/socket.io",i.opts=r,jM((0,Ec.Z)(i),r),i.reconnection(!1!==r.reconnection),i.reconnectionAttempts(r.reconnectionAttempts||1/0),i.reconnectionDelay(r.reconnectionDelay||1e3),i.reconnectionDelayMax(r.reconnectionDelayMax||5e3),i.randomizationFactor(null!==(o=r.randomizationFactor)&&void 0!==o?o:.5),i.backoff=new xZ({min:i.reconnectionDelay(),max:i.reconnectionDelayMax(),jitter:i.randomizationFactor()}),i.timeout(null==r.timeout?2e4:r.timeout),i._readyState="closed",i.uri=e;var a=r.parser||s;return i.encoder=new a.Encoder,i.decoder=new a.Decoder,i._autoConnect=!1!==r.autoConnect,
2i._autoConnect&&i.open(),i}return(0,ma.Z)(n,[{key:"reconnection",value:function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}},{key:"reconnectionAttempts",value:function(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}},{key:"reconnectionDelay",value:function(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}},{key:"randomizationFactor",value:function(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}},{key:"reconnectionDelayMax",value:function(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}},{key:"timeout",value:function(e){return arguments.length?(this._timeout=e,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var t=this;if(~this._readyState.indexOf("open"))return this;this.engine=new XM(this.uri,this.opts);var n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;var i=gZ(n,"open",(function(){r.onopen(),e&&e()})),o=function(n){t.cleanup(),t._readyState="closed",t.emitReserved("error",n),e?e(n):t.maybeReconnectOnOpen()},a=gZ(n,"error",o);if(!1!==this._timeout){var s=this._timeout,l=this.setTimeoutFn((function(){i(),o(new Error("timeout")),n.close()}),s);this.opts.autoUnref&&l.unref(),this.subs.push((function(){t.clearTimeoutFn(l)}))}return this.subs.push(i),this.subs.push(a),this}},{key:"connect",value:function(e){return this.open(e)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var e=this.engine;this.subs.push(gZ(e,"ping",this.onping.bind(this)),gZ(e,"data",this.ondata.bind(this)),gZ(e,"error",this.onerror.bind(this)),gZ(e,"close",this.onclose.bind(this)),gZ(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}},{key:"ondecoded",value:function(e){var t=this;HM((function(){t.emitReserved("packet",e)}),this.setTimeoutFn)}},{key:"onerror",value:function(e){this.emitReserved("error",e)}},{key:"socket",value:function(e,t){var n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new bZ(this,e,t),this.nsps[e]=n),n}},{key:"_destroy",value:function(e){for(var t=0,n=Object.keys(this.nsps);t<n.length;t++){var r=n[t];if(this.nsps[r].active)return}this._close()}},{key:"_packet",value:function(e){for(var t=this.encoder.encode(e),n=0;n<t.length;n++)this.engine.write(t[n],e.options)}},{key:"cleanup",value:function(){this.subs.forEach((function(e){return e()})),this.subs.length=0,this.decoder.destroy()}},{key:"_close",value:function(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}},{key:"disconnect",value:function(){return this._close()}},{key:"onclose",value:function(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}},{key:"reconnect",value:function(){var e=this;if(this._reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var n=this.backoff.duration();this._reconnecting=!0;var r=this.setTimeoutFn((function(){t.skipReconnect||(e.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((function(n){n?(t._reconnecting=!1,t.reconnect(),e.emitReserved("reconnect_error",n)):t.onreconnect()})))}),n);this.opts.autoUnref&&r.unref(),this.subs.push((function(){e.clearTimeoutFn(r)}))}}},{key:"onreconnect",value:function(){var e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}]),n}(bM),kZ={};function SZ(e,t){"object"===typeof e&&(t=e,e=void 0);var n,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=e;n=n||"undefined"!==typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof n?n.protocol+"//"+e:"https://"+e),r=YM(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";
2var i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),i=r.source,o=r.id,a=r.path,s=kZ[o]&&a in kZ[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?n=new wZ(i,t):(kZ[o]||(kZ[o]=new wZ(i,t)),n=kZ[o]),r.query&&!t.query&&(t.query=r.queryKey),n.socket(r.path,t)}Object.assign(SZ,{Manager:wZ,Socket:bZ,io:SZ,connect:SZ});var jZ=function(e){return e?{token:e}:{}},CZ=(n(9334),0),_Z=function(e){var t,n,r=e.usertoken,i=(0,c.useState)(!1),o=(0,p.Z)(i,2),a=o[0],s=o[1],l=(0,c.useState)([]),u=(0,p.Z)(l,2),h=u[0],m=u[1],b=(0,c.useState)([]),w=(0,p.Z)(b,2),k=w[0],S=w[1],j=(0,c.useState)(!0),C=(0,p.Z)(j,2),_=C[0],E=C[1],N=(0,c.useState)(null),A=(0,p.Z)(N,2),D=A[0],T=A[1],I=(0,c.useState)(!1),P=(0,p.Z)(I,2),O=P[0],M=P[1],Z=(0,c.useState)(!1),R=(0,p.Z)(Z,2),L=R[0],B=R[1],z=(0,y.I0)(),U=function(){z(x.N.setUploadPhotoFromGalleryModalState(!1)),z(x.N.setPhotoUploadModalState(!0))},H=(0,c.useRef)(),W=function(e){if(e[0].isIntersecting){CZ+=10;var t=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(!0),!1,e.prev=2,e.next=5,(0,Cn.$i)(r,false,CZ,{sortingType:"gallery_photo",value:"new"});case 5:t=e.sent,n=t.data.data,t.data.data.length<10&&E(!1),S((function(e){return[].concat((0,v.Z)(e),(0,v.Z)(n))})),s(!1),e.next=18;break;case 12:e.prev=12,e.t0=e.catch(2),console.log(e.t0),s(!1),E(!1),B(!0);case 18:case"end":return e.stop()}}),e,null,[[2,12]])})));return function(){return e.apply(this,arguments)}}();t()}};(0,c.useEffect)((function(){var e=new IntersectionObserver(W,{root:null,threshold:0});return H.current&&e.observe(H.current),function(){H.current&&e.unobserve(H.current)}}),[h]),(0,c.useEffect)((function(){s(!0),B(!1),CZ=0;M(!1);var e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,Cn.$i)(r,false,CZ,{sortingType:"gallery_photo",value:"new"});case 3:t=e.sent,m(t.data.data),s(!1),t.data.data.length<10&&E(!1),0===t.data.data.length&&M(!0),e.next=16;break;case 10:e.prev=10,e.t0=e.catch(0),console.log(e.t0),s(!1),E(!1),B(!0);case 16:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),n=0===CZ?(0,v.Z)(h):[].concat((0,v.Z)(h),(0,v.Z)(k));var q=function(){z(x.N.setUploadPhotoFromGalleryModalState(!1))},V=(0,gt.Z)(q);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"backdrop"}),(0,F.jsx)("div",{className:"modal fade bph-modal show",id:"QueuedPhotoModal",tabIndex:-1,"aria-labelledby":"sharePhotoModal","aria-hidden":"true",style:{display:"block"},children:(0,F.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation",children:(0,F.jsx)("div",{className:"modal-content",ref:V,children:(0,F.jsx)("div",{className:"modal-body",children:(0,F.jsxs)("div",{className:"form_gallery_modal",children:[(0,F.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:q}),(0,F.jsxs)("div",{className:"header text-center",children:[(0,F.jsx)("h2",{className:"title",children:"Select A Photo To Hunt"}),(0,F.jsx)("h5",{className:"subtitle",children:"Pick from your personal gallery."}),(0,F.jsx)("button",{className:"return_btn","data-bs-toggle":"modal","data-bs-target":"#galleryAddImageModal",onClick:U,children:"Back"})]}),(0,F.jsxs)("div",{className:"gallery_modal_images",children:[null===(t=n)||void 0===t?void 0:t.map((function(e,t){return(0,F.jsx)("div",{className:"image_item ".concat(D===e.id?"selected":""),style:{cursor:"pointer"},onClick:function(){var t,n;t=e.id,n=e.compressedImageId,z(x.N.setGalleryModalPhotoObject({photoID:t,compressedImageId:n})),T(t),U()},children:(0,F.jsx)("img",{src:"https://res.cloudinary.com/duk09hrua/image/upload/c_fit,w_300,f_auto,q_auto/Resized_Photos/".concat(e.compressedImageId),alt:"img"})},t)})),O&&(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,F.jsx)("h4",{style:{textAlign:"center",marginBottom:"38px"},children:"Oops. It looks like you don\u2019t have any photos in your profile\u2019s Personal Gallery."}),(0,F.jsx)(g.rU,{onClick:function(){z(x.N.setUploadPhotoFromGalleryModalState(!1))},to:"/profile?tab=gallery",style:{color:"blue",fontSize:"16px",fontWeight:"500"},children:"Add photos here."})]})]}),L&&(0,F.jsx)("h4",{children:n.length>0?"We couldn\u2019t load any more photos just now. Please refresh the page \u2014 if it keeps happening, let us know.":"We couldn\u2019t load your photos just now. Please refresh the page \u2014 if it keeps happening, let us know."}),a&&(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:"20px"},children:(0,F.jsx)("div",{className:"spinner-border text-secondary",role:"status",children:(0,F.jsx)("span",{className:"sr-only"})})}),_&&n.length>0&&(0,F.jsx)("div",{ref:H})]})})})})})]})},EZ=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={lastVisitTime:new Date},r={Authorization:"Bearer ".concat(t),"Content-Type":"application/json"},e.next=5,Se.Z.post("".concat("https://bigbesos.com","/user/updateLastVisitTime"),n,{headers:r});case 5:return i=e.sent,e.abrupt("return",i.data);case 9:throw e.prev=9,e.t0=e.catch(0),console.error("Error updating last visit time:",e.t0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),NZ=/bot|crawler|spider|crawling|slurp|mediapartners|bingpreview|facebookexternalhit|embedly|pinterest|whatsapp|telegrambot|slackbot|discordbot|headlesschrome|lighthouse|pingdom|uptimerobot|curl|wget|python-requests|axios\/|node-fetch|go-http-client|httpclient/i;var AZ="bpb:unseen-maybe-changed",DZ=function(){return"undefined"===typeof document||"hidden"
2!==document.visibilityState},TZ=function(e){var t=e.loggedIn,n=e.socket;(0,c.useEffect)((function(){if(t&&"undefined"!==typeof window&&"undefined"!==typeof document){var e=!1,r=null,i=null,o=0,a=0,s=function t(){if(r=null,!e){var n=Date.now();if(n<a)r=setTimeout(t,a-n);else{var i=n-o;i<3e3?r=setTimeout(t,3e3-i):(o=n,(0,Do.w)())}}},l=function(){e||r||(r=setTimeout(s,400+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)))},c=function(){i&&clearTimeout(i),i=null},u=function t(){if(c(),DZ()){var n=6e4+Math.floor(1e4*Math.random());i=setTimeout((function(){i=null,!e&&DZ()&&(l(),t())}),n)}},d=function(){DZ()?(l(),u()):c()},f=function(){DZ()&&l()},p=function(){l(Math.floor(1500*Math.random()))},h=!(!n||!n.connected),m=function(){h&&l(),h=!0},v=(0,Do.K)((function(e){e.clearedAll?a=Date.now()+3e3:o=Date.now()}));return document.addEventListener("visibilitychange",d),window.addEventListener("focus",f),n&&(n.on(AZ,p),n.on("connect",m)),u(),function(){e=!0,r&&clearTimeout(r),r=null,c(),document.removeEventListener("visibilitychange",d),window.removeEventListener("focus",f),n&&(n.off(AZ,p),n.off("connect",m)),v()}}}),[t,n])},IZ=function(){var e=(0,h.TH)().pathname,t=(0,$E.AH)(e),n=$E.AD[t],r=n?{title:n.title,description:n.description,canonical:n.noindex?void 0:(0,$E.Qt)(t),noindex:!!n.noindex}:{title:$E.aT.title,description:$E.aT.description};return(0,GE.Z)(r),null},PZ=c.lazy((function(){return n.e(2163).then(n.bind(n,2163))})),FZ=c.lazy((function(){return Promise.all([n.e(3420),n.e(470),n.e(7225),n.e(6667),n.e(458)]).then(n.bind(n,2680))})),OZ=c.lazy((function(){return Promise.all([n.e(3420),n.e(470),n.e(7225),n.e(8114),n.e(1892),n.e(6770)]).then(n.bind(n,6770))})),MZ=c.lazy((function(){return Promise.all([n.e(470),n.e(8114),n.e(9997)]).then(n.bind(n,9997))})),ZZ=c.lazy((function(){return Promise.all([n.e(470),n.e(1088)]).then(n.bind(n,1953))})),RZ=c.lazy((function(){return Promise.all([n.e(3420),n.e(470),n.e(9672)]).then(n.bind(n,8507))})),LZ=c.lazy((function(){return Promise.all([n.e(3420),n.e(7225),n.e(1892),n.e(8649)]).then(n.bind(n,8649))})),BZ=c.lazy((function(){return Promise.all([n.e(3420),n.e(7225),n.e(6667),n.e(5536)]).then(n.bind(n,5536))})),zZ=c.lazy((function(){return n.e(2993).then(n.bind(n,2993))})),UZ=c.lazy((function(){return n.e(6931).then(n.bind(n,6931))})),HZ=c.lazy((function(){return n.e(5697).then(n.bind(n,5697))})),WZ=c.lazy((function(){return n.e(5382).then(n.bind(n,5382))})),qZ=c.lazy((function(){return n.e(2179).then(n.bind(n,2179))})),VZ=c.lazy((function(){return n.e(1340).then(n.bind(n,1340))})),GZ=c.lazy((function(){return n.e(5394).then(n.bind(n,5394))})),$Z=c.lazy((function(){return n.e(5164).then(n.bind(n,5164))})),JZ=c.lazy((function(){return n.e(8099).then(n.bind(n,8099))})),KZ=c.lazy((function(){return n.e(1246).then(n.bind(n,1246))})),YZ=c.lazy((function(){return n.e(4173).then(n.bind(n,4173))})),XZ=c.lazy((function(){return n.e(3435).then(n.bind(n,3435))})),QZ=c.lazy((function(){return n.e(3636).then(n.bind(n,3636))})),eR=c.lazy((function(){return n.e(7917).then(n.bind(n,7917))})),tR=c.lazy((function(){return n.e(7143).then(n.bind(n,7143))})),nR=c.lazy((function(){return n.e(633).then(n.bind(n,633))})),rR=c.lazy((function(){return n.e(7145).then(n.bind(n,7145))})),iR=c.lazy((function(){return n.e(1984).then(n.bind(n,1984))})),oR=c.lazy((function(){return n.e(5867).then(n.bind(n,5867))})),aR=c.lazy((function(){return Promise.resolve().then(n.bind(n,1121))})),sR=c.lazy((function(){return n.e(1526).then(n.bind(n,1526))})),lR=c.lazy((function(){return n.e(7302).then(n.bind(n,7302))})),cR=c.lazy((function(){return n.e(7722).then(n.bind(n,7722))})),uR=c.lazy((function(){return n.e(8990).then(n.bind(n,8990))})),dR=c.lazy((function(){return n.e(9612).then(n.bind(n,9612))})),fR=c.lazy((function(){return n.e(6067).then(n.bind(n,6067))})),pR=c.lazy((function(){return n.e(4305).then(n.bind(n,4305))})),hR=c.lazy((function(){return n.e(8143).then(n.bind(n,8143))})),mR=c.lazy((function(){return n.e(4487).then(n.bind(n,4487))})),vR=c.lazy((function(){return n.e(6887).then(n.bind(n,6887))})),gR=c.lazy((function(){return n.e(3053).then(n.bind(n,3053))})),yR=c.lazy((function(){return n.e(1148).then(n.bind(n,1148))})),bR=c.lazy((function(){return n.e(1769).then(n.bind(n,1769))})),xR=c.lazy((function(){return n.e(1431).then(n.bind(n,1431))})),wR=c.lazy((function(){return n.e(1362).then(n.bind(n,1362))})),kR=c.lazy((function(){return n.e(4072).then(n.bind(n,4072))})),SR=c.lazy((function(){return n.e(7745).then(n.bind(n,7745))})),jR=c.lazy((function(){return n.e(1695).then(n.bind(n,1695))})),CR=c.lazy((function(){return n.e(6838).then(n.bind(n,6838))})),_R=c.lazy((function(){return n.e(8971).then(n.bind(n,8971))})),ER=c.lazy((function(){return n.e(4198).then(n.bind(n,4198))})),NR=c.lazy((function(){return n.e(2641).then(n.bind(n,2641))})),AR=c.lazy((function(){return n.e(7509).then(n.bind(n,7509))})),DR=c.lazy((function(){return n.e(2318).then(n.bind(n,2318))})),TR=c.lazy((function(){return n.e(9652).then(n.bind(n,9652))})),IR=c.lazy((function(){return n.e(1527).then(n.bind(n,1527))})),PR=n(3339),FR=n(3583),OR=n(5764),MR=n(7112),ZR=n(2239),RR=n(6344),LR=n(6112),BR=function(){return(0,F.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",width:"18",height:"18","aria-label":"info",children:[(0,F.jsx)("circle",{cx:"10",cy:"10",r:"8.5",stroke:"#37394b",strokeWidth:"1.5"}),(0,F.jsx)("circle",{cx:"10",cy:"6.5",r:"1.3",fill:"#37394b"}),(0,F.jsx)("rect",{x:"9",y:"9.2",width:"2",height:"5.8",rx:"1",fill:"#37394b"})]})},zR=function(){return(0,F.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:"18",height:"18","aria-hidden":"true",children:(0,F.jsx)("path",{d:"M7 11v9H4a1 1 0 01-1-1v-7a1 1 0 011-1h3zm0 0l4-7a2 2 0 014 2v3h4.5a2 2 0 011.97 2.36l-1.5 8A2 2 0 0118 20H7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},UR=function(){return(0,F.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:"18",height:"18","aria-hidden":"true",children:(0,F.jsx)("path",{d:"M17 13V4h3a1 1 0 011 1v7a1 1 0 01-1 1h-3zm0 0l-4 7a2 2 0 01-4-2v-3H4.5a2 2 0 01-1.97-2.36l1.5-8A2 2 0 016 4h11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},HR={review:"The photograph captures a vibrant sunset over an urban riverfront, with the skyline's domes and minarets silhouetted against a fiery sky.The composition uses the diagonal cables and evenly spaced streetlights as leading lines that pull the eye toward the city\u2019s towers and create depth.The color palette is rich, with warm oranges and pinks contrasting with the cool, dark silhouettes and the dim roadway, which enhances mood and storytelling.The lighting is strong and atmospheric, with backlit silhouettes that emphasize architectural shapes, while the moving car in the foreground adds a touch of life.One area to improve c
2ould be a touch more global sharpness or local contrast to pull out finer details in distant towers, though this may be a deliberate choice to keep the scene soft and dreamlike.",statement:"A dramatic sunset cityscape that uses strong silho\u2026g lines, and warm color to evoke mood and motion."},WR={color_and_tone_strength:"The color palette is dominated by a rich sunset range of oranges, pinks, and purples that unify the scene and convey warmth. The contrast between the luminous sky and the dark silhouettes creates a strong visual separation and mood. The color shifts feel natural, with the horizon gradient carefully handled to avoid flatness. The midtones in the road and vehicles are kept understated, allowing the architectural forms to maintain authority in the composition. The overall tonal balance supports a moody, cinematic feel, and the subtle haze adds depth rather than muting color. If there is any deliberate grading, it reads as a cohesive choice that enhances narrative rather than overpowering detail.",composition_strength:"The composition leads the eye naturally toward the distant skyline where the tallest tower anchors the frame. The diagonal cables on the left create strong leading lines that push the viewer toward the central architecture, giving the image depth. The road foreground provides space and scale, while the rhythm of streetlights and minarets maintains balance across the scene. The skyline arrangement of domes and spires reads clearly in silhouette, establishing a strong city identity. Placing the tallest tower slightly off-center adds dynamic tension while respecting the scene\u2019s intent, and the dramatic perspective from the bridge edge adds energy.",editing_and_execution_strength:"Overall, the editing feels cohesive and polished, with the sky\u2019s color graded to enhance drama without clipping the highlights. The image shows balanced tones across shadows, midtones, and highlights, allowing silhouettes to read clearly. The horizon line appears level, and the road texture remains visible without becoming muddy. Sharpening is applied judiciously to the architectural forms, and noise reduction seems well-tuned for low-light conditions. Crop preserves the strong leading lines and keeps the skyline intact, while subtle contrast adjustments help the shapes read cleanly. The result reads as a professional, finished photograph with room for minor refinements in foreground brightness if a more literal exposure is desired.",focus_and_detail_strength:"Focus holds well on the mid-distance skyline, with the tallest tower appearing sharp and well-defined against the colorful sky. The foreground vehicles are readable as silhouettes and add a sense of moment without competing for attention. The depth of field works to separate the near road from the distant city, creating a convincing sense of depth. The cables and streetlights strike as crisp lines that contribute to structure rather than becoming visual noise. If any softness exists, it\u2019s on the far background due to atmospheric haze, which seems intentional and atmospheric rather than a failed focus.",lighting_strength:"The sunset light wraps the scene in a warm glow, creating a dramatic backdrop. The silhouettes of the minarets pop against the orange-pink gradient, giving a strong sense of place. The streetlights and car headlights add subtle highlights that anchor the foreground without overpowering the skyline. The soft transitions between light and shadow help tell the story of day turning to night. Overall, the lighting feels intentional and cinematic, reinforcing mood and depth.",story_and_emotion_strength:"The photograph conveys a quiet moment of transition from day to night, inviting the viewer to feel the warmth of the sunset and the bustle of a busy city street. The silhouettes of the domes and minarets, framed by the road and cables, create a timeless urban mood. The scene hints at stories of people commuting, planning, or simply pausing to take in the view, without prescribing a single narrative. The composition and lighting work together to evoke awe at both human scale and architectural scale. This balance between activity in the foreground and monumental forms in the background draws the viewer into a shared urban moment."},qR=(0,MR.J)("".concat("pk_live_51NpY5dBI5nC1v0mzcQsHKDfaAmuBqP0fubi3FSizYSeUkl4WxjBZ4Lc1EoRJp7fVZBWE67IxBj29UDWzp7kfnxqi00RZssPZhC")),VR={composition_target:"Composition",light_target:"Lighting",color_target:"Color & Tone",focu
2s_target:"Focus & Detail",story_emotion:"Story & Emotion",edit_target:"Editing & Execution"},GR=function(){var e,t,n,r,i,o=(0,y.I0)(),a=(0,y.v9)((function(e){return e.Modal.AiReportAPiPayload})),s=(0,y.v9)((function(e){return e.Modal.generationStartedPhotoId})),l=(0,c.useState)(!(null!==a&&void 0!==a&&a.isAiReportGenerated)),u=(0,p.Z)(l,2),h=u[0],m=u[1],v=(0,c.useState)(!1),w=(0,p.Z)(v,2),k=w[0],S=w[1],C=(0,c.useState)(null),_=(0,p.Z)(C,2),E=_[0],N=_[1],D=(0,c.useState)(!1),T=(0,p.Z)(D,2),I=T[0],P=T[1],O=(0,c.useState)(!1),M=(0,p.Z)(O,2),Z=M[0],R=M[1],L=(0,c.useState)(!1),B=(0,p.Z)(L,2),z=B[0],U=B[1],H=(0,c.useState)(!1),W=(0,p.Z)(H,2),q=W[0],V=W[1],G=(0,c.useState)(!1),$=(0,p.Z)(G,2),J=$[0],K=$[1],Y=(0,c.useState)(""),X=(0,p.Z)(Y,2),Q=X[0],ee=X[1],te=(0,c.useState)(""),ne=(0,p.Z)(te,2),re=ne[0],ie=ne[1],oe=(0,c.useState)(null),ae=(0,p.Z)(oe,2),se=ae[0],le=ae[1],ce=(0,c.useState)(null),ue=(0,p.Z)(ce,2),de=ue[0],fe=ue[1],pe=(0,c.useState)(!1),he=(0,p.Z)(pe,2),me=he[0],ve=he[1],ge=(0,c.useState)(!1),ye=(0,p.Z)(ge,2),be=ye[0],xe=ye[1],we=(0,c.useState)(!1),ke=(0,p.Z)(we,2),je=ke[0],Ce=ke[1],_e=(0,c.useRef)([]),Ee=(0,y.v9)((function(e){return e.PayWall.UserPaymentStatus})),Ne=(0,rt.Z)(),Ae=(0,y.v9)((function(e){return e.PayWall.PersonalSite})),De="How your photo ranked against all submissions that week. 90% = top 10%.",Te="Scores and feedback tailored to the specific standards of your photo's genre.",Ie="This table tracks Ken-Bot score trends across six attributes \u2014 but only for photos you've analyzed. The more reports you run, the fuller the picture.";(0,c.useEffect)((function(){var e=function(e){e.target.closest(".ai_report_info-wrap")||le(null)};return document.addEventListener("touchstart",e),function(){return document.removeEventListener("touchstart",e)}}),[]);var Pe=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,n,r,i,s,l,c;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),P(!1),V(!1),K(!1),o(x.N.setLastGeneratedPhotoId(null)),o(x.N.setGenerationStartedPhotoId(null)),o(x.N.setGenerationStartedPhotoId(a.photoId)),e.prev=7,e.next=10,(0,wr.Bd)(a);case 10:s=e.sent,N(s.data.data),m(!1),U(null===(t=s.data.data)||void 0===t?void 0:t.isBlur),V(!0===(null===(n=s.data.data)||void 0===n?void 0:n.isPreLaunch)),K(!0===(null===(r=s.data.data)||void 0===r?void 0:r.isLapsedSubscriber)),null!==(i=s.data.data)&&void 0!==i&&i.isBlur||(null!==Ae&&void 0!==Ae&&Ae.isReportGenerated||o(Qe.h.setPersonalSite((0,A.Z)((0,A.Z)({},Ae),{},{isReportGenerated:!0}))),a.isAiReportGenerated||(o(x.N.setLastGeneratedPhotoId(a.photoId)),l=localStorage.getItem("Data"),c=(0,b.a)(l),j.Z.getInstance().logEvent("AI Report Run",{user_id:c.userid,photo_id:a.photoId,upvotes:s.data.data.upvotes,genre:s.data.data.genres_list}))),R(!0),e.next=28;break;case 20:e.prev=20,e.t0=e.catch(7),m(!1),P(!0),V(!1),K(!1),R(!0),o(x.N.setGenerationStartedPhotoId(null));case 28:case"end":return e.stop()}}),e,null,[[7,20]])})));return function(){return e.apply(this,arguments)}}(),Fe=window.location.pathname,Oe=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){var t,n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,S(!0),t="".concat(Fe,"?modal=aireport&&upvote=").concat(null===a||void 0===a?void 0:a.upvotes,"&&photoId=").concat(null===a||void 0===a?void 0:a.photoId,"&&photoUrl=").concat(null===a||void 0===a?void 0:a.photoUrl),n={email:re,photoId:null===a||void 0===a?void 0:a.photoId,productId:"prod_TUS5QSyu2ifNf9",successUrl:t,cancelUrl:t},e.next=6,Se.Z.post("".concat("https://bigbesos.com","/payment/report-checkout"),n,{headers:{"Content-Type":"application/json"}});case 6:r=e.sent,S(!1),r.data&&r.data.data&&r.data.data.id?ee(r.data.data.id):console.error("Error: Invalid response data"),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(0),console.error("Error creating checkout session:",e.t0),S(!1);case 15:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){var e=localStorage.getItem("Data"),t=(0,b.a)(e).user_email;ie(t||"")}),[]),(0,c.useEffect)((function(){a.photoId&&(a.isAiReportGenerated||s!==a.photoId?Pe():m(!0))}),[]),(0,c.useEffect)((function(){if(null!==E&&void 0!==E&&E.id){var e=!1;return(0,wr.Fe)(E.id).then((function(t){var n,r,i,o;if(!e){var a=null!==(n=null===t||void 0===t||null===(r=t.data)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.rating)&&void 0!==n?n:null===t||void 0===t||null===(o=t.data)||void 0===o?void 0:o.rating;"up"!==a&&"down"!==a||Ce(!0)}})).catch((function(){})),function(){e=!0}}}),[null===E||void 0===E?void 0:E.id]);var Me=function(e){if(null===de&&null!==E&&void 0!==E&&E.id){fe(e);try{var t=localStorage.getItem("Data"),n=(0,b.a)(t);j.Z.getInstance().logEvent("AI Report Feedback Rated",{user_id:null===n||void 0===n?void 0:n.userid,photo_id:a.photoId,genre:null===E||void 0===E?void 0:E.genres_list,rating:e})}catch(r){}(0,wr.V9)({reportId:E.id,photoId:a.photoId,rating:e}).catch((function(){})),_e.current.push(setTimeout((function(){return ve(!0)}),1e3)),_e.current.push(setTimeout((function(){return xe(!0)}),1500))}};(0,c.useEffect)((function(){return function(){_e.current.forEach((function(e){return clearTimeout(e)})),_e.current=[]}}),[null===E||void 0===E?void 0:E.id]);var Ze=null!==E&&void 0!==E&&E.reviews?JSON.parse(E.reviews):null,Re=null!==E&&void 0!==E&&E.doingWell?JSON.parse(E.doingWell):null,
2Le=null!==E&&void 0!==E&&E.improvements?JSON.parse(E.improvements):null,Be=null!==E&&void 0!==E&&E.recommendations?JSON.parse(E.recommendations):null,ze=null!==E&&void 0!==E&&E.metadata?JSON.parse(E.metadata):null,Ue=null!==E&&void 0!==E&&E.genreRanking?JSON.parse(E.genreRanking):null,He=null!==E&&void 0!==E&&E.photosRating?JSON.parse(E.photosRating):null,We=null===E||void 0===E?void 0:E.topRankedPhotos,qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=String(e).split("-");if(n.length<3)return null;var r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][parseInt(n[1],10)-1]||"",i=parseInt(n[2],10),o=n[0];return!Number.isNaN(i)&&r&&o?t?(0,F.jsxs)(F.Fragment,{children:[r,(0,F.jsx)("br",{}),i,(0,F.jsx)("br",{}),o]}):(0,F.jsxs)(F.Fragment,{children:[r," ",i,(0,F.jsx)("br",{}),o]}):null},Ve=!(null!==a&&void 0!==a&&a.isAiReportGenerated)&&(null===a||void 0===a?void 0:a.isAiReportAccessible),Ge=Z||Ve;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("style",{children:" \n                .wavy-dots { display: inline-block; }\n                .wavy-dots span {\n                    display: inline-block;\n                    animation: wave 1.2s infinite;\n                    font-size: 1em;\n                }\n                .wavy-dots span:nth-child(1) { animation-delay: 0s; }\n                .wavy-dots span:nth-child(2) { animation-delay: 0.15s; }\n                .wavy-dots span:nth-child(3) { animation-delay: 0.3s; }\n                @keyframes wave {\n                    0%, 60%, 100% { transform: translateY(0); }\n                    30% { transform: translateY(-5px); }\n                }\n            "}),Q&&(0,F.jsx)(OR.Elements,{stripe:qR,children:(0,F.jsx)(ZR.Z,{sessionId:Q})}),Ge?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"backdrop"}),(0,F.jsx)("div",{className:"modal bph-modal paywallModal2".concat(h||I?" ai-report-small-state":""),"aria-hidden":"true",style:{display:"block",zIndex:"1100"},onClick:function(e){e.target.closest(".modal-content")||z||h||I||o(x.N.setAiReportModal(!1))},children:(0,F.jsx)("div",{className:"modal-dialog modalAnimation".concat(h||I?" modal-dialog-centered":""),children:(0,F.jsx)("div",{className:"modal-content",children:(0,F.jsx)("div",{className:"modal-body",children:(0,F.jsxs)("div",{className:"paywall_modal_wrap",style:{maxWidth:"880px",margin:"auto"},children:[!z&&(0,F.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:function(){return o(x.N.setAiReportModal(!1))}}),(0,F.jsx)("div",{className:"".concat(h?"":"modal_ai"),children:h?(0,F.jsx)(F.Fragment,{children:a.isAiReportGenerated?(0,F.jsx)("div",{className:"ai_report_loading",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"400px",textAlign:"center",animation:"fadeIn 0.5s ease-in"},children:(0,F.jsx)("span",{className:"AiReportloader"})}):(0,F.jsxs)("div",{className:"modal_inner",style:{display:"flex",borderRadius:"8px",justifyContent:"space-between"},children:[(0,F.jsx)("div",{className:"modal_logo d-none d-md-inline-flex ",style:{backgroundColor:"#ffd621",borderRadius:"10px 0px 0px 10px",maxWidth:"44%"},children:(0,F.jsx)("img",{src:"/assets/img/logo/modal-logo.png",alt:"img"})}),(0,F.jsx)("div",{className:"modal_content aiModal",style:{borderRadius:"10px",flex:1,padding:"10px 20px"},children:(0,F.jsxs)("div",{className:"modal_title",style:{minHeight:"450px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",paddingTop:"30px"},children:[(0,F.jsxs)("h3",{className:"title",children:[null!==a&&void 0!==a&&a.aiReportOnItSeen?"Still on it":"On it",(0,F.jsxs)("span",{className:"wavy-dots",children:[(0,F.jsx)("span",{children:"."}),(0,F.jsx)("span",{children:"."}),(0,F.jsx)("span",{children:"."})]})]}),(0,F.jsx)("p",{style:{fontSize:"19px",fontWeight:400,lineHeight:1.4,color:"var(--color-black-60)",marginBottom:0},children:null!==a&&void 0!==a&&a.aiReportOnItSeen?(0,F.jsxs)(F.Fragment,{children:["I'm still writing your report. It takes a few minutes for me to pull everything together.",(0,F.jsx)("br",{}),(0,F.jsx)("br",{}),"Pop back and click \"Analyze\" again in 5-10 minutes. I'll email you when it's ready too, so you can grab a coffee in the meantime.",(0,F.jsx)("br",{}),(0,F.jsx)("br",{}),"Ken-Bot \ud83e\udd16"]}):"Ken-Bot is analyzing your photo against thousands of Big Photo Hunt community submissions, upvotes, and insights. This usually takes a few minutes \u2014 we\u2019ll email you when it's ready."}),(0,F.jsx)("button",{style:{marginTop:"20px",width:"200px",fontSize:"18px"},className:"btn",type:"button",onClick:function(){return o(x.N.setAiReportModal(!1))},children:"OK"})]})})]})}):I?(0,F.jsxs)("div",{className:"ai_report_loading",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"400px",textAlign:"center",animation:"fadeIn 0.5s ease-in"},children:[(0,F.jsxs)("h5",{style:{marginBottom:"20px",color:"#333",maxWidth:"430px",padding:"10px"},children:["Oops. We ran into an unexpected problem. Please try again. If it keeps happening, ",(0,F.jsx)(g.rU,{to:"/contact",style:{color:"blue"},onClick:function(){return o(x.N.setAiReportModal(!1))},children:"let us know"}),"  so we can fix it for you."]}),(0,F.jsx)("button",{onClick:Pe,className:"btn",children:"Please try again"})]}):(0,F.jsxs)("div",{children:[(0,F.jsxs)("section",{className:"ai_report_banner",children:[(0,F.jsxs)("div",{className:"ai_report_container",children:[(0,F.jsx)("div",{className:"ai_report_header",children:(0,F.jsxs)("div",{className:"ai_report_logo",children:[(0,F.jsx)("div",{className:"ai_report_header_text",children:(0,F.jsx)("h3",{className:"ai_report_heading",children:"Big Photo Hunt Photo Analysis"})}),(0,F.jsx)("a",{className:"ai_report_how-it-works",style:{color:"blue"},children:"How Ken-Bot Works"})]})}),(0,F.jsxs)("div",{className:"ai_report_content",children:[(0,F.jsxs)("div",{className:"ai_report_details-panel",children:[(0,F.jsxs)("div",{className:"ai_report_details-panel-header",children:[(0,F.jsxs)("div",{className:"ai_report_detail-item",children:[(0,F.jsx)("span",{className:"ai_report_label",children:"Hunt Date"}),(0,F.jsx)("span",{className:"ai_report_value",children:function(e){if(!e)return"-";var t=new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}(null===E||void 0===E?void 0:E.hunted_date)})]}),(0,F.jsxs)("div",{className:"ai_report_detail-item ",children:[(0,F.jsx)("span",{className:"ai_report_label",children:"Upvotes"}),(0,F.jsx)("span",{className:"ai_report_value",children:null===a||void 0===a?void 0:a.upvotes})]}),(0,F.jsxs)("div",{className:"ai_report_detail-item",children:[(0,F.jsx)("span",{className:"ai_report_label",children:"Genre"}),(0,F.jsx)("span",{className:"ai_report_value",children:(null===E||void 0===E?void 0:E.genres_list)||"-"})]})]}),(0,F.jsxs)("div",{className:"ai_report_camera-info",children:[(0,F.jsxs)("div",{className:"ai_report_detail-item",children:[(0,F.jsx)("span",{className:"ai_report_label",children:"Camera "}),(0,F.jsxs)("span",{className:"ai_report_value",children:[" ",(0,RR.sX)(null===ze||void 0===ze?void 0:ze.cameraName)]})]}),(0,F.jsxs)("div",{className:"ai_report_detail-item",children:[(0,F.jsx)("span",{className:"ai_report_label",children:"Focal Length"}),(0,F.jsx)("span",{className:"ai_report_value",children:(0,RR._S)(null===ze||void 0===ze?void 0:ze.focalLength)})]}),(0,F.jsxs)("div",{className:"ai_report_detail-item",children:[(0,F.jsx)("span",{className:"ai_report_label",children:"Lens "}),(0,F.jsxs)("span",{className:"ai_report_value",children:[" ",(0,RR.Lu)(null===ze||void 0===ze?void 0:ze.lens)]})]}),(0,F.jsxs)("div",{className:"ai_report_detail-item",children:[(0,F.jsx)("span",{className:"ai_report_label",children:"Aperture"}),(0,F.jsx)("span",{className:"ai_report_value",children:(null===ze||void 0===ze?void 0:ze.aperture)||"-"})]}),(0,F.jsxs)("div",{className:"ai_report_detail-item",children:[(0,F.jsx)("span",{className:"ai_report_label",children:"ISO"}),(0,F.jsx)("span",{className:"ai_report_value",children:(null===ze||void 0===ze?void 0:ze.iso)||"-"})]}),(0,F.jsxs)("div",{className:"ai_report_detail-item",children:[(0,F.jsx)("span",{className:"ai_report_label",children:"Shutter Speed"}),(0,F.jsx)("span",{className:"ai_report_value",children:null!==ze&&void 0!==ze&&ze.shutterSpeed?"1/".concat(Math.round(1/ze.shutterSpeed)," s"):"-"})]}),(0,F.jsxs)("div",{className:"ai_report_detail-item",children:[(0,F.jsx)("span",{className:"ai_report_label",children:"Date Taken"}),(0,F.jsx)("span",{className:"ai_report_value",children:null!==(e=null===(t=(0,LR.pV)(null===ze||void 0===ze?void 0:ze.dateTaken))||void 0===t?void 0:t.toLocaleDateString("en-US",{month:"short",year:"numeric"}))&&void 0!==e?e:"-"})]})]}),(0,F.jsxs)("div",{className:"ai_report_ranking-info",children:[(0,F.jsxs)("button",{className:"ai_report_ranking",children:["Ranking ",null===E||void 0===E?void 0:E.ranking]}),(0,F.jsxs)("span",{className:"ai_report_info-wrap","aria-label":"Global Ranking info",onMouseEnter:function(){return le("ranking")},onMouseLeave:function(){return le(null)},onClick:function(){return le((function(e){return"ranking"===e?null:"ranking"}))},children:[(0,F.jsx)(BR,{}),"ranking"===se&&(0,F.jsx)("div",{className:"ai_report_tooltip",children:De})]})]})]}),(0,F.jsxs)("div",{className:"ai_report_photo-panel",children:[(0,F.jsx)("img",{src:a.photoUrl,alt:"Wildlife Fox Photo",className:"ai_report_main-photo"}),(null===E||void 0===E?void 0:E.isWeeklyTopTen)&&(0,F.jsx)("div",{className:"ai_report_congrats-badge",children:(0,F.jsxs)("span",{children:["\ud83d\udc4f Congrats! This is a ",(0,F.jsx)("span",{className:"ai_report_congrats-badge_bold",children:"Weekly Top 10 "}
2),"photo!"]})})]})]})]}),(0,F.jsxs)("div",{className:"ai_report_container",style:(0,A.Z)({},z?{filter:"blur(2px)"}:{}),children:[(0,F.jsx)("div",{className:"ai_report_review-header",children:(0,F.jsx)("h4",{className:"ai_report_section-title",children:(null===Ze||void 0===Ze?void 0:Ze.greeting_title)||"Let\u2019s Boogie"})}),(0,F.jsx)("p",{className:"ai_report_review-text",children:(null===Ze||void 0===Ze?void 0:Ze.statement)||(null===HR||void 0===HR?void 0:HR.statement)}),(0,F.jsx)("p",{className:"ai_report_review-detail",children:(null===Ze||void 0===Ze?void 0:Ze.review)||(null===HR||void 0===HR?void 0:HR.review)})]})]}),(0,F.jsxs)("div",{style:(0,A.Z)({},z?{filter:"blur(2px)"}:{}),children:[(0,F.jsx)("section",{className:"ai_report_general-section",children:(0,F.jsxs)("div",{className:"ai_report_container",children:[(0,F.jsx)("div",{className:"ai_report_review-header",children:(0,F.jsx)("h4",{className:"ai_report_section-title",children:"In General"})}),(0,F.jsx)("h3",{className:"ai_report_subtitle",children:"What You\u2019re Doing Well (the wins)"}),(0,F.jsxs)("div",{className:"accordion ai_report_accordion",id:"aiReportAccordion",children:[(0,F.jsxs)("div",{className:"accordion-item ai_report_accordion-item",children:[(0,F.jsx)("h2",{className:"accordion-header",id:"headingOne",children:(0,F.jsxs)("button",{className:"accordion-button ai_report_accordion-button",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseOne","aria-expanded":"true","aria-controls":"collapseOne",children:[(0,F.jsx)("img",{src:"/assets/img/ai-report/accordian_check.png",alt:""})," Composition"]})}),(0,F.jsx)("div",{id:"collapseOne",className:"accordion-collapse collapse show","aria-labelledby":"headingOne","data-bs-parent":"#aiReportAccordion",children:(0,F.jsx)("div",{className:"accordion-body ai_report_accordion-body",children:(null===Re||void 0===Re?void 0:Re.composition_strength)||(null===WR||void 0===WR?void 0:WR.composition_strength)})})]}),(0,F.jsxs)("div",{className:"accordion-item ai_report_accordion-item",children:[(0,F.jsx)("h2",{className:"accordion-header",id:"headingTwo",children:(0,F.jsxs)("button",{className:"accordion-button ai_report_accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseTwo","aria-expanded":"false","aria-controls":"collapseTwo",children:[(0,F.jsx)("img",{src:"/assets/img/ai-report/accordian_check.png",alt:""})," Lighting"]})}),(0,F.jsx)("div",{id:"collapseTwo",className:"accordion-collapse collapse","aria-labelledby":"headingTwo","data-bs-parent":"#aiReportAccordion",children:(0,F.jsx)("div",{className:"accordion-body ai_report_accordion-body",children:(null===Re||void 0===Re?void 0:Re.lighting_strength)||(null===WR||void 0===WR?void 0:WR.lighting_strength)})})]}),(0,F.jsxs)("div",{className:"accordion-item ai_report_accordion-item",children:[(0,F.jsx)("h2",{className:"accordion-header",id:"headingThree",children:(0,F.jsxs)("button",{className:"accordion-button ai_report_accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseThree","aria-expanded":"false","aria-controls":"collapseThree",children:[(0,F.jsx)("img",{src:"/assets/img/ai-report/accordian_check.png",alt:""})," Color & Tone"]})}),(0,F.jsx)("div",{id:"collapseThree",className:"accordion-collapse collapse","aria-labelledby":"headingThree","data-bs-parent":"#aiReportAccordion",children:(0,F.jsx)("div",{className:"accordion-body ai_report_accordion-body",children:(null===Re||void 0===Re?void 0:Re.color_and_tone_strength)||(null===WR||void 0===WR?void 0:WR.color_and_tone_strength)})})]}),(0,F.jsxs)("div",{className:"accordion-item ai_report_accordion-item",children:[(0,F.jsx)("h2",{className:"accordion-header",id:"headingFour",children:(0,F.jsxs)("button",{className:"accordion-button ai_report_accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseFour","aria-expanded":"false","aria-controls":"collapseFour",children:[(0,F.jsx)("img",{src:"/assets/img/ai-report/accordian_check.png",alt:""})," Focus & Detail"]})}),(0,F.jsx)("div",{id:"collapseFour",className:"accordion-collapse collapse","aria-labelledby":"headingFour","data-bs-parent":"#aiReportAccordion",children:(0,F.jsx)("div",{className:"accordion-body ai_report_accordion-body",children:(null===Re||void 0===Re?void 0:Re.focu
2s_and_detail_strength)||(null===WR||void 0===WR?void 0:WR.focus_and_detail_strength)})})]}),(0,F.jsxs)("div",{className:"accordion-item ai_report_accordion-item",children:[(0,F.jsx)("h2",{className:"accordion-header",id:"headingFive",children:(0,F.jsxs)("button",{className:"accordion-button ai_report_accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseFive","aria-expanded":"false","aria-controls":"collapseFive",children:[(0,F.jsx)("img",{src:"/assets/img/ai-report/accordian_check.png",alt:""})," Story & Emotion"]})}),(0,F.jsx)("div",{id:"collapseFive",className:"accordion-collapse collapse","aria-labelledby":"headingFive","data-bs-parent":"#aiReportAccordion",children:(0,F.jsx)("div",{className:"accordion-body ai_report_accordion-body",children:(null===Re||void 0===Re?void 0:Re.story_and_emotion_strength)||(null===WR||void 0===WR?void 0:WR.story_and_emotion_strength)})})]}),(0,F.jsxs)("div",{className:"accordion-item ai_report_accordion-item",children:[(0,F.jsx)("h2",{className:"accordion-header",id:"headingSix",children:(0,F.jsxs)("button",{className:"accordion-button ai_report_accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseSix","aria-expanded":"false","aria-controls":"collapseSix",children:[(0,F.jsx)("img",{src:"/assets/img/ai-report/accordian_check.png",alt:""})," Editing & Execution"]})}),(0,F.jsx)("div",{id:"collapseSix",className:"accordion-collapse collapse","aria-labelledby":"headingSix","data-bs-parent":"#aiReportAccordion",children:(0,F.jsx)("div",{className:"accordion-body ai_report_accordion-body",children:(null===Re||void 0===Re?void 0:Re.editing_and_execution_strength)||(null===WR||void 0===WR?void 0:WR.editing_and_execution_strength)})})]})]}),(0,F.jsx)("h3",{className:"ai_report_subtitle",children:"Some Ideas To Consider (the improvements)"}),(0,F.jsxs)("div",{className:"accordion ai_report_accordion",id:"aiReportAccordion2",children:[(0,F.jsxs)("div",{className:"accordion-item ai_report_accordion-item",children:[(0,F.jsx)("h2",{className:"accordion-header",id:"headingOne2",children:(0,F.jsxs)("button",{className:"accordion-button ai_report_accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseOne2","aria-expanded":"false","aria-controls":"collapseOne2",children:[(0,F.jsx)("img",{src:"/assets/img/ai-report/accordian_check.png",alt:""})," Composition"]})}),(0,F.jsx)("div",{id:"collapseOne2",className:"accordion-collapse collapse","aria-labelledby":"headingOne2","data-bs-parent":"#aiReportAccordion2",children:(0,F.jsx)("div",{className:"accordion-body ai_report_accordion-body",children:null===Le||void 0===Le?void 0:Le.composition_improve})})]}),(0,F.jsxs)("div",{className:"accordion-item ai_report_accordion-item",children:[(0,F.jsx)("h2",{className:"accordion-header",id:"headingTwo2",children:(0,F.jsxs)("button",{className:"accordion-button ai_report_accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseTwo2","aria-expanded":"false","aria-controls":"collapseTwo2",children:[(0,F.jsx)("img",{src:"/assets/img/ai-report/accordian_check.png",alt:""})," Lighting"]})}),(0,F.jsx)("div",{id:"collapseTwo2",className:"accordion-collapse collapse","aria-labelledby":"headingTwo2","data-bs-parent":"#aiReportAccordion2",children:(0,F.jsx)("div",{className:"accordion-body ai_report_accordion-body",children:null===Le||void 0===Le?void 0:Le.lighting_improve})})]}),(0,F.jsxs)("div",{className:"accordion-item ai_report_accordion-item",children:[(0,F.jsx)("h2",{className:"accordion-header",id:"headingThree2",children:(0,F.jsxs)("button",{className:"accordion-button ai_report_accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseThree2","aria-expanded":"false","aria-controls":"collapseThree2",children:[(0,F.jsx)("img",{src:"/assets/img/ai-report/accordian_check.png",alt:""})," Color & Tone"]})}),(0,F.jsx)("div",{id:"collapseThree2",className:"accordion-collapse collapse","aria-labelledby":"headingThree2","data-bs-parent":"#aiReportAccordion2",children:(0,F.jsx)("div",{className:"accordion-body ai_report_accordion-body",children:null===Le||void 0===Le?void 0:Le.color_and_tone_improve})})]}),(0,F.jsxs)("div",{className:"accordion-item ai_report_accordion-item",children:[(0,F.jsx)("h2",{className:"accordion-header",id:"headingFour2",children:(0,F.jsxs)("button",{className:"accordion-button ai_report_accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseFour2","aria-expanded":"false","aria-controls":"collapseFour2",children:[(0,F.jsx)("img",{src:"/assets/img/ai-report/accordian_check.png",alt:""})," Focus & Detail"]})}),(0,F.jsx)("div",{id:"collapseFour2",className:"accordion-collapse collapse","aria-labelledby":"headingFour2","data-bs-parent":"#aiReportAccordion2",children:(0,F.jsx)("div",{className:"accordion-body ai_report_accordion-body",children:null===Le||void 0===Le?void 0:Le.focus_and_detail_improve})})]}),(0,F.jsxs)("div",{className:"accordion-item ai_report_accordion-item",children:[(0,F.jsx)("h2",{className:"accordion-header",id:"headingFive2",children:(0,F.jsxs)("button",{className:"accordion-button ai_report_accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseFive2","aria-expanded":"false","aria-controls":"collapseFive2",children:[(0,F.jsx)("img",{src:"/assets/img/ai-report/accordian_check.png",alt:""})," Story & Emotion"]})}),(0,F.jsx)("div",{id:"collapseFive2",className:"accordion-collapse collapse","aria-labelledby":"headingFive2","data-bs-parent":"#aiReportAccordion2",children:(0,F.jsx)("div",{className:"accordion-body ai_report_accordion-body",children:null===Le||void 0===Le?void 0:Le.story_and_emotion_improve})})]}),(0,F.jsxs)("div",{className:"accordion-item ai_report_accordion-item",children:[(0,F.jsx)("h2",{className:"accordion-header",id:"headingSix2",children:(0,F.jsxs)("button",{className:"accordion-button ai_report_accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseSix2","aria-expanded":"false","aria-controls":"collapseSix2",children:[(0,F.jsx)("img",{src:"/assets/img/ai-report/accordian_check.png",alt:""})," Editing & Execution"]})}),(0,F.jsx)("div",{id:"collapseSix2",className:"accordion-collapse collapse","aria-labelledby":"headingSix2","data-bs-parent":"#aiReportAccordion2",children:(0,F.jsx)("div",{className:"accordion-body ai_report_accordion-body",children:null===Le||void 0===Le?void 0:Le.editing_and_execution_improve})})]})]})]})}),Ue&&(0,F.jsx)("section",{className:"ai_report_genre-section",children:(0,F.jsxs)("div",{className:"ai_report_container",children:[(0,F.jsx)("div",{className:"ai_report_review-header",children:(0,F.jsxs)("div",{style:{width:"100%",display:"flex",gap:"4px",alignItems:"flex-start"},children:[(0,F.jsxs)("h4",{className:"ai_report_section-title",children:["What ",null===Ue||void 0===Ue?void 0:Ue.genre," Photographers Notice"]}),(0,F.jsxs)("span",{className:"ai_report_info-wrap ai_report_Genre_info","aria-label":"Genre Feedback info",style:{marginLeft:"3px"},onMouseEnter:function(){return le("genre")},onMouseLeave:function(){return le(null)},onClick:function(){return le((function(e){return"genre"===e?null:"genre"}))},children:[(0,F.jsx)(BR,{}),"genre"===se&&(0,F.jsx)("div",{className:"ai_report_tooltip",children:Te})]})]})}),(0,F.jsx)("div",{className:"ai_report_feedback-grid",children:null===Ue||void 0===Ue?void 0:Ue.attributes.map((function(e){return(0,F.jsxs)("div",{className:"ai_report_feedback-card",children:[(0,F.jsxs)("div",{className:"ai_report_card-header",children:[(0,F.jsx)("img",{src:e.icon,alt:""}),(0,F.jsxs)("div",{className:"ai_report_card-title",children:[e.name,(0,F.jsxs)("span",{children:[" ",e.score]})]})]}),(0,F.jsx)("div",{className:"ai_report_card-body",children:e.feedback})]},e.name)}))})]})}),(0,F.jsx)("section",{className:"ai_report_section",children:(0,F.jsxs)("div",{className:"ai_report_container",children:[(0,F.jsx)("div",{className:"ai_report_review-header",children:(0,F.jsx)("div",{style:{width:"100%"},children:(0,F.jsxs)("h4",{className:"ai_report_section-title",style:{display:"flex",gap:"4px",width:"100%",alignItems:"flex-start"},children:["Tracking Your Recent Photos:",(0,F.jsxs)("span",{className:"ai_report_info-wrap","aria-label":"Trends Chart info",onMouseEnter:function(){return le("tracking")},onMouseLeave:function(){return le(null)},onClick:function(){return le((function(e){return"tracking"===e?null:"tracking"}))},children:[(0,F.jsx)(BR,{}),"tracking"===se&&(0,F.jsx)("div",{className:"ai_report_tooltip",children:Ie})]})]})})}),(0,F.jsx)("div",{className:"ai_report_table_wrapper",children:(0,F.jsxs)("table",{className:"ai_report_table",children:[(0,F.jsxs)("thead",{children:[(0,F.jsxs)("tr",{className:"ai_report_table_header_block",children:[(0,F.jsx)("th",{}),(0,F.jsx)("th",{className:"avg ai_report_table_label_avg",children:"Avg."}),[0,1,2,3,4,5].map((function(e){var t=He&&He.photos&&He.photos[e];return(0,F.jsx)("th",{className:"ai_report_table_label",children:t?0===e?(0,F.jsxs)(F.Fragment,{children:["This",(0,F.jsx)("br",{}),"Photo"]}):qe(t.hunt_week_start,!1):null},e)}))]}),(0,F.jsxs)("tr",{className:"ai_report_table_header_hidden",children:[(0,F.jsx)("th",{}),(0,F.jsx)("th",{className:"avg ai_report_table_label_avg",children:"Avg."}),[0,1,2,3,4,5].map((function(e){var t=He&&He.photos&&He.photos[e];return(0,F.jsx)("th",{className:"ai_report_table_label",children:t?0===e?(0,F.jsxs)(F.Fragment,{children:["This",(0,F.jsx)("br",{}),"Photo"]}):qe(t.hunt_week_start,!0):null},e)}))]})]}),(0,F.jsx)("tbody",{children:[{key:"composition_target",label:"Composition"},{key:"light_target",label:"Lighting"},{key:"color_target",label:"Color &amp; Tone"},{key:"story_emotion",label:"Story &amp; Emotion"},{key:"focus_target",label:"Focus &amp; Detail"},{key:"edit_target",label:"Editing"}].map((function(e){var t=He&&He.average&&He.average[e.key];return(0,F.jsxs)("tr",{children:[(0,F.jsx)("td",{className:"label ai_report_td_table",dangerouslySetInnerHTML:{__html:e.label}}),(0,F.jsx)("td",{className:"ai_report_table_avg_cell",children:"number"===typeof t?t.toFixed(1):"-"}),[0,1,2,3,4,5].map((function(t){var n=He&&He.photos&&He.photos[t],r=n&&n.score&&n.score[e.key];return(0,F.jsx)("td",{className:"chart",children:"number"===typeof r?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"dot"}),(0,F.jsx)("span",{children:r.toFixed(1)})]}):null},t)}))]},e.key)}))})]})})]})}),(0,F.jsx)("section",{className:"ai_report_banner",children:(0,F.jsxs)("div",{className:"ai_report_container",children:[(0,F.jsx)("div",{className:"ai_report_review-header",children:(0,F.jsx)("h4",{className:"ai_report_section-title",children:"Editing Recommendations"})}),(0,F.jsx)("p",{className:"ai_report_review-detail",children:(null===Be||void 0===Be||null===(n=Be.editing_recommendations)||void 0===n?void 0:n.intro)||"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}),null===Be||void 0===Be||null===(r=Be.editing_recommendations)||void 0===r||null===(i=r.suggestions)||void 0===i?void 0:i.map((function(e,t){return(0,F.jsx)("p",{className:"ai_report_review-detail",children:e},t)}))]})}),We&&(null===We||void 0===We?void 0:We.length)>0&&(0,F.jsx)("section",{className:"ai_report_topranked-section",children:(0,F.jsxs)("div",{className:"ai_report_container",children:[(0,F.jsx)("div",{className:"ai_report_review-header",children:(0,F.jsx)("h4",{className:"ai_report_section-title",children:" In case you're curious: The top ranked photos in..."})}),(0,F.jsx)("div",{className:"ai_report_topranked-grid",children:null===We||void 0===We?void 0:We.map((function(e){return(0,F.jsxs)("div",{className:"ai_report_top-card",children:[(0,F.jsx)("div",{className:"ai_report_card-label",children:VR[null===e||void 0===e?void 0:e.attribute]}),(0,F.jsxs)("div",{className:"ai_report_card-content",children:[(0,F.jsx)("img",{src:e.photo_url,alt:"Top Composition",className:"ai_report_card-img"}),(0,F.jsxs)("div",{className:"ai_report_card-info",children:[(0,F.jsx)("div",{className:"ai_report_photographer",children:null===e||void 0===e?void 0:e.user_name}),(0,F.jsx)("div",{className:"ai_report_photographer",children:null===e||void 0===e?void 0:e.genres_list}),(0,F.jsx)("div",{className:"ai_report_photographer",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:null===e||void 0===e?void 0:e.state}),(0,F.jsxs)("div",{className:"ai_report_upvotes",children:["Upvotes: ",(0,F.jsx)("strong",{children:null===e||void 0===e?void 0:e.upvotes})]})]})]})]},e.photo_url)}))})]})}),(0,F.jsx)("section",{className:"ai_report_banner_one",children:(0,F.jsxs)("div",{className:"ai_report_container",children:[(0,F.jsx)("div",{className:"ai_report_review-header",children:(0,F.jsx)("h4",{className:"ai_report_section-title",children:"WOW Factor: Emotional Resonance"})}),(0,F.jsx)("p",{className:"ai_report_review-detail",children:null===Be||void 0===Be?void 0:Be.wow_factor})]})}),(0,F.jsx)("section",{className:" ai_report_banner_two",children:(0,F.jsxs)("div",{className:"ai_report_container",children:[(0,F.jsx)("div",{className:"ai_report_review-header",children:(0,F.jsx)("h4",{className:"ai_report_section-title",children:"Actionable Steps To Improve & Get More Upvotes"})}),((null===Be||void 0===Be?void 0:Be.upvotes_action_plan)||"").split(/\n\n+/).filter(
2Boolean).map((function(e,t){return(0,F.jsx)("p",{className:"ai_report_review-detail",children:e},t)}))]})}),(0,F.jsx)("section",{className:" ai_report_banner_three",children:(0,F.jsxs)("div",{className:"ai_report_container",children:[(0,F.jsx)("div",{className:"ai_report_review-header",children:(0,F.jsx)("h4",{className:"ai_report_section-title",children:"Ideas For What To Shoot Next"})}),((null===Be||void 0===Be?void 0:Be.next_shoot_ideas)||"").split(/\n\n+/).filter(Boolean).map((function(e,t){return(0,F.jsx)("p",{className:"ai_report_review-detail",children:e},t)}))]})}),!je&&(0,F.jsx)("section",{className:"ai_report_feedback-section",children:(0,F.jsx)("div",{className:"ai_report_container",children:(0,F.jsxs)("div",{className:"ai_report_feedback-row".concat(be?" ai_report_feedback-row--fading":""),children:[(0,F.jsx)("span",{className:"ai_report_feedback-microcopy",children:me?"Thanks for the feedback!":"How was this report?"}),(0,F.jsxs)("div",{className:"ai_report_feedback-thumbs",children:[(0,F.jsx)("button",{type:"button",className:"ai_report_feedback-thumb".concat("up"===de?" ai_report_feedback-thumb--selected":"down"===de?" ai_report_feedback-thumb--unselected":""),onClick:function(){return Me("up")},disabled:null!==de,"aria-label":"Thumbs up \u2014 this report was helpful",children:(0,F.jsx)(zR,{})}),(0,F.jsx)("button",{type:"button",className:"ai_report_feedback-thumb".concat("down"===de?" ai_report_feedback-thumb--selected":"up"===de?" ai_report_feedback-thumb--unselected":""),onClick:function(){return Me("down")},disabled:null!==de,"aria-label":"Thumbs down \u2014 this report was not helpful",children:(0,F.jsx)(UR,{})})]})]})})}),(0,F.jsx)("section",{className:" ai_report_banner_four",children:(0,F.jsx)("div",{className:"ai_report_container",children:(0,F.jsxs)("p",{className:"ai_report_review-detail_Ken_Bot",style:{lineHeight:"1.2",fontWeight:"400"},children:["This tool is in beta and we ship improvements weekly. If anything feels off or surprisingly helpful \u2014 or if you want a feature added \u2014 ",(0,F.jsx)(g.rU,{style:{color:"blue"},to:"mailto:[email protected]?subject=".concat(encodeURIComponent("Ken-Bot Photo Report Feedback")),children:"email me"}),". Your feedback shapes what's next. Thanks! :-) Ken"]})})})]})]})})]})})})})}),z&&(0,F.jsx)("div",{className:"modal bph-modal paywallModal2 pricing-modal","aria-hidden":"true",children:(0,F.jsx)("div",{className:"modal-dialog modal-dialog-centered modalAnimation pricing-modal-dialog",children:(0,F.jsx)("div",{className:"modal-content aiModal-content",style:{borderRadius:"8px",padding:"20px",position:"relative"},children:(0,F.jsx)("div",{className:"modal-body",children:(0,F.jsxs)("div",{className:"paywall_modal_wrap pricing-modal-wrap",children:[(0,F.jsx)("button",{type:"button",className:"btn-close pricing-modal-close",onClick:function(){U(!1),o(x.N.setAiReportModal(!1)),o(x.N.setGenerationStartedPhotoId(null))}}),(0,F.jsx)("div",{className:"pricing-main-content",children:(0,F.jsxs)("div",{className:"pricing-content-area",children:[(0,F.jsxs)("div",{className:"pricing-modal-title",children:[(0,F.jsx)("h3",{children:Ee?q?(0,F.jsxs)(F.Fragment,{children:["This Photo Predates",(0,F.jsx)("br",{className:"d-block d-md-none"})," Ken-Bot's Launch"]}):(0,F.jsxs)(F.Fragment,{children:["This Report Predates",(0,F.jsx)("br",{className:"d-block d-md-none"})," Your Subscription"]}):J?"Your photo wants you Pro again":"Learn Exactly How to Improve This Photo"}),(0,F.jsx)("p",{className:"pricing-modal-subtitle",children:Ee?q?(0,F.jsxs)(F.Fragment,{children:["Your Pro plan covers all",(0,F.jsx)("br",{className:"d-block d-md-none"})," new reports going forward.",(0,F.jsx)("br",{}),"Pre-launch photos are available",(0,F.jsx)("br",{className:"d-block d-md-none"})," as a one-time purchase."]}):(0,F.jsxs)(F.Fragment,{children:["Your Pro plan covers all",(0,F.jsx)("br",{className:"d-block d-md-none"})," new reports going forward.",(0,F.jsx)("br",{}),"Reports before that are available",(0,F.jsx)("br",{className:"d-block d-md-none"})," as a one-time purchase."]}):J?"Because it knows it's about to get better.":(0,F.jsxs)(F.Fragment,{children:["Analyzed against thousands of real hunted photos. ",(0,F.jsx)("br",{})," Built to get you more upvotes."]})}),(0,F.jsx)("p",{className:"pricing-modal-description".concat(Ee?" pricing-modal-description--predates":""),children:Ee?(0,F.jsxs)(F.Fragment,{children:["Get clear, actionable feedback",(0,F.jsx)("br",{className:"d-block d-md-none"})," on this exact photo."]}):J?"Improve your photo. Get more upvotes. Here's exactly how.":"Get clear, actionable steps to improve your next shot."})]}),(0,F.jsxs)("div",{className:"pricing-cards-container",style:Ee?{justifyContent:"center"}:{},children:[(0,F.jsxs)("div",{className:"pricing-card",children:[(0,F.jsx)("img",{className:"pricing-card-icon",src:"/assets/img/ai-report/OneTimeReport.png",alt:"One-Time Report"}),(0,F.jsx)("h4",{className:"pricing-card-title",children:"One-Time Report"}),!Ee&&(0,F.jsx)("p",{className:"pricing-card-description",children:"Full 12-point photo analysis"}),(0,F.jsx)("div",{className:"pricing-card-price",children:"$25"}),(0,F.jsx)("button",{disabled:k,onClick:Oe,className:"btn btn--base btn--unfollow follow--unfollow pricing-card-button",style:Ee?{backgroundColor:"#ffd621"}:{},children:k?"Loading...":"Get Report"})]}),!Ee&&(0,F.jsx)("img",{src:"/assets/img/ai-report/Line.png",alt:"Divider",className:"d-none d-lg-block"}),!Ee&&(0,F.jsxs)("div",{className:"pricing-card",children:[(0,F.jsx)("img",{className:"pricing-card-icon",src:"/assets/img/ai-report/aipc.png",alt:"One-Time Report"}),(0,F.jsxs)("h4",{className:"pricing-card-title",children:["Get Pro ",(0,F.jsx)("span",{style:{fontSize:"16px",color:"gray"},children:"(Best Value)"})]}),(0,F.jsx)("p",{className:"pricing-card-description",children:"All weekly reports included"}),(0,F.jsx)("div",{className:"pricing-card-price",children:"$9/Month"}),(0,F.jsx)("button",{onClick:function(){Ne("AiReport"),U(!1),o(x.N.setAiReportModal(!1))},className:"btn pricing-card-button",children:"Get Pro"})]})]})]})})]})})})})})]}):null]})},$R="site-header",JR=[120,400,1200],KR=function(e){(0,c.useEffect)((function(){var e=document.documentElement,t=null,n=!1,r=function(){if(!n){var r=document.getElementById($R);if(r){var i=Math.ceil(r.getBoundingClientRect().height);i>0&&i!==t&&(t=i,e.style.setProperty("--bph-header-h","".concat(i,"px")))}}},i=window.requestAnimationFrame(r);document.fonts&&document.fonts.ready&&document.fonts.ready.then(r).catch((function(){}));var o=JR.map((function(e){return window.setTimeout(r,e)}));window.addEventListener("load",r),window.addEventListener("resize",r);var a=null;if("function"===typeof ResizeObserver){a=new ResizeObserver(r);var s=document.getElementById($R);s&&a.observe(s)}return function(){n=!0,window.cancelAnimationFrame(i),o.forEach(window.clearTimeout),window.removeEventListener("load",r),window.removeEventListener("resize",r),a&&a.disconnect()}}),[e])};var YR=function(){var e=(0,c.useState)(null),t=(0,p.Z)(e,2),n=t[0],r=t[1],i=localStorage.getItem("Data"),o=(0,b.a)(i),a=o.userid,s=o.token,l=o.isLoggedIn,u=sessionStorage.getItem("bigphotohuntSession");document.addEventListener("contextmenu",(function(e){e.preventDefault()})),xe.ZP.initialize("G-XD16TFXGXR");var m=(0,h.TH)(),v=new URLSearchParams(m.search),g=v.get("modal"),w=v.get("upvote"),k=v.get("photoUrl"),S=v.get("photoId"),C=function(){var e="undefined"!==typeof navigator?navigator.userAgent:"";return!e||"string"!==typeof e||NZ.test(e)}();C||j.Z.getInstance().init("377019229287576f6434e90c6af77d4");var _=(0,y.I0)(),E=(0,y.v9)((function(e){return e.Login.isLoggedIn}));KR(E);var N=(0,y.v9)((function(e){return e.Modal.PopupModalState})),A=(0,y.v9)((function(e){return e.Modal.PhotoUploadModalState})),D=(0,y.v9)((function(e){return e.Modal.ProfileUploadModalState})),T=(0,y.v9)((function(e){return e.Modal.SharePhotoModalState})),I=(0,y.v9)((function(e){return e.Modal.SignInModalState})),P=(0,y.v9)((function(e){return e.Modal.AiReportModal})),O=(0,y.v9)((function(e){return e.Modal.JoinNowModalState})),M=(0,y.v9)((function(e){return e.Modal.CoverPhotoUploadModalState}
2)),Z=(0,y.v9)((function(e){return e.Modal.UploadPhotoFromGalleryModalState})),R=(0,y.v9)((function(e){return e.Modal.isLightboxModalOpen})),L=(0,y.v9)((function(e){return e.Modal.isPayWallOpen}));(0,c.useEffect)((function(){1==l&&_(qt.s.setIsLoggedIn(!0)),"paywall"==g&&_(x.N.setisPayWallOpen(!0)),"aireport"==g&&(_(x.N.setAiReportAPiPayload({upvotes:w,photoId:S,photoUrl:k,isAiReportAccessible:!0,isAiReportGenerated:!1,aiReportOnItSeen:!1})),_(x.N.setAiReportModal(!0)))}),[]),(0,c.useEffect)((function(){if(Be.T&&E){var e=(0,FR.TK)();if(e){var t=(0,it.IS)()||(0,b.a)(localStorage.getItem("Data")).token;(0,FR.j7)(t)&&(0,PR.Ap)(e).catch((function(){}))}}}),[E]),(0,c.useEffect)((function(){var e=function(e){var t=SZ("https://socket.bigbesos.com",{reconnectionDelayMax:1e4,auth:jZ(e)}),n=!1;return t.on("connect_error",(function(e){n||(console.warn("Live notifications temporarily unavailable:",null===e||void 0===e?void 0:e.message),n=!0)})),t}(s);r(e)}),[]),(0,c.useEffect)((function(){if(n){!function(e,t){if(e){var n=t||void 0;(e.auth&&e.auth.token)!==n&&(e.auth=jZ(n),e.connected&&e.disconnect().connect())}}(n,s);var e=function(){return function(e,t){null===e||void 0===e||e.emit("newUser",t)}(n,a)};return n.connected&&e(),n.on("connect",e),function(){n.off("connect",e)}}}),[n,a]),TZ({loggedIn:E,socket:n});var B=(0,y.v9)((function(e){return e.Socket.SocketReceiverUserID})),z=(0,y.v9)((function(e){return e.Socket.ReloadNotificationSenderFn}));(0,c.useEffect)((function(){B&&function(e,t,n){t!==n&&e&&e.emit("sendNotification",{senderID:t,receiverID:n})}(n,a,B)}),[z]),(0,c.useEffect)((function(){var e=m.pathname;"/board"===e||e.startsWith("/board/")||function(){try{if("undefined"===typeof window||!window.sessionStorage)return;window.sessionStorage.removeItem(Eo)}catch(e){}}()}),[m.pathname]),(0,c.useEffect)((function(){if(!C&&!u&&(j.Z.getInstance().setUserId(a),j.Z.getInstance().logEvent("Session",{UserID:a}),sessionStorage.setItem("bigphotohuntSession",!0),s)){var e=function(){var e=(0,f.Z)((0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,EZ(s);case 3:e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}();e()}}),[]);var U=l?{name:o.useDisplay_name,email:o.user_email,created_at:o.CreatedAt}:null,H=window.location.pathname,W=(window.location.origin,window.location.hostname.toLowerCase()),q=W.split("."),V=["bigphotohunt.com","eldevbph1.bigphotohunt.com","elstagebph1.bigphotohunt.com","localhost"].find((function(e){return W===e||W.endsWith(".".concat(e))})),G=!1,$=null;if(V){var J=V.split(".").length;q.length-J>=1&&!["www","eldevbph1","elstagebph1"].includes(q[0])&&(G=!0,$=q[0])}var K=G;return K&&!$&&($=q[0]),K?(0,F.jsxs)(Cr.y,{baseColor:"#ebebeb",highlightColor:"#dad5d5",children:[I&&(0,F.jsx)(dn,{}),O&&(0,F.jsx)(kn,{}),(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(_R,{})})]}):(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)(Cr.y,{baseColor:"#ebebeb",highlightColor:"#dad5d5",children:[I&&(0,F.jsx)(dn,{}),O&&(0,F.jsx)(kn,{}),A&&(0,F.jsx)(An,{}),D&&(0,F.jsx)(or.Z,{bphProfile:!0}),M&&(0,F.jsx)(KO,{}),T&&(0,F.jsx)(tr,{}),N&&(0,F.jsx)(ir,{}),!E&&(0,F.jsx)(Je,{}),E&&(0,F.jsx)(ot,{socket:n}),Z&&(0,F.jsx)(_Z,{usertoken:s}),R&&(0,F.jsx)(xt,{}),L&&(0,F.jsx)(En.Z,{}),P&&(0,F.jsx)(GR,{}),(0,F.jsx)(rr,{user:U}),(0,F.jsx)(IZ,{}),(0,F.jsxs)(h.Z5,{children:[(0,F.jsx)(h.AW,{path:"/",element:(0,F.jsx)(Ue,{})}),(0,F.jsx)(h.AW,{path:"/B031124",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(rR,{})})}),(0,F.jsx)(h.AW,{path:"/C051324",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(QZ,{})})}),(0,F.jsx)(h.AW,{path:"/profile",element:(0,F.jsx)(sr,{children:(0,F.jsx)(jr,{})})}),(0,F.jsx)(h.AW,{path:"/otherusers-profile",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(mR,{})})}),(0,F.jsx)(h.AW,{path:"/pmupgrade",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(vR,{})})}),(0,F.jsx)(h.AW,{path:"/14dfspecial",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(gR,{})})}),(0,F.jsx)(h.AW,{path:"/30dfforyou",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(yR,{})})}),(0,F.jsx)(h.AW,{path:"/2mfspecial",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(bR,{})})}),(0,F.jsx)(h.AW,{path:"/queue",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(lR,{})})})}),(0,F.jsx)(h.AW,{path:"/topten",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(oR,{})})}),(0,F.jsx)(h.AW,{path:"/shop",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(TR,{})})}),(0,F.jsx)(h.AW,{path:"/shop/confirmation",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(IR,{})})}),(0,F.jsx)(h.AW,{path:"/Photo",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(UZ,{})})}),(0,F.jsx)(h.AW,{path:"/about",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(YZ,{})})}),(0,F.jsx)(h.AW,{path:"/contact",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(JZ,{})})}),(0,F.jsx)(h.AW,{path:"/feature-request",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(KZ,{})})}),(0,F.jsx)(h.AW,{path:"/comment-invite/:token",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(DR,{})})}),(0,F.jsx)(h.AW,{path:"/monthly-townhall-0824",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(cR,{usertoken:s})})}),(0,F.jsx)(h.AW,{path:"/monthly-townhall",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(uR,{usertoken:s})})}),(0,F.jsx)(h.AW,{path:"/previous-monthly-townhall",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(dR,{usertoken:s})})}),(0,F.jsx)(h.AW,{path:"/newyorkcity-photowalk",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(pR,{})})}
2),(0,F.jsx)(h.AW,{path:"/club-page",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(hR,{})})})}),(0,F.jsx)(h.AW,{path:"/beta",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(WZ,{})})}),(0,F.jsx)(h.AW,{path:"/terms",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)($Z,{})})}),(0,F.jsx)(h.AW,{path:"/policy",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(GZ,{})})}),(0,F.jsx)(h.AW,{path:"/how-works",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(HZ,{})})}),(0,F.jsx)(h.AW,{path:"/meet-terry",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(VZ,{})})}),(0,F.jsx)(h.AW,{path:"/pierretlambert-course",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(fR,{usertoken:s})})}),(0,F.jsx)(h.AW,{path:"/feedback",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(nR,{})})}),(0,F.jsx)(h.AW,{path:"/new-members",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(iR,{})})}),(0,F.jsx)(h.AW,{path:"/edit-profile",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(qZ,{})})})}),(0,F.jsx)(h.AW,{path:"/activity",element:(0,F.jsx)(sr,{children:(0,F.jsx)(ji,{})})}),(0,F.jsx)(h.AW,{path:"/board/welcome",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(XZ,{})})}),(0,F.jsx)(h.AW,{path:"/board",element:(0,F.jsx)(Jo,{})}),(0,F.jsx)(h.AW,{path:"/board/my-threads",element:(0,F.jsx)(sr,{children:(0,F.jsx)(ca,{})})}),(0,F.jsx)(h.AW,{path:"/board/new",element:(0,F.jsx)(sr,{children:(0,F.jsx)(VO,{})})}),(0,F.jsx)(h.AW,{path:"/board/edit/:postId",element:(0,F.jsx)(sr,{children:(0,F.jsx)(VO,{})})}),(0,F.jsx)(h.AW,{path:"/board/post/:postId",element:(0,F.jsx)(tN,{})}),(0,F.jsx)(h.AW,{path:"giveaway",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(PZ,{})})}),(0,F.jsx)(h.AW,{path:"/giveaway/:id",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(zZ,{})})}),(0,F.jsx)(h.AW,{path:"new-giveaway",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(aR,{usertoken:s})})}),(0,F.jsx)(h.AW,{path:"/new-giveaway_wotancraft",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(kR,{usertoken:s})})}),(0,F.jsx)(h.AW,{path:"previousgiveaways",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(sR,{usertoken:s})})}),(0,F.jsx)(h.AW,{path:"/people",element:(0,F.jsx)(sr,{children:(0,F.jsx)(Fr,{})})}),(0,F.jsx)(h.AW,{path:"/tools",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(AR,{})})})}),(0,F.jsx)(h.AW,{path:"/photo-analysis",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(AR,{})})})}),(0,F.jsx)(h.AW,{path:"/review/report/:photoId",element:Be.T?(0,F.jsx)(lr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(FZ,{})})}):(0,F.jsx)(h.Fg,{to:"/",replace:!0})}),(0,F.jsx)(h.AW,{path:"/review",element:Be.T?(0,F.jsx)(lr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(OZ,{})})}):(0,F.jsx)(h.Fg,{to:"/",replace:!0})}),(0,F.jsx)(h.AW,{path:"/review/pick",element:Be.T?(0,F.jsx)(lr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(MZ,{})})}):(0,F.jsx)(h.Fg,{to:"/",replace:!0})}),!1,(0,F.jsx)(h.AW,{path:"/review/reports",element:Be.T?(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(ZZ,{})})}):(0,F.jsx)(h.Fg,{to:"/",replace:!0})}),(0,F.jsx)(h.AW,{path:"/review/photo/:photoId",element:Be.T?(0,F.jsx)(lr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(RZ,{})})}):(0,F.jsx)(h.Fg,{to:"/",replace:!0})}),(0,F.jsx)(h.AW,{path:"/photo-review",element:Be.T?(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(LZ,{})}):(0,F.jsx)(h.Fg,{to:"/",replace:!0})}),(0,F.jsx)(h.AW,{path:"/photo-review/report/:photoId",element:Be.T?(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(BZ,{})}):(0,F.jsx)(h.Fg,{to:"/",replace:!0})}),(0,F.jsx)(h.AW,{path:"/reset-password",element:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(eR,{})})}),(0,F.jsx)(h.AW,{path:"/edit-photo",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(tR,{})})})}),(0,F.jsx)(h.AW,{path:"/invite-friend",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(xR,{})})})}),(0,F.jsx)(h.AW,{path:"/summer-drive",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(SR,{})})})}),(0,F.jsx)(h.AW,{path:"/hunt-score",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(wR,{usertoken:s})})})}),(0,F.jsx)(h.AW,{path:"/template-options",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(jR,{})})})}),(0,F.jsx)(h.AW,{path:"/upload-to-storage",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(NR,{})})})}),(0,F.jsx)(h.AW,{path:"/waiting-page",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(CR,{})})})}),(0,F.jsx)(h.AW,{path:"/manage-p-website",element:(0,F.jsx)(sr,{children:(0,F.jsx)(c.Suspense,{fallback:(0,F.jsx)(ar.Z,{}),children:(0,F.jsx)(ER,{})})})})]}),"/C051324"!==H&&(0,F.jsx)(Rt,{})]})})},XR=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,r=t.getFID,i=t.getFCP,o=t.getLCP,a=t.getTTFB;n(e),r(e),i(e),o(e),a(e)}))},QR=(0,zt.oM)({name:"Generic",initialState:{LogoClickState:!1},reducers:{setLogoClickState:function(e,t){e.LogoClickState=t.payload}}}),eL=(QR.actions,QR),tL=n(8770),nL=n(1737),rL=(0,zt.xC)({reducer:{SocialMedia:Wt.reducer,Modal:x.Z.reducer,Login:qt.Z.reducer,Follow:dr.Z.reducer,Socket:Ke.Z.reducer,LightBox:S.Z.reducer,Generic:eL.reducer,Gallery:fr.Z.reducer,PayWall:Qe.Z.reducer,photoTracking:tL.ZP.reducer,Common:wi.Z,adultReveal:nL.ZP.reducer}}),iL="502126642136-in9bha136tk68sodh9sf6im5gfcj3add.apps.googleusercontent.com";if("undefined"!==typeof window&&"scrollRestoration"in window.history)try{window.history.scrollRestoration="manual"}catch(aL){}"undefined"!==typeof window&&function(){if("undefined"!==typeof window)try{var e=gn(hn);if(e)try{var t=JSON.parse(e);if(t&&"object"===typeof t)return}catch(i){}var n=new URLSearchParams(window.location.search),r={referrer:yn(document.referrer||"",mn),landing_page:yn((0,pn.Q)(window.location.pathname+window.location.search)||"",mn),utm_source:yn(n.get("utm_source")||"",vn),utm_medium:yn(n.get("utm_medium")||"",vn),utm_campaign:yn(n.get("utm_campaign")||"",vn),first_seen_at:(new Date).toISOString()};!function(e,t){try{window.localStorage.setItem(e,t)}catch(i){}}(hn,JSON.stringify(r))}catch(i){}}(),u.createRoot(document.getElementById("root")).render((0,F.jsx)(y.zt,{store:rL,children:(0,F.jsx)(g.VK,{children:(0,F.jsx)(rn,{clientId:iL,children:(0,F.jsx)(YR,{})})})})),XR()}()}();
3//# sourceMappingURL=main.e6d5cdde.js.map

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