1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6b41ad1f-42dc-4100-9962-8d80434b4a66",e._sentryDebugIdIdentifier="sentry-dbid-6b41ad1f-42dc-4100-9962-8d80434b4a66")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{92:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(74067)}])},266:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(49995),o=n(10969),s=n(72569);function a(){let e=(0,o.CI)((0,s.Eh)());return(0,r.jsxs)("span",{className:(0,i.A)(o.Ay.badge,e.cardLineColor,e.cardMutedTextColor,"flex-none py-1 text-sm"),"data-sentry-component":"DraftBadge","data-sentry-source-file":"DraftBadge.tsx",children:[(0,r.jsx)("span",{className:(0,i.A)("w-2 h-2 rounded-full",e.cardMutedBackgroundColor)}),"Draft"]})}},365:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,o],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}i=o=null,s=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(s.length);for(var e=[i,o],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(79020)),i=void 0,o=void 0,s=[];function a(){0!==s.length&&s[s.length-1].focusContent()}r.default.subscribe(function(e,t){i||o||((i=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),i.style.position="absolute",i.style.opacity="0",i.setAttribute("tabindex","0"),i.addEventListener("focus",a),(o=i.cloneNode()).addEventListener("focus",a)),(s=t).length>0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==o&&document.body.appendChild(o)):(i.parentElement&&i.parentElement.removeChild(i),o.parentElement&&o.parentElement.removeChild(o))})},704:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(33881),o=n(94829),s=n(42383);let a=(0,n(5811).PA)(function(e){let{email:t,authCodeFormHook:n}=e,{authCode:a,codeRef:l,onAuthCodeChange:u,verifyMemberAuthCodeState:c}=n;return(0,r.jsxs)("div",{"data-sentry-component":"AuthCodeForm","data-sentry-source-file":"AuthCodeForm.tsx",children:[(0,r.jsx)(o.A,{"data-sentry-element":"Flash","data-sentry-source-file":"AuthCodeForm.tsx",children:(0,r.jsxs)("span",{children:["We sent you an email to ",(0,r.jsx)("b",{children:t})]})}),(0,r.jsx)("p",{className:"p",children:"Please look for the email we sent, and read the code from it."}),(0,r.jsxs)(s.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"AuthCodeForm.tsx",children:[(0,r.jsx)(s.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"AuthCodeForm.tsx",children:"Enter the code from the email:"}),(0,r.jsx)(s.ks,{type:"number",onChange:u,value:a,ref:l,autoComplete:"one-time-code","data-sentry-element":"TextInput","data-sentry-source-file":"AuthCodeForm.tsx"}),(0,r.jsx)(i.A,{mutationInfo:c,className:"mt-2","data-sentry-element":"AshMutationErrors","data-sentry-source-file":"AuthCodeForm.tsx"})]})]})})},1132:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"}))})},1324:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"}))})},1454:(e,t)=>
1{"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null},t.append=function(e,t){n(t);var r=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=r,i){if(i.prev=t,r){var o=r.children;o.splice(o.lastIndexOf(i),0,t)}}else r&&r.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var r=e.children[1];r.prev=t,t.next=r}else t.next=null},t.prepend=function(e,t){n(t);var r=e.parent;if(r){var i=r.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},1495:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(14232),i=n(47737);function o(e,t=!1){let[n,s]=(0,r.useReducer)(()=>({}),{}),a=(0,r.useMemo)(()=>(function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}})(e),[e,n]);return(0,i.s)(()=>{if(!e)return;let t=new ResizeObserver(s);return t.observe(e),()=>{t.disconnect()}},[e]),t?{width:`${a.width}px`,height:`${a.height}px`}:a}},1815:(e,t,n)=>{"use strict";n.d(t,{IA:()=>u,QE:()=>s,cp:()=>c,pU:()=>o,uF:()=>p,vo:()=>i,wK:()=>l});var r=n(94674);async function i(e,t){let n=e.baseUrl+"/accounts/self_creds",i=await (0,r.YO)(n,{body:JSON.stringify(t),headers:(0,r.co)(e),method:"PATCH"});return(0,r.h0)(i)}async function o(e,t){let n;n=await (0,r.YO)(e.baseUrl+"/accounts/password_resets",{body:JSON.stringify(t),headers:(0,r.co)(e),method:"POST"});let i=await h(n);if(i instanceof r.kR)throw i;return i}async function s(e,{password:t}){let n=await (0,r.YO)(e.baseUrl+"/accounts/change_password",{body:JSON.stringify({password:t}),headers:(0,r.co)(e),method:"POST"});return(0,r.h0)(n,a)}function a(e){return e}async function l(e,{file:t,cropBox:n,rotationAmount:i,uploadType:o}){let{baseUrl:s,jwt:a}=e,l=new window.FormData;l.append("file",t),n&&(l.append("crop[left]",`${n.left}`),l.append("crop[top]",`${n.top}`),l.append("crop[right]",`${n.right}`),l.append("crop[bottom]",`${n.bottom}`)),i&&l.append("rotation",`${i}`),o&&l.append("uploadType",o);let u=s+"/uploads",c=new window.XMLHttpRequest;return new Promise(function(t,n){c.open("POST",u,!0),c.setRequestHeader("Authorization",`Bearer ${a}`),c.setRequestHeader("gf-group",e.groupSlug),c.onreadystatechange=function(){4===c.readyState&&(200===c.status?t(JSON.parse(c.responseText)):n(new r.kR("Network Error",null,[])))},c.send(l)})}async function u(e,t){return d(e.baseUrl+"/events/images",t,e)}async function c(e,t){return d(e.baseUrl+"/content/photos",t,e)}async function d(e,t,n){let r=new window.FormData;r.append("file",t);let i=new window.XMLHttpRequest;return new Promise(function(t){i.open("POST",e,!0),i.setRequestHeader("Authorization",`Bearer ${n.jwt}`),i.setRequestHeader("gf-org",n.groupSlug),i.onreadystatechange=function(){if(4===i.readyState){let e={};try{e=JSON.parse(i.responseText)}catch{}if(i.status>=200&&i.status<=299)t({error:!1,data:e.data});else{let n=i.status>=500&&i.status<=599,r=e.errors?[{title:"There was a problem processing the image upload"}]:[];t({error:!0,status:i.status,serverError:n,requestErrors:r})}}},i.send(r)})}async function h(e,t){let{status:n}=e,i=await e.json();if(n>=200&&n<300)if(t)return t(i);else return i;let{errors:o}=i;return n>=400&&n<500?new r.kR("Bad Request",n,o):n>=500&&n<600?new r.kR("Server Error",n,o):new r.kR("Unexpected HTTP Status",n,[])}async function p(e,t){let n=e.baseUrl+"/testing/simulate_unregistered"+`?memberId=${t}`,i=await (0,r.YO)(n,{method:"POST",credentials:"include"});return(0,r.h0)(i)}},1889:(e,t,n)=>{"use strict";n.d(t,{gh:()=>o,kL:()=>s,pE:()=>i});var r=n(86191);let i=(0,r.J1)` 2 query GetTeam($slug: TeamSlug!) { 3 getTeam(slug: $slug) { 4 slug 5 name 6 description 7 memberships { 8 id 9 member { 10 id 11 name 12 email 13 profile { 14 photo { 15 thumbUrl 16 } 17 } 18 } 19 } 20 } 21 } 22`,o=(0,r.J1)` 23 mutation UpdateTeam($slug: TeamSlug!, $input: UpdateTeamInput!) { 24 updateTeam(slug: $slug, input: $input) { 25 result { 26 slug 27 name 28 memberships { 29 id 30 member { 31 id 32 name 33 email 34 } 35 } 36 } 37 errors { 38 message 39 code 40 fields 41 shortMessage 42 } 43 } 44 } 45`,s=(0,r.J1)` 46 query ListTeams { 47 listTeams { 48 slug 49 name 50 memberCount 51 } 52 } 53`}
53,2138:(e,t,n)=>{"use strict";n.d(t,{fy:()=>s});var r=n(24447),i=n(52226);let o=` 54 query GetCurrentUser { 55 getSelfMember { 56 accountConfirmed 57 autoRenews 58 duesExempt 59 duesPaidAmount 60 duesPaidOn 61 duesVariantId 62 email 63 emailConfirmedAt 64 externalAccounts { 65 provider 66 } 67 id 68 membershipEndsOn 69 name 70 passwordSet 71 profile { 72 photo { 73 thumbUrl 74 url 75 } 76 } 77 roles 78 status 79 title 80 trialEndsOn 81 } 82 } 83`;async function s(e){let t=await (0,r.Mn)(e,"GetCurrentUser",o);if(401===t.status||403===t.status)throw console.warn("getMyself(): InvalidSession"),new i.A(`http status: ${t.status}`);if(!t.ok)throw Error(`getMyself(): http status: ${t.status}`);var n=await t.json();let s=n.data?.getSelfMember??null,a=n.errors??[];if(s&&0===a.length)return s;if(!s&&a.every(e=>"forbidden"===e.code))throw new i.A("no member for this session");throw Error(`getMyself(): ${JSON.stringify(a)}`)}},2331:(e,t,n)=>{var r=n(94552),i=n(35536),o=n(17565),s=n(76217),a=n(47129);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},2418:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876);n(14232);var i=n(49995),o=n(45600),s=n(80643);let a=function(e){let{className:t,paging:n}=e;return n.hasNextPage?(0,r.jsxs)("div",{className:(0,i.A)("flex flex-col items-center w-full",t),"data-sentry-component":"EventsLoadMoreButton","data-sentry-source-file":"EventsLoadMoreButton.tsx",children:[(0,r.jsx)(s.A,{error:n.error,"data-sentry-element":"ApolloQueryError","data-sentry-source-file":"EventsLoadMoreButton.tsx"}),(0,r.jsx)(o.A,{onClick:function(){n.loadMore()},loading:n.loadingMore,"data-testid":"events-load-more","data-sentry-element":"ActionButton","data-sentry-source-file":"EventsLoadMoreButton.tsx",children:"Load more"})]}):null}},2687:function(e,t,n){"use strict";var r=this&&this.__assign||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}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=s(n(65883)),l=n(21043),u=n(24641),c=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]),d=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);t.default=function e(t,n){void 0===n&&(n={});for(var i=("length"in t)?t:[t],o="",s=0;s<i.length;s++)o+=function(t,n){switch(t.type){case a.Root:return e(t.children,n);case a.Directive:case a.Doctype:return"<"+t.data+">";case a.Comment:return"\x3c!--"+t.data+"--\x3e";case a.CDATA:return"<![CDATA["+t.children[0].data+"]]>";case a.Script:case a.Style:case a.Tag:return function(t,n){"foreign"===n.xmlMode&&(t.name=null!=(i=u.elementNames.get(t.name))?i:t.name,t.parent&&h.has(t.parent.name)&&(n=r(r({},n),{xmlMode:!1}))),!n.xmlMode&&p.has(t.name)&&(n=r(r({},n),{xmlMode:"foreign"}));var i,o="<"+t.name,s=function(e,t){if(e)return Object.keys(e).map(function(n){var r,i,o=null!=(r=e[n])?r:"";return("foreign"===t.xmlMode&&(n=null!=(i=u.attributeNames.get(n))?i:n),t.emptyAttrs||t.xmlMode||""!==o)?n+'="'+(!1!==t.decodeEntities?l.encodeXML(o):o.replace(/"/g,"""))+'"':n}).join(" ")}(t.attribs,n);return s&&(o+=" "+s),0===t.children.length&&(n.xmlMode?!1!==n.selfClosingTags:n.selfClosingTags&&d.has(t.name))?(n.xmlMode||(o+=" "),o+="/>"):(o+=">",t.children.length>0&&(o+=e(t.children,n)),(n.xmlMode||!d.has(t.name))&&(o+="</"+t.name+">")),o}(t,n);case a.Text:return function(e,t){var n=e.data||"";return!1===t.decodeEntities||!t.xmlMode&&e.parent&&c.has(e.parent.name)||(n=l.encodeXML(n)),n}(t,n)}}(i[s],n);return o};var h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),p=new Set(["svg","math"])},2836:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);
83(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(65883),s=n(81676);i(n(81676),t);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===o.ElementType.Text)t?n.data=(n.data+e).replace(a," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var r=new s.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment){this.lastNode.data+=e;return}var t=new s.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},2844:(e,t,n)=>{"use strict";n.d(t,{A:()=>z});var r=n(37876),i=n(42383),o=n(78950),s=n(14232),a=n(94829),l=n(22611),u=n(16710),c=n(80120),d=n(43371),h=n(20437),p=n(46338),f=n(85081),m=n(88992),g=n(75059),y=n(4706),v=n(20095),b=n(23955),x=n(54595);function _(e){let{sourcePurpose:t}=e,n="Link to an application form field",i=x.LJ.application,o=(0,h.q)();function a(t){return(0,r.jsx)("div",{className:"border-2 hover:border-gf-border-color rounded-lg p-2 cursor-pointer",onClick:()=>{var n;return n=t.id,void(e.onQuestionSelected&&e.onQuestionSelected(n))},"data-sentry-component":"renderQuestion","data-sentry-source-file":"LinkedQuestionSelector.tsx",children:(0,r.jsx)(v.O,{question:t,disabled:!0,themeArea:b.L.ADMIN,"data-sentry-element":"DynamicFormRow","data-sentry-source-file":"LinkedQuestionSelector.tsx"})},t.id)}return"application"===t&&(n="Link to a profile field",i=x.LJ.profile),(0,s.useEffect)(()=>{e.questions||o.wrapCall(e=>(0,p.TL)(e,{purpose:i}))},[i]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"h2",children:n}),function(){let t=e.questions||o.successResponse?.data;return t?0===t.length?(0,r.jsx)("p",{className:"p",children:"There are no matching fields to link to. Linkable fields must be the same field type, and they must not already be linked."}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"p",children:"The only fields listed here are those with the same field type being linked from, and are not already linked."}),(0,r.jsx)("div",{className:"flex flex-col gap-4",children:t.map(a)})]}):null}()]})}var w=n(10993),k=n(73e3),C=n(82037);function E(e){let t,{hookForm:n,linkablePurpose:a,onQuestionChange:l,targetPurpose:u}=e,{setValue:c,watch:d}=n,f=(0,h.q)(),m=f.successResponse?.data,v=d("linkToId"),[b,E]=(0,s.use
83State)(null),A=null;u===x.LJ.application?A="Application":u===x.LJ.profile&&(A="Profile");let S=null,T=null;v&&(m&&(t=m.find(e=>e.id===v)),S=(T=t?.component.label?.value||"")?`Currently Linked ${A} Field:`:`Currently Linked ${A} Field`);let{expanded:j,arrow:N}=function(e){e=e||{};let[t,n]=(0,s.useState)(e.expanded||!1);return{expanded:t,setExpanded:n,arrow:(0,r.jsx)(w.A,{expanded:t,onChange:function(t){n(t),e?.onChange&&e.onChange(t)},themeArea:e.themeArea})}}(),[O,I]=(0,s.useState)(!1),D=d("field.tagName"),M=(m||[]).filter(e=>{let t=e.component.field?.tagName;return t&&t===D&&e.id!==v&&(!e.linkToId||e.id===b)}),L=(0,x.Uq)({specialField:d("specialField")}),R=(0,s.useCallback)(()=>{f.wrapCall(e=>(0,p.TL)(e,{purpose:u}))},[f,u]);(0,s.useEffect)(()=>{R()},[]),(0,s.useEffect)(()=>{v&&!b&&E(v)},[v]);let P=(0,r.jsx)("div",{className:"text-gray-dark font-medium",children:"Linked Field"});return(0,r.jsx)(i.fh,{"data-sentry-element":"FormRow","data-sentry-component":"LinkedQuestionFormRow","data-sentry-source-file":"LinkedQuestionFormRow.tsx",children:(0,r.jsxs)(i.vZ,{label:P,className:"flex flex-col gap-6","data-sentry-element":"FieldSet2","data-sentry-source-file":"LinkedQuestionFormRow.tsx",children:[!j&&(0,r.jsxs)(i.fh,{className:"flex gap-3 text-gray-dark",children:["Read More ",N]}),j&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"p text-gray-dark",style:{marginTop:0},children:"Application questions and Profile questions can be linked together. When a new member applicant is approved, answers from these linked questions are copied from the application form to the new profile."}),(0,r.jsx)("p",{className:"p text-gray-dark",children:"Linked fields must be of the same field type."}),(0,r.jsx)("p",{className:"p text-gray-dark",children:"There are additional restrictions for linked Radio Group, and Check Box Group fields. These two field types define a list of options the user chooses from, but these options must be identical between the linked fields. When the options are changed for one field, the corresponding options are automatically changed for the other."})]}),S&&(0,r.jsxs)(i.fh,{children:[(0,r.jsx)(i.Dk,{children:S}),(0,r.jsx)("div",{className:"font-medium text-gray-darkest",children:T||"(no label)"})]}),v&&!L&&(0,r.jsx)("p",{className:"p text-gray-dark",children:"Special fields must stay linked between the application and profile forms, so this link can't be removed."}),(0,r.jsxs)("div",{className:"flex gap-1 mb-4",children:[v&&(0,r.jsx)(C.et,{admin:!0,disabled:!L,onClick:function(){L&&c("linkToId",null)},className:"flex gap-2 items-center",icon:(0,r.jsx)(g.A,{style:{width:"18px",height:"18px"},className:"fill-current"}),children:"Unlink"}),(0,r.jsxs)(k.A,{type:"button",onClick:()=>{I(!0)},className:"whitespace-nowrap flex gap-1 items-center justify-start","data-sentry-element":"ActionButton","data-sentry-source-file":"LinkedQuestionFormRow.tsx",children:[(0,r.jsx)(y.A,{style:{width:"20px",height:"20px"},className:"fill-current","data-sentry-element":"LinkIcon","data-sentry-source-file":"LinkedQuestionFormRow.tsx"}),v?"Change Linked Field":"Link To Field"]})]}),(0,r.jsx)(o.A,{isOpen:!!O,onClose:()=>I(!1),"data-sentry-element":"SimpleModal","data-sentry-source-file":"LinkedQuestionFormRow.tsx",children:(0,r.jsx)(_,{sourcePurpose:a,onQuestionSelected:e=>{if(c("linkToId",e),!m)throw Error("Expected opposingQuestions to be set");let t=m.find(t=>t.id===e);if(!t)throw Error(`No target question found for id=${e}`);l(t),I(!1)},questions:M,"data-sentry-element":"LinkedQuestionSelector","data-sentry-source-file":"LinkedQuestionFormRow.tsx"})})]})})}var A=n(63945),S=n(79344);
83function T(e){let{confirmDestructive:t,deleteDisabled:n,hookForm:o,index:a,option:l,options:u,usingSort:d}=e,{formState:h,register:p}=o,[f,m]=(0,s.useState)(!1),[g,y]=(0,s.useState)(!1),{sortable:v,getItemClass:x}=d||{sortable:{},getItemClass:()=>""};function _(){e.onDelete&&e.onDelete(l.id),m(!1)}function w(){return o.getValues().optionsById[l.id].isOther}if(!l.id)return console.log("option has no id",l),null;let k=e.disabled||!1,C=!!l.id.match(/^#/);return(0,r.jsxs)("div",{className:`mb-4 border rounded py-2 flex flex-col items-stretch ${x(l.id)}`,...v,id:l.id,"data-sentry-component":"OptionEdit","data-sentry-source-file":"OptionEdit.tsx",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("div",{className:"w-8 pt-2",children:(0,r.jsx)(S.A,{"data-sentry-element":"GripCol","data-sentry-source-file":"OptionEdit.tsx"})}),(0,r.jsxs)("div",{className:"flex-grow",children:[(0,r.jsxs)("div",{className:"pr-2",children:[(0,r.jsx)("div",{className:"flex items-center gap-2",children:(0,r.jsx)(i.ks,{register:p(`optionsById.${l.id}.label`,{required:!C,value:l.label}),placeholder:"Option label...",disabled:k,"data-sentry-element":"TextInput","data-sentry-source-file":"OptionEdit.tsx"})}),(0,r.jsx)(i.Kw,{className:"block mb-2",errors:h.errors,name:"label",messages:{required:"A label is required"},"data-sentry-element":"ErrorMessage","data-sentry-source-file":"OptionEdit.tsx"}),(0,r.jsx)("input",{type:"hidden",...p(`optionsById.${l.id}.id`,{value:l.id})}),(0,r.jsx)("input",{type:"hidden",...p(`optionsById.${l.id}.special`,{value:l.special})})]}),(0,r.jsxs)("div",{className:"px-2 flex gap-4",children:[!k&&!n&&a!==u.length-1&&(0,r.jsx)("a",{className:"a",href:"",onClick:e=>{e.preventDefault(),!C&&t?m(!0):_()},children:"delete"}),(0,r.jsx)(A.A,{deleting:f,prompt:"Are you sure you want to delete this option? It may be tied to existing answers. These answers will be deleted.",onClose:()=>m(!1),onDelete:()=>_(),themeArea:b.L.ADMIN,"data-sentry-element":"ConfirmDelete","data-sentry-source-file":"OptionEdit.tsx"}),(0,r.jsx)("div",{children:(0,r.jsx)(c.A,{label:"Required",register:p(`optionsById.${l.id}.required`,{value:l.required}),formId:l.id,"data-sentry-element":"CheckboxWithLabel","data-sentry-source-file":"OptionEdit.tsx"})}),(0,r.jsx)("div",{children:(0,r.jsx)(c.A,{label:"Other value",formId:l.id,register:function(n){let r=p(`optionsById.${n.id}.isOther`,{value:n.isOther});return{...r,onChange:function(i){let o=w();u.find(e=>"other"===e.special&&!e.id.startsWith("#"))&&t?(y(!0),i.preventDefault()):(e.onOtherChecked&&e.onOtherChecked(n.id,!o),r.onChange(i))}}}(l),"data-sentry-element":"CheckboxWithLabel","data-sentry-source-file":"OptionEdit.tsx"})})]}),l.isOther&&(0,r.jsxs)("div",{className:"pl-4 mb-8",children:[(0,r.jsx)(i.Dk,{children:"Label for âotherâ text field"}),(0,r.jsx)(i.ks,{register:p(`optionsById.${l.id}.otherLabel`,{value:l.otherLabel})})]})]})]}),(0,r.jsx)(A.A,{themeArea:b.L.ADMIN,deleting:g,deleteLabel:"Remove",onClose:()=>y(!1),onDelete:()=>(function(){let t=w();e.onOtherChecked&&e.onOtherChecked(l.id,t),y(!1)})(),prompt:l.isOther?"Are you sure you want to remove this 'other' field? Any answers associated with it will be deleted.":"Are you sure you want to remove 'other' from another option? Any answers associated with it will be deleted.","data-sentry-element":"ConfirmDelete","data-sentry-source-file":"OptionEdit.tsx"})]})}var j=n(92782);function N(e){let{confirmDelete:t,disabled:n}=e,o=(0,m.mN)({mode:"onBlur",defaultValues:{optionsById:{},optionIds:[],other:{label:"Other"}}}),{formState:a,setError:l,setValue:u,watch:c}=o,d=(0,s.useRef)(!1),h=(0,j.A)({onDrop:function(e){u("optionIds",e)}});function p(e,t){b.forEach(n=>{let r=v[n];n===e?t?(u(`optionsById.${n}.isOther`,!0),u(`optionsById.${n}.special`,"other"),u(`optionsById.${n}.otherLabel`,"Other")):(u(`optionsById.${n}.isOther`,!1),u(`optionsById.${n}.special`,null)):(u(`optionsById.${n}.isOther`,!1),"other"===r.special&&u(`optionsById.${n}.special`,null))})}function g(){let e={tagName:"OptionItem",id:`#new-${(0,f.A)()}`,isOther:!1,label:"",otherLabel:"",required:!1},t=c("optionsById");u("optionsById",{[e.id]:e,...t}),u("optionIds",[...c("optionIds"),e.id])}function y(e){u("optionIds",c("optionIds").filter(t=>t!==e))}let v=c("optionsById")||{},b=c("optionIds")||[],x=b[b.length-1],_=x&&c(`optionsById.${x}.label`),w=b&&b.map(e=>v[e]);(0,s.useEffect)(()=>
83{if(d.current)return;let e=x&&v[x];e&&e.label&&g()},[_]),(0,s.useEffect)(()=>{if(e.options&&!d.current)if(e.options.length>0){u("optionIds",e.options.map(e=>e.id));let t=e.other?.label?.value;u("optionsById",e.options.map(e=>{let n="other"===e.special;return{...e,isOther:n,otherLabel:t||""}}).reduce((e,t)=>({...e,[t.id]:t}),{}))}else g()},[e.options]),b.forEach(e=>c(`optionsById.${e}.isOther`));let k=o.handleSubmit(function(t){let n=t.optionsById,r=t.optionIds.map(e=>n[e]),i=r.find(e=>"other"===e.special),o=i?.otherLabel;if(r.find(e=>!e.label&&!(!e.id||e.id.match(/^#/))))return void l("optionIds",{type:"requireLabel"});if(0===(r=r.filter(e=>e.label)).length)return void l("optionIds",{type:"require"});let s=null;o&&(s={tagName:"FieldRow",field:{tagName:"TextField",id:(0,f.A)(),defaultValue:null,required:!1},id:(0,f.A)(),label:{tagName:"RowLabel",value:o},text:null}),e.onComplete?(d.current=!0,e.onComplete({options:r,other:s})):console.warn("No onComplete() callback provided")});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"h2",style:{marginTop:0},children:"Field Group Options"}),(0,r.jsx)("div",{children:(0,r.jsxs)("form",{onSubmit:function(e){return e.stopPropagation(),k(e)},children:[(0,r.jsx)("div",{id:"options-list",children:w&&w.map((e,i)=>(0,r.jsx)(T,{confirmDestructive:t,disabled:n,deleteDisabled:1===b.length,hookForm:o,index:i,onDelete:y,onOtherChecked:p,option:e,options:w,usingSort:h},i))}),(0,r.jsx)(i.Kw,{errors:a.errors,name:"options",messages:{require:"At least one option is required",requireLabel:"Previously-saved options must have a label"},"data-sentry-element":"ErrorMessage","data-sentry-source-file":"OptionsEditor.tsx"}),(0,r.jsx)(i.fC,{cancel:{onClick:()=>e.onCancel&&e.onCancel()},"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"OptionsEditor.tsx"})]})})]})}var O=n(47027);let I=["RadioGroup","CheckBoxGroup","OrderedSet","Select"];function D(e){let{labelRequired:t}=e,{sectionId:n,purpose:g}=e.question,y=(0,m.mN)({defaultValues:{active:!0,field:{id:null,labelValue:"",items:[],maxLength:200,required:!1,tagName:"TextField"},labelValue:"",memberVisible:!0,textValue:""}}),{formState:{errors:v},register:b,setValue:_,watch:w}=y,k=y.handleSubmit(function(t){let n,{field:r,labelValue:i,textValue:o,linkToId:s,ordinal:a,specialField:l,...u}=t,{labelValue:c,...d}=r,h=u;if("SingleCheckBox"===r.tagName)n={...d,tagName:"SingleCheckBox",labelValue:c,defaultValue:"false",id:r.id||(0,f.A)()};else if(I.includes(r.tagName)){let e=(r.items||[]).map(e=>{let{value:t,special:n,...r}=e,i=e.id&&!e.id.startsWith("#")?e.id:(0,f.A)();return""===n?r={...r,special:null}:n&&(r={...r,special:n}),{...r,id:i,tagName:"OptionItem"}});n={...d,id:r.id||(0,f.A)(),items:e},void 0!==r.other&&(n={...n,other:r.other})}else n=r.tagName?{...d,id:r.id||(0,f.A)()}:null;void 0!==s&&(h={...h,linkToId:s}),void 0!==a&&(h={...h,ordinal:a});let p=q()?l:e.question.specialField;void 0!==p&&(h={...h,specialField:""===p?null:p}),(0,x.FJ)({specialField:p})&&(h={...h,active:!0,memberVisible:!0}),(0,x.D3)({specialField:p})&&n&&(n={...n,required:!0});let m=(0,x.jU)({specialField:p});m?.fixedMaxLength&&n&&(n={...n,maxLength:m.fixedMaxLength});let g=w("id")||`#new-${(0,f.A)()}`,y={...h,id:g,component:{tagName:"FieldRow",id:(0,f.A)(),label:{tagName:"RowLabel",value:i},field:n,text:o?{tagName:"TextItem",text:o}:null}};e.onSubmit&&e.onSubmit(y)}),C=[x.D5.application,x.D5.profile].includes(g),A=C?g:void 0,S=null;A===x.LJ.profile?S=x.LJ.application:A===x.LJ.application&&(S=x.LJ.profile);let T=(0,f.A)(),[j,D]=(0,s.useState)(!1),M=(0,h.q)(),L=()=>q()&&!!w("linkToId"),R=(0,x.FJ)({specialField:w("specialField")}),P=(0,x.D3)({specialField:w("specialField")}),F=(0,x.jU)({specialField:w("specialField")}),B=g===x.D5.contact_form,$=(0,s.useCallback)(e=>{let t=e.component?.field,n=t?.tagName,r=t?.labelValue;if("SingleCheckBox"===n&&r)_("field.labelValue",r);else if(n&&I.includes(n)){let e=t.items||[];y.unregister("field.items"),_("field.items",[...e]),_("field.other",t.other)}},[_,y]);function q(){let e=w("id");return!e||!!e.match(/^#/)}(0,s.useEffect)(()=>
83{if(!e.question)return;let{component:t}=e.question,{label:n,field:r,text:i}=t||{};if(n?.value&&_("labelValue",n.value),r){_("field.id",r.id);let t=r.maxLength;void 0!==t&&_("field.maxLength",t),_("field.required",!!(0,x.D3)({specialField:e.question.specialField})||r.required||!1),_("field.tagName",r.tagName),$(e.question)}else t&&_("field.tagName","");["id","active","linkToId","memberVisible","ordinal","purpose","sectionId","specialField"].forEach(t=>{let n=e.question[t];void 0!==n&&("specialField"===t&&null===n?_(t,""):_(t,n))}),i&&_("textValue",i?.text||"")},[e.question,M.successResponse]),(0,s.useEffect)(()=>{!C||M.processing||M.successResponse||M.wrapCall(e=>(0,p.iW)(e,{purpose:g}))},[C,g,M]);let V=w("field.tagName"),z=t&&!!V;(0,s.useEffect)(()=>{e.question.component?.field||("TextArea"===V?_("field.maxLength",1e3):"TextField"===V&&_("field.maxLength",200))},[V]);let U=[{value:"TextField",label:"Single Line Text"},{value:"TextArea",label:"Multi-Line Text"},{value:"SingleCheckBox",label:"Check box"},{value:"CheckBoxGroup",label:"Check box group"},{value:"OrderedSet",label:"Ordered set"},{value:"PhotoField",label:"Photo upload"},{value:"RadioGroup",label:"Radio button group"},{value:"Select",label:"Selection dropdown"},{value:"",label:"No field, just text"}].filter(e=>C||"PhotoField"!==e.value),H=["TextField","TextArea"],W=["CheckBoxGroup","OrderedSet"],G=!q()&&H.includes(w("field.tagName"));return G&&(U=U.filter(e=>H.includes(e.value))),(0,r.jsxs)("div",{"data-sentry-component":"FieldEditor","data-sentry-source-file":"FieldEditor.tsx",children:[(0,r.jsx)("h2",{className:"h2",style:{marginTop:0},children:"Field Editor"}),(0,r.jsxs)("form",{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),k(e)},className:"flex flex-col gap-6",children:[(0,r.jsx)("input",{type:"hidden",...b("id")}),(0,r.jsxs)(i.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"FieldEditor.tsx",children:[(0,r.jsxs)(i.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"FieldEditor.tsx",children:["Field Label",z?(0,r.jsx)(l.A,{}):" (optional)"]}),(0,r.jsx)(i.ks,{register:b("labelValue",{required:z}),"data-sentry-element":"TextInput","data-sentry-source-file":"FieldEditor.tsx"}),(0,r.jsx)(i.Kw,{errors:v,name:"labelValue","data-sentry-element":"ErrorMessage","data-sentry-source-file":"FieldEditor.tsx"})]}),(0,r.jsxs)(i.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"FieldEditor.tsx",children:[(0,r.jsx)(i.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"FieldEditor.tsx",children:"Explanation Text (optional)"}),(0,r.jsx)("p",{children:"Markdown format is supported"}),(0,r.jsx)(i.fs,{register:b("textValue"),"data-sentry-element":"TextArea","data-sentry-source-file":"FieldEditor.tsx"}),(0,r.jsx)(i.Kw,{errors:v,name:"textValue","data-sentry-element":"ErrorMessage","data-sentry-source-file":"FieldEditor.tsx"})]}),(0,r.jsxs)(i.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"FieldEditor.tsx",children:[(0,r.jsx)(i.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"FieldEditor.tsx",children:"Field type"}),F?.fixedFieldType?U.find(e=>e.value===F?.fixedFieldType)?.label:q()||G?(0,r.jsx)(i.z6,{register:b("field.tagName"),radios:U}):U.find(e=>e.value===w("field.tagName"))?.label,(0,r.jsx)(i.Kw,{errors:v,name:"field.tagName","data-sentry-element":"ErrorMessage","data-sentry-source-file":"FieldEditor.tsx"}),!F?.fixedFieldType&&(0,r.jsx)("p",{className:"p text-gray-darker",children:"Note: Once a field has been created, the ability to change its field type is either restricted or prohibited, depending on the type. This is because answers to that field may have been already recorded. Changing the field type would delete the corresponding answers."})]}),C?(0,r.jsxs)(i.fh,{children:[(0,r.jsx)(i.Dk,{children:"Special Field"}),(0,r.jsx)(O.A,{children:"Some fields are special, in that they are handled differently than other fields. For example, a member profile normally has a Name field, and member names are displayed in multiple places throughout the website, making it a special field. GroupFlow needs to know which of your fields is this Name field, so that it can display the member's name in those places. It is required that your profile form and application form have a Name field."}),(0,r.jsxs)(u.A,{className:"border rounded py-1 px-2",register:b("specialField"),disabled:!q(),children:[(0,r.jsx)("option",{value:"",children:"-- None --"}),d.LR.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value))]}),!q()&&(0,r.jsx)("p",{className:"p text-gray-dark",children:"The special field is chosen when the question is created and can't be changed afterward."}),(0,r.jsx)(i.Kw,{errors:v,name:"specialField"})]}):null,C?(0,r.jsxs)(i.fh,{children:[(0,r.jsx)(i.Dk,{children:"Section"}),(0,r.jsxs)(u.A,{className:"border rounded py-1 px-2",register:b("sectionId"),children:[(0,r.jsx)("option",{value:"",children:"-- None --"}),M.successResponse&&M.successResponse.data.map(e=>(0,r.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,r.jsx)(i.Kw,{errors:v,name:"sectionId"})]}):null,w("field.tagName")&&(0,r.jsxs)(r.Fragment,{children:["SingleCheckBox"===w("field.tagName")&&(0,r.jsxs)(i.fh,{children:["Checkbox Label",(0,r.jsx)(i.ks,{register:b("field.labelValue")}),(0,r.jsx)(i.Kw,{errors:v,name:"field.labelValue"})]}),A&&C&&S&&(0,r.jsx)(E,{hookForm:y,linkablePurpose:A,onQuestionChange:e=>$(e),targetPurpose:S}),I.includes(w("field.tagName"))&&(0,r.jsxs)(i.fh,{className:"flex flex-col gap-2",children:[(0,r.jsxs)(i.Dk,{children:[w("field.tagName")," Options"]}),(0,r.jsx)("div",{onClick:()=>D(!0),className:"cursor-pointer",children:w("field.items")&&w("field.items").length>0?(0,r.jsx)("div",{className:"border rounded px-3 py-2 mb-4",children:w("field.items").map(e=>(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[["RadioGroup","Select"].includes(w("field.tagName"))?(0,r.jsx)("input",{type:"radio",disabled:!0}):null,W.includes(w("field.tagName"))?(0,r.jsx)("input",{type:"checkbox",disabled:!0}):null,e.label]},e.id))}):null}),L()?(0,r.jsx)("p",{className:"p",children:"Editing of options on a linked field is disabled until the field is saved."}):(0,r.jsx)("div",{children:(0,r.jsxs)(i.rA,{onClick:()=>D(!0),type:"button",children:[w("field.items")&&w("field.items").length>0?"Edit":"Start Adding"," ","Options"]})})]}),H.includes(w("field.tagName"))&&!F?.fixedMaxLength?(0,r.jsxs)(i.fh,{children:[(0,r.jsx)(i.Dk,{children:"Field maximum length"}),function(){let e={max:"TextArea"===w("field.tagName")?1e4:500,min:1};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.ks,{type:"number",register:b("field.maxLength",{valueAsNumber:!0,...e}),"data-sentry-element":"TextInput","data-sentry-source-file":"FieldEditor.tsx"}),(0,r.jsx)(i.Kw,{name:"field.maxLength",errors:v,validationConstrains:e,"data-sentry-element":"ErrorMessage","data-sentry-source-file":"FieldEditor.tsx"})]})}()]}):null,(0,r.jsxs)(i.fh,{children:[(0,r.jsx)(c.A,{label:"Required field?",register:b("field.required"),disabled:P,formId:T}),(0,r.jsx)(c.A,{label:"Field enabled?",register:b("active"),disabled:R,formId:T}),(0,r.jsx)(c.A,{label:"Visible to member?",register:b("memberVisible"),disabled:R,formId:T}),R&&(0,r.jsx)("p",{className:"p text-gray-dark",children:"This field is always enabled and visible to members."}),P&&(0,r.jsx)("p",{className:"p text-gray-dark",children:"This field is always required."}),n&&!B&&(0,r.jsx)("p",{className:"p text-gray-darker",children:"Note: The field's containing section also controls whether the field is enabled or visible to members."})]})]}),Object.keys(v).length>0?(0,r.jsx)(a.A,{type:"warning",children:"Errors would found on the form. See above."}):null,(0,r.jsx)(i.fC,{cancel:e.onCancel&&{onClick:e.onCancel},"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"FieldEditor.tsx"})]}),(0,r.jsx)(o.A,{isOpen:j,onClose:()=>D(!1),"data-sentry-element":"SimpleModal","data-sentry-source-file":"FieldEditor.tsx",children:(0,r.jsx)(N,{options:w("field.items"),other:w("field.other"),onComplete:({options:e,other:t})=>{_("field.items",e),_("field.other",t),D(!1)},onCancel:()=>D(!1),confirmDelete:!0,disabled:L(),"data-sentry-element":"OptionsEditor","data-sentry-source-file":"FieldEditor.tsx"})})]})}var M=n(28333),L=n(57616),R=n(91513),P=n(76717),F=n(67874);function B(e){let{onEdit:t,onRemove:n,question:o,sortable:a}
83=e,l=o.component,[u,c]=(0,s.useState)(!1),h=(0,x.MG)(o),p=(0,d.sk)(o.specialField),f=(0,d.oM)(o.specialField),m=`special-field-tooltip-${o.id}`;return(0,r.jsxs)(M.A,{className:"flex gap-2 items-stretch",sortable:a,id:o.id,"data-sentry-element":"ListItem","data-sentry-component":"EditableQuestion","data-sentry-source-file":"EditableQuestion.tsx",children:[(0,r.jsx)(S.A,{"data-sentry-element":"GripCol","data-sentry-source-file":"EditableQuestion.tsx"}),(0,r.jsxs)(i.fh,{className:"flex-grow border rounded p-4 mb-2","data-sentry-element":"FormRow","data-sentry-source-file":"EditableQuestion.tsx",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[o.active?(0,r.jsx)(C.Ex,{type:"success",className:"cursor-pointer",withDot:!0,children:"Active"}):(0,r.jsx)(C.Ex,{type:"warn",className:"cursor-pointer",withDot:!0,children:"Disabled"}),o.memberVisible?(0,r.jsx)(C.Ex,{type:"success",className:"cursor-pointer",withDot:!0,children:"Member Visible"}):(0,r.jsx)(C.Ex,{type:"warn",className:"cursor-pointer",withDot:!0,children:"Member Hidden"}),p&&(0,r.jsx)(C.Ex,{type:"primary",withDot:!0,children:(0,r.jsxs)("span",{className:"inline-flex items-center gap-1",children:["Preset: ",p,f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"data-tooltip-id":m,className:"cursor-help text-blue-400",children:(0,r.jsx)(F.A,{className:"w-3.5 h-3.5"})}),(0,r.jsx)(P.m_,{id:m,content:f,className:"max-w-xs text-sm"})]})]})})]}),(0,r.jsx)(L.A,{...e,fieldRow:l,question:o,disabled:!0,"data-sentry-element":"DynamicFormRowContents","data-sentry-source-file":"EditableQuestion.tsx"}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("div",{className:"flex justify-end gap-2 mb-2",children:(0,r.jsxs)(C.tA,{onClick:function(){t&&o.id&&t(o.id)},"data-sentry-element":"SecondaryButton","data-sentry-source-file":"EditableQuestion.tsx",children:[(0,r.jsx)(R.A,{className:"h-5 w-5","data-sentry-element":"PencilIcon","data-sentry-source-file":"EditableQuestion.tsx"}),(0,r.jsx)("span",{children:"Edit"})]})}),o.id&&(0,r.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,r.jsx)(C.et,{onClick:function(){c(!0)},disabled:!h,className:"flex items-center gap-1",children:"Delete"}),!h&&(0,r.jsx)(O.A,{className:"text-sm",children:"Special fields can't be deleted."})]})]})]}),(0,r.jsx)(A.A,{prompt:"Are you sure you want to delete this question? Any answers associated with it will be deleted as well.",deleting:u,onClose:()=>c(!1),onDelete:function(){h&&n&&n(o.id)},"data-sentry-element":"ConfirmDelete","data-sentry-source-file":"EditableQuestion.tsx"})]})}function $(e){let{questions:t,onEditQuestion:n,onRemoveQuestion:i,sortable:o}=e;return(0,r.jsx)(r.Fragment,{children:t.map((e,t)=>(0,r.jsx)(B,{question:e,onEdit:n,onRemove:i,sortable:o},e.id||t))})}var q=n(70274),V=n(9297);function z(e){let t,{editable:n=!0,labelRequired:a,purpose:l,questionControls:u,sectionId:c,updateSectionCall:d}=e,[h,g]=(0,s.useState)({editing:!1,fields:null,questionId:null}),y=(0,m.mN)({defaultValues:{questions:[]}}),{setValue:v,getValues:b,watch:_}=e.hookForm||y,w=function(e){let{name:t,onSortComplete:n}=e=e||{},r=(0,s.useRef)(void 0),i=(0,s.useRef)(void 0),o=(0,s.useRef)(new Map),a=(0,s.useRef)(!1),l=(0,s.useRef)(!1),u=(0,s.useRef)(!1);function c(e){let t=d();for(let n=0;n<t.children.length;n++)if(t.children[n].id===e.id)return n;return null}function d(){let e=i.current;if(!e)throw Error("expected parentIfRef.current");let t=document.getElementById(e);if(!t)throw Error("Parent element not found for ID");return t}function h(e){let t=e.parentElement;return t?t.id===i.current?e:h(t):null}return{ref:function(t){if(e?.findGripElement&&t){let n=e.findGripElement(t);if(!n)throw Error("Grip element not found");n.addEventListener("mousedown",()=>{l.current=!0}),n.addEventListener("mouseup",()=>{l.current=!1})}},onDragStart:function(t){t.stopPropagation(),t.dataTransfer.dropEffect="move";let n=t.target,s=n.id;if(!s)throw console.log("onDragStart() ev.target",t.target),Error("Expect draggable element to have an id");let c=n.parentElement;if(!c.id)throw Error("Expected list container to have an id");if(e?.findGripElement&&!l.current){u.current=!0;return}
83r.current=s,i.current=c.id,function(e){o.current=new Map;let t=e.parentElement;for(let e=0;e<t.children.length;e++){let n=t.children[e];o.current.set(n.id,e)}}(t.target),a.current=!0},onDragEnter:function(e){if(u.current)return;e.preventDefault();let t=document.getElementById(r.current),n=h(e.target);n&&function(e,t){let n=e.parentElement,r=[];for(let i=0;i<n.children.length;i++){let s=n.children.item(i),a=o.current.get(s.id),l=o.current.get(e.id),u=o.current.get(t.id);a===l?r.push(t):a===u?r.push(e):r.push(s)}n.replaceChildren(...r)}(t,n)},onDragOver:function(e){u.current||(e.preventDefault(),e.dataTransfer.dropEffect="copy")},onDragEnd:function(){if(u.current){u.current=!1;return}if(l.current=!1,a.current){a.current=!1;let e=function(){let e=r.current;if(!e)throw Error("Expected dragIdRef.current");return document.getElementById(e)}(),t=c(e),n=o.current.get(e.id);t!==n&&function(e,t){var n;let r=(n=t,d().children[n]);t<c(e)?r.insertAdjacentElement("beforebegin",e):r.insertAdjacentElement("afterend",e)}(e,n)}},onDrop:function(e){if(u.current)return;e.preventDefault(),a.current=!1;let r=[],i=[],s=h(e.target);if(!s)return;let l=s.parentElement;for(let e=0;e<l.children.length;e++){let t=l.children[e],n=o.current.get(t.id);r.push(n),i.push([e,t.id])}n&&n(r,i,t)},draggable:!0}}({onSortComplete:function(e,t,n){if("questions"!==n)return;let r=b("questions");if(r)if(c){let e=t.map(([e,t])=>({...r.find(e=>e.id===t),ordinal:e})),n=e.map(e=>e.id),i=r.filter(e=>!n.includes(e.id)),o=e.concat(i);v("questions",o),k({questions:o})}else{let t=e.map((e,t)=>({...r[e],ordinal:t}));v("questions",t),k({questions:t})}},name:"questions",findGripElement:e=>e.querySelector(".grip-control")});async function k(t){if(!t.questions)return;let n={questions:t.questions.map(e=>{let{purpose:t,...n}=e;return n})};if(c&&(n={...n,id:c}),d){let t=await d.wrapCall(e=>(0,p.Gr)(e,n));!t.error&&(v("questions",t.data.questions??[]),e.onUpdate&&e.onUpdate())}}function C(){g({editing:!1,questionId:null})}(0,s.useEffect)(()=>{e.questions&&v("questions",e.questions)},[e.questions]);let E=_("questions")||e.questions;return t=h.questionId?E?.find(e=>e.id===h.questionId):{active:!0,component:(0,x.Dk)(),id:`#new-${(0,f.A)()}`,linkToId:null,sectionId:c||null,ordinal:0,purpose:l,specialField:null},(0,r.jsxs)(i.LB,{"data-sentry-element":"Fieldset","data-sentry-component":"SectionFieldsEditor","data-sentry-source-file":"SectionFieldsEditor.tsx",children:[(0,r.jsx)(i.s$,{"data-sentry-element":"Legend","data-sentry-source-file":"SectionFieldsEditor.tsx",children:"Fields"}),(0,r.jsx)("div",{className:"flex justify-end mb-4",children:(0,r.jsxs)(i.rA,{onClick:()=>g({editing:!0,questionId:null}),className:"flex items-center gap-2",type:"button","data-sentry-element":"ActionButton","data-sentry-source-file":"SectionFieldsEditor.tsx",children:[(0,r.jsx)(V.A,{className:"fill-current",style:{width:"18px",height:"18px"},"data-sentry-element":"AddIcon","data-sentry-source-file":"SectionFieldsEditor.tsx"}),"Add Field"]})}),(0,r.jsx)("div",{id:c?`questions-${c}`:"questions",children:(0,r.jsx)($,{questions:E||[],onEditQuestion:function(e){let t=b("questions");t&&t.find(t=>t.id===e)&&g({editing:!0,questionId:e})},onRemoveQuestion:function(e){let t=b("questions")||[],n=t.find(t=>t.id===e);if(n&&!(0,x.MG)(n))return;let r=t.filter(t=>t.id!==e);v("questions",r),k({questions:r})},editable:n,sortable:w,questionControls:u,"data-sentry-element":"EditableQuestions","data-sentry-source-file":"SectionFieldsEditor.tsx"})}),(0,r.jsx)(q.A,{error:d?.errorResponse,"data-sentry-element":"ApiErrors","data-sentry-source-file":"SectionFieldsEditor.tsx"}),(0,r.jsx)(o.A,{isOpen:h.editing,onClose:C,contentStyle:{top:"1em"},"data-sentry-element":"SimpleModal","data-sentry-source-file":"SectionFieldsEditor.tsx",children:(0,r.jsx)(D,{labelRequired:a,onCancel:C,onSubmit:function(e){if(h.questionId){let t;(t=b("questions"))&&(v("questions",t=t.map(t=>t.id===e.id?e:t)),g({questionId:null,editing:!1}),k({questions:t}))}else{var t=e;let n=b("questions")||[],r=n.reduce((e,t)=>t.ordinal>e?t.ordinal:e,-1);v("questions",n=[...n,t={...t,ordinal:r+1,purpose:l}]),g({questionId:null,editing:!1}),k({questions:n})}},question:t,"data-sentry-element":"FieldEditor","data-sentry-source-file":"SectionFieldsEditor.tsx"})})]})}},3422:function(e,t,n){"use strict";var r=this&&this.__assign||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}).apply(this,arguments)};
83Object.defineProperty(t,"__esModule",{value:!0}),t.destroyCookie=t.setCookie=t.parseCookies=void 0;var i=n(53441),o=n(92493),s=n(38167);function a(e,t){var n,r;return(null==(r=null==(n=null==e?void 0:e.req)?void 0:n.headers)?void 0:r.cookie)?i.parse(e.req.headers.cookie,t):s.isBrowser()?i.parse(document.cookie,t):{}}function l(e,t,n,a){var l,u;if(void 0===a&&(a={}),(null==(l=null==e?void 0:e.res)?void 0:l.getHeader)&&e.res.setHeader){if(null==(u=null==e?void 0:e.res)?void 0:u.finished)return console.warn('Not setting "'+t+'" cookie. Response has finished.'),console.warn("You should set cookie before res.send()"),{};var c=e.res.getHeader("Set-Cookie")||[];"string"==typeof c&&(c=[c]),"number"==typeof c&&(c=[]);var d=o.parse(c,{decodeValues:!1}),h=s.createCookie(t,n,a),p=[];d.forEach(function(e){if(!s.areCookiesEqual(e,h)){var t=i.serialize(e.name,e.value,r({encode:function(e){return e}},e));p.push(t)}}),p.push(i.serialize(t,n,a)),e.res.setHeader("Set-Cookie",p)}if(s.isBrowser()){if(a&&a.httpOnly)throw Error("Can not set a httpOnly cookie in the browser.");document.cookie=i.serialize(t,n,a)}return{}}function u(e,t,n){return l(e,t,"",r(r({},n||{}),{maxAge:-1}))}t.parseCookies=a,t.setCookie=l,t.destroyCookie=u,t.default={set:l,get:a,destroy:u}},3558:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(37876);n(14232);var i=n(20095);function o(e){let{questions:t,...n}=e;return(0,r.jsx)(r.Fragment,{children:t.map((e,t)=>(0,r.jsx)(i.O,{...n,question:e},e.id||t))})}},3717:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3768:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(37876),i=n(14232),o=n(82742),s=n(5811),a=n(38537),l=n(15484),u=n(4799),c=n(77328),d=n.n(c);function h(e){let{description:t}=e;return t?(0,r.jsx)(d(),{"data-sentry-element":"Head","data-sentry-component":"MetaDescription","data-sentry-source-file":"MetaDescription.tsx",children:(0,r.jsx)("meta",{name:"description",content:t,"data-sentry-element":"meta","data-sentry-source-file":"MetaDescription.tsx"},"description")}):null}var p=n(44302),f=n(49995);let m=(0,s.PA)(function(e){let{accessRequirements:t,backButtonHref:n,children:s,apiError:c,description:d,fullWidth:m,rightSideContent:g,title:y,windowTitle:v,withGroupFlow:b,withHeadingDesktopXPadding:x,withXPadding:_}=e,w=e.backButton||(n?{href:n}:void 0),[k,C]=(0,i.useState)(!1),E=(0,a.kH)(),A=E.user,S=(0,a.rq)(),T="MainContent";e.className&&(T=T+" "+e.className),T+=" grow";let j=e.sectionClass||"w-full mx-auto md:px-4 py-8";m||(j+=" max-w-screen-md2");let N=(0,l.t)({requirements:t,userStore:E}),O=(0,l.A)({requirements:t,userStore:E});"loginRequired"===N&&(O=(0,r.jsx)(r.Fragment,{children:"Login Required"})),(0,i.useEffect)(()=>{S&&("loginRequired"!==N||S.isOpen?S.isOpen&&S.close():S.open())},[N,A]);let I=O||s,D=O?void 0:g;return(0,r.jsxs)("main",{className:(0,f.A)("MainContent",T,"bg-[var(--group-page-background)]","text-[var(--group-page-background-text-color)]"),"data-sentry-component":"MainContent","data-sentry-source-file":"MainContent.tsx",children:[(0,r.jsx)(p.A,{title:v,"data-sentry-element":"WindowTitle","data-sentry-source-file":"MainContent.tsx"}),(0,r.jsx)(h,{description:d,"data-sentry-element":"MetaDescription","data-sentry-source-file":"MainContent.tsx"}),(0,r.jsx)(o.A,{apiError:k?null:c,onClose:()=>C(!0),"data-sentry-element":"GeneralApiError","data-sentry-source-file":"MainContent.tsx"}),(0,r.jsxs)("section",{className:j,children:[y&&(0,r.jsx)(u.A,{backButton:w,rightSideContent:D,withGroupFlow:b,withDesktopXPadding:x,children:y}),_?(0,r.jsx)("div",{className:"px-4 md:px-0",children:I}):I]})]})})},4044:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{width:"64",height:"71",viewBox:"0 0 64 71",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:"Discord icon",style:n,className:t,...{},"data-sentry-element":"svg","data-sentry-component":"DiscordIcon","data-sentry-source-file":"DiscordIcon.tsx",children:(0,r.jsx)("path",{d:"M7.11111 0C3.22467 0 0 3.19494 0 7.04555V56.3644C0 60.2127 3.22079 63.4062 7.10417 63.4099L48.6875 63.5063C49.2395 63.5064 49.784 63.3792 50.2778 63.1347L58.2014 69.506C58.7228 69.9259 59.3537 70.1908 60.0208 70.27C60.688 70.3493 61.3641 70.2396 61.971 69.9538C62.5778 69.6679 63.0905 69.2175 63.4496 68.6549C63.8087 68.0922 63.9995 67.4402 64 66.7745V7.04555C64 3.19494 60.7753 0 56.8889 0H7.11111ZM7.11111 7.04555H56.8889V59.3711L50.1667 53.97C49.6617 53.5648 49.0543 53.3044 48.4104 53.2172C47.7666 53.1299 47.1109 53.2191 46.5146 53.4752C45.9184 53.7312 45.4043 54.1442 45.0283 54.6693C44.6523 55.1945 44.4288 55.8117 44.3819 56.4538L7.11806 56.3644C7.11574 56.3644 7.11343 56.3644 7.11111 56.3644V7.04555ZM27.1528 18.1643C22.559 18.6011 19.0694 21.3224 19.0694 21.3224C19.0694 21.3224 14.9333 27.2306 14.2222 38.7712C18.4036 43.5058 24.7292 43.5324 24.7292 43.5324L26.0417 41.7985C24.7012 41.3406 23.5587 40.7531 22.3889 39.8583L22.6319 39.1427C24.8186 40.1326 27.6267 40.7114 32 40.7114C36.3733 40.7114 39.1814 40.1291 41.3681 39.1427L41.6111 39.8583C40.4378 40.7566 39.2952 41.3441 37.9583 41.7985L39.2708 43.5324C39.2708 43.5324 45.5964 43.5058 49.7778 38.7712C49.0667 27.2306 44.9306 21.3224 44.9306 21.3224C44.9306 21.3224 41.2277 18.4884 36.8472 18.1643L35.9444 19.9945C34.604 19.7514 33.2053 19.5748 32 19.5748C30.7556 19.5748 29.3572 19.7415 28.0417 19.967L27.1528 18.1643ZM25.5972 28.1822C27.1617 28.1822 28.4444 29.7604 28.4444 31.705C28.4444 33.6495 27.1617 35.2277 25.5972 35.2277C24.0328 35.2277 22.7569 33.6495 22.7569 31.705C22.7569 29.7604 24.0328 28.1822 25.5972 28.1822ZM38.4028 28.1822C39.9672 28.1822 41.2431 29.7604 41.2431 31.705C41.2431 33.6495 39.9672 35.2277 38.4028 35.2277C36.8383 35.2277 35.5556 33.6495 35.5556 31.705C35.5556 29.7604 36.8383 28.1822 38.4028 28.1822Z","data-sentry-element":"path","data-sentry-source-file":"DiscordIcon.tsx"})})}},4361:(e,t,n)=>{e.exports=n(48763)}
83,4374:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(37876),i=n(84855),o=n(38537),s=n(5811),a=n(41492),l=n(80229),u=n(14232),c=n(53257);let d=(0,s.PA)(function({className:e,navMenuSlug:t,parentTag:n,splitLinksType:s}){let d=(0,o.g1)();return(0,u.useEffect)(()=>{t&&d?.setNavItemSlug(t||"")},[]),(0,r.jsxs)("div",{className:(0,l.Wd)(n,"PrimaryNavigation",e,"transition"),"data-sentry-component":"PrimaryNavigation","data-sentry-source-file":"PrimaryNavigation.tsx",children:[(0,r.jsx)(a.A,{navMenuSlug:t,purpose:c.Bp.PRIMARY,splitLinksType:s,"data-sentry-element":"Navigation","data-sentry-source-file":"PrimaryNavigation.tsx"}),s!==c.kZ.GENERIC&&(0,r.jsx)(i.A,{isOpen:d?.isOpen||!1,onToggle:function(){d?.toggle()},size:"md"})]})})},4706:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:"50px",height:"50px",className:t,style:n,title:"Link icon",...{},"data-sentry-element":"svg","data-sentry-component":"LinkIcon","data-sentry-source-file":"LinkIcon.tsx",children:(0,r.jsx)("path",{d:"M 37 4.0039062 C 34.69525 4.0037812 32.389766 4.8822188 30.634766 6.6367188 L 25.634766 11.636719 C 23.142766 14.128719 22.430516 17.727281 23.478516 20.863281 L 27.070312 17.271484 C 27.220312 16.244484 27.673891 15.253844 28.462891 14.464844 L 33.462891 9.4648438 C 34.437891 8.4908438 35.72 8.0019531 37 8.0019531 C 38.28 8.0019531 39.561156 8.4898437 40.535156 9.4648438 C 42.484156 11.414844 42.484156 14.586156 40.535156 16.535156 L 35.535156 21.535156 C 34.746156 22.324156 33.756516 22.776734 32.728516 22.927734 L 29.134766 26.521484 C 30.062766 26.831484 31.029047 26.996094 31.998047 26.996094 C 34.303047 26.996094 36.608281 26.118281 38.363281 24.363281 L 43.363281 19.363281 C 46.873281 15.854281 46.872281 10.145719 43.363281 6.6367188 C 41.608281 4.8827187 39.30475 4.0040313 37 4.0039062 z M 30.960938 16.980469 A 2.0002 2.0002 0 0 0 29.585938 17.585938 L 17.585938 29.585938 A 2.0002 2.0002 0 1 0 20.414062 32.414062 L 32.414062 20.414062 A 2.0002 2.0002 0 0 0 30.960938 16.980469 z M 18.449219 23.023438 C 15.997141 22.898656 13.506469 23.765766 11.636719 25.634766 L 6.6367188 30.634766 C 3.1277188 34.143766 3.1277187 39.854281 6.6367188 43.363281 C 8.3917188 45.117281 10.696 45.994141 13 45.994141 C 15.304 45.994141 17.608281 45.116328 19.363281 43.361328 L 24.363281 38.361328 C 26.855281 35.869328 27.569484 32.270766 26.521484 29.134766 L 22.927734 32.728516 C 22.777734 33.755516 22.324156 34.746156 21.535156 35.535156 L 16.535156 40.535156 C 14.586156 42.485156 11.413844 42.485156 9.4648438 40.535156 C 7.5158438 38.585156 7.5158438 35.413844 9.4648438 33.464844 L 14.464844 28.464844 C 15.253844 27.675844 16.244484 27.221312 17.271484 27.070312 L 20.863281 23.478516 C 20.079281 23.216516 19.266578 23.065031 18.449219 23.023438 z","data-sentry-element":"path","data-sentry-source-file":"LinkIcon.tsx"})})}},4756:(e,t,n)=>{e=n.nmd(e);var r=n(19031),i=n(34705),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?r.Buffer:void 0,l=a?a.isBuffer:void 0;e.exports=l||i},4799:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(49995),o=n(53955),s=n(9437),a=n(14232),l=n(18259);function u(e){let{backButton:t,children:n,rightSideContent:u,withGroupFlow:d,withDesktopXPadding:h,level:p="h1"}=e,[f,m]=(0,a.useState)(!1),g="text-3xl leading-10";return"h2"===p&&(g="text-2xl leading-9"),(0,r.jsxs)(c,{className:(0,i.A)("PageHeading","flex flex-col sm:flex-row justify-between sm:items-center gap-y-4","text-[var(--group-heading-text-color)]",h?"md:px-4":"md:px-0"),level:p,leftSideContent:d&&(0,r.jsx)("button",{type:"button",title:"This website is powered by GroupFlow",onClick:()=>m(!0),className:(0,i.A)("group","h2"===p?"w-8 h-8 min-w-8":"w-10 h-10 min-w-10"),children:(0,r.jsx)(l.A,{level:p})})||t&&(0,r.jsx)(o.A,{href:t.href,label:t.label}),rightSideContent:u&&(0,r.jsx)("div",{className:"flex justify-end md:justify-end",children:u})||(0,r.jsx)("div",{children:"\xa0"}),"data-sentry-element":"Heading","data-sentry-component":"PageHeading","data-sentry-source-file":"PageHeading.tsx",children:[(0,r.jsx)("div",{className:(0,i.A)("flex justify-start items-start gap-x-3 font-bold"),children:(0,r.jsx)("span",{className:g,children:n})}),(0,r.jsx)(s.A,{isOpen:f,onClose:()=>m(!1),"data-sentry-element":"AboutGroupFlowModal","data-sentry-source-file":"PageHeading.tsx"})]})}function c(e){let{level:t,children:n,className:i,leftSideContent:o,rightSideContent:s}=e,a="h1";"h1"===t?a="h1":"h2"===t&&(a="h2");let l=(0,r.jsx)(a,{className:i,children:n});return(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-8 md:px-0 px-4","data-sentry-component":"Heading","data-sentry-source-file":"PageHeading.tsx",children:[o,l,s]})}}
83,4902:(e,t,n)=>{"use strict";n.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>s,YH:()=>l,fX:()=>u,sH:()=>a});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])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}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}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){var u=[a,l];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}Object.create;function u(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError},5044:(e,t,n)=>{"use strict";function r(e){let t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+r,left:t.left+n,right:Math.floor(t.right)+n,bottom:Math.floor(t.bottom)+r}}function i(e,t){let n,r,i=e.value,o=e.ownerDocument;if("number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd){n=e.selectionEnd;let r=i.slice(0,n)+t+i.slice(n),o=e.selectionEnd=n+t.length;e.selectionStart=o,e.value=r}else"undefined"!==o.selection&&void 0!==o.selection&&o.selection.createRange&&(e.focus(),(r=o.selection.createRange()).collapse(!1),r.text=t,r.select())}function o(e){e.querySelectorAll("li > p").forEach(e=>{let t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}),function e(t){t.nodeType===Node.ELEMENT_NODE&&(t.removeAttribute("style"),t.removeAttribute("class"),Array.from(t.childNodes).forEach(e))}(e)}n.d(t,{B7:()=>r,Ux:()=>i,bS:()=>o})},5055:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75"}))})}
83,5199:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var r=n(2836);function i(e,t,n,o){for(var s=[],a=0;a<t.length;a++){var l=t[a];if(e(l)&&(s.push(l),--o<=0))break;if(n&&(0,r.hasChildren)(l)&&l.children.length>0){var u=i(e,l.children,n,o);if(s.push.apply(s,u),(o-=u.length)<=0)break}}return s}t.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(t)||(t=[t]),i(e,t,n,r)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,i){void 0===i&&(i=!0);for(var o=null,s=0;s<n.length&&!o;s++){var a=n[s];(0,r.isTag)(a)&&(t(a)?o=a:i&&a.children.length>0&&(o=e(t,a.children)))}return o},t.existsOne=function e(t,n){return n.some(function(n){return(0,r.isTag)(n)&&(t(n)||n.children.length>0&&e(t,n.children))})},t.findAll=function(e,t){for(var n,i,o=[],s=t.filter(r.isTag);i=s.shift();){var a=null==(n=i.children)?void 0:n.filter(r.isTag);a&&a.length>0&&s.unshift.apply(s,a),e(i)&&o.push(i)}return o}},5491:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(37876),i=n(72569),o=n(49995),s=n(10969),a=n(4706),l=n(71498),u=n(14700);function c(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:"50px",height:"50px",className:t,style:n,title:"Page icon",...{},"data-sentry-element":"svg","data-sentry-component":"PageIcon","data-sentry-source-file":"PageIcon.tsx",children:(0,r.jsx)("path",{d:"M 7 2 L 7 48 L 43 48 L 43 14.59375 L 42.71875 14.28125 L 30.71875 2.28125 L 30.40625 2 Z M 9 4 L 29 4 L 29 12 L 15 12 L 15 14 L 29 14 L 29 16 L 41 16 L 41 46 L 9 46 Z M 31 5.4375 L 39.5625 14 L 31 14 Z M 15 22 L 15 24 L 18 24 L 18 22 Z M 22 22 L 22 24 L 35 24 L 35 22 Z M 15 28 L 15 30 L 18 30 L 18 28 Z M 22 28 L 22 30 L 35 30 L 35 28 Z M 15 34 L 15 36 L 18 36 L 18 34 Z M 22 34 L 22 36 L 35 36 L 35 34 Z","data-sentry-element":"path","data-sentry-source-file":"PageIcon.tsx"})})}var d=n(81918),h=n(73382);let p={[h.nz.NavGroup]:u.A,[h.nz.NavMenu]:l.A,[h.nz.NavLink]:a.A},f={[h.nz.NavGroup]:"Multi-List",[h.nz.NavMenu]:"List",[h.nz.NavLink]:"Link"},m={width:"18px",height:"18px"};function g(e){let t=(0,s.CI)((0,i.Eh)()),n=(0,o.A)("fill-current",t.cardMutedTextColor),{contentItem:a}=e,{type:l}=a,u=(0,h.KR)(a),g=d.A;u?g=p[u]??d.A:l&&(g=c);let y="Link";return u?y=f[u]:l===h.nz.Page?y="Page":l===h.nz.Post?y="Post":l===h.nz.Text&&(y="Block"),(0,r.jsx)("div",{title:y,style:{cursor:"help"},"data-sentry-component":"ContentItemTypeIcon","data-sentry-source-file":"ContentItemTypeIcon.tsx",children:(0,r.jsx)(g,{className:n,style:m,"data-sentry-element":"Cmp","data-sentry-source-file":"ContentItemTypeIcon.tsx"})})}},5507:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(37876),i=n(61745),o=n(14232),s=n(58585),a=n(49995),l=n(48230),u=n.n(l);let c=o.createRef(),d=o.createRef();function h(e){let{autoComplete:t="on",email:n,onKeyDown:l,value:h,id:p}=e,f=e.allowShowPassword??!0,[m,g]=(0,o.useState)(e.showPassword||!1);(0,o.useEffect)(()=>{g(e.showPassword||!1)},[e.showPassword]);let y=e.readOnly?"text-gray-darker":"",v={};v=e.register?{...e.register}:{name:e.name,onChange:function(t){e.onChange&&e.onChange(t);let n=t.target.value,r=d.current;r&&(r.value=n)},onKeyDown:l,inputRef:c,value:h,required:e.required};let b=e.register?.name||e.name;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("span",{className:"block relative",children:[(0,r.jsx)(i.A,{id:p,readOnly:e.readOnly,type:m?"text":"password",...v,className:(0,a.A)(y,"font-mono"),placeholder:"Password",autoComplete:t,"data-sentry-element":"TextInput","data-sentry-source-file":"PasswordInput.tsx"}),f&&(0,r.jsxs)("div",{className:"flex justify-between mt-2",children:[(0,r.jsx)(s.A,{label:"Show password",onChange:function(){e.onShowPasswordToggle?e.onShowPasswordToggle(!m):g(!m)},name:b}),(0,r.jsx)(u(),{href:n?`/reset_password?email=${n}`:"/reset_password",className:"hover:underline",children:(0,r.jsx)("span",{className:"text-sm text-gray-600",children:"Forgot password?"})})]})]})})}},5710:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(21993),o=n(43982),s=n(47983);function a(e){return(0,r.jsxs)("div",{"data-sentry-component":"TimeWithOffset","data-sentry-source-file":"TimeWithOffset.tsx",children:[(0,o.Yq)(e.dateTime,i.DC)," ",(0,r.jsx)(s.A,{date:e.dateTime,textColorClass:e.timezoneTextColorClass,"data-sentry-element":"TimezoneOffset","data-sentry-source-file":"TimeWithOffset.tsx"})]})}},5811:(e,t,n)=>{"use strict";n.d(t,{PA:()=>y});var r=n(80035),i=n(14232);if(!i.useState)throw Error("mobx-react-lite requires React with Hooks
83support");if(!r.Gn)throw Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var o=n(98477);function s(e){e()}function a(e){return(0,r.yl)(e)}var l=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach(function(r,i){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(i))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),u=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:l)(function(e){var t;null==(t=e.reaction)||t.dispose(),e.reaction=null}),c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};function d(e){return"observer".concat(e)}var h=function(){};function p(){return new h}var f="function"==typeof Symbol&&Symbol.for,m=f?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&(0,i.forwardRef)(function(e){return null}).$$typeof,g=f?Symbol.for("react.memo"):"function"==typeof i.memo&&(0,i.memo)(function(e){return null}).$$typeof;function y(e,t){if(g&&e.$$typeof===g)throw Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n,o,s,l=null!=(s=null==t?void 0:t.forwardRef)&&s,h=e,f=e.displayName||e.name;if(m&&e.$$typeof===m&&(l=!0,"function"!=typeof(h=e.render)))throw Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var y=function(e,t){return function(e,t){void 0===t&&(t="observed");var n,o,s=c(i.useState(p),1)[0],l=c(i.useState(),2)[1],h=function(){return l([])},f=i.useRef(null);f.current||(f.current={reaction:null,mounted:!1,changedBeforeMount:!1});var m=f.current;if(m.reaction||(m.reaction=new r.qT(d(t),function(){m.mounted?h():m.changedBeforeMount=!0}),u.register(s,m,m)),i.useDebugValue(m.reaction,a),i.useEffect(function(){return u.unregister(m),m.mounted=!0,m.reaction?m.changedBeforeMount&&(m.changedBeforeMount=!1,h()):(m.reaction=new r.qT(d(t),function(){h()}),h()),function(){m.reaction.dispose(),m.reaction=null,m.mounted=!1,m.changedBeforeMount=!1}},[]),m.reaction.track(function(){try{n=e()}catch(e){o=e}}),o)throw o;return n}(function(){return h(e,t)},f)};return""!==f&&(y.displayName=f),e.contextTypes&&(y.contextTypes=e.contextTypes),l&&(y=(0,i.forwardRef)(y)),n=e,o=y=(0,i.memo)(y),Object.keys(n).forEach(function(e){v[e]||Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))}),y}var v={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};!function(e){e||(e=s),(0,r.jK)({reactionScheduler:e})}(o.unstable_batchedUpdates),u.finalizeAllImmediately},5878:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(78950),o=n(42383),s=n(22960);function a({isOpen:e,onClose:t,onConfirm:n,isSilencing:a,selectedDuration:l,setSelectedDuration:u}){return(0,r.jsx)(i.A,{isOpen:e,onClose:t,"data-sentry-element":"SimpleModal","data-sentry-component":"SilenceNotificationsModal","data-sentry-source-file":"SilenceNotificationsModal.tsx",children:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold mb-6",children:"Silence Notifications"}),(0,r.jsx)("p",{className:"mb-6",children:"You won't receive notifications for this discu
83ssion for the selected duration."}),(0,r.jsx)("div",{className:"mb-8",children:(0,r.jsx)(o.z6,{name:"silenceDuration",currentValue:l,onChange:u,radios:s.oR,"data-sentry-element":"RadioGroup","data-sentry-source-file":"SilenceNotificationsModal.tsx"})}),(0,r.jsx)(o.fC,{cancel:{onClick:t,label:"Cancel"},onClick:n,disabled:a,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"SilenceNotificationsModal.tsx",children:a?"Silencing...":"Silence Notifications"})]})})}},6186:(e,t,n)=>{"use strict";n.d(t,{B:()=>d,p:()=>h});var r,i,o=n(14232),s=n(31787),a=n(83660),l=n(47737),u=n(65364);void 0!==u&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&(null==(r=null==u?void 0:u.env)?void 0:r.NODE_ENV)==="test"&&void 0===(null==(i=null==Element?void 0:Element.prototype)?void 0:i.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(` 84`)),[]});var c=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(c||{});function d(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function h(e,t,n,r){let[i,u]=(0,o.useState)(n),{hasFlag:c,addFlag:d,removeFlag:h}=function(e=0){let[t,n]=(0,o.useState)(e),r=(0,o.useCallback)(e=>n(e),[t]),i=(0,o.useCallback)(e=>n(t=>t|e),[t]),s=(0,o.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:i,hasFlag:s,removeFlag:(0,o.useCallback)(e=>n(t=>t&~e),[n]),toggleFlag:(0,o.useCallback)(e=>n(t=>t^e),[n])}}(e&&i?3:0),p=(0,o.useRef)(!1),f=(0,o.useRef)(!1),m=(0,a.L)();return(0,l.s)(()=>{var i;if(e){if(n&&u(!0),!t){n&&d(3);return}return null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=(0,s.e)();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(function(e,t){var n,r;let i=(0,s.e)();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===a.length?t():Promise.allSettled(a.map(e=>e.finished)).then(()=>{o||t()}),i.dispose}(e,r))})}),o.dispose}(t,{inFlight:p,prepare(){f.current?f.current=!1:f.current=p.current,p.current=!0,f.current||(n?(d(3),h(4)):(d(4),h(2)))},run(){f.current?n?(h(3),d(4)):(h(4),d(3)):n?h(1):d(1)},done(){var e;f.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(p.current=!1,h(7),n||u(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,m]),e?[i,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},6195:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>T,Cy:()=>l,H:()=>N,Jt:()=>x,Q9:()=>m,WK:()=>C,Wv:()=>w,_b:()=>h,_c:()=>A,bQ:()=>k,cQ:()=>S,jR:()=>b,l2:()=>g,lA:()=>v,o5:()=>_,xu:()=>p,y3:()=>y,yQ:()=>j});var r=n(94674),i=n(24447),o=n(43982),s=n(85318),a=n(86191);async function l(e,t){let n=(0,r.yz)(t);return(0,s.i)(e,e=>c(`${n}/${e}.json`,E))}async function u(e){let t=await (0,r.YO)(e,{});return"ok"!==(0,r.Xe)(t.status)?{response:t,body:null}:{response:t,body:await t.json()}}async function c(e,t){let n;try{n=await u(e)}catch(t){if(!(t instanceof r.kR||t instanceof TypeError))throw t;n=await u(e)}if("ok"!==(0,r.Xe)(n.response.status))return(0,r.Rf)(n.response);let i=(0,r.PV)(n.body);return{error:!1,data:Array.isArray(i)?i.map(t):i}}(0,a.J1)` 85 query ListContentItems($filter: ContentItem2FilterInput) { 86 listContentItems(filter: $filter) { 87 id 88 label 89 } 90 } 91`,(0,a.J1)` 92 query ListContentItems($filter: ContentItem2FilterInput) { 93 listContentItems(filter: $filter) { 94 id 95 internalName 96 slug 97 type 98 title 99 } 100 } 101`;let d=` 102 content 103 href 104 id 105 internalName 106 label 107 order 108 pageType 109 parentId 110 path 111 photo { 112 contentType 113 id 114 info { width height } 115 mediaType 116 thumbInfo { width height } 117 thumbUrl 118 url 119 videoUrl 120 } 121 photoId 122 publishedAt 123 purpose 124 sectionId 125 settings { isLoggedInVisible isLoggedOutVisible role } 126 slug 127 status 128 styles { value name } 129 attributes { name value } 130 textFormat 131 type 132 title 133`,h=(0,a.J1)` 134 mutation CloneContentItem2($input: CloneContentItem2Input!) { 135 cloneContentItem2(input: $input) { 136 result { 137 ${d} 138 } 139 ${i.VE} 140 } 141 } 142`,p=(0,a.J1)` 143 mutation CloneChildContentItem($input: CloneChildContentItemInput!) { 144 cloneChildContentItem(input: $input) { 145 result { 146 ${d} 147 } 148 ${i.VE} 149 } 150 } 151`,f=` 152 id 153 internalName 154 label 155 pageType 156 slug 157 type 158 title 159`,m=(0,a.J1)` 160 query ListNavItems($filter: ContentItem2FilterInput) { 161 listContentItems(filter: $filter, sort: [{ field: ORDER }]) { 162 ${d} 163 } 164 } 165`,g=(0,a.J1)` 166 query GetContentItem($id: ID!) { 167 getContentItem(id: $id) { 168 ${d} 169 author { id name title } 170 children { 171 ${d} 172 children { id order title type } 173 } 174 parent { 175 ${f} 176 children { id title } 177 } 178 } 179 } 180`,y=(0,a.J1)`
181 mutation ExportContentItems($input: ExportContentItemsInput!) { 182 exportContentItems(input: $input) 183 } 184`,v=(0,a.J1)` 185 mutation ImportContentItems($input: ImportContentItemsInput!) { 186 importContentItems(input: $input) 187 } 188`,b=` 189 ${d} 190 children { 191 ${d} 192 } 193`,x=(0,a.J1)` 194 mutation CreateContentItem2($input: CreateContentItem2Input!) { 195 createContentItem2(input: $input) { 196 result { 197 ${b} 198 } 199 ${i.VE} 200 } 201 } 202`,_=(0,a.J1)` 203 mutation UpdateContentItem2($id: ID!, $input: UpdateContentItem2Input!) { 204 updateContentItem2(id: $id, input: $input) { 205 result { 206 ${b} 207 } 208 ${i.VE} 209 } 210 } 211`,w=(0,a.J1)` 212 mutation BulkUpdateContentItems2($input: BulkUpdateContentItems2Input!) { 213 bulkUpdateContentItems2(input: $input) 214 } 215`,k=(0,a.J1)` 216 mutation DestroyContentItem2($id: ID!) { 217 destroyContentItem2(id: $id) { 218 result { 219 id 220 } 221 ${i.VE} 222 } 223 } 224`,C=(0,a.J1)` 225 query GetLetter($id: ID!) { 226 getContentItem(id: $id) { 227 content 228 id 229 textFormat 230 title 231 } 232 } 233`;function E(e){let t={...e,publishedAt:e.publishedAt&&(0,o._U)(e.publishedAt)};return t.children&&(t={...t,children:t.children.map(E)}),t}let A=(0,a.J1)` 234 query SearchContentItems($query: String!, $filter: ContentItem2FilterInput) { 235 searchContentItems(query: $query, searchContent: true, filter: $filter) { 236 href 237 id 238 internalName 239 path 240 slug 241 status 242 type 243 title 244 } 245 } 246`,S=(0,a.J1)` 247 query ListApplicationLetters { 248 listContentItems( 249 filter: { 250 type: { eq: LETTER_LIST } 251 letterCategory: { eq: APPLICATION } 252 status: { eq: PUBLISHED } 253 } 254 ) { 255 id 256 children { 257 content 258 id 259 status 260 textFormat 261 title 262 } 263 } 264 } 265`,T=(0,a.J1)` 266 query ListDuesReminderLetters($filter: ContentItem2FilterInput) { 267 listContentItems(filter: $filter) { 268 id 269 slug 270 title 271 } 272 } 273`,j=(0,a.J1)` 274 mutation ClonePage($input: ClonePageInput!) { 275 clonePage(input: $input) { 276 result { 277 id 278 pageType 279 path 280 title 281 } 282 ${i.VE} 283 } 284 } 285`,N=(0,a.J1)` 286 query ListWebPages($filter: ContentItem2FilterInput) { 287 listContentItems(filter: $filter) { 288 id 289 internalName 290 pageType 291 path 292 publishedAt 293 slug 294 status 295 title 296 } 297 } 298`},6216:(e,t,n)=>{e.exports=n(97791)(Object.keys,Object)},6334:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return w},useLinkStatus:function(){return _}});let r=n(63732),i=n(37876),o=r._(n(14232)),s=n(15948),a=n(2454),l=n(67855),u=n(29313),c=n(61162),d=n(75067),h=n(80301),p=n(43966),f=n(63467),m=n(33872);n(6642);let g=new Set;function y(e,t,n,r){if((0,a.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,n,r).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let n,r,{href:l,as:g,children:b,prefetch:x=null,passHref:_,replace:w,shallow:k,scroll:C,locale:E,onClick:A,onNavigate:S,onMouseEnter:T,onTouchStart:j,legacyBehavior:N=!1,...O}=e;n=b,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let I=o.default.useContext(d.RouterContext),D=!1!==x,{href:M,as:L}=o.default.useMemo(()=>{if(!I){let e=v(l);return{href:e,as:g?v(g):e}}let[e,t]=(0,s.resolveHref)(I,l,!0);return{href:e,as:g?(0,s.resolveHref)(I,g):t||e}},[I,l,g]),R=o.default.useRef(M),P=o.default.useRef(L);
298N&&(r=o.default.Children.only(n));let F=N?r&&"object"==typeof r&&r.ref:t,[B,$,q]=(0,h.useIntersection)({rootMargin:"200px"}),V=o.default.useCallback(e=>{(P.current!==L||R.current!==M)&&(q(),P.current=L,R.current=M),B(e)},[L,M,q,B]),z=(0,m.useMergedRef)(V,F);o.default.useEffect(()=>{I&&$&&D&&y(I,M,L,{locale:E})},[L,M,$,E,D,null==I?void 0:I.locale,I]);let U={ref:z,onClick(e){N||"function"!=typeof A||A(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),I&&(e.defaultPrevented||function(e,t,n,r,i,o,s,l,u){let{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,a.isLocalURL)(n)){i&&(e.preventDefault(),location.replace(n));return}e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let e=null==s||s;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:o,locale:l,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})})()}}(e,I,M,L,w,k,C,E,S))},onMouseEnter(e){N||"function"!=typeof T||T(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),I&&y(I,M,L,{locale:E,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){N||"function"!=typeof j||j(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),I&&y(I,M,L,{locale:E,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(L))U.href=L;else if(!N||_||"a"===r.type&&!("href"in r.props)){let e=void 0!==E?E:null==I?void 0:I.locale;U.href=(null==I?void 0:I.isLocaleDomain)&&(0,p.getDomainLocale)(L,e,null==I?void 0:I.locales,null==I?void 0:I.domainLocales)||(0,f.addBasePath)((0,c.addLocale)(L,e,null==I?void 0:I.defaultLocale))}return N?o.default.cloneElement(r,U):(0,i.jsx)("a",{...O,...U,children:n})}),x=(0,o.createContext)({pending:!1}),_=()=>(0,o.useContext)(x),w=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6505:(e,t,n)=>{"use strict";n.d(t,{k:()=>s,_:()=>a});var r=n(58287),i=n(77016);let o=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(n=e.constructor)?void 0:n.name)){let t=(0,i.N)(e);throw Error(`Cannot use ${r} "${t}" from another module or realm. 299 300Ensure that there is only one instance of "graphql" in the node_modules 301directory. If different versions of "graphql" are the dependencies of other 302relied on modules, use "resolutions" to ensure only one version is installed. 303 304https://yarnpkg.com/en/docs/selective-version-resolutions 305 306Duplicate "graphql" modules cannot be used at the same time since different 307versions may have different capabilities and behavior. The data from one 308version used in the function from another could produce confusing and 309spurious results.`)}}return!1};class s{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.U)(!1,`Body must be a string. Received: ${(0,i.N)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function a(e){return o(e,s)}},6642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},6736:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zM4 19.235v-.11a6.375 6.375 0 0112.75 0v.109A12.318 12.318 0 0110.374 21c-2.331 0-4.512-.645-6.374-1.766z"}))})},6795:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(94674);async function i(e,t){let n=await (0,r.YO)(e.baseUrl+"/sessions",{body:JSON.stringify(t),headers:(0,r.co)(e),method:"POST",credentials:"include"});return"ok"===(0,r.Xe)(n.status)?{error:!1,data:await n.json()}:(0,r.Rf)(n)}},6869:(e,t,n)=>{"use strict";n.d(t,{j:()=>c});var r=n(14232),i=n(7784),o=n(58127),s=n(29842);function a(e,t,n,i){let o=(0,s.Y)(n);(0,r.useEffect)(()=>
309{if(e)return document.addEventListener(t,n,i),()=>document.removeEventListener(t,n,i);function n(e){o.current(e)}},[e,t,i])}var l=n(45933),u=n(50892);function c(e,t,n){let c=(0,l.S)(e,"outside-click"),d=(0,s.Y)(n),h=(0,r.useCallback)(function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){for(let n of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==n&&(n.contains(r)||e.composed&&e.composedPath().includes(n)))return;return(0,i.Bm)(r,i.MZ.Loose)||-1===r.tabIndex||e.preventDefault(),d.current(e,r)}},[d,t]),p=(0,r.useRef)(null);a(c,"pointerdown",e=>{var t,n;p.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),a(c,"mousedown",e=>{var t,n;p.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),a(c,"click",e=>{(0,o.Fr)()||p.current&&(h(e,()=>p.current),p.current=null)},!0);let f=(0,r.useRef)({x:0,y:0});a(c,"touchstart",e=>{f.current.x=e.touches[0].clientX,f.current.y=e.touches[0].clientY},!0),a(c,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-f.current.x)>=30||Math.abs(t.y-f.current.y)>=30))return h(e,()=>e.target instanceof HTMLElement?e.target:null)},!0),(0,u.M)(c,"blur",e=>h(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},6884:(e,t,n)=>{"use strict";n.d(t,{DQ:()=>o,DX:()=>f,Ke:()=>x,MD:()=>y,Mr:()=>m,Sk:()=>c,TU:()=>v,Z1:()=>u,eN:()=>i,lJ:()=>g,uk:()=>_,xU:()=>p});var r=n(73382),i=function(e){return e.Navigation="navigation",e.Content="content",e}({}),o=function(e){return e.MaxWidth="max-width",e}({});let s=[{key:r.nz.Announcement,category:"content",label:"Announcement",childArrangement:"none"},{key:r.nz.Reference,category:"content",label:"Reference",childArrangement:"none"},{key:r.nz.NavGroup,category:"navigation",label:"Navigation",childArrangement:"position"},{key:r.nz.NavMenu,category:"navigation",label:"Nav Menu",childArrangement:"position"},{key:r.nz.NavLink,category:"navigation",label:"Nav Link",childArrangement:"none"},{key:r.nz.Page,category:"content",label:"Page",childArrangement:"purpose"},{key:r.nz.Letter,category:"content",label:"Letter",childArrangement:"none"},{key:r.nz.LetterList,category:"content",label:"Letters",childArrangement:"position",permittedChildren:[r.nz.Letter]},{key:r.nz.Post,category:"content",label:"Post",childArrangement:"purpose"},{key:r.nz.PostList,category:"content",label:"Posts",childArrangement:"position"},{key:r.nz.Text,category:"content",label:"Text",childArrangement:"none"},{key:r.nz.Button,category:"content",label:"Button",childArrangement:"none"},{key:r.nz.Image,category:"content",label:"Image",childArrangement:"none"},{key:r.nz.Overlay,category:"content",label:"Overlay",childArrangement:"none"},{key:r.nz.Hero,category:"content",label:"Hero",childArrangement:"purpose"},{key:r.nz.Header,category:"content",label:"Header",childArrangement:"none"},{key:r.nz.HeaderWithHero,category:"content",label:"Header with Hero",childArrangement:"purpose"},{key:r.nz.Main,category:"content",label:"Main Section",childArrangement:"position",permittedChildren:[r.nz.Text,r.nz.PostList,r.nz.TwoColumns,r.nz.PrimaryQuote,r.nz.PublicEventsList,r.nz.ButtonRow,r.nz.ContactForm],offeredChildSettings:["max-width"],namedChildren:{[r.iU.BackgroundImage]:r.nz.Image,[r.iU.Overlay]:r.nz.Overlay}},{key:r.nz.Footer,category:"content",label:"Footer",childArrangement:"purpose"},{key:r.nz.LogoAndCopyright,category:"content",label:"Logo and Copyright",childArrangement:"none"},{key:r.nz.PrimaryQuote,category:"content",label:"Primary Quote",childArrangement:"purpose"},{key:r.nz.PublicEventsList,category:"content",label:"Public Events",childArrangement:"none"},{key:r.nz.ButtonRow,category:"content",label:"Button Row",childArrangement:"position",permittedChildren:[r.nz.Button]},{key:r.nz.SocialLinks,category:"content",label:"Social Links",childArrangement:"purpose",permittedChildren:[r.nz.SocialLink]},{key:r.nz.SocialLink,category:"content",label:"Social Link",childArrangement:"none"},{key:r.nz.ContactForm,category:"content",label:"Contact Form",childArrangement:"none"},{key:r.nz.TwoColumns,category:"content",label:"Two Columns",childArrangement:"position",permittedChildren:[r.nz.ColumnContainer],maxSelfNesting:2},{key:r.nz.ColumnContainer,category:"content",label:"Column",childArrangement:"position",permittedChildren:[r.nz.Image,r.nz.ButtonRow,r.nz.Text,r.nz.ContactForm,r.nz.TwoColumns],maxSelfNesting:2,offeredChildSettings:[]}],a=new Map(s.map(e=>[e.key,e]));function l(e){return e?a.get(e):void 0}function u(e){return"navigation"===l(e)?.category}function c(e){return l(e)?.label}let d={[r.DD.Application]:"Application",[r.DD.DuesReminder]:"Dues Reminder"},h=[r.nz.Letter,r.nz.LetterList];function p(e){let t=c(e.type),n=e.letterCategory&&d[e.letterCategory];return t&&n&&e.type&&h.includes(e.type)?`${n} ${t}`:t}function f(e){return s.filter(t=>t.category===e).map(e=>e.key)}function m(e){let t=e?.type?{type:{eq:e.type}}:{type:{in:f("content")}}
309,n=e&&"parentId"in e&&null===e.parentId?{parentId:{isNil:"true"}}:{};return{...t,...n}}function g(e,t){let n=l(e)?.permittedChildren;return!n||n.includes(t)}function y(e,t){let n=l(e)?.offeredChildSettings;return!n||n.includes(t)}function v(e,t){return t.filter(t=>t===e).length+1<=(l(e)?.maxSelfNesting??1)}function b(e,t){return!!t&&t in(l(e)?.namedChildren??{})}function x(e,t){if(b(e.type,t))return e.children?.find(e=>e.purpose===t)}function _(e){return(e.children??[]).filter(t=>!b(e.type,t.purpose))}},7075:(e,t,n)=>{"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{A:()=>r})},7235:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState((function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}).bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>s}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},7585:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:"Twitter icon",style:n,className:t,...{},"data-sentry-element":"svg","data-sentry-component":"TwitterIcon","data-sentry-source-file":"TwitterIcon.tsx",children:(0,r.jsx)("path",{d:"M8 0C3.61317 0 0 3.61317 0 8V56C0 60.3868 3.61317 64 8 64H56C60.3868 64 64 60.3868 64 56V8C64 3.61317 60.3868 0 56 0H8ZM8 5.33333H56C57.5012 5.33333 58.6667 6.49883 58.6667 8V56C58.6667 57.5012 57.5012 58.6667 56 58.6667H8C6.49883 58.6667 5.33333 57.5012 5.33333 56V8C5.33333 6.49883 6.49883 5.33333 8 5.33333ZM41.25 16C36.754 16 33.0988 19.6552 33.1042 24.1458C33.1042 24.9832 33.3958 25.5442 33.3958 26.1042C26.6545 25.8215 21.0557 22.4608 17.125 17.6875C16.2823 18.8128 16 20.2119 16 21.6146C16 24.4199 17.0931 26.6674 19.3438 28.6354C17.8504 28.4328 17.1253 28.0704 16 27.5104C16 31.4411 18.5029 34.527 22.1563 35.375C22.1563 35.375 20.7489 35.6563 19.9063 35.6563C19.2663 35.6563 18.5 35.375 18.5 35.375C19.6253 38.463 22.43 40.9896 26.0833 40.9896C23.278 42.9576 19.6221 44.3542 15.9688 44.3542H14C16.
3096667 46.6688 20.6635 48 26.3542 48C41.2395 48 49.3958 35.6563 49.3958 24.9896V23.8646C50.8038 22.7393 52.2027 21.3365 53.3333 19.6458C51.648 20.4938 50.2428 20.7694 48.5521 21.0521C50.2374 19.9321 51.6483 18.5252 52.2083 16.5625C50.8057 17.3998 49.1243 18.2382 47.1563 18.5208C45.7483 16.8408 43.5007 16 41.25 16Z","data-sentry-element":"path","data-sentry-source-file":"TwitterIcon.tsx"})})}},7743:(e,t,n)=>{"use strict";function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function s(e){return o(e)||95===e}function a(e){return o(e)||i(e)||95===e}n.d(t,{i0:()=>r,un:()=>s,xr:()=>a,yp:()=>i})},7784:(e,t,n)=>{"use strict";n.d(t,{BD:()=>l,Bm:()=>p,CU:()=>b,Fh:()=>f,MZ:()=>h,Me:()=>u,Uo:()=>s,iq:()=>d,p9:()=>v,pW:()=>g,wl:()=>y});var r=n(31787),i=n(99289),o=n(62307);let s=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),a=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var l=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(l||{}),u=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(u||{}),c=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(c||{});function d(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(s)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var h=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(h||{});function p(e,t=0){var n;return e!==(null==(n=(0,o.T)(e))?void 0:n.body)&&(0,i.Y)(t,{0:()=>e.matches(s),1(){let t=e;for(;null!==t;){if(t.matches(s))return!0;t=t.parentElement}return!1}})}function f(e){let t=(0,o.T)(e);(0,r.e)().nextFrame(()=>{t&&!p(t.activeElement,0)&&g(e)})}var m=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(m||{});function g(e){null==e||e.focus({preventScroll:!0})}function y(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function v(e,t){return b(d(),t,{relativeTo:e})}function b(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){var o,s,l;let u=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?n?y(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(a)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):d(e);i.length>0&&c.length>1&&(c=c.filter(e=>!i.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),r=null!=r?r:u.activeElement;let h=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=(()=>
309{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(r))-1;if(4&t)return Math.max(0,c.indexOf(r))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},m=0,g=c.length,v;do{if(m>=g||m+g<=0)return 0;let e=p+m;if(16&t)e=(e+g)%g;else{if(e<0)return 3;if(e>=g)return 1}null==(v=c[e])||v.focus(f),m+=h}while(v!==u.activeElement);return 6&t&&null!=(l=null==(s=null==(o=v)?void 0:o.matches)?void 0:s.call(o,"textarea,input"))&&l&&v.select(),2}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},7794:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(13220),i=n(39114),o=n(73382),s=n(10969),a=n(72569),l=n(14232),u=n(38537);function c(){let[e,t]=(0,o.Pc)().split("#"),n=(0,u.uV)(),[c,d]=(0,l.useState)(!1),h=(0,r.IG)(),p=(0,u.MM)(),f=(0,a.Eh)(),m=(0,l.useRef)(!1);function g(t){return(t=t||n.contentItems||void 0)&&(0,o.Sd)(t,e)||null}(0,l.useEffect)(()=>{!function e(t){n.getContentItems({force:t||!1}).then(t=>{let r=g(t);r&&n.registerCurrentPage(r.id,()=>e(!0)),v(r)}).catch(e=>{console.warn("Failed to load page content:",e),v(null)})}()},[]),(0,l.useEffect)(()=>{if(t&&!m.current){let e=document.getElementById(t);e&&(e.scrollIntoView(),m.current=!0)}});let y=h&&(0,i.hN)(h,"content");function v(t){t||(console.warn(">> NOTHING FOUND FOR",e),d(!0))}let b=g(),x="";return"members"===f&&(x=s.Ay.primaryCard),{cardStyle:x,page:b,notFound:c,canEdit:y,onAddClick:function(){p?.openNew({type:o.nz.Page,path:e,pageType:o.g6.Embedded})},uriPath:e}}},8153:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(14232),o=n(28035),s=n(31341);function a(e){let{checked:t,className:n,onChange:a,register:l,label:u,required:c,value:d}=e;d=void 0===d||d;let h=e.name,p=h;if(!h&&e.register){let{name:t}=e.register;t&&(p=t)}let f=e.disabled||!1,m=e.id||["CheckboxWithLabel",p,d].filter(e=>e).join("-"),g={};return l&&(g={...g,...l}),h&&(g={...g,name:h}),void 0!==t&&(g={...g,checked:t}),void 0!==a&&(g={...g,onChange:a}),(0,r.jsx)(o.A,{className:n,field:(0,i.createElement)("input",{disabled:f,type:"checkbox",...g,key:m,value:d,id:m,"data-testid":e["data-testid"]}),label:(0,r.jsxs)("label",{htmlFor:m,children:[u,c?(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(s.A,{})]}):null]}),"data-sentry-element":"FieldOptionLayout","data-sentry-component":"CheckboxWithLabel","data-sentry-source-file":"CheckBoxWithLabel.tsx"})}},8345:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(14232),i=n(32468);function o(e){var t=(0,r.useContext)(i.Ay);if(!t)throw Error("Missing <CookiesProvider>");var n=t.getAll(),o=(0,r.useState)(n),s=o[0],a=o[1],l=(0,r.useRef)(s);return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement&&(0,r.useLayoutEffect)(function(){function n(){var n=t.getAll();(function(e,t,n){if(!e)return!0;for(var r=0;r<e.length;r++){var i=e[r];if(t[i]!==n[i])return!0}return!1})(e||null,n,l.current)&&a(n),l.current=n}return t.addChangeListener(n),function(){t.removeChangeListener(n)}},[t]),[s,(0,r.useMemo)(function(){return t.set.bind(t)},[t]),(0,r.useMemo)(function(){return t.remove.bind(t)},[t])]}},8571:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:"50px",height:"50px",className:t,style:n,title:"Delete",...{},"data-sentry-element":"svg","data-sentry-component":"DeleteIcon","data-sentry-source-file":"DeleteIcon.tsx",children:(0,r.jsx)("path",{d:"M 9.15625 6.3125 L 6.3125 9.15625 L 22.15625 25 L 6.21875 40.96875 L 9.03125 43.78125 L 25 27.84375 L 40.9375 43.78125 L 43.78125 40.9375 L 27.84375 25 L 43.6875 9.15625 L 40.84375 6.3125 L 25 22.15625 Z","data-sentry-element":"path","data-sentry-source-file":"DeleteIcon.tsx"})})}}
309,8739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var r=n(2836),i=[];function o(e){var t;return null!=(t=e.children)?t:i}function s(e){return e.parent||null}t.getChildren=o,t.getParent=s,t.getSiblings=function(e){var t=s(e);if(null!=t)return o(t);for(var n=[e],r=e.prev,i=e.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=i;)n.push(i),i=i.next;return n},t.getAttributeValue=function(e,t){var n;return null==(n=e.attribs)?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,r.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,r.isTag)(t);)t=t.prev;return t}},8832:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(14232),o=n(18334);function s(){return(0,i.useEffect)(()=>{o.wd("404 page")},[]),(0,r.jsx)("section",{"data-sentry-component":"ServerError404","data-sentry-source-file":"404.tsx",children:(0,r.jsx)("h1",{className:"h1",children:"404 - Page Not Found"})})}},9095:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(49995),o=n(72569),s=n(86879);function a(e){let{children:t,className:n,withBottomMargin:a,size:l="lg"}=e;return"admin"===(0,o.jz)(e.themeArea)?(0,r.jsx)(s.A,{className:n,size:l,children:t}):(0,r.jsx)("h3",{className:(0,i.A)("font-bold","sm"===l?"":"text-[1.4375rem]",n,"text-[var(--group-heading-text-color)]",a&&"mb-2"),"data-sentry-component":"SectionHeading","data-sentry-source-file":"SectionHeading.tsx",children:t})}},9297:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",className:t,style:n,title:"Add or Plus",...{},"data-sentry-element":"svg","data-sentry-component":"AddIcon","data-sentry-source-file":"AddIcon.tsx",children:(0,r.jsx)("path",{d:"M 6 3 C 4.3550302 3 3 4.3550302 3 6 L 3 18 C 3 19.64497 4.3550302 21 6 21 L 18 21 C 19.64497 21 21 19.64497 21 18 L 21 6 C 21 4.3550302 19.64497 3 18 3 L 6 3 z M 6 5 L 18 5 C 18.56503 5 19 5.4349698 19 6 L 19 18 C 19 18.56503 18.56503 19 18 19 L 6 19 C 5.4349698 19 5 18.56503 5 18 L 5 6 C 5 5.4349698 5.4349698 5 6 5 z M 11.984375 6.9863281 A 1.0001 1.0001 0 0 0 11 8 L 11 11 L 8 11 A 1.0001 1.0001 0 1 0 8 13 L 11 13 L 11 16 A 1.0001 1.0001 0 1 0 13 16 L 13 13 L 16 13 A 1.0001 1.0001 0 1 0 16 11 L 13 11 L 13 8 A 1.0001 1.0001 0 0 0 11.984375 6.9863281 z","data-sentry-element":"path","data-sentry-source-file":"AddIcon.tsx"})})}},9327:(e,t,n)=>{"use strict";n.d(t,{EM:()=>m,Tw:()=>d});var r=n(37876),i=n(42383),o=n(14232),s=n(13220),a=n(49995),l=n(10969),u=n(72569),c=n(23955);let d=(0,n(5811).PA)(function(e){let{item:t,currentId:n,themeArea:i}=e,o=(0,u.jz)(i)===c.L.ADMIN?i===c.L.ADMIN?"hover:bg-gf-green-light":"hover:bg-[var(--group-accent-ultralight)]":(0,a.A)(l.Ay.dropDownMenuItemColor,t.id===n&&l.Ay.dropDownMenuItemFocusedColor);return(0,r.jsx)("button",{className:(0,a.A)("ResultItem block w-full",o,"text-left","py-1 px-2"),onMouseDown:function(n){n.preventDefault(),e.onClick&&e.onClick(t)},"data-sentry-component":"ResultItem","data-sentry-source-file":"ResultItem.tsx",children:e.mapItem?e.mapItem(t):t.name})});function h(e){let{items:t,currentId:n,onItemClick:i,mapItem:o,childrenAfter:s,themeArea:h}=e,p=(0,u.jz)(h)===c.L.ADMIN;if(!t)return null;let f=(0,r.jsx)("div",{className:"py-1 px-2",children:"(no results)"});return t.length>0&&(f=(0,r.jsx)(r.Fragment,{children:t.map((e,t)=>(0,r.jsx)(d,{item:e,currentId:n,onClick:()=>i&&i(e),mapItem:o,themeArea:h},t))})),(0,r.jsxs)("div",{className:(0,a.A)("ResultsDropDown absolute py-2 border w-full z-10 max-h-80 overflow-x-auto overflow-y-scroll",p?"bg-white":[l.Ay.dropDownMenuBackgroundColor,l.Ay.dropDownMenuItemTextColor]),"data-sentry-component":"ResultsDropDown","data-sentry-source-file":"ResultsDropDown.tsx",children:[f,s]})}let p={active:!1,query:""},f=o.createRef();function m(e){let t,n,a,l,{helpText:u,items:c,themeArea:d}=e,m=(0,s.lF)(),[g,y]=(0,o.useState)(p),[v,b]=(0,o.useState)({start:void 0,timeoutId:void 0});[t,n]=(0,o.useState)(t),[a,l]=(0,o.useState)(!1);let x=function(){let e=(0,o.useRef)({});return{trigger:t=>{let n=new Date().valueOf();e.current.date?e.current.fun=t:(e.current.date=n,t(),setTimeout(()=>{e.current.fun&&e.current.fun(),e.current={}},500))}}}();function _(n){(n||c&&(n=c.find(e=>e.id===t)))&&(e.onItemSelected&&e.onItemSelected(n),y({...g,active:!1,query:""}),e.inputRef?.current?.blur())}function w(t){let{onSearch:r}=e;m&&r&&(n(void 0),x.trigger(()=>r(t)))}return(0,o.useEffect)(()=>{a||l(!0),c&&c[0]&&(!t||!c.find(e=>e.id===t))&&n(c[0].id)}),(0,r.jsxs)("div",{className:"relative",ref:function(){let t=e.inputRef||f;t?.current&&e.focusOnLoad&&t.current.focus()},"data-sentry-component":"ItemSearch","data-sentry-source-file":"ItemSearch.tsx",children:[(0,r.jsx)(i.ks,{onChange:e=>{e.preventDefault();let{value:t}=e.target;y({...g,active:!0,query:t}),!function(e,t,n){let{timeoutId:r,start:i}=t,o=t.throttlePeriod||500;if(i){r&&clearTimeout(r);let s=setTimeout(()=>{e(),n({start:void 0,timeoutId:void 0})},o-(new Date().valueOf()-i));n({...t,timeoutId:s});return}e(),n({...t,start:new Date().valueOf()})}(()=>w(t),v,b)},value:g.query,onKeyDown:function(e){if("Escape"===e.key)c&&(n(void 0),y({...g,...void 0,active:!1}));else{let r=0;if("ArrowDown"===e.key?r=1:"ArrowUp"===e.key?r=-1:e.ctrlKey&&"n"===e.key?r=1:e.ctrlKey&&"p"===e.key?r=-1:"Enter"===e.key&&(e.preventDefault(),_()),r){if(!c)return;e.preventDefault();let i=c.findIndex(e=>e.id===t),o=c[i+r];o&&n(o.id)}}},onBlur:function(){n(void 0),y({...g,active:!1,query:""});let{onCancel:t}=e;t&&t()},onFocus:function(){y({active:!0,query:""}),w("")},placeholder:e.placeholder||"Searchâ¦",inputRef:e.inputRef||f,autoComplete:"disengage-this-chrome","data-testid":e.searchInputTestId,"data-sentry-element":"TextInput","data-sentry-source-file":"ItemSearch.tsx"}),u,g.active&&c&&(0,r.jsx)(h,{items:c,currentId:t,onItemClick:_,mapItem:e.mapResultItem,childrenAfter:e.childrenAfter,themeArea:d})]})}},9370:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(37876),i=n(14766),o=n(49995),s=n(53257),a=n(72569),l=n(48230),u=n.n(l);function c(e){let{href:t,icon:n,isDropDownItem:l,label:c,onClick:d,purpose:h}=e,p=(0,a.jz)(e.themeArea),f=e.className,m=(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsx)("span",{className:"mt-[0.15rem]",children:n}),c]}),g=(0,o.A)("Link LinkMenuItem","inline-flex justify-start gap-x-2",l?"px-6 py-2":"",(0,s.RM)(p,h,l),f);return l?d?(0,r.jsx)(i.Dr,{as:"button",onClick:d,className:g,"data-sentry-element":"MenuItem","data-sentry-component":"LinkMenuItem","data-sentry-source-file":"LinkMenuItem.tsx",children:m}):(0,r.jsx)(i.Dr,{as:u(),href:t||"/",className:g,"data-sentry-element":"MenuItem","data-sentry-component":"LinkMenuItem","data-sentry-source-file":"LinkMenuItem.tsx",children:m}):(0,r.jsx)(r.Fragment,{children:d?(0,r.jsx)("button",{onClick:d,role:"menuitem",className:g,children:m}):(0,r.jsx)(u(),{href:t||"/",role:"menuitem",className:g,children:m})})}},9437:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(73e3),o=n(23955),s=n(40634),a=n(78950),l=n(13220);function u(e){let{isOpen:t,onClose:n}=e,u=(0,l.Jc)();return(0,r.jsx)(a.A,{isOpen:t,onClose:n,themeArea:o.L.ADMIN,"data-sentry-element":"SimpleModal","data-sentry-component":"AboutGroupFlowModal","data-sentry-source-file":"AboutGroupFlowModal.tsx",children:(0,r.jsxs)("div",{className:"flex flex-col gap-y-4 -mt-4 mb-4",children:[(0,r.jsx)("a",{className:"flex justify-center",href:`https://www.groupflow.app/?utm_source=group-site&utm_medium=web&utm_content=about-groupflow&utm_term=${u.slug}`,rel:"external","aria-label":"to GroupFlow website",children:(0,r.jsx)(s.A,{className:"max-w-[15rem] fill-current w-full text-gf-green h-auto","data-sentry-element":"GroupFlowWideLogo","data-sentry-source-file":"AboutGroupFlowModal.tsx"})}),(0,r.jsxs)("div",{className:"flex flex-col gap-y-4 mt-4",children:[(0,r.jsxs)("p",{children:[u.name," proudly uses GroupFlow for its:"]}),(0,r.jsxs)("ul",{className:"list-inside list-disc",children:[(0,r.jsx)("li",{children:"Website"}),(0,r.jsx)("li",{children:"Member platform"}),(0,r.jsx)("li",{children:"Events platform"})]}),(0,r.jsx)("p",{children:"GroupFlow empowers groups to create, manage, and grow their in-person community."}),(0,r.jsxs)("p",{children:[(0,r.jsx)("a",{href:`https://www.groupflow.app/affiliate?utm_source=group-site&utm_medium=web&utm_content=affiliate&utm_term=${u.slug}`,className:"a font-medium underline",target:"_blank","aria-label":"to external website",rel:"noreferrer noopener",children:"Earn revenue"})," ","by referring other groups to GroupFlow."]})]}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(i.A,{href:`https://www.groupflow.app/?utm_source=group-site&utm_medium=web&utm_content=about-groupflow&utm_term=${u.slug}`,"data-sentry-element":"ActionButton","data-sentry-source-file":"AboutGroupFlowModal.tsx",children:"More about GroupFlow"})})]})})}}
309,9664:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(14232),o=n(49995),s=n(82037);let a=function(e){let{children:t,noClose:n}=e,a="warning"===e.type?"bg-warning":"bg-new-green-500",l="warning"===e.type?"text-black":"text-white",u=e.textClass||l,c=(0,o.A)("text-slate-200 hover:text-white");"warning"===e.type&&(c=(0,o.A)("text-slate-500 hover:text-black"));let d=`${a} rounded flex justify-between items-center px-2 py-1 ${u}`,h=`${d} ${e.className}`,[p,f]=(0,i.useState)(!0);return p?(0,r.jsxs)("div",{className:h,children:[t,n?null:(0,r.jsx)("div",{className:(0,o.A)("flex transition justify-end",c),children:(0,r.jsx)(s.Jn,{onClick:function(){e.onClose&&e.onClose(),f(!1)},textClass:" ",svgClass:"fill-current"})})]}):null}},9783:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(37876),i=n(14232),o=n(10969),s=n(22611),a=n(49995);let l=i.forwardRef((e,t)=>{let{label:n,className:i,idPrefix:l,inputRef:u,onClick:c,onChange:d,onDomChange:h,register:p,required:f,...m}=e,{value:g,checked:y}=e,v=e.name;e.register&&(void 0===v&&(v=e.register.name),m={...m,...e.register});let b=["RadioWithLabel",v,g].filter(e=>e).join("-");return l&&(b=l+"-"+b),m={...m,id:b},u?m={...m,ref:u}:t&&(m={...m,ref:t}),void 0!==y&&(m={...m,checked:y}),h?m={...m,onChange:h}:d&&(m={...m,onChange:()=>d(g)}),c&&(m={...m,onClick:()=>c(g)}),(0,r.jsxs)("div",{className:`RadioWithLabel ${o.Ay.radioWithLabel} ${i||""}`,children:[(0,r.jsx)("div",{children:(0,r.jsx)("input",{type:"radio",...m})}),(0,r.jsxs)("label",{htmlFor:b,className:(0,a.A)("ml-2",m.disabled&&"text-secondary-400"),children:[n,f?(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(s.A,{})]}):null]})]})})},9955:(e,t,n)=>{let r=n(98311);e.exports=function(e){let t=function(e){let t=function(){let e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){let e=n.pop(),i=Object.keys(r[e]);for(let r=i.length,o=0;o<r;o++){let r=i[o],s=t[r];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(r))}}return t}(e),n={},i=Object.keys(t);for(let e=i.length,o=0;o<e;o++){let e=i[o];null!==t[e].parent&&(n[e]=function(e,t){let n=[t[e].parent,e],i=r[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),i=function(e,t){return function(n){return t(e(n))}}(r[t[o].parent][o],i),o=t[o].parent;return i.conversion=n,i}(e,t))}return n}}
309,10289:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 003.741-.479 3 3 0 00-4.682-2.72m.94 3.198l.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0112 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 016 18.719m12 0a5.971 5.971 0 00-.941-3.197m0 0A5.995 5.995 0 0012 12.75a5.995 5.995 0 00-5.058 2.772m0 0a3 3 0 00-4.681 2.72 8.986 8.986 0 003.74.477m.94-3.197a5.971 5.971 0 00-.94 3.197M15 6.75a3 3 0 11-6 0 3 3 0 016 0zm6 3a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0zm-13.5 0a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0z"}))})},10290:(e,t,n)=>{"use strict";n.d(t,{A2:()=>f,CI:()=>U,DT:()=>es,DW:()=>F,Ds:()=>eo,EI:()=>m,Gx:()=>C,H:()=>M,HI:()=>_,Jb:()=>V,Jm:()=>A,O9:()=>D,OY:()=>el,Pr:()=>S,Q1:()=>eh,Rw:()=>Q,UG:()=>B,V3:()=>k,WB:()=>E,WL:()=>J,ZB:()=>W,ZD:()=>d,ZE:()=>G,aK:()=>X,aT:()=>H,aq:()=>ef,cT:()=>ea,dc:()=>v,f5:()=>h,gb:()=>er,iL:()=>$,iN:()=>et,k_:()=>L,l6:()=>p,m4:()=>ed,r6:()=>K,rV:()=>en,ro:()=>ee,tZ:()=>Z,v2:()=>ep,vG:()=>eu,wq:()=>ec,zv:()=>x});var r=n(86191),i=n(24447),o=n(97574),s=n(55494),a=n(46338),l=n(43982),u=n(94674),c=n(87157);let d=(0,r.J1)` 310 query GetEventSummary($id: ID!) { 311 getEventSummary(id: $id) { 312 id 313 startAt 314 title 315 totals { 316 attendedCount 317 goingCount 318 grossOrders 319 netOrders 320 grossReceipts 321 netReceipts 322 variantCounts { 323 variantId 324 count 325 } 326 waitlistCount 327 yesRsvpCount 328 } 329 } 330 } 331`,h=(0,r.J1)` 332 query ListEventSummaries($limit: Int, $startAtGe: DateTime) { 333 listEventSummaries(limit: $limit, startAtGe: $startAtGe) { 334 attendedCount 335 id 336 startAt 337 title 338 } 339 } 340`;async function p(e,t){let n=new URLSearchParams;"number"==typeof t.limit&&n.append("limit",t.limit.toString()),t.startAtGe&&n.append("startAtGe",t.startAtGe.toISOString());let r=`/events/summaries.csv?${n.toString()}`,i=e.baseUrl+r,o=await (0,u.YO)(i,{headers:(0,u.co)(e)}),s=await o.text();return o.status>=200&&o.status<300?{data:s,error:!1}:{error:!0,status:o.status,serverError:o.status>=500&&o.status<600,requestErrors:[{title:"Error",detail:s}]}}let f=(0,r.J1)` 341 mutation DestroyEvent2($id: ID!) { 342 destroyEvent2(id: $id) { 343 result { 344 id 345 } 346 ${i.VE} 347 } 348 } 349`,m=(0,r.J1)` 350 query GetEventConversation($id: ID!) { 351 getEvent2(id: $id) { 352 id 353 conversation { 354 id 355 status 356 pausedAt 357 selfParticipant { 358 id 359 status 360 silenceUntil 361 unreadMessagesCount 362 lastReadMessageId 363 } 364 } 365 } 366 } 367`,g=` 368 id 369 quantity 370 totalAmount 371 unitAmount 372 variantId 373 variant { 374 id 375 amount 376 name 377 perRecipientMaxQuantity 378 perRecipientMinQuantity 379 purpose 380 subtotalCalculation 381 } 382`,y=` 383 id 384 amount 385 deletable 386 enabled 387 isDefault 388 name 389 originalQuantity 390 perRecipientMaxQuantity 391 perRecipientMinQuantity 392 pricingType 393 purpose 394 soldQuantity 395 subtotalCalculation 396 templateVariantId 397 waitlistQuantity 398`,v=(0,r.J1)` 399 query ListAttendees( 400 $eventId: String!, 401 $lineItemVariantId: String 402 $filter: Registration2FilterInput 403 $sort: [Registration2SortInput] 404 $sortBy: RegistrationSortBy 405 $query: String 406 ) { 407 listAttendees(eventId: $eventId, lineItemVariantId: $lineItemVariantId, filter: $filter, sort: $sort, sortBy: $sortBy, query: $query, offset: 0, limit: 200) { 408 hasNextPage 409 results { 410 answers { arrayValue id meta otherValue questionId visible } 411 amount 412 createdAt 413 eventId 414 id 415 lineItems { ${g} } 416 ticketQuantity 417 member { 418 ${s.ts} 419 } 420 payStatus 421 rsvpReply 422 status 423 waitlisted 424 } 425 } 426 } 427`,b=` 428 id 429 joinedGroupOn 430 lastAttendancesDays90Count 431 lastNoshowsDays90Count 432 lastWaitlistedDays90Count 433 memberTags { 434 id 435 tag { 436 id 437 tagGroupId 438 value 439 } 440 } 441 memberType 442 name 443 profile { 444 id 445 location 446 intro 447 photo { 448 id 449 url 450 thumbUrl 451 } 452 pronounItems { 453 label 454 other 455 } 456 } 457 status 458 title 459 trial 460`,x=(0,r.J1)` 461 query ListAttendeesForAdmin( 462 $eventId: String!, 463 $filter: Registration2FilterInput 464 $sort: [Registration2SortInput] 465 $sortBy: RegistrationSortBy 466 $query: String 467 ) { 468 listAttendees(eventId: $eventId, filter: $filter, sort: $sort, sortBy: $sortBy, query: $query, offset: 0, limit: 200) { 469 count 470 hasNextPage 471 results { 472 answers { arrayValue id meta otherValue questionId visible } 473 amount 474 createdAt 475 eventId 476 id 477 lineItems { ${g} } 478 ticketQuantity 479 member { 480 ${b} 481 } 482 note 483 payStatus 484 rsvpReply 485 status 486 waitlisted 487 } 488 } 489 } 490`,_=(0,r.J1)` 491 query ListMemberAttendances( 492 $memberId: String! 493 $query: String 494 $limit: Int 495 $offset: Int 496 $filter: Registration2FilterInput 497 ) { 498 listMemberAttendances( 499 memberId: $memberId 500 query: $query 501 limit: $limit 502 offset: $offset 503 filter: $filter 504 ) { 505 count 506 results { 507 id 508 event { 509 id 510 endAt 511 startAt 512 status 513 title 514 } 515 payStatus 516 rsvpReply 517 status 518 waitlisted 519 } 520 } 521 } 522`,w=` 523 address1 524 active 525 city 526 country 527 eventsCount 528 hasAddress 529 id 530 lat 531 lng 532 name 533 postCode 534 state 535`,k=(0,r.J1)` 536 query GetVenue($id: ID!) { 537 getVenue2(id: $id) { 538 ${w} 539 } 540 } 541`,C=(0,r.J1)` 542 query ListVenues2($filter: Venue2FilterInput) { 543 listVenues2(filter: $filter) { 544 ${w} 545 } 546 } 547`,E=(0,r.J1)` 548 query SearchVenues2($query: String) { 549 searchVenues2(query: $query) { 550 ${"address1\ncity\ncountry\nhasAddress\nid\nlat\nlng\nname\npostCode\nstate"} 551 } 552 } 553`,A=(0,r.J1)` 554 mutation UpdateVenue2($input: UpdateVenue2Input!, $id: ID!) { 555 updateVenue2(input: $input, id: $id) { 556 result { 557 ${w} 558 } 559 ${i.VE} 560 } 561 } 562`,S=(0,r.J1)` 563 mutation CreateVenue2($input: CreateVenue2Input!) { 564 createVenue2(input: $input) { 565 result { 566 ${w} 567 } 568 ${i.VE} 569 } 570 } 571`,T=` 572 active 573 camelizedComponent 574 id 575 memberVisible 576 ordinal 577 purpose 578 sectionId 579 slug 580 specialField 581`,j=` 582 closed 583 maxEventVariantCount 584 refundPolicy { 585 policies 586 } 587 rsvpLimit 588 unregistrationsAllowed 589 waitlisting 590 waitlistAutoDelistCutoff 591 waitlistDelist 592 waitlistType 593`,N=` 594 canManageAttendance 595 canUpdateEvent 596 canSendAnnouncements 597 canModerateEventForum 598 canManageStaffPermissions 599`,O=` 600 id 601 role 602 featured 603 public 604 displayName 605 bio 606 eventNotificationsEnabled 607 canTakeAttendance 608 canEditEventDetails 609 canSendAnnouncements 610 canModerateEventForum 611 canManageStaffPermissions 612`,I=` 613 authorMember { 614 id 615 name 616 title 617 profile { 618 id 619 intro 620 photo { 621 id 622 thumbUrl 623 url 624 } 625 pronouns 626 pronounOther 627 } 628 } 629 attendees( 630 limit: 14 631 filter: { 632 rsvpReply: { eq: YES } 633 waitlisted: { eq: false } 634 } 635 ) { 636 id 637 member { 638 id 639 name 640 profile { 641 id 642 photo { 643 contentType 644 id 645 thumbUrl 646 url 647 } 648 } 649 status 650 title 651 } 652 } 653 crossPostedWith 654 description 655 descriptionFormat 656 endAt 657 registrationClosesAt 658 feeAmount 659 goingCount 660 staff { 661 ${O} 662 member { 663 id 664 name 665 profile { 666 answers { 667 arrayValue 668 id 669 meta 670 otherValue 671 questionId 672 visible 673 } 674 id 675 intro 676 photo { 677 id 678 thumbUrl 679 url 680 } 681 pronouns 682 pronounOther 683 } 684 status 685 title 686 } 687 photo { 688 id 689 thumbUrl 690 url 691 } 692 } 693 addressWithheld 694 howToFindUs 695 id 696 image { 697 contentType 698 id 699 regularInfo { width height } 700 thumbUrl 701 url 702 } 703 isAddressHidden 704 isPublic 705 maybeRsvpCount 706 noteToCalendarTeam 707 onlineLink 708 onlineLinkHidden 709 onlineLinkWithheld 710 registration { 711 answers { 712 arrayValue 713 meta 714 otherValue 715 questionId 716 visible 717 } 718 cardId 719 createdAt 720 id 721 invited 722 lineItems { ${g} } 723 ticketQuantity 724 paymentMethodId 725 payStatus 726 rsvpReply 727 status
728 transferredToRegistrationId 729 waitlisted 730 } 731 paymentBypassed 732 pricingType 733 publishedAt 734 questions(sort: { field: ORDINAL, order: ASC }) { 735 ${T} 736 } 737 realtimeCharge 738 rsvpRules { 739 ${j} 740 } 741 selfPermissions { 742 ${N} 743 } 744 signupUrl 745 source 746 spotsLeft 747 startAt 748 status 749 submittedAt 750 tags { 751 id 752 purpose 753 value 754 tagGroup { 755 color 756 id 757 ordinal 758 purpose 759 title 760 } 761 } 762 title 763 updatedAt 764 variants { 765 ${y} 766 } 767 venue { 768 address1 769 city 770 country 771 hasAddress 772 id 773 lat 774 lng 775 name 776 postCode 777 state 778 } 779 volunteersNeeded 780 waitlistCount 781 yesRsvpCount 782 attachments { 783 id 784 image { 785 id 786 url 787 thumbUrl 788 info { width height } 789 thumbInfo { width height } 790 } 791 position 792 } 793`,D=(0,r.J1)` 794 mutation CreateEvent2($input: CreateEvent2Input!) { 795 createEvent2(input: $input) { 796 result { 797 ${I} 798 } 799 ${i.VE} 800 } 801 } 802`,M=(0,r.J1)` 803 mutation UpdateEvent2($id: ID!, $input: UpdateEvent2Input!) { 804 updateEvent2(id: $id, input: $input) { 805 result { 806 ${I} 807 } 808 ${i.VE} 809 } 810 } 811`,L=(0,r.J1)` 812 query GetMyEventCounts($statusIn: [Event2Status!]) { 813 getMyEventCounts(statusIn: $statusIn) { 814 associatedFutureCount 815 draftsCount 816 } 817 } 818`,R=` 819answers { arrayValue id meta otherValue questionId visible } 820createdAt 821id 822lineItems { ${g} } 823ticketQuantity 824payStatus 825rsvpReply 826status 827waitlisted 828`,P=` 829 id 830 name 831 profile { 832 photo { 833 id 834 url 835 thumbUrl 836 } 837 } 838`,F=(0,r.J1)` 839query ListEvents($filter: Event2FilterInput, $sort: [Event2SortInput], $additionalFilter: Event2AdditionalFilterInput, $search: String, $limit: Int, $offset: Int) { 840 listEvents(filter: $filter, sort: $sort, additionalFilter: $additionalFilter, search: $search, limit: $limit, offset: $offset) { 841 results { 842 authorMemberId 843 descriptionFormat 844 endAt 845 feeAmount 846 goingCount 847 id 848 image { contentType id url thumbUrl } 849 isPublic 850 maybeRsvpCount 851 onlineLink 852 registration { ${R} } 853 registrations(limit: 8, filter: { rsvpReply: { eq: YES }, waitlisted: { eq: false } }) { 854 id 855 member { 856 ${P} 857 } 858 } 859 paymentBypassed 860 pricingType 861 publishedAt 862 realtimeCharge 863 rsvpRules { 864 ${j} 865 } 866 selfPermissions { 867 ${N} 868 } 869 source 870 staff { 871 id 872 role 873 member { id } 874 } 875 startAt 876 status 877 submittedAt 878 tags { id purpose slug tagGroupId value } 879 title 880 updatedAt 881 variants { 882 ${y} 883 } 884 venue { id name } 885 volunteersNeeded 886 waitlistCount 887 yesRsvpCount 888 } 889 count 890 hasNextPage 891 } 892} 893`,B=(0,r.J1)` 894query ListEventsUnprivileged($filter: Event2FilterInput, $sort: [Event2SortInput], $additionalFilter: Event2AdditionalFilterInput, $search: String, $limit: Int, $offset: Int) { 895 listEvents(filter: $filter, sort: $sort, additionalFilter: $additionalFilter, search: $search, limit: $limit, offset: $offset) { 896 results { 897 authorMemberId 898 descriptionFormat 899 endAt 900 feeAmount 901 goingCount 902 id 903 image { 904 contentType 905 id 906 url 907 info { width height } 908 thumbUrl 909 thumbInfo { width height } 910 } 911 isPublic 912 maybeRsvpCount 913 onlineLink 914 registration { ${R} } 915 paymentBypassed 916 pricingType 917 publishedAt 918 realtimeCharge 919 rsvpRules { 920 ${j} 921 } 922 selfPermissions { 923 ${N} 924 } 925 source 926 staff { 927 id 928 role 929 } 930 startAt 931 status 932 submittedAt 933 tags { id purpose slug tagGroupId value } 934 title 935 updatedAt 936 variants { 937 ${y} 938 } 939 venue { id name } 940 volunteersNeeded 941 waitlistCount 942 yesRsvpCount 943 } 944 count 945 hasNextPage 946 } 947} 948`,$=(0,r.J1)` 949 query ListEvents( 950 $filter: Event2FilterInput 951 $sort: [Event2SortInput] 952 $additionalFilter: Event2AdditionalFilterInput 953 $search: String 954 $limit: Int 955 $offset: Int 956 ) { 957 listEvents( 958 filter: $filter 959 sort: $sort 960 additionalFilter: $additionalFilter 961 search: $search 962 limit: $limit 963 offset: $offset 964 ) { 965 results { 966 endAt 967 feeAmount 968 id 969 image { 970 contentType 971 id 972 url 973 thumbUrl 974 } 975 isPublic 976 publishedAt 977 startAt 978 status 979 title 980 venue { 981 id 982 name 983 } 984 } 985 count 986 hasNextPage 987 } 988 } 989`,q=` 990 id 991 name 992 title 993 profile { 994 photo { 995 id 996 info { width height } 997 url 998 thumbUrl 999 thumbInfo { width height } 1000 } 1001 pronounItems { 1002 label 1003 other 1004 } 1005 } 1006`,V=(0,r.J1)` 1007 query AdminListEvents( 1008 $filter: Event2FilterInput, 1009 $sort: [Event2SortInput], 1010 $additionalFilter: Event2AdditionalFilterInput, 1011 $search: String, 1012 $limit: Int, 1013 $offset: Int 1014 ) { 1015 adminListEvents(filter: $filter, sort: $sort, additionalFilter: $additionalFilter, search: $search, limit: $limit, offset: $offset) { 1016 results { 1017 announcedAt 1018 authorMember { 1019 ${q} 1020 } 1021 endAt 1022 calendarRep { 1023 ${q} 1024 } 1025 feeAmount 1026 goingCount 1027 id 1028 image { 1029 ${o.S5} 1030 } 1031 isPublic 1032 publishedAt
1033 registrations(limit: 8, filter: { rsvpReply: { eq: YES }, waitlisted: { eq: false } }) { 1034 id 1035 member { 1036 ${P} 1037 } 1038 } 1039 startAt 1040 status 1041 submittedAt 1042 title 1043 updatedAt 1044 venue { 1045 address1 1046 city 1047 country 1048 hasAddress 1049 id 1050 lat 1051 lng 1052 name 1053 postCode 1054 state 1055 } 1056 volunteersNeeded 1057 waitlistCount 1058 } 1059 count 1060 hasNextPage 1061 } 1062 } 1063`,z=` 1064 announcedAt 1065 authorMember { 1066 ${q} 1067 } 1068 crossPostedWith 1069 description 1070 descriptionFormat 1071 endAt 1072 calendarRep { 1073 ${q} 1074 } 1075 feeAmount 1076 goingCount 1077 staff { 1078 ${O} 1079 member { 1080 ${q} 1081 } 1082 photo { 1083 id 1084 thumbUrl 1085 url 1086 } 1087 } 1088 howToFindUs 1089 id 1090 image { 1091 ${o.S5} 1092 } 1093 isAddressHidden 1094 isPublic 1095 maybeRsvpCount 1096 noteToCalendarTeam 1097 notes { 1098 id 1099 body 1100 author { 1101 ${q} 1102 } 1103 insertedAt 1104 } 1105 onlineLink 1106 onlineLinkHidden 1107 paymentBypassed 1108 pricingType 1109 publishedAt 1110 questions { 1111 ${a.f6} 1112 } 1113 registrations(limit: 8, filter: { rsvpReply: { eq: YES }, waitlisted: { eq: false } }) { 1114 id 1115 member { 1116 ${P} 1117 } 1118 } 1119 realtimeCharge 1120 rsvpRules { 1121 ${j} 1122 } 1123 signupUrl 1124 source 1125 startAt 1126 status 1127 submittedAt 1128 tags { 1129 id 1130 purpose 1131 tagGroup { 1132 color 1133 id 1134 ordinal 1135 purpose 1136 title 1137 } 1138 slug 1139 value 1140 } 1141 title 1142 toBeAnnouncedAt 1143 userSegments 1144 updatedAt 1145 variants { 1146 ${y} 1147 } 1148 venue { 1149 address1 1150 city 1151 country 1152 hasAddress 1153 id 1154 lat 1155 lng 1156 name 1157 postCode 1158 state 1159 } 1160 volunteersNeeded 1161 waitlistCount 1162 yesRsvpCount 1163 triggers { 1164 id 1165 parentType 1166 triggerType 1167 triggerConfig 1168 actions { 1169 id 1170 actionType 1171 position 1172 offsetSeconds 1173 conditions 1174 emailTemplate { 1175 id 1176 subject 1177 body 1178 } 1179 } 1180 insertedAt 1181 updatedAt 1182 } 1183`,U=(0,r.J1)` 1184 query AdminGetEvent($id: ID!) { 1185 adminGetEvent(id: $id) { 1186 ${z} 1187 } 1188 } 1189`,H=(0,r.J1)` 1190 mutation CreateAdminEvent($input: CreateEvent2Input!) { 1191 createEvent2(input: $input) { 1192 result { 1193 ${z} 1194 } 1195 ${i.VE} 1196 } 1197 } 1198`,W=(0,r.J1)` 1199 mutation UpdateAdminEvent($id: ID!, $input: UpdateEvent2Input!) { 1200 updateEvent2(id: $id, input: $input) { 1201 result { 1202 ${z} 1203 } 1204 ${i.VE} 1205 } 1206 } 1207`,G=(0,r.J1)` 1208 mutation AnnounceEvent($id: ID!, $input: AnnounceEventInput) { 1209 announceEvent(id: $id, input: $input) { 1210 result { 1211 ${z} 1212 } 1213 ${i.VE} 1214 } 1215 } 1216`,K=(0,r.J1)` 1217 mutation PublishEvent($id: ID!, $input: PublishEventInput!) { 1218 publishEvent(id: $id, input: $input) { 1219 result { 1220 ${z} 1221 } 1222 ${i.VE} 1223 } 1224 } 1225`,J=(0,r.J1)` 1226 mutation ArchiveEvent($id: ID!) { 1227 archiveEvent(id: $id) { 1228 result { 1229 ${z} 1230 } 1231 ${i.VE} 1232 } 1233 } 1234`,Q=(0,r.J1)` 1235 mutation SendEventTestAnnouncement($id: ID!) { 1236 sendEventTestAnnouncement(id: $id) { 1237 result { 1238 ${z} 1239 } 1240 ${i.VE} 1241 } 1242 } 1243`,Y=` 1244 answers { arrayValue id meta otherValue questionId visible } 1245 createdAt 1246 id 1247 lineItems { ${g} } 1248 ticketQuantity 1249 member { id name } 1250 payStatus 1251 rsvpReply 1252 status 1253 waitlisted 1254`,X=(0,r.J1)` 1255 mutation CreateAttendee($input: CreateAttendeeInput!) { 1256 createAttendee(input: $input) { 1257 result { 1258 ${Y} 1259 } 1260 metadata { 1261 existingAccount 1262 } 1263 ${i.VE} 1264 } 1265 } 1266`,Z=(0,r.J1)` 1267 mutation UpdateAttendee($id: ID!, $input: UpdateAttendeeInput!) { 1268 updateAttendee(id: $id, input: $input) { 1269 result { 1270 ${Y} 1271 } 1272 ${i.VE} 1273 } 1274 } 1275`,ee=(0,r.J1)` 1276 mutation BulkUpdateAttendees($input: BulkUpdateAttendeesInput!) { 1277 bulkUpdateAttendees(input: $input) { 1278 result { 1279 success 1280 count 1281 } 1282 ${i.VE} 1283 } 1284 } 1285`,et=(0,r.J1)` 1286 query GetAttendee($id: ID!) { 1287 getAttendee(id: $id) { 1288 id 1289 eventId 1290 rsvpReply 1291 waitlisted 1292 payStatus 1293 status 1294 createdAt 1295 note 1296 answers { 1297 id 1298 questionId 1299 arrayValue 1300 otherValue 1301 meta 1302 visible 1303 } 1304 member { 1305 ${b} 1306 } 1307 lineItems { ${g} } 1308 ticketQuantity 1309 transactions(filter: { status: { eq: FINAL } }) { 1310 id 1311 amount 1312 externalId 1313 fee 1314 registrationId 1315 productId 1316 provider 1317 status 1318 subtotal 1319 tax 1320 transactionType 1321 transactionAt 1322 } 1323 } 1324 } 1325`,en=(0,r.J1)` 1326 query GetEvent2Privileged($id: ID!) { 1327 getEvent2(id: $id) { 1328 ${I} 1329 } 1330 } 1331`,er=(0,r.J1)` 1332 query GetEvent2Unprivileged($id: ID!) { 1333 getEvent2(id: $id) { 1334 crossPostedWith 1335 description 1336 descriptionFormat 1337 endAt 1338 registrationClosesAt 1339 feeAmount 1340 goingCount 1341 addressWithheld 1342 howToFindUs 1343 id 1344 image { 1345 contentType 1346 id 1347 thumbUrl 1348 url 1349 } 1350 isAddressHidden 1351 isPublic 1352 maybeRsvpCount 1353 onlineLink 1354 onlineLinkHidden 1355 onlineLinkWithheld 1356 registration { 1357 answers { 1358 arrayValue 1359 id 1360 meta 1361 otherValue 1362 questionId 1363 visible 1364 } 1365 cardId 1366 createdAt 1367 id 1368 invited 1369 lineItems { ${g} } 1370 ticketQuantity 1371 payStatus 1372 rsvpReply 1373 status
1374 transferredToRegistrationId 1375 waitlisted 1376 } 1377 paymentBypassed 1378 pricingType 1379 publishedAt 1380 questions(sort: { field: ORDINAL, order: ASC }) { 1381 ${T} 1382 } 1383 realtimeCharge 1384 rsvpRules { 1385 ${j} 1386 } 1387 selfPermissions { 1388 ${N} 1389 } 1390 signupUrl 1391 source 1392 spotsLeft 1393 staff { 1394 id 1395 role 1396 featured 1397 public 1398 displayName 1399 bio 1400 photo { 1401 id 1402 thumbUrl 1403 url 1404 } 1405 } 1406 startAt 1407 status 1408 submittedAt 1409 tags { 1410 id 1411 purpose 1412 value 1413 tagGroup { 1414 color 1415 id 1416 ordinal 1417 purpose 1418 title 1419 } 1420 } 1421 title 1422 updatedAt 1423 variants { 1424 ${y} 1425 } 1426 venue { 1427 address1 1428 city 1429 country 1430 hasAddress 1431 id 1432 lat 1433 lng 1434 name 1435 postCode 1436 state 1437 } 1438 volunteersNeeded 1439 waitlistCount 1440 yesRsvpCount 1441 } 1442 } 1443`;function ei(e){let{camelizedComponent:t,...n}=e;return{...n,component:JSON.parse(t)}}function eo(e){let{questions:t,registration:n,tags:r,...i}=(0,c.QS)(e),o=n;return t=(t||[]).map(e=>ei(e)),o&&(o={...o,answers:(o.answers||[]).map(a.YE)}),r=(r||[]).map(e=>({...e,purpose:e.purpose.toLowerCase(),tagGroup:{...e.tagGroup,purpose:e.tagGroup.purpose.toLowerCase()}})),{...i,registration:o,questions:t,descriptionFormat:i.descriptionFormat,startAt:(0,l._U)(i.startAt),endAt:(0,l._U)(i.endAt),registrationClosesAt:(0,l._U)(i.registrationClosesAt),publishedAt:(0,l._U)(i.publishedAt),submittedAt:(0,l._U)(i.submittedAt),source:i.source,tags:r,updatedAt:(0,l._U)(i.updatedAt)}}function es(e){return{...e=(0,c.QS)(e),createdAt:(0,l._U)(e.createdAt),member:{...e.member,memberTags:e.member.memberTags||[],joinedGroupOn:(0,l._U)(e.member.joinedGroupOn),profile:e.member.profile??null},note:e.note||"",answers:(e.answers||[]).map(a.YE),amount:e.amount||"0"}}function ea(e){return{...e,announcedAt:e.announcedAt?(0,l._U)(e.announcedAt):null,endAt:(0,l._U)(e.endAt),notes:e.notes.map(e=>{var t;return{...t=e,insertedAt:(0,l._U)(t.insertedAt)}}),publishedAt:e.publishedAt?(0,l._U)(e.publishedAt):null,questions:e.questions.map(e=>ei(e)),startAt:(0,l._U)(e.startAt),submittedAt:e.submittedAt?(0,l._U)(e.submittedAt):null,toBeAnnouncedAt:e.toBeAnnouncedAt?(0,l._U)(e.toBeAnnouncedAt):null,updatedAt:(0,l._U)(e.updatedAt)}}let el=(0,r.J1)` 1444 query MemberEventRegistration($eventId: String!, $memberId: String!) { 1445 listAttendees( 1446 eventId: $eventId 1447 filter: { memberId: { eq: $memberId } } 1448 offset: 0 1449 limit: 1 1450 ) { 1451 results { 1452 id 1453 rsvpReply 1454 } 1455 } 1456 } 1457`,eu=(0,r.J1)` 1458 query CheckAttendeeByEmail($email: String!, $eventId: String!) { 1459 checkAttendeeByEmail(email: $email, eventId: $eventId) { 1460 id 1461 memberStatus 1462 member { 1463 id 1464 name 1465 joinedGroupOn 1466 title 1467 profile { 1468 id 1469 intro 1470 location 1471 photo { 1472 id 1473 url 1474 thumbUrl 1475 } 1476 pronounItems { 1477 label 1478 } 1479 } 1480 meetupMemberId 1481 } 1482 registration { 1483 id 1484 rsvpReply 1485 } 1486 } 1487 } 1488`,ec=(0,r.J1)` 1489 mutation UpsertRsvp($input: UpsertRsvpInput!) { 1490 upsertRsvp(input: $input) { 1491 result { 1492 id 1493 } 1494 ${i.VE} 1495 } 1496 } 1497`,ed=(0,r.J1)` 1498 mutation CancelEvent($id: ID!) { 1499 cancelEvent(id: $id) { 1500 result { 1501 id 1502 } 1503 ${i.VE} 1504 } 1505 } 1506`,eh=(0,r.J1)` 1507 mutation AdminCancelEvent($id: ID!) { 1508 cancelEvent(id: $id) { 1509 result { 1510 ${z} 1511 } 1512 ${i.VE} 1513 } 1514 } 1515`,ep=(0,r.J1)` 1516 mutation TransferTicket($eventId: String!, $input: TransferTicketInput!) { 1517 transferTicket(eventId: $eventId, input: $input) { 1518 result { 1519 id 1520 } 1521 ${i.VE} 1522 } 1523 } 1524`,ef=(0,r.J1)` 1525 mutation DestroyEventVariant($id: ID!, $input: DestroyEventVariantInput!) { 1526 destroyEventVariant(id: $id, input: $input) { 1527 errors { 1528 code 1529 fields 1530 message 1531 shortMessage 1532 } 1533 } 1534 } 1535`},10441:(e,t,n)=>{var r=n(36187);e.exports=function(e){return r(this.__data__,e)>-1}}
1535,10688:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(22611),o=n(49995);function s(e){let{as:t="label",children:n,className:s,htmlFor:a,id:l,required:u,style:c,title:d,weightClass:h="font-semibold"}=e,p=e.marginBottomClass??"mb-2";return s=(0,o.A)("RowLabel","block",s,p,h),(0,r.jsxs)(t||"label",{htmlFor:a,id:l,className:s,title:d,style:c,"data-sentry-element":"Component","data-sentry-component":"RowLabel","data-sentry-source-file":"RowLabel.tsx",children:[n,u?(0,r.jsx)(i.A,{}):null]})}},10734:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 01-.825-.242m9.345-8.334a2.126 2.126 0 00-.476-.095 48.64 48.64 0 00-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0011.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"}))})},10969:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,CI:()=>g,OT:()=>p,Qe:()=>E,SJ:()=>x,ZF:()=>A,_i:()=>C,bv:()=>b,mL:()=>k,oh:()=>w,pn:()=>_,t3:()=>c});var r=n(49995),i=n(13220),o=n(41116),s=n.n(o),a=n(72569);s().defaultStyles.content.position="initial";let l="text-secondary-900",u="text-primary-950";function c(e){let t=e.backgroundClass??"bg-white",n=e.borderClass??"rounded-xl",i=e.paddingClass??"p-4",o=e.clickable?"hover:border-gf-green-dark hover:cursor-pointer":void 0,s=e.shadowClass??"shadow-gf-sm";return(0,r.A)(s,n,t,i,o)}let d={borderShape:"border-[1px] rounded-xl",primaryCard:` 1536 PrimaryCard 1537 bg-[var(--group-primary-card-background-color)] 1538 md:border md:rounded-xl border-[var(--group-primary-card-border-color)] 1539 shadow-md shadow-[var(--group-primary-card-shadow-color)] 1540 text-[var(--group-primary-card-text-color)] 1541 `,smallCard:` 1542 SmallCard 1543 bg-[var(--group-primary-card-background-color)] 1544 border rounded-xl border-[var(--group-primary-card-border-color)] 1545 text-[var(--group-primary-card-text-color)] 1546 `,badge:"inline-flex items-center gap-x-2 px-2 border rounded-lg shadow-xs",buttonIcon:"fill-current w-[14px] h-[14px]",actionButtonColor:"bg-[var(--group-button-background-color)] hover:bg-[var(--group-button-background-hover-color)] text-[var(--group-button-text-color)] hover:text-[var(--group-button-text-hover-color)]",contentMinWidth:"md:min-w-[768px]",outlineControlColor:"border-[var(--group-page-background-border-color)] text-[var(--group-page-background-text-color-muted)]",outlineControlColorAccented:"border-[var(--group-accent)] text-[var(--group-accent-text)]",outlineControlColorHover:"hover:border-[var(--group-accent)] hover:text-[var(--group-accent-text)]",dropDownMenuBackgroundColor:"bg-[var(--group-primary-card-background-color)]",dropDownMenuItemColor:"hover:bg-[var(--group-primary-card-background-tintend-color)]",dropDownMenuItemTextColor:"text-[var(--group-primary-card-text-color)]",dropDownMenuItemFocusedColor:"bg-[var(--group-primary-card-background-tintend-color)]",formClass:"flex flex-col gap-6",helpIconColor:"text-[var(--group-page-background-text-color-muted)]",inlineLabel:"text-gray-darker pr-2 font-medium",labelText:"font-semibold",mainColors:"bg-[var(--group-page-background)] text-[var(--group-page-background-text-color)]",modalStyle:{overlay:{backgroundColor:"rgba(128, 128, 128, 0.75)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:"30"},content:{borderRadius:"1rem",maxWidth:"600px",maxHeight:"98%",width:"100%",overflow:"auto",display:"flex",flexDirection:"column"}},switchTrackOnColor:"bg-[var(--group-button-background-color)]",switchTrackOffColor:"bg-[var(--group-primary-card-line-color)]",switchThumbOnColor:"bg-[var(--group-button-text-color)]",switchThumbOffColor:"bg-[var(--group-primary-card-background-color)]",modalBodyStyle:"sm:min-w-[30rem] p-4 md:p-6",navItemColor:"text-[var(--group-link-color)] hover:text-[var(--group-link-hover-color)]",inputClass:`form-component theme-field-outline-color outline-[var(--group-accent)] border border-secondary-300 ${l}`,itemBorder:"rounded-2xl shadow-md shadow-[var(--group-primary-card-shadow-color)]",buttonDeleteBgColorClass:"bg-red-500 hover:bg-red-400 disabled:bg-red-500/50",sectionFieldsetLegend:"text-2xl font-semibold text-gray-darkest flex flex-row items-center gap-2",textArea:"form-component w-full border border-gray theme-field-outline-color outline-[var(--group-accent)] text-secondary-900",radioWithLabel:"flex flex-row justify-start content-start",select:"form-component border border-gray rounded outline-[var(--group-accent)] text-secondary-900"},h=d,p={bodyTextOnWhite:"text-primary-900",bodyTextOnOffWhite:"text-primary-950",buttonShapeSmall:"flex justify-center items-center gap-2 rounded-full px-5 py-2 transition text-sm",buttonShapeMedium:"flex justify-center items-center gap-2 rounded-full px-5 py-2 transition",buttonBasicColors:"border hover:border-black text-secondary-800 hover:text-black",buttonActionColors:"bg-gf-green-dark hover:bg-gf-green text-white",form:{smallLabelOnWhite:"text-primary-900 text-medium",smallLabelOnOffWhite:"text-primary-950 text-medium"},fieldLabel:"text-primary-950 font-medium",helpIconColor:"text-secondary-400",formField:`bg-white border rounded-lg border-secondary-300 h-12 px-3 ${u} tracking-wide outline-gf-border-color`,formSections:"flex flex-col gap-8",formSectionContainer:"flex flex-col gap-4",labelAndField:"flex flex-col gap-y-2",link:"text-gf-link hover:text-gf-link-hover",modalStyle:{overlay:{backgroundColor:"rgba(128, 128, 128, 0.75)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:"10"},content:{maxWidth:"600px",maxHeight:"98%",border:void 0,borderRadius:"12px",color:"black",fontFamily:"Montserrat",overflow:"auto"}},modal:{heading:"font-bold text-xl text-center text-primary-950"},modalBodyStyle:"sm:min-w-[30rem] p-4 md:p-6 font-montserrat",inlineFields:"flex flex-row gap-4",itemBorder:"border border-solid rounded-lg shadow-md",screenPaddingX:"px-4 md:px-10",screenPaddingY:"py-8",textArea:"form-component w-full border border-gray outline-gf-border-color",select:"form-component border border-gray rounded outline-gf-border-color"},f={accentBorderColor:"border-[var(--group-accent)]",accentBorderHoverColor:"hover:border-[var(--group-accent)]",accentTextColor:"text-[var(--group-accent-text)]",accentTextHoverColor:"hover:text-[var(--group-accent-text)]",cardLineColor:"border-[var(--group-primary-card-line-color)]",cardMutedBackgroun
1546dColor:"bg-[var(--group-primary-card-text-muted-color)]",cardMutedTextColor:"text-[var(--group-primary-card-text-muted-color)]",cardTextHoverColor:"hover:text-[var(--group-primary-card-text-hover-color)]",cardTintedBackgroundColor:"bg-[var(--group-primary-card-background-tintend-color)]",cardTintedHoverColor:"hover:bg-[var(--group-primary-card-background-tintend-color)]",focusRingColor:"focus:ring-[var(--group-accent)]",focusVisibleRingColor:"focus-visible:ring-[var(--group-accent)]",linkColor:d.navItemColor},m={accentBorderColor:"border-gf-green-dark",accentBorderHoverColor:"hover:border-gf-green-dark",accentTextColor:"text-gf-green-dark",accentTextHoverColor:"hover:text-gf-green-dark",cardLineColor:"border-new-gray-200",cardMutedBackgroundColor:"bg-new-gray-500",cardMutedTextColor:"text-gray-dark",cardTextHoverColor:"hover:text-gray-darkest",cardTintedBackgroundColor:"bg-new-gray-100",cardTintedHoverColor:"hover:bg-new-gray-50",focusRingColor:"focus:ring-gf-green-dark",focusVisibleRingColor:"focus-visible:ring-gf-green-dark",linkColor:p.link};function g(e){return"admin"===e?m:f}let y={trackOnColor:d.switchTrackOnColor,trackOffColor:d.switchTrackOffColor,thumbOnColor:d.switchThumbOnColor,thumbOffColor:d.switchThumbOffColor},v={trackOnColor:"bg-primary-800",trackOffColor:"bg-secondary-100",thumbOnColor:"bg-white",thumbOffColor:"bg-white"};function b(e){return"admin"===e?v:y}function x(e){let t="admin"===e?p.formField:d.inputClass;return(0,r.A)(t,"disabled:bg-secondary-100")}function _(e){return"admin"===e?u:l}function w(e){return"admin"===e?p.helpIconColor:d.helpIconColor}function k(e){let t="admin"===e?p.select:d.select;return(0,r.A)(t,"disabled:bg-secondary-100")}function C(e){return"admin"===e?p.textArea:d.textArea}function E(){let e=(0,i.LV)(),t="";return t=e.siteArea===a.Q.MEMBERS?"gf-area-members bg-[var(--group-primary-card-background-color)]":e.siteArea===a.Q.ADMIN?"gf-area-admin bg-white text-secondary-800":"gf-area-marketing bg-[var(--group-primary-card-background-color)] text-[var(--group-primary-card-text-color)]",(0,r.A)("gf-customer",t,"flex flex-col items-stretch","border rounded-lg","shadow-lg","py-2","text-sm")}function A(){let e=(0,i.LV)().siteArea===a.Q.ADMIN;return{item:(0,r.A)("group flex w-full items-center gap-3 px-5 py-3 text-left text-sm","disabled:opacity-50",!e&&d.dropDownMenuItemTextColor),focused:e?"bg-secondary-100":d.dropDownMenuItemFocusedColor,icon:e?"text-secondary-400":"opacity-60"}}},10993:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(85767),o=n(72569);function s(e){let{expanded:t,onChange:n}=e,s=(0,o.jz)(e.themeArea);return(0,r.jsx)("a",{onClick:()=>n&&n(!t),className:`text-gray ${"admin"===s?"hover:text-gf-green":"hover:text-[var(--group-accent)]"} cursor-pointer`,style:{marginTop:"2px"},"data-sentry-component":"ExpandArrow","data-sentry-source-file":"ExpandArrow.tsx",children:(0,r.jsx)(i.A,{className:"fill-current",style:{width:"20px",height:"20px",transform:`rotate(${90*!!t}deg)`},"data-sentry-element":"ArrowIcon","data-sentry-source-file":"ExpandArrow.tsx"})})}},11303:(e,t,n)=>{"use strict";n.d(t,{S:()=>o,a:()=>s});var r=n(14232);let i=(0,r.createContext)(!1);function o(){return(0,r.useContext)(i)}function s(e){return r.createElement(i.Provider,{value:e.force},e.children)}},11491:(e,t,n)=>{var r=n(92441),i=n(28375),o=n(63700),s=n(78583),a=n(24015),l=n(93007),u=n(4756),c=n(82731),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,y){var v=l(e),b=l(t),x=v?h:a(e),_=b?h:a(t);x=x==d?p:x,_=_==d?p:_;var w=x==p,k=_==p,C=x==_;if(C&&u(e)){if(!u(t))return!1;v=!0,w=!1}if(C&&!w)return y||(y=new r),v||c(e)?i(e,t,n,m,g,y):o(e,t,x,n,m,g,y);if(!(1&n)){var E=w&&f.call(e,"__wrapped__"),A=k&&f.call(t,"__wrapped__");
1546if(E||A){var S=E?e.value():e,T=A?t.value():t;return y||(y=new r),g(S,T,n,m,y)}}return!!C&&(y||(y=new r),s(e,t,n,m,g,y))}},11562:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(14232),i=n(62307),o=n(47737);function s(e,{container:t,accept:n,walk:s}){let a=(0,r.useRef)(n),l=(0,r.useRef)(s);(0,r.useEffect)(()=>{a.current=n,l.current=s},[n,s]),(0,o.s)(()=>{if(!t||!e)return;let n=(0,i.T)(t);if(!n)return;let r=a.current,o=l.current,s=Object.assign(e=>r(e),{acceptNode:r}),u=n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;u.nextNode();)o(u.currentNode)},[t,e,a,l])}},11663:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n="boolean"==typeof RegExp().sticky;function r(e){return e&&"[object RegExp]"===t.call(e)}function i(e){return e&&"object"==typeof e&&!r(e)&&!Array.isArray(e)}function o(e){return e.length?"(?:"+e.map(function(e){return"(?:"+e+")"}).join("|")+")":"(?!)"}function s(e){if("string"==typeof e)return"(?:"+e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")";if(r(e)){if(e.ignoreCase)throw Error("RegExp /i flag not allowed");if(e.global)throw Error("RegExp /g flag is implied");if(e.sticky)throw Error("RegExp /y flag is implied");if(e.multiline)throw Error("RegExp /m flag is implied");return e.source}throw Error("Not a pattern: "+e)}function a(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function l(t,n){if(i(n)||(n={match:n}),n.include)throw Error("Matching rules cannot also include states");var o={defaultType:t,lineBreaks:!!n.error||!!n.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var s in n)e.call(n,s)&&(o[s]=n[s]);if("string"==typeof o.type&&t!==o.type)throw Error("Type transform cannot be a string (type '"+o.type+"' for token '"+t+"')");var a=o.match;return o.match=Array.isArray(a)?a:a?[a]:[],o.match.sort(function(e,t){return r(e)&&r(t)?0:r(t)?-1:r(e)?1:t.length-e.length}),o}function u(e){return Array.isArray(e)?function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(r.include){for(var i=[].concat(r.include),o=0;o<i.length;o++)t.push({include:i[o]});continue}if(!r.type)throw Error("Rule has no type: "+JSON.stringify(r));t.push(l(r.type,r))}return t}(e):function(e){for(var t=Object.getOwnPropertyNames(e),n=[],r=0;r<t.length;r++){var o=t[r],s=[].concat(e[o]);if("include"===o){for(var a=0;a<s.length;a++)n.push({include:s[a]});continue}var u=[];s.forEach(function(e){i(e)?(u.length&&n.push(l(o,u)),n.push(l(o,e)),u=[]):u.push(e)}),u.length&&n.push(l(o,u))}return n}(e)}var c=l("error",{lineBreaks:!0,shouldThrow:!0});function d(e,t){for(var i=null,a=Object.create(null),l=!0,u=null,d=[],h=[],p=0;p<e.length;p++)e[p].fallback&&(l=!1);for(var p=0;p<e.length;p++){var f=e[p];if(f.include)throw Error("Inheritance is not allowed in stateless lexers");if(f.error||f.fallback){if(i)if(!f.fallback==!i.fallback)throw Error("Multiple "+(f.fallback?"fallback":"error")+" rules not allowed (for token '"+f.defaultType+"')");else throw Error("fallback and error are mutually exclusive (for token '"+f.defaultType+"')");i=f}var m=f.match.slice();if(l)for(;m.length&&"string"==typeof m[0]&&1===m[0].length;)a[m.shift().charCodeAt(0)]=f;if(f.pop||f.push||f.next){if(!t)throw Error("State-switching options are not allowed in stateless lexers (for token '"+f.defaultType+"')");if(f.fallback)throw Error("State-switching options are not allowed on fallback tokens (for token '"+f.defaultType+"')")}if(0!==m.length){l=!1,d.push(f);for(var g=0;g<m.length;g++){var y=m[g];if(r(y)){if(null===u)u=y.unicode;else if(u!==y.unicode&&!1===f.fallback)throw Error("If one rule is /u then all must be")}}var v=o(m.map(s)),b=new RegExp(v);if(b.test(""))throw Error("RegExp matches empty string: "+b);if(RegExp("|"+v).exec("").length-1>0)throw Error("RegExp has capture groups: "+b+"\nUse (?: ⦠) instead");if(!f.lineBreaks&&b.test("\n"))throw Error("Rule should declare lineBreaks: "+b);h.push("("+v+")")}}var x=i&&i.fallback,_=n&&!x?"ym":"gm";return!0===u&&(_+="u"),{regexp:new RegExp(o(h)+(n||x?"":"|"),_),groups:d,fast:a,error:i||c}}function h(e,t,n){var r=e&&(e.push||e.next);
1546if(r&&!n[r])throw Error("Missing state '"+r+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var p=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};p.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedText=t?t.queuedText:"",this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},p.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},p.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},p.prototype.popState=function(){this.setState(this.stack.pop())},p.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var f=n?function(e,t){return e.exec(t)}:function(e,t){var n=e.exec(t);return 0===n[0].length?null:n};function m(){return this.value}if(p.prototype._getGroup=function(e){for(var t=this.groups.length,n=0;n<t;n++)if(void 0!==e[n+1])return this.groups[n];throw Error("Cannot find token type for matched text")},p.prototype.next=function(){var e=this.index;if(this.queuedGroup){var t=this._token(this.queuedGroup,this.queuedText,e);return this.queuedGroup=null,this.queuedText="",t}var n=this.buffer;if(e!==n.length){var r=this.fast[n.charCodeAt(e)];if(r)return this._token(r,n.charAt(e),e);var i=this.re;i.lastIndex=e;var o=f(i,n),s=this.error;if(null==o)return this._token(s,n.slice(e,n.length),e);var r=this._getGroup(o),a=o[0];return s.fallback&&o.index!==e?(this.queuedGroup=r,this.queuedText=a,this._token(s,n.slice(e,o.index),e)):this._token(r,a,e)}},p.prototype._token=function(e,t,n){var r=0;if(e.lineBreaks){var i=/\n/g,o=1;if("\n"===t)r=1;else for(;i.exec(t);)r++,o=i.lastIndex}var s={type:"function"==typeof e.type&&e.type(t)||e.defaultType,value:"function"==typeof e.value?e.value(t):t,text:t,toString:m,offset:n,lineBreaks:r,line:this.line,col:this.col},a=t.length;if(this.index+=a,this.line+=r,0!==r?this.col=a-o+1:this.col+=a,e.shouldThrow)throw Error(this.formatError(s,"invalid syntax"));return e.pop?this.popState():e.push?this.pushState(e.push):e.next&&this.setState(e.next),s},"undefined"!=typeof Symbol&&Symbol.iterator){var g=function(e){this.lexer=e};g.prototype.next=function(){var e=this.lexer.next();return{value:e,done:!e}},g.prototype[Symbol.iterator]=function(){return this},p.prototype[Symbol.iterator]=function(){return new g(this)}}return p.prototype.formatError=function(e,t){if(null==e)var n=this.buffer.slice(this.index),e={text:n,offset:this.index,lineBreaks:+(-1!==n.indexOf("\n")),line:this.line,col:this.col};var r=Math.max(e.line-2,1),i=String(e.line+2).length,o=(function(e,t){for(var n=e.length,r=0;;){var i=e.lastIndexOf("\n",n-1);if(-1===i)break;if(r++,n=i,r===t||0===n)break}var o=r<t?0:n+1;return e.substring(o).split("\n")})(this.buffer,this.line-e.line+2+1).slice(0,5),s=[];s.push(t+" at line "+e.line+" col "+e.col+":"),s.push("");for(var l=0;l<o.length;l++){var u=o[l],c=r+l;s.push(a(String(c),i)+" "+u),c===e.line&&s.push(a("",i+e.col+1)+"^")}return s.join("\n")},p.prototype.clone=function(){return new p(this.states,this.state)},p.prototype.has=function(e){return!0},{compile:function(e){return new p({start:d(u(e))},"start")},states:function(e,t){var n=e.$all?u(e.$all):[];delete e.$all;var r=Object.getOwnPropertyNames(e);t||(t=r[0]);for(var i=Object.create(null),o=0;o<r.length;o++){var s=r[o];i[s]=u(e[s]).concat(n)}for(var o=0;o<r.length;o++)for(var s=r[o],a=i[s],l=Object.create(null),c=0;c<a.length;c++){var f=a[c];if(f.include){var m=[c,1];if(f.include!==s&&!l[f.include]){l[f.include]=!0;var g=i[f.include];if(!g)throw Error("Cannot include nonexistent state '"+f.include+"' (in state '"+s+"')");for(var y=0;y<g.length;y++){var v=g[y];-1===a.indexOf(v)&&m.push(v)}}
1546a.splice.apply(a,m),c--}}for(var b=Object.create(null),o=0;o<r.length;o++){var s=r[o];b[s]=d(i[s],!0)}for(var o=0;o<r.length;o++){for(var x=r[o],_=b[x],w=_.groups,c=0;c<w.length;c++)h(w[c],x,b);for(var k=Object.getOwnPropertyNames(_.fast),c=0;c<k.length;c++)h(_.fast[k[c]],x,b)}return new p(b,t)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(e){for(var t="undefined"!=typeof Map,n=t?new Map:Object.create(null),r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i],s=e[o];(Array.isArray(s)?s:[s]).forEach(function(e){if("string"!=typeof e)throw Error("keyword must be string (in keyword '"+o+"')");t?n.set(e,o):n[e]=o})}return function(e){return t?n.get(e):n[e]}}}})?n.apply(t,[]):n)||(e.exports=r)},11888:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(37876),i=n(72569),o=n(49995),s=n(10969),a=n(14232),l=n(42383);function u(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 5 50 40",className:t,style:n,title:"Placeholder or generic image",...{},"data-sentry-element":"svg","data-sentry-component":"GenericImageIcon","data-sentry-source-file":"GenericImageIcon.tsx",children:(0,r.jsx)("path",{d:"M 0 5 L 0 45 L 50 45 L 50 5 Z M 2 7 L 48 7 L 48 33 L 37.320313 33 L 30.320313 28 L 24.414063 28 L 20.328125 23.914063 L 15.460938 24.890625 L 11.15625 18.429688 L 2 27.585938 Z M 37.5 13 C 35.027344 13 33 15.027344 33 17.5 C 33 19.972656 35.027344 22 37.5 22 C 39.972656 22 42 19.972656 42 17.5 C 42 15.027344 39.972656 13 37.5 13 Z M 37.5 15 C 38.890625 15 40 16.109375 40 17.5 C 40 18.890625 38.890625 20 37.5 20 C 36.109375 20 35 18.890625 35 17.5 C 35 16.109375 36.109375 15 37.5 15 Z M 10.84375 21.570313 L 14.539063 27.109375 L 19.671875 26.085938 L 23.585938 30 L 29.679688 30 L 36.679688 35 L 48 35 L 48 43 L 2 43 L 2 30.414063 Z","data-sentry-element":"path","data-sentry-source-file":"GenericImageIcon.tsx"})})}var c=n(54587),d=n.n(c),h=n(22767),p=n(1815),f=n(20437),m=n(70274),g=n(5811),y=n(82037),v=n(88129),b=n(94829);let x=a.createRef(),_=(0,g.PA)(function(e){let t=(0,s.CI)((0,i.Eh)()),{altRegister:n,captionRegister:c,photoIdRegister:g,photoValues:_}=e,w=_?.label||_?.content,k=_?.url,C=(0,a.useRef)(null),E=(0,f.q)(),[A,S]=(0,a.useState)(null);async function T(e){return await j(e),!0}async function j(t){let n=await E.wrapCall(e=>(0,p.cp)(e,t));if(!n.error){let{id:t,url:r}=n.data;e.onPhotoUploaded&&e.onPhotoUploaded({photoId:t,url:r})}}let N={maxWidth:"200px",maxHeight:"200px",position:"relative"};return(0,r.jsxs)("div",{className:"flex justify-between gap-4","data-sentry-component":"PhotoUploadField","data-sentry-source-file":"PhotoUploadField.tsx",children:[(0,r.jsxs)("div",{style:{maxWidth:N.maxWidth,minWidth:"200px"},className:"flex flex-col gap-2",children:[k?(0,r.jsx)("div",{className:"bg-white",style:{background:"url(https://mp1md-pub.s3.amazonaws.com/groupflow/checker-20.png)",backgroundRepeat:"repeat"},children:(0,r.jsx)(d(),{ref:C,alt:w||"Uploaded photo",src:k,style:N,className:"object-contain",width:200,height:200,sizes:"200px"})}):(0,r.jsx)(u,{className:(0,o.A)("fill-current",t.cardMutedTextColor)}),(0,r.jsx)(y.tA,{onClick:function(){e.onRemovePhoto&&e.onRemovePhoto()},leftIcon:(0,r.jsx)(v.A,{className:"w-5 h-5"}),normalTextColorClass:"text-red-danger hover:text-red-dark","data-sentry-element":"SecondaryButton","data-sentry-source-file":"PhotoUploadField.tsx",children:"Remove Photo"})]}),(0,r.jsxs)("div",{className:"flex-grow flex flex-col gap-2 justify-between",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{children:[E.processing?(0,r.jsxs)("div",{children:["Uploading",(0,r.jsx)(h.A,{className:"mt-2"})]}):(0,r.jsx)("div",{className:"flex gap-4",children:(0,r.jsxs)(y.tA,{onClick:function(){x.current&&x.current.click()},children:["Select ",k?"a new":"a"," photo..."]})}),(0,r.jsx)(l.zp,{onChange:T,className:"hidden",name:"photoFile",inputRef:x,onError:e=>S(e),"data-sentry-element":"FileInput","data-sentry-source-file":"PhotoUploadField.tsx"}),(0,r.jsx)("input",{type:"hidden",...g||{}})]}),A&&(0,r.jsx)(b.A,{type:"warning",onClose:()=>S(null),children:A}),(0,r.jsx)(m.A,{error:E.errorResponse,"data-sentry-element":"ApiErrors","data-sentry-source-file":"PhotoUploadField.tsx"})]}),n&&(0,r.jsxs)("div",{children:[(0,r.jsx)(l.Dk,{htmlFor:"photo-alt-text",children:"Alt text"}),(0,r.jsx)(l.ks,{id:"photo-alt-text",...n})]}),c&&(0,r.jsxs)("div",{children:[(0,r.jsx)(l.Dk,{htmlFor:"photo-caption",children:"Photo caption"}),(0,r.jsx)(l.ks,{id:"photo-caption",...c})]})]})]})})}
1546,12089:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 01-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 011.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 00-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 01-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5a3.375 3.375 0 00-3.375-3.375H9.75"}))})},12853:(e,t,n)=>{"use strict";n.d(t,{v:()=>c});var r=n(31787),i=n(62307),o=n(45933),s=n(47737);let a=new Map,l=new Map;function u(e){var t;let n=null!=(t=l.get(e))?t:0;return l.set(e,n+1),0!==n||(a.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>(function(e){var t;let n=null!=(t=l.get(e))?t:1;if(1===n?l.delete(e):l.set(e,n-1),1!==n)return;let r=a.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,a.delete(e))})(e)}function c(e,{allowed:t,disallowed:n}={}){let a=(0,o.S)(e,"inert-others");(0,s.s)(()=>{var e,o;if(!a)return;let s=(0,r.e)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&s.add(u(t));let l=null!=(o=null==t?void 0:t())?o:[];for(let e of l){if(!e)continue;let t=(0,i.T)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)l.some(t=>e.contains(t))||s.add(u(e));n=n.parentElement}}return s.dispose},[a,t,n])}},13055:(e,t,n)=>{"use strict";n.d(t,{Eq:()=>l,HF:()=>a,OW:()=>o,RG:()=>r,ST:()=>i,vG:()=>s});var r=function(e){return e.RASTER="raster",e.VECTOR="vector",e.PDF="pdf",e.FAVICON="favicon",e.VIDEO="video",e}({});let i=["image/jpeg","image/png","image/gif","image/webp","image/heif","image/heic","image/avif"],o=["image/svg+xml"],s=["application/pdf"],a=["image/x-icon","image/vnd.microsoft.icon"],l=["video/mp4","video/mpeg"]},13220:(e,t,n)=>{"use strict";n.d(t,{bH:()=>x,QU:()=>S,Kk:()=>N,WD:()=>g,h:()=>f,IB:()=>A,Jc:()=>C,LV:()=>E,sj:()=>k,yF:()=>b,IG:()=>w,lF:()=>d.l,HK:()=>y,Vw:()=>O,XG:()=>d.X,LX:()=>T,Y8:()=>v,wS:()=>_,Hh:()=>j,KE:()=>m});var r=n(14232),i=n(89099),o=n(38537),s=n(94674),a=n(35885),l=n(39114),u=n(23060),c=n(32290),d=n(58873),h=n(81692),p=n(32762);function f(e){let{onChannelReady:t}=e||{},n=(0,o.G6)(),i=(0,r.useRef)(n);i.current=n;let s=(0,r.useRef)(null),a=(0,r.useRef)(null);return a.current=t??null,{openCartChannel:async function(e,t){if(!e)return void console.warn("No cart ID provided");if(s.current)return s.current;if(!i.current)return void console.warn("No WebSocket store provided");let n=i.current.getWebSocket();if(!n)return void console.warn("No WebSocket connection");let r=`cart:${e}`,o=n.channel(r,{}),l=await (0,h.Cg)(o);if(!l.ok)return void console.error(`Failed to join WebSocket channel: ${r}`,l.error);if((0,p.$c)(l.value))t?.orderCreated?.(l.value);else{let e=(0,p.f9)(l.value);e&&t?.orderFailed?.(e)}return o.on("cart.order.created",e=>{t?.orderCreated?.(e)}),o.on("cart.order.failed",e=>{t?.orderFailed?.(e)}),s.current=o,a.current?.(o),o}}}function m(){let e=v();return(0,s.aU)(e)}function g(){let e=v();return(0,s.tC)(e)}function y(e){let t=v(),n=(0,s.tC)(t);return e.match(/^https?:/)?e:e.replace("{backendBaseUrl}",n)}function v(){let{uri:e}=(0,a.U)();if(!e)throw Error("uri is not set");return e}function b(e){let t=C();return g()+`/browser/oauth-redirect?group=${t.slug}&referrer=${encodeURIComponent(e)}`}function x(){let{jwtStore:e}=(0,a.U)();return e?.validJwt||null}function _(){let e=w();return e?.id||null}function w(){return(0,o.kH)().user||null}function k(){let{integrations:e}=C(),t=e.find(e=>"meetup"===e.name);if(t)return t.config}function C(){let{groupConfig:e}=(0,a.U)();if(!e)throw Error("groupConfig not set");return e}function E(){return(0,r.useContext)(c.M)}function A(){return C().tagGroups.filter(e=>"EVENT"===e.purpose)}function S(e){let t=(0,a.U)(),{sessionId:n}=t;if(!(e=e||t.groupSlug))throw Error("useApiCallParams() groupSlug is not set");let r=x();return{baseUrl:function(){let e=v();return(0,s.hY)(e)}(),groupSlug:e,jwt:r,sessionId:n}}function T(e){let{redirect:t}=e||{},n=(0,i.useRouter)(),{jwtStore:o}=(0,a.U)(),s=o?.memberJwt;return(0,r.useEffect)(()=>{!1===t||s||n.push(`/login?ret=${encodeURIComponent(n.asPath)}`)},[]),s}function j(e){let t,{jwtStore:n}=(0,a.U)(),s=n?.memberJwt,u=(0,o.kH)(),c=u.user,d=!!c&&(0,l.hN)(c,e),h=(0,i.useRouter)();s?!c&&u.loading?t="loading":d||(t="unauthorized"):t="unauthenticated";let[p,f]=(0,r.useState)({valid:!t,type:t??null});return(0,r.useEffect)(()=>{"unauthenticated"===t&&h.push(`/login?ret=${encodeURIComponent(h.asPath)}`),f({valid:!t,type:t??null})},[t,u.loading]),p}function N(e,t,n){n=[t.valid,...n||[]],(0,r.useEffect)(()=>{t.valid&&e()},n)}function O(){let e=C(),t=(0,u.M7)(e),n="themed",r=1;if(t)n="web-components",r=2;else throw Error(`Engine type not detected for groupSlug=${e.slug}`);return{type:n,version:r}}},13310:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{width:"299",height:"299",viewBox:"0 0 299 299",fill:"
1546currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,style:n,...{},"data-sentry-element":"svg","data-sentry-component":"PlusIcon","data-sentry-source-file":"PlusIcon.tsx",children:(0,r.jsx)("path",{d:"M159.222 138.929V13H140.704V138.929H12V157.313H140.704V286H159.222V157.313H287V138.929H159.222Z","data-sentry-element":"path","data-sentry-source-file":"PlusIcon.tsx"})})}},13352:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(37876),i=n(49995);function o(e){let{children:t,className:n,size:o,style:s}=e,a=e.bgColorClass||"bg-new-red-500",l="min-w-[16px]",u="px-1",c="",d="text-2xs";return"md"===o&&(l="min-w-[26px]",u="px-1",c="py-[2px]",d="text-sm"),(0,r.jsx)("div",{className:(0,i.A)("inline-block",l,"rounded-full",u,c,a,d,"text-white","text-center","font-montserrat tracking-[0px]",n),style:s||{},"data-sentry-component":"CountBadge","data-sentry-source-file":"CountBadge.tsx",children:t})}},13566:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(14232);function i(e){let[t]=(0,r.useState)(e);return t}},13572:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(49995),o=n(80903);function s({members:e,photoSize:t=24,className:n="inline-block rounded-full ring-2 ring-white",containerClassName:s="flex overflow-hidden",maxDisplay:a,memberCount:l,showCount:u=!1,countLabel:c,spacing:d=-16}){let h=l??e.length,p=a?e.slice(0,a):e,f=a?Math.max(0,e.length-a):0,m=t?`h-${t/4} w-${t/4}`:"";return(0,r.jsxs)("div",{className:"flex items-center","data-sentry-component":"MemberPhotoStack","data-sentry-source-file":"MemberPhotoStack.tsx",children:[(0,r.jsx)("div",{className:s,style:{marginRight:-1*d},children:p.map((s,a)=>(0,r.jsx)(o.L7,{name:s.name,photoUrl:s.photoUrl,photoSize:t,className:(0,i.A)(n,m,a>1&&"hidden md:block"),style:{zIndex:e.length-a,marginLeft:a>0?`${d}px`:"0"}},s.id))}),u&&h>0&&(0,r.jsxs)("span",{className:"text-xs text-gray-500 ml-2",children:[h," ",c||(1===h?"participant":"participants"),f>0&&` (+${f} more)`]})]})}},13674:(e,t,n)=>{var r=n(17099);e.exports=function(){this.__data__=new r,this.size=0}},14111:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var r=n(14232);let i=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let s=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),s=!0;let a=s?null!=(n=o.innerText)?n:"":r;return i.test(a)&&(a=a.replace(i,"")),a}var s=n(64671);function a(e){let t=(0,r.useRef)(""),n=(0,r.useRef)("");return(0,s._)(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let s=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():o(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return o(e).trim()})(r).trim().toLowerCase();return t.current=i,n.current=s,s})}},14216:e=>{e.exports=function(){this.__data__=[],this.size=0}},14270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)i(e,n[t]);var o=document.body;for(var s in r)i(o,r[s]);n={},r={}},t.log=function(){};var n={},r={};function i(e,t){e.classList.remove(t)}var o=function(e,t,n){n.forEach(function(n){t[n]||(t[n]=0),t[n]+=1,e.add(n)})},s=function(e,t,n){n.forEach(function(n){t[n]&&(t[n]-=1),0===t[n]&&e.remove(n)})};t.add=function(e,t){return o(e.classList,"html"==e.nodeName.toLowerCase()?n:r,t.split(" "))},t.remove=function(e,t){return s(e.classList,"html"==e.nodeName.toLowerCase()?n:r,t.split(" "))}},14330:(e,t,n)=>{"use strict";n.d(t,{A:()=>p,Ku:()=>s,Nk:()=>r,ej:()=>h,nv:()=>f});let r="x-app-version",i="/gql",o=["GET","HEAD"];var s=function(e){return e.Background="background",e.Navigation="navigation",e.UserSubmit="user_submit",e}({});function a(e){return e.split("?")[0]}function l(e){return Array.isArray(e?.errors)&&e.errors.length>0}async function u(e,t){if(!e.ok)return!0;
1546if(!a(t).endsWith(i))return!1;try{var n=await e.clone().json();let t=n?.data&&"object"==typeof n.data?Object.values(n.data):[];return l(n)||t.some(l)}catch{return!1}}let c=null,d=null;function h(e){d=e}function p(e,t,n=!1){if(!e)return;if(!c){c=e;return}let r=function(e){let{baseline:t,version:n,requestKind:r,submitFailed:i}=e;return t&&n&&n!==t?"navigation"===r?"reload":"user_submit"===r&&i?"warn":"none":"none"}({baseline:c,version:e,requestKind:t,submitFailed:n});"reload"===r?window.location.reload():"warn"===r&&d&&d()}async function f(e,t,n){let s=e?.headers?.get(r)??null,l=function(e,t){let n=(t?.method||"GET").toUpperCase(),r=a(e);if(o.includes(n)||r.endsWith("/interactions"))return"background";if(r.endsWith(i)){let e=function(e){if("string"!=typeof e)return null;try{let t=JSON.parse(e);return"string"==typeof t?.query?t.query:null}catch{return null}}(t?.body);if(null!==e&&!/^\s*mutation\b/m.test(e))return"background"}return"user_submit"}(t,n),d=!!e&&"user_submit"===l&&!!c&&!!s&&s!==c&&await u(e,t);p(s,l,d)}},14668:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(37876),i=n(49995),o=n(21684),s=n(48230),a=n.n(s),l=n(72569),u=n(23955),c=n(63853);function d(e){let t,{borderRoundnessClass:n="rounded-[var(--group-button-radius)]",className:s,children:d,colorStyle:h,disabled:p,flexClass:f="inline-flex",leftIcon:m,href:g,loading:y,onClick:v,savingLabel:b,textWeightClass:x="font-semibold",type:_="button","data-testid":w,size:k="medium"}=e,C=(0,l.jz)(e.themeArea),E=(0,c.YQ)(v||(()=>void 0),1e3,{leading:!0});if(C===u.L.ADMIN){var A;let e={type:_,disabled:!!y||p,className:(0,i.A)("small"===(A=k)?"h-7":"large"===A?"h-12":"h-9",f,"justify-center items-center gap-2 rounded-full border shadow-sm px-5 transition whitespace-nowrap",function(e){switch(e){case"primary":return"border-new-gray-400 hover:border-new-green-800 disabled:border-new-gray-400 bg-white text-primary-600 hover:text-primary-400";case"primary2":return"border-new-gray-400 hover:border-new-green-800 disabled:border-new-gray-400 bg-gf-green-ultralight text-primary-450 hover:text-primary-700";case"members-primary2":return"border-new-gray-400 hover:border-secondary-800 disabled:border-new-gray-400 bg-secondary-50 text-secondary-400 hover:text-secondary-700";case"warning":return"border-new-gray-400 hover:border-new-gray-700 disabled:border-new-gray-400 text-new-red-700 hover:text-new-red-500";default:return"border-new-gray-200 hover:border-black disabled:border-new-gray-300/50 bg-white text-secondary-950 hover:text-black"}}(h),s),onClick:E,"data-testid":w},t=(0,r.jsxs)(r.Fragment,{children:[y?(0,r.jsx)(o.A,{className:"h-5 w-5 mr-2"}):null,y?b||"Loadingâ¦":d]});return g?(0,r.jsx)(a(),{href:g,...e,children:t}):(0,r.jsx)("button",{...e,children:t})}y&&(p=!0);let S=e.normalTextColorClass||"text-secondary-800 hover:text-black",T="py-2.5 px-4.5";"small"===k&&(T="py-1.5 px-3"),s=(0,i.A)("SecondaryButton inline-flex flex-row gap-2 items-center justify-center",s,"transition",x,"border",T,"bg-white",{[S]:!p,"text-secondary-400 cursor-not-allowed":p,"border-secondary-200 hover:border-secondary-300":!p,"border-secondary-200":p},n),y&&(p=!0,m=(0,r.jsx)(o.A,{className:"h-5 w-5 mr-2"})),y?(p=!0,t=b||"Loadingâ¦"):t=d||"Dismiss";let j=(0,r.jsxs)(r.Fragment,{children:[m,t]});return g&&!p?(0,r.jsx)(a(),{href:g,className:s,role:"button","data-testid":w,children:j}):(0,r.jsx)("button",{className:s,onClick:E,type:_,disabled:p,"data-testid":w,"data-sentry-component":"SecondaryButton","data-sentry-source-file":"SecondaryButton.tsx",children:j})}},14692:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var r=n(42404),i=n(23264);t.getFeed=function(e){var t,n,r,o,s,h,p,f,m,g,y,v=l(d,e);return v?"feed"===v.name?(n=v.children,r={type:"atom",items:(0,i.getElementsByTagName)("entry",n).map(function(e){var t,n=e.children,r={media:a(n)};c(r,"id","id",n),c(r,"title","title",n);var i=null==(t=l("link",n))?void 0:t.attribs.href;i&&(r.link=i);var o=u("summary",n)||u("content",n);o&&(r.description=o);var s=u("updated",n);return s&&(r.pubDate=new Date(s)),r})}
1546,c(r,"id","id",n),c(r,"title","title",n),(o=null==(t=l("link",n))?void 0:t.attribs.href)&&(r.link=o),c(r,"description","subtitle",n),(s=u("updated",n))&&(r.updated=new Date(s)),c(r,"author","email",n,!0),r):(m=null!=(f=null==(p=l("channel",(h=v).children))?void 0:p.children)?f:[],g={type:h.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",h.children).map(function(e){var t=e.children,n={media:a(t)};c(n,"id","guid",t),c(n,"title","title",t),c(n,"link","link",t),c(n,"description","description",t);var r=u("pubDate",t);return r&&(n.pubDate=new Date(r)),n})},c(g,"title","title",m),c(g,"link","link",m),c(g,"description","description",m),(y=u("lastBuildDate",m))&&(g.updated=new Date(y)),c(g,"author","managingEditor",m,!0),g):null};var o=["url","type","lang"],s=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function a(e){return(0,i.getElementsByTagName)("media:content",e).map(function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0;r<o.length;r++){var i=o[r];t[i]&&(n[i]=t[i])}for(var a=0;a<s.length;a++){var i=s[a];t[i]&&(n[i]=parseInt(t[i],10))}return t.expression&&(n.expression=t.expression),n})}function l(e,t){return(0,i.getElementsByTagName)(e,t,!0,1)[0]}function u(e,t,n){return void 0===n&&(n=!1),(0,r.textContent)((0,i.getElementsByTagName)(e,t,n,1)).trim()}function c(e,t,n,r,i){void 0===i&&(i=!1);var o=u(n,r,i);o&&(e[t]=o)}function d(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},14700:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:"50px",height:"50px",className:t,style:n,title:"Org chart icon",...{},"data-sentry-element":"svg","data-sentry-component":"OrgChartIcon","data-sentry-source-file":"OrgChartIcon.tsx",children:(0,r.jsx)("path",{d:"M 6 2 A 1.0001 1.0001 0 0 0 5 3 L 5 13 A 1.0001 1.0001 0 0 0 6 14 L 13 14 L 13 24.832031 A 1.0001 1.0001 0 0 0 13 25.158203 L 13 42 A 1.0001 1.0001 0 0 0 14 43 L 27 43 L 27 47 A 1.0001 1.0001 0 0 0 28 48 L 44 48 A 1.0001 1.0001 0 0 0 45 47 L 45 37 A 1.0001 1.0001 0 0 0 44 36 L 28 36 A 1.0001 1.0001 0 0 0 27 37 L 27 41 L 15 41 L 15 26 L 27 26 L 27 30 A 1.0001 1.0001 0 0 0 28 31 L 44 31 A 1.0001 1.0001 0 0 0 45 30 L 45 20 A 1.0001 1.0001 0 0 0 44 19 L 28 19 A 1.0001 1.0001 0 0 0 27 20 L 27 24 L 15 24 L 15 14 L 22 14 A 1.0001 1.0001 0 0 0 23 13 L 23 3 A 1.0001 1.0001 0 0 0 22 2 L 6 2 z M 7 4 L 21 4 L 21 12 L 14.154297 12 A 1.0001 1.0001 0 0 0 13.984375 11.986328 A 1.0001 1.0001 0 0 0 13.839844 12 L 7 12 L 7 4 z M 29 21 L 43 21 L 43 29 L 29 29 L 29 25.167969 A 1.0001 1.0001 0 0 0 29 24.841797 L 29 21 z M 29 38 L 43 38 L 43 46 L 29 46 L 29 42.167969 A 1.0001 1.0001 0 0 0 29 41.841797 L 29 38 z","data-sentry-element":"path","data-sentry-source-file":"OrgChartIcon.tsx"})})}},14741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return x}});let r=n(72687),i=n(63732),o=n(37876),s=i._(n(14232)),a=r._(n(98477)),l=r._(n(88022)),u=n(61925),c=n(50946),d=n(85526);n(88912);let h=n(75067),p=r._(n(52795)),f=n(33872),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,n,r,i,o,s){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function y(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,s.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:l,decoding:u,className:c,style:d,fetchPriority:h,placeholder:p,loading:m,unoptimized:v,fill:b,onLoadRef:x,onLoadingCompleteRef:_,setBlurComplete:w,setShowAltText:k,sizesInput:C,onLoad:E,onError:A,...S}=e,T=(0,s.useCallback)(e=>{e&&(A&&(e.src=e.src),e.complete&&g(e,p,x,_,w,v,C))},[n,p,x,_,w,A,v,C]),j=(0,f.useMergedRef)(t,T);return(0,o.jsx)("img",{...S,...y(h),loading:m,width:l,height:a,decoding:u,"data-nimg":b?"fill":"1",className:c,style:d,sizes:i,srcSet:r,src:n,ref:j,onLoad:e=>{g(e.currentTarget,p,x,_,w,v,C)},onError:e=>{k(!0),"empty"!==p&&w(!0),A&&A(e)}})});function b(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...y(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let x=(0,s.forwardRef)((e,t)=>{let n=(0,s.useContext)(h.RouterContext),r=(0,s.useContext)(d.ImageConfigContext),i=(0,s.useMemo)(()=>{var e;let t=m||r||c.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>
1546e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:n,deviceSizes:i,qualities:o}},[r]),{onLoad:a,onLoadingComplete:l}=e,f=(0,s.useRef)(a);(0,s.useEffect)(()=>{f.current=a},[a]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[y,x]=(0,s.useState)(!1),[_,w]=(0,s.useState)(!1),{props:k,meta:C}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:y,showAltText:_});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...k,unoptimized:C.unoptimized,placeholder:C.placeholder,fill:C.fill,onLoadRef:f,onLoadingCompleteRef:g,setBlurComplete:x,setShowAltText:w,sizesInput:e.sizes,ref:t}),C.priority?(0,o.jsx)(b,{isAppRouter:!n,imgAttributes:k}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14766:(e,t,n)=>{"use strict";n.d(t,{Dr:()=>Q,IU:()=>K,W1:()=>Y,c:()=>J});var r=n(56788),i=n(36607),o=n(14232),s=n(98477),a=n(26437),l=n(66535),u=n(83660),c=n(1495),d=n(64671),h=n(12853),p=n(47737),f=n(83988),m=n(6869),g=n(44884),y=n(22529),v=n(96815),b=n(29203),x=n(14111),_=n(66409),w=n(6186),k=n(11562),C=n(73302),E=n(39103),A=n(64599),S=n(48160),T=n(31787),j=n(7784),N=n(99289),O=n(41612),I=n(96946),D=n(33890),M=n(22522),L=n(98496),R=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(R||{}),P=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(P||{}),F=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(F||{});function B(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=(0,j.wl)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return -1===i&&(i=null),{items:r,activeItemIndex:i}}let $={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n,r,i,o,s;if(1===e.menuState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===S.B.Nothing)return{...a,activeItemIndex:null};if(t.focus===S.B.Specific)return{...a,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===S.B.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,s=(0,S.X)(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==s){let t=e.items[s].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.previousElementSibling)===t.current||(null==(i=t.current)?void 0:i.previousElementSibling)===null)return{...a,activeItemIndex:s}}}}else if(t.focus===S.B.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=(0,S.X)(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(o=r.current)?void 0:o.nextElementSibling)===t.current||(null==(s=t.current)?void 0:s.nextElementSibling)===null)return{...a,activeItemIndex:i}}}}let l=B(e),u=(0,S.X)(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...l,activeItemIndex:u}},3:(e,t)=>{let n=+(""===e.searchQuery),r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled}),o=i?e.items.indexOf(i):-1;return -1===o||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=B(e,e=>[...e,{id:t.id,dataRef:t.dataRef}
1546]);return{...e,...n}},6:(e,t)=>{let n=B(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},q=(0,o.createContext)(null);function V(e){let t=(0,o.useContext)(q);if(null===t){let t=Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,V),t}return t}function z(e,t){return(0,N.Y)(t.type,$,e,t)}q.displayName="MenuContext";let U=o.Fragment,H=O.Ac.RenderStrategy|O.Ac.Static,W=o.Fragment,G=(0,O.FX)(function(e,t){let{__demoMode:n=!1,...r}=e,i=(0,o.useReducer)(z,{__demoMode:n,menuState:+!n,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:s,itemsElement:a,buttonElement:l},u]=i,c=(0,b.P)(t);(0,m.j)(0===s,[l,a],(e,t)=>{u({type:1}),(0,j.Bm)(t,j.MZ.Loose)||(e.preventDefault(),null==l||l.focus())});let h=(0,d._)(()=>{u({type:1})}),p=(0,o.useMemo)(()=>({open:0===s,close:h}),[s,h]),f=(0,O.Ci)();return o.createElement(C.St,null,o.createElement(q.Provider,{value:i},o.createElement(E.El,{value:(0,N.Y)(s,{0:E.Uw.Open,1:E.Uw.Closed})},f({ourProps:{ref:c},theirProps:r,slot:p,defaultTag:U,name:"Menu"}))))}),K=(0,O.FX)(function(e,t){var n;let l=(0,o.useId)(),{id:u=`headlessui-menu-button-${l}`,disabled:c=!1,autoFocus:h=!1,...p}=e,[f,m]=V("Menu.Button"),g=(0,C.TI)(),v=(0,b.P)(t,(0,C.Xc)(),(0,d._)(e=>m({type:7,element:e}))),x=(0,d._)(e=>{switch(e.key){case D.D.Space:case D.D.Enter:case D.D.ArrowDown:e.preventDefault(),e.stopPropagation(),(0,s.flushSync)(()=>m({type:0})),m({type:2,focus:S.B.First});break;case D.D.ArrowUp:e.preventDefault(),e.stopPropagation(),(0,s.flushSync)(()=>m({type:0})),m({type:2,focus:S.B.Last})}}),_=(0,d._)(e=>{e.key===D.D.Space&&e.preventDefault()}),w=(0,d._)(e=>{var t;if((0,A.l)(e.currentTarget))return e.preventDefault();c||(0===f.menuState?((0,s.flushSync)(()=>m({type:1})),null==(t=f.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),m({type:0})))}),{isFocusVisible:k,focusProps:E}=(0,r.o)({autoFocus:h}),{isHovered:T,hoverProps:j}=(0,i.M)({isDisabled:c}),{pressed:N,pressProps:I}=(0,a.Z)({disabled:c}),M=(0,o.useMemo)(()=>({open:0===f.menuState,active:N||0===f.menuState,disabled:c,hover:T,focus:k,autofocus:h}),[f,T,k,N,c,h]),L=(0,O.v6)(g(),{ref:v,id:u,type:(0,y.c)(e,f.buttonElement),"aria-haspopup":"menu","aria-controls":null==(n=f.itemsElement)?void 0:n.id,"aria-expanded":0===f.menuState,disabled:c||void 0,autoFocus:h,onKeyDown:x,onKeyUp:_,onClick:w},E,j,I);return(0,O.Ci)()({ourProps:L,theirProps:p,slot:M,defaultTag:"button",name:"Menu.Button"})}),J=(0,O.FX)(function(e,t){var n,r;let i=(0,o.useId)(),{id:a=`headlessui-menu-items-${i}`,anchor:p,portal:m=!1,modal:y=!0,transition:x=!1,..._}=e,A=(0,C.zn)(p),[T,N]=V("Menu.Items"),[I,M]=(0,C.UF)(A),R=(0,C.G3)(),[P,F]=(0,o.useState)(null),B=(0,b.P)(t,A?I:null,(0,d._)(e=>N({type:8,element:e})),F),$=(0,g.g)(T.itemsElement);A&&(m=!0);let q=(0,E.O_)(),[z,U]=(0,w.p)(x,P,null!==q?(q&E.Uw.Open)===E.Uw.Open:0===T.menuState);(0,f.O)(z,T.buttonElement,()=>{N({type:1})});let W=!T.__demoMode&&y&&0===T.menuState;(0,v.K)(W,$);let G=!T.__demoMode&&y&&0===T.menuState;(0,h.v)(G,{allowed:(0,o.useCallback)(()=>[T.buttonElement,T.itemsElement],[T.buttonElement,T.itemsElement])});let K=0!==T.menuState,J=!(0,l.Y)(K,T.buttonElement)&&z;(0,o.useEffect)(()=>{let e=T.itemsElement;e&&0===T.menuState&&e!==(null==$?void 0:$.activeElement)&&e.focus({preventScroll:!0})},[T.menuState,T.itemsElement,$]),(0,k.i)(0===T.menuState,{container:T.itemsElement,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let Q=(0,u.L)(),Y=(0,d._)(e=>{var t,n,r;switch(Q.dispose(),e.key){case D.D.Space:if(""!==T.searchQuery)return e.preventDefault(),e.stopPropagation(),N({type:3,value:e.key});case D.D.Enter:if(e.preventDefault(),e.stopPropagation(),N({type:1}),null!==T.activeItemIndex){let{dataRef:e}=T.items[T.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}(0,j.Fh)(T.buttonElement);break;case D.D.ArrowDown:return e.preventDefault(),e.stopPropagation(),N({type:2,focus:S.B.Next});case D.D.ArrowUp:return e.preventDefault(),e.stopPropagation(),N({type:2,focus:S.B.Previous});case D.D.Home:case D.D.PageUp:return e.preventDefault(),e.stopPropagation(),N({type:2,focus:S.B.First});case D.D.End:case D.D.PageDown:return e.preventDefault(),e.stopPropagation(),N({type:2,focus:S.B.Last});case D.D.Escape:e.preventDefault(),e.stopPropagation(),(0,s.flushSync)(()=>N({type:1})),null==(r=T.buttonElement)||r.focus({preventScroll:!0});break;case D.D.Tab:e.preventDefault(),e.stopPropagation(),(0,s.flushSync)(()=>N({type:1})),(0,j.p9)(T.buttonElement,e.shiftKey?j.BD.Previous:j.BD.Next);break;
1546default:1===e.key.length&&(N({type:3,value:e.key}),Q.setTimeout(()=>N({type:4}),350))}}),X=(0,d._)(e=>{e.key===D.D.Space&&e.preventDefault()}),Z=(0,o.useMemo)(()=>({open:0===T.menuState}),[T.menuState]),ee=(0,O.v6)(A?R():{},{"aria-activedescendant":null===T.activeItemIndex||null==(n=T.items[T.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=T.buttonElement)?void 0:r.id,id:a,onKeyDown:Y,onKeyUp:X,role:"menu",tabIndex:0===T.menuState?0:void 0,ref:B,style:{..._.style,...M,"--button-width":(0,c.L)(T.buttonElement,!0).width},...(0,w.B)(U)}),et=(0,O.Ci)();return o.createElement(L.ZL,{enabled:!!m&&(e.static||z)},et({ourProps:ee,theirProps:_,slot:Z,defaultTag:"div",features:H,visible:J,name:"Menu.Items"}))}),Q=(0,O.FX)(function(e,t){let n=(0,o.useId)(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...s}=e,[a,l]=V("Menu.Item"),u=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===r,c=(0,o.useRef)(null),h=(0,b.P)(t,c);(0,p.s)(()=>{if(!a.__demoMode&&0===a.menuState&&u&&0!==a.activationTrigger)return(0,T.e)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=c.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[a.__demoMode,c,u,a.menuState,a.activationTrigger,a.activeItemIndex]);let f=(0,x.q)(c),m=(0,o.useRef)({disabled:i,domRef:c,get textValue(){return f()}});(0,p.s)(()=>{m.current.disabled=i},[m,i]),(0,p.s)(()=>(l({type:5,id:r,dataRef:m}),()=>l({type:6,id:r})),[m,r]);let g=(0,d._)(()=>{l({type:1})}),y=(0,d._)(e=>{if(i)return e.preventDefault();l({type:1}),(0,j.Fh)(a.buttonElement)}),v=(0,d._)(()=>{if(i)return l({type:2,focus:S.B.Nothing});l({type:2,focus:S.B.Specific,id:r})}),w=(0,_.J)(),k=(0,d._)(e=>{w.update(e),!i&&(u||l({type:2,focus:S.B.Specific,id:r,trigger:0}))}),C=(0,d._)(e=>{w.wasMoved(e)&&(i||u||l({type:2,focus:S.B.Specific,id:r,trigger:0}))}),E=(0,d._)(e=>{w.wasMoved(e)&&(i||u&&l({type:2,focus:S.B.Nothing}))}),[A,N]=(0,M.b0)(),[D,L]=(0,I.rU)(),R=(0,o.useMemo)(()=>({active:u,focus:u,disabled:i,close:g}),[u,i,g]),P=(0,O.Ci)();return o.createElement(N,null,o.createElement(L,null,P({ourProps:{id:r,ref:h,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":A,"aria-describedby":D,disabled:void 0,onClick:y,onFocus:v,onPointerEnter:k,onMouseEnter:k,onPointerMove:C,onMouseMove:C,onPointerLeave:E,onMouseLeave:E},theirProps:s,slot:R,defaultTag:W,name:"Menu.Item"})))}),Y=Object.assign(G,{Button:K,Items:J,Item:Q,Section:(0,O.FX)(function(e,t){let[n,r]=(0,M.b0)(),i=(0,O.Ci)();return o.createElement(r,null,i({ourProps:{ref:t,"aria-labelledby":n,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),Heading:(0,O.FX)(function(e,t){let n=(0,o.useId)(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,s=(0,M.vd)();(0,p.s)(()=>s.register(r),[r,s.register]);let a={id:r,ref:t,role:"presentation",...s.props};return(0,O.Ci)()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})}),Separator:(0,O.FX)(function(e,t){return(0,O.Ci)()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})})})},15484:(e,t,n)=>{"use strict";n.d(t,{A:()=>f,t:()=>m});var r=n(37876),i=n(16247),o=n(13220),s=n(38537),a=n(14232),l=n(24444),u=n(78950);let c=(0,n(5811).PA)(function(e){let{user:t}=e,n=(0,s.s_)(),[i,c]=(0,a.useState)(!0),d=n?.memberJwt,h=(0,o.sj)();return!d||t&&t.email?null:(0,r.jsxs)(u.A,{isOpen:i,onClose:()=>c(!1),"data-sentry-element":"SimpleModal","data-sentry-component":"RegistrationRequired","data-sentry-source-file":"RegistrationRequired.tsx",children:[(0,r.jsx)("h1",{className:"h1",children:"You Are Not Registered"}),(0,r.jsx)("p",{className:"p",children:"Many functions of this website are disabled until your email address is registered."}),(0,r.jsx)(l.A,{jwt:d,returnToUri:h?.authEnabled?"/register-member/meetup":"/register-member/email","data-sentry-element":"VerifyEmail","data-sentry-source-file":"RegistrationRequired.tsx"}),(0,r.jsx)("p",{className:"p",children:"A confirmation email will be sent to the address you provide."})]})});var d=n(48014);function h(){return(0,r.jsxs)("div",{className:"flex flex-col gap-y-8","data-sentry-component":"LoginRequired","data-sentry-source-file":"LoginRequired.tsx",children:[(0,r.jsx)("h1",{className:"h1",children:"Login Required"}),(0,r.jsx)("p",{className:"p",children:"You must be logged in to view this page."}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(d.A,{"data-sentry-element":"LoginButton","data-sentry-source-file":"LoginRequired.tsx"})})]})}var p=n(39114);function f(e){let t=e?.userStore,n=t?.user,o=e&&m(e);return"loginRequired"===o?(0,r.jsx)(h,{}):"activeMemberRequired"===o?(0,r.jsx)(i.A,{}):"forbidden"===o?(0,r.jsx)("div",{children:"Not allowed."}):"registrationRequired"===o?(0,r.jsx)(c,{user:n}):null}function m(e){let{requirements:t}=e||{};if(!t)return"granted";let n=e?.userStore,r=n?.user,i="granted",{emailRequired:o,memberStatusRequired:s,roleRequired:a}=t;return n?.loading?i="loading":s&&!r?i="loginRequired":"ACTIVE"===s&&r?.status==="INACTIVE"?i="activeMemberRequired":"ACTIVE"===s&&r?.status&&"NON_MEMBER"===r.status||"INACTIVE"===s&&r?.status&&!["INACTIVE","ACTIVE"].includes(r.status??"")?i="forbidden":o&&r&&!r.email?i="registrationRequired":a&&!(0,p.hN)(r,a)&&(i="forbidden"),i}},15584:(e,t,n)=>{let r=n(99324),i=n(67274),o=["keyword","gray","hex"],s={};for(let e of Object.keys(i))s[[...i[e].labels].sort().join("")]=e;let a={};function l(e,t){let n,u;if(!(this instanceof l))return new l(e,t);if(t&&t in o&&(t=null),t&&!(t in i))throw Error("Unknown model: "+t);if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){let t=r.get(e);if(null===t)throw Error("Unable to parse color from string: "+e);this.model=t.model,u=i[this.model].channels,this.color=t.value.slice(0,u),this.valpha="number"==typeof t.value[u]?t.value[u]:1}else if(e.length>0){this.model=t||"rgb",u=i[this.model].channels;let n=Array.prototype.slice.call(e,0,u);this.color=d(n,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;let t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);let r=t.sort().join("");if(!(r in s))throw Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[r];let{labels:o}=i[this.model],a=[];for(n=0;n<o.length;n++)a.push(e[o[n]]);this.color=d(a)}if(a[this.model])for(n=0,u=i[this.model].channels;n<u;n++){let e=a[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}for(let e of(l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)}
1546,percentString(e){let t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:t}=i[this.model],{labels:n}=i[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){var t;return e=Math.max(e||0,0),new l([...this.color.map((t=e,function(e){return Number(e.toFixed(t))})),this.valpha],this.model)},alpha(e){return void 0!==e?new l([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:u("rgb",0,c(255)),green:u("rgb",1,c(255)),blue:u("rgb",2,c(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:u("hsl",1,c(100)),lightness:u("hsl",2,c(100)),saturationv:u("hsv",1,c(100)),value:u("hsv",2,c(100)),chroma:u("hcg",1,c(100)),gray:u("hcg",2,c(100)),white:u("hwb",1,c(100)),wblack:u("hwb",2,c(100)),cyan:u("cmyk",0,c(100)),magenta:u("cmyk",1,c(100)),yellow:u("cmyk",2,c(100)),black:u("cmyk",3,c(100)),x:u("xyz",0,c(95.047)),y:u("xyz",1,c(100)),z:u("xyz",2,c(108.833)),l:u("lab",0,c(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):i[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);let t=this.rgb().round().color,n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){let e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){let e=this.rgb().color,t=[];for(let[n,r]of e.entries()){let e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){let e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);let n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,o=2*i-1,s=n.alpha()-r.alpha(),a=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,u=1-a;return l.rgb(a*n.red()+u*r.red(),a*n.green()+u*r.green(),a*n.blue()+u*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i))){if(o.includes(e))continue;let{channels:t}=i[e];l.prototype[e]=function(...t){var n;return this.model===e?new l(this):t.length>0?new l(t,e):new l([...Array.isArray(n=i[this.model][e].raw(this.color))?n:[n],this.valpha],e)},l[e]=function(...n){let r=n[0];return"number"==typeof r&&(r=d(n,t)),new l(r,e)}}function u(e,t,n){for(let r of e=Array.isArray(e)?e:[e])(a[r]||(a[r]=[]))[t]=n;return e=e[0],function(r){let i;return void 0!==r?(n&&(r=n(r)),(i=this[e]()).color[t]=r):(i=this[e]().color[t],n&&(i=n(i))),i}}function c(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(let n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}e.exports=l},15744:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},16113:e=>{function t(e,t){return e[t]||(e[t]=[]),e[t]}function n(e,t,n,r){e[t+n]=Math.max(e[t+n]||0,e[t]+r)}e.exports={tableToString:function(e,r,i){let o=[],s=0,a=e.length,l=[0];for(let i=0;i<a;i++){let a=t(o,i),d=e[i],h=0;for(let e=0;e<d.length;e++){let s=d[e];h=function(e,t=0){for(;e[t];)t++;return t}(a,h);var u=i,c=h;for(let e=0;e<s.rowspan;e++){let n=t(o,u+e);for(let e=0;e<s.colspan;e++)n[c+e]=s}h+=s.colspan,s.lines=s.text.split("\n");let p=s.lines.length;n(l,i,s.rowspan,p+r)}s=a.length>s?a.length:s}!function(e,n){for(let r=0;r<n;r++){let n=t(e,r);for(let i=0;i<r;i++){let o=t(e,i),s=n[i];n[i]=o[r],o[r]=s}}}(o,a>s?a:s);let d=[],h=[0];for(let e=0;e<s;e++){let t,r=0;for(;r<a&&(t=o[e][r]);){if(!t.rendered){let o=0;for(let n=0;n<t.lines.length;n++){let i=t.lines[n],s=l[r]+n;d[s]=(d[s]||"").padEnd(h[e])+i,o=i.length>o?i.length:o}n(h,e,t.colspan,o+i),t.rendered=!0}r+=t.rowspan}}return d.join("\n")}}},16200:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876);n(14232);var i=n(10969),o=n(72569);let s=e=>{let{className:t,innerRef:n,register:s,themeArea:a,textColor:l,...u}=e,c="admin"===(0,o.jz)(a)?i.OT.textArea:i.Ay.textArea;t=t??c,l&&(t=`${t} ${l}`);let d={...u};return n&&(d={...d,ref:n}),s&&(d={...d,...s}),e.placeholder&&(d={...d,placeholder:e.placeholder}),(0,r.jsx)("textarea",{...d,className:t,"data-sentry-component":"TextArea","data-sentry-source-file":"TextArea.tsx"})}},16247:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(82037),o=n(23955);function s(){return(0,r.jsxs)("div",{"data-sentry-component":"ActiveMemberRequired","data-sentry-source-file":"ActiveMemberRequired.tsx",children:[(0,r.jsx)("h1",{className:"h1",children:"Expired Membership"}),(0,r.jsx)("p",{className:"p",children:"Your membership has expired. Access to this page requires an active membership. Please visit the dues page to renew your membership."}),(0,r.jsx)("div",{className:"flex justify-center mt-8",children:(0,r.jsx)(i.tA,{href:"/members/dues",themeArea:o.L.ADMIN,"data-sentry-element":"SecondaryButton","data-sentry-source-file":"ActiveMemberRequired.tsx",children:"Dues Page"})})]})}},16338:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
1546dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(72269)),o=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in i.default&&(e=i.default[e]),o(e))}},16710:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(49995),o=n(10969),s=n(72569);function a(e){let{disabled:t,children:n}=e,a=(0,s.jz)(e.themeArea),l=(0,i.A)((0,o.mL)(a),e.className),u={padding:"0.5em",...e.style||{}},c=e.register||{},d={};e.onChange&&(d={onChange:e.onChange});let h=e.options||[];return(0,r.jsxs)("select",{style:u,className:l,disabled:t,...c,...d,defaultValue:e.defaultValue,value:e.value,"data-sentry-component":"Select","data-sentry-source-file":"Select.tsx",children:[h.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value)),n]})}},16806:(e,t)=>{"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:s}=e,a=r?40*r:t,l=i?40*i:n,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},17099:(e,t,n)=>{var r=n(14216),i=n(17248),o=n(45261),s=n(10441),a=n(45705);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},17248:(e,t,n)=>{var r=n(36187),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},17261:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(37876),i=n(65416),o=n(20872),s=n(79642),a=n(18783),l=n(4044),u=n(7585),c=n(82355),d=n(14232),h=n(73382),p=n(5811),f=n(38537);let m=[{name:"Instagram",slug:"instagram",component:o.A},{name:"Facebook",slug:"facebook",component:s.A},{name:"Bluesky",slug:"bluesky",component:a.A},{name:"Discord",slug:"discord",component:l.A},{name:"X-Twitter",slug:"x-twitter",component:u.A},{name:"FetLife",slug:"fetlife",component:c.A}],g=(0,p.PA)(function(e){let t=e.postSlug||"footer-social-links",{getPostListBySlug:n}=(0,i.j6)(),o=t?n(t):void 0,[s,a]=(0,d.useState)(),l=(0,f.uV)();(0,d.useEffect)(()=>{if(o&&!s){let e=(0,h.Ql)(o,l);a(e?.children||[])}},[o,l,s]);let u=s?.reduce((e,t)=>{let n=m.find(e=>e.slug===t.purpose);return t.content&&t.purpose&&n&&(e=[...e,{link:t,platform:n}]),e},[]);return u&&0!==u.length?(0,r.jsx)(r.Fragment,{children:u.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:e.link.content,rel:"noreferrer noopener",target:"_blank","aria-label":"to external website",className:"inline-block transition-colors",children:(0,r.jsx)(e.platform.component,{className:"image fill-current h-8 w-auto"})})},e.platform.slug))}):(0,r.jsx)(r.Fragment,{children:"social links are empty"})})},17314:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M17 10a.75.75 0 01-.75.75H5.612l4.158 3.96a.75.75 0 11-1.04 1.08l-5.5-5.25a.75.75 0 010-1.08l5.5-5.25a.75.75 0 111.04 1.08L5.612 9.25H16.25A.75.75 0 0117 10z",clipRule:"evenodd"}))})},17565:(e,t,n)=>{var r=n(66521);e.exports=function(e){return r(this,e).get(e)}},18259:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(54587),o=n.n(i);function s(e){let{level:t="h2",opacityClass:n="opacity-50 group-hover:opacity-100"}=e,i=32,s=32;return"button-small"===t?(i=20,s=20):"h2"===t?(i=32,s=32):"h1"===t&&(i=40,s=40),(0,r.jsx)(o(),{src:"https://mp1md-pub.s3.amazonaws.com/groupflow/images/icon-white-stroke.svg",alt:"GroupFlow",className:n,width:i,height:s,"data-sentry-element":"Image","data-sentry-component":"GroupFlowStandardIcon","data-sentry-source-file":"GroupFlowStandardIcon.tsx"})}}
1546,18783:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"none",viewBox:"0 0 64 57",width:"32",height:"28.5",className:t,style:n,title:"Bluesky Logo",...{},"data-sentry-element":"svg","data-sentry-component":"BlueskyIcon","data-sentry-source-file":"BlueskyIcon.tsx",children:(0,r.jsx)("path",{d:"M13.873 3.805C21.21 9.332 29.103 20.537 32 26.55v15.882c0-.338-.13.044-.41.867-1.512 4.456-7.418 21.847-20.923 7.944-7.111-7.32-3.819-14.64 9.125-16.85-7.405 1.264-15.73-.825-18.014-9.015C1.12 23.022 0 8.51 0 6.55 0-3.268 8.579-.182 13.873 3.805ZM50.127 3.805C42.79 9.332 34.897 20.537 32 26.55v15.882c0-.338.13.044.41.867 1.512 4.456 7.418 21.847 20.923 7.944 7.111-7.32 3.819-14.64-9.125-16.85 7.405 1.264 15.73-.825 18.014-9.015C62.88 23.022 64 8.51 64 6.55c0-9.818-8.578-6.732-13.873-2.745Z","data-sentry-element":"path","data-sentry-source-file":"BlueskyIcon.tsx"})})}},18877:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(4902),i=n(79760);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,r.Cl)((0,r.Cl)({},e&&e.variables),t.variables)})}},19031:(e,t,n)=>{var r=n(24298),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||i||Function("return this")()},19070:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(37876),i=n(73e3),o=n(14668),s=n(23955),a=n(49995),l=n(32290),u=n(13220);function c(e){let{cancel:t,children:n,className:c,disabled:d,loading:h,submitButton:p,withGroupFlow:f}=e,m=e.marginTopClass??"mt-4",g=(0,a.A)("font-semibold",e.buttonsClass),y=t?.onClick,v=(0,u.LV)();return(0,r.jsx)(l.M.Provider,{value:{...v,siteArea:s.L.ADMIN},"data-sentry-element":"LayoutContext.Provider","data-sentry-component":"SubmitButtonRow","data-sentry-source-file":"SubmitButtonRow.tsx",children:(0,r.jsxs)("div",{className:(0,a.A)("flex gap-4 justify-between relative",m,c),children:[t?(0,r.jsx)(o.A,{onClick:y,href:t.href,className:(0,a.A)(g,t.className),disabled:t.disabled,size:"large",children:t.label||"Cancel"}):(0,r.jsx)("div",{}),(0,r.jsx)(i.A,{type:p?.type||"submit",disabled:d||!1,bgColorClass:p?.bgColorClass,href:p?.href,onClick:p?.handleClick,className:g,widthClass:p?.widthClass,size:"large",loading:h,withGroupFlow:f,"data-testid":p?.["data-testid"],"data-sentry-element":"ActionButton","data-sentry-source-file":"SubmitButtonRow.tsx",children:p?.label||n||"Save"})]})})}},19465:(e,t,n)=>{var r=n(2331),i=n(39004),o=n(66783);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,e.exports=s},19618:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,Jd:()=>c,pH:()=>u});var r=n(37876),i=n(49995),o=n(5811),s=n(93755),a=n(65416);let l=(0,o.PA)(function(e){let t,{className:n,postSlug:o,editAs:l="webComponent"}=e,{getPostListBySlug:u}=(0,a.j6)(),c=o?u(o):void 0;return"webComponent"===l&&(t="Hero"),(0,r.jsx)(s.A,{contentItem:c,postSlug:o,webComponentName:t,className:(0,i.A)(n,"hero-content"),"data-sentry-element":"BaseHero","data-sentry-component":"Hero","data-sentry-source-file":"Hero.tsx"})}),u=[{key:"postSlug",type:"string"}],c={isParentEditable:!1,items:[{purpose:"header",title:"Heading",type:"text"},{purpose:"sub-header",title:"Sub Heading",type:"text"},{purpose:"button-1",title:"Button 1",type:"button"},{purpose:"button-2",title:"Button 2",type:"button"},{purpose:"image",title:"Image",type:"image"}]}},19850:(e,t,n)=>{var r=n(89950),i=n(98825);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},19857:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(49995),o=n(9297),s=n(47027),a=n(10969),l=n(72569);let u=function(e){let{busy:t,elements:n,help:u,onAdd:c,sortable:d}=e,h=(0,a.CI)((0,l.Eh)());return(0,r.jsxs)("div",{"data-sentry-component":"ElementLibrary","data-sentry-source-file":"ElementLibrary.tsx",children:[(0,r.jsx)("h3",{className:"text-lg font-medium mb-3",children:"Element Library"}),(0,r.jsx)(s.A,{backgroundType:l.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"ElementLibrary.tsx",children:u}),(0,r.jsx)("div",{className:"grid gap-2",children:n.map(e=>(0,r.jsxs)("div",{className:(0,i.A)("flex items-center gap-3 p-3 rounded-lg transition-colors",d.get
1546SourceClass(e.key)||(0,i.A)("border",h.cardLineColor)),children:[(0,r.jsx)("div",{...d.getSourceGrip(e.key),onClick:()=>c(e),className:(0,i.A)("cursor-move touch-none",h.accentTextColor),title:"Tap to add, or drag into the list above",children:(0,r.jsx)(o.A,{className:"w-4 h-4 fill-current"})}),(0,r.jsxs)("button",{type:"button",disabled:t,onClick:()=>c(e),className:"flex-1 min-w-0 text-left",children:[(0,r.jsx)("div",{className:"font-medium",children:e.name}),(0,r.jsx)("div",{className:(0,i.A)("text-sm",h.cardMutedTextColor),children:e.description})]})]},e.key))})]})}},19887:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},19979:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:"50px",height:"50px",style:n,className:t,title:"Image icon",...{},"data-sentry-element":"svg","data-sentry-component":"ImageIcon","data-sentry-source-file":"ImageIcon.tsx",children:(0,r.jsx)("path",{d:"M 0 5 L 0 45 L 50 45 L 50 5 Z M 2 7 L 48 7 L 48 33 L 37.320313 33 L 30.320313 28 L 24.414063 28 L 20.328125 23.914063 L 15.460938 24.890625 L 11.15625 18.429688 L 2 27.585938 Z M 37.5 13 C 35.027344 13 33 15.027344 33 17.5 C 33 19.972656 35.027344 22 37.5 22 C 39.972656 22 42 19.972656 42 17.5 C 42 15.027344 39.972656 13 37.5 13 Z M 37.5 15 C 38.890625 15 40 16.109375 40 17.5 C 40 18.890625 38.890625 20 37.5 20 C 36.109375 20 35 18.890625 35 17.5 C 35 16.109375 36.109375 15 37.5 15 Z M 10.84375 21.570313 L 14.539063 27.109375 L 19.671875 26.085938 L 23.585938 30 L 29.679688 30 L 36.679688 35 L 48 35 L 48 43 L 2 43 L 2 30.414063 Z","data-sentry-element":"path","data-sentry-source-file":"ImageIcon.tsx"})})}},20095:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(37876),i=n(57616),o=n(42383);function s(e){let{question:t,...n}=e,s=t.component;return s?(0,r.jsx)(o.fh,{"data-sentry-element":"FormRow","data-sentry-component":"DynamicFormRow","data-sentry-source-file":"DynamicFormRow.tsx",children:(0,r.jsx)(i.A,{fieldRow:s,question:t,...n,"data-sentry-element":"DynamicFormRowContents","data-sentry-source-file":"DynamicFormRow.tsx"})}):null}},20174:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(24295),o=n(50834),s=n(48230),a=n.n(s),l=n(49995);function u(e){let{member:t,displayClass:n,textAlignClass:s,widthClass:u}=e,{photo:c,pronouns:d,name:h,title:p}=t,f=`/members/${t.id}`,m=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"pr-4 shrink",children:(0,r.jsx)(i.g,{url:c?.url})}),(0,r.jsxs)("div",{className:"flex-grow",children:[(0,r.jsxs)("div",{children:[h," ",d&&d.length>0?(0,r.jsx)(o.A,{pronouns:d}):null]}),(0,r.jsx)("div",{children:p})]})]}),g=(0,l.A)(e.className,n??"block",s??"text-left",u??"w-full");return e.onClick?(f=void 0,(0,r.jsx)("button",{onClick:e.onClick,className:g,type:"button",children:m})):(0,r.jsx)(a(),{href:f,className:g,children:m})}},20184:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){o&&(o.removeAttribute?o.removeAttribute("aria-hidden"):null!=o.length?o.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(o).forEach(function(e){return e.removeAttribute("aria-hidden")})),o=null},t.log=function(){},t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t=n}return o=t||o},t.validateElement=a,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=a(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=a(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0)i.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){o=null};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(68547)),i=n(36078),o=null;function s(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function a(e){var t=e||o;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},20437:(e,t,n)=>{"use strict";n.d(t,{q:()=>u});var r=n(37876),i=n(14232),o=n(70274),s=n(13220),a=n(38537),l=n(94674);function u(){let e={apiResponse:null,loaded:!1,processing:!1},[t,n]=(0,i.useState)(e),{apiResponse:u,processing:c}=t,d=(0,s.QU)(),h=(0,a.s_)();async function p(e){let r;n({...t,processing:!0});try{r=await e}catch(e){r={error:!0,serverError:!1,message:e instanceof l.kR?e.message:`${e}`,status:e instanceof l.kR?e.status??void 0:void 0,requestErrors:[]}}return!0===r.error&&r?.status===401&&h.clearJwt(),n({...t,loaded:!0,processing:!1,apiResponse:r}),r}async function f(e){return p(e(d))}let m=u?.error?u:null,g=u?.error?null:u;return{handleResponse:p,apiResponse:u,errorResponse:m,successResponse:g,loaded:t.loaded,processing:c,reset:()=>n(e),renderApiErrors:()=>(0,r.jsx)(o.A,{error:m}),wrapCall:f}}},20475:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zM3.75 12h.007v.008H3.75V12zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm-.375 5.25h.007v.008H3.75v-.008zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"}))})}
1546,20872:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:"Instagram icon",style:n,className:t,...{},"data-sentry-element":"svg","data-sentry-component":"InstagramIcon","data-sentry-source-file":"InstagramIcon.tsx",children:(0,r.jsx)("path",{d:"M18.5769 0C8.34616 0 0 8.34616 0 18.5769V45.4423C0 55.6538 8.34616 64 18.5769 64H45.4423C55.6538 64 64 55.6539 64 45.4231V18.5769C64 8.34616 55.6539 0 45.4231 0H18.5769ZM18.5769 4.92308H45.4231C53 4.92308 59.0769 11 59.0769 18.5769V45.4231C59.0769 53 53 59.0769 45.4423 59.0769H18.5769C11 59.0769 4.92308 53 4.92308 45.4423V18.5769C4.92308 11 11 4.92308 18.5769 4.92308ZM51.6923 9.84615C50.3269 9.84615 49.2308 10.9423 49.2308 12.3077C49.2308 13.6731 50.3269 14.7692 51.6923 14.7692C53.0577 14.7692 54.1538 13.6731 54.1538 12.3077C54.1538 10.9423 53.0577 9.84615 51.6923 9.84615ZM32 14.7692C22.5192 14.7692 14.7692 22.5192 14.7692 32C14.7692 41.4808 22.5192 49.2308 32 49.2308C41.4808 49.2308 49.2308 41.4808 49.2308 32C49.2308 22.5192 41.4808 14.7692 32 14.7692ZM32 19.6923C38.8269 19.6923 44.3077 25.1731 44.3077 32C44.3077 38.8269 38.8269 44.3077 32 44.3077C25.1731 44.3077 19.6923 38.8269 19.6923 32C19.6923 25.1731 25.1731 19.6923 32 19.6923Z","data-sentry-element":"path","data-sentry-source-file":"InstagramIcon.tsx"})})}},20996:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});let{toString:r,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,s=new Map;function a(e,t){try{return function e(t,n){if(t===n)return!0;let s=r.call(t);if(s!==r.call(n))return!1;switch(s){case"[object Array]":if(t.length!==n.length)break;case"[object Object]":{if(d(t,n))return!0;let r=l(t),o=l(n),s=r.length;if(s!==o.length)return!1;for(let e=0;e<s;++e)if(!i.call(n,r[e]))return!1;for(let i=0;i<s;++i){let o=r[i];if(!e(t[o],n[o]))return!1}return!0}case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==`${n}`;case"[object Map]":case"[object Set]":{if(t.size!==n.size)return!1;if(d(t,n))return!0;let r=t.entries(),i="[object Map]"===s;for(;;){let t=r.next();if(t.done)break;let[o,s]=t.value;if(!n.has(o)||i&&!e(s,n.get(o)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),n=new Uint8Array(n);case"[object DataView]":{let e=t.byteLength;if(e===n.byteLength)for(;e--&&t[e]===n[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=o.call(t);if(e!==o.call(n))return!1;return!function(e,t){let n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(e,c)}}return!1}(e,t)}finally{s.clear()}}function l(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}let c="{ [native code] }";function d(e,t){let n=s.get(e);if(n){if(n.has(t))return!0}else s.set(e,n=new Set);return n.add(t),!1}},21043:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var r=n(24007),i=n(62083);t.decode=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)};var o=n(62083);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var s=n(24007);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})},21500:(e,t,n)=>{"use strict";n.d(t,{G:()=>i}),n(75093);var r=n(93957);function i(e){var t;
1546return __DEV__&&(t=new Set([e])).forEach(function(e){(0,r.U)(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(n){(0,r.U)(e[n])&&t.add(e[n])})}),e}},21684:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n,...i}=e;return(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:n,className:t,...i,"data-sentry-element":"svg","data-sentry-component":"Spinner","data-sentry-source-file":"Spinner.tsx",children:[(0,r.jsx)("style",{children:".spinner_ajPY{transform-origin:center;animation:spinner_AtaB .75s infinite linear}@keyframes spinner_AtaB{100%{transform:rotate(360deg)}}"}),(0,r.jsx)("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25","data-sentry-element":"path","data-sentry-source-file":"Spinner.tsx"}),(0,r.jsx)("path",{d:"M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z",className:"spinner_ajPY","data-sentry-element":"path","data-sentry-source-file":"Spinner.tsx"})]})}},21993:(e,t,n)=>{"use strict";n.d(t,{DC:()=>l,W5:()=>c,WL:()=>d,bN:()=>r,i$:()=>i,jT:()=>s,kg:()=>o,sF:()=>a,x5:()=>u});let r="EEEE, MMM dd, yyyy",i="MMM dd, yyyy",o="EEEE, MMMM dd",s="MMMM dd",a="OOO",l="h:mm aaa",u="mp1md_jwt",c="gfsid",d="gfmid"},22222:()=>{},22225:(e,t,n)=>{var r=n(72200),i=n(93007);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},22488:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(37876),i=n(31896),o=n(22611),s=n(49995),a=n(72569);function l(e){let{children:t,className:n,label:l,onClick:u,required:c,"data-ui-role":d,"data-ui-id":h}=e,p=(0,a.jz)(e.themeArea),f="",m="";return"admin"!==p||e.columnStyle||(f=""),e.withSpacing&&(m="flex flex-col gap-y-2"),(0,r.jsxs)("div",{className:(0,s.A)(f,m,n),onClick:u,"data-ui-component":"FormRow","data-ui-role":d,"data-ui-id":h,"data-sentry-component":"FormRow","data-sentry-source-file":"FormRow.tsx",children:[l&&(0,r.jsxs)(i.A,{themeArea:p,children:[l,c&&(0,r.jsx)(o.A,{})]}),t]})}},22522:(e,t,n)=>{"use strict";n.d(t,{JU:()=>f,b0:()=>p,o2:()=>h,vd:()=>d});var r=n(14232),i=n(64671),o=n(47737),s=n(29203),a=n(35308),l=n(82153),u=n(41612);let c=(0,r.createContext)(null);function d(){let e=(0,r.useContext)(c);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,d),e}return e}function h(e){var t,n,i;let o=null!=(n=null==(t=(0,r.useContext)(c))?void 0:t.value)?n:void 0;return(null!=(i=null==e?void 0:e.length)?i:0)>0?[o,...e].filter(Boolean).join(" "):o}function p({inherit:e=!1}={}){let t=h(),[n,o]=(0,r.useState)([]),s=e?[t,...n].filter(Boolean):n;return[s.length>0?s.join(" "):void 0,(0,r.useMemo)(()=>function(e){let t=(0,i._)(e=>(o(t=>[...t,e]),()=>o(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,r.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return r.createElement(c.Provider,{value:n},e.children)},[o])]}c.displayName="LabelContext";let f=Object.assign((0,u.FX)(function(e,t){var n;let c=(0,r.useId)(),h=d(),p=(0,l.q)(),f=(0,a._)(),{id:m=`headlessui-label-${c}`,htmlFor:g=null!=p?p:null==(n=h.props)?void 0:n.htmlFor,passive:y=!1,...v}=e,b=(0,s.P)(t);(0,o.s)(()=>h.register(m),[m,h.register]);let x=(0,i._)(e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),h.props&&"onClick"in h.props&&"function"==typeof h.props.onClick&&h.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),_=f||!1,w=(0,r.useMemo)(()=>({...h.slot,disabled:_}),[h.slot,_]),k={ref:b,...h.props,id:m,htmlFor:g,onClick:x};return y&&("onClick"in k&&(delete k.htmlFor,delete k.onClick),"onClick"in v&&delete v.onClick),(0,u.Ci)()({ourProps:k,theirProps:v,slot:w,defaultTag:g?"label":"div",name:h.name||"Label"})}),{})}
1546,22529:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(14232);function i(e,t){return(0,r.useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}},22611:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(){return(0,r.jsx)("span",{className:"text-red-danger",title:"Required field","data-sentry-component":"RequiredFieldAsterisk","data-sentry-source-file":"RequiredFieldAsterisk.tsx",children:"*"})}},22634:(e,t,n)=>{"use strict";n.d(t,{Jt:()=>l,UX:()=>s,Ze:()=>o});var r=n(39324);let i=n.n(r)()();function o(e){return e.website??e.webSite}function s(e){return e.websiteAssets??e.webSiteAssets}async function a(){return await i.serverRuntimeConfig.jsonConfig()}async function l(){let e=n.g?.gfState?.groupsConfig;if(e)return e;let t=await a();return n.g.gfState={...n.g.gfState,groupsConfig:t},t}},22767:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(14232),o=n(54587),s=n.n(o);function a(e){let{className:t}=e,n=e.withDelay??!0,o=e.size||36,[a,l]=(0,i.useState)(!0!==n);return((0,i.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>l(!0),500);return()=>clearTimeout(e)},[n]),a)?(0,r.jsx)(s(),{src:"/static/images/spinner3-black.gif",width:o,height:o,className:t,alt:"Loading...","data-testid":"progress-indicator","data-sentry-element":"Image","data-sentry-component":"ProgressIndicator","data-sentry-source-file":"ProgressIndicator.tsx"}):null}},22960:(e,t,n)=>{"use strict";n.d(t,{H:()=>i,Wg:()=>l,cD:()=>o,jp:()=>u,oR:()=>a,oi:()=>r,q9:()=>s});var r=function(e){return e.BOT="BOT",e.USER="USER",e}({}),i=function(e){return e.AD_HOC="AD_HOC",e.NAMED="NAMED",e}({}),o=function(e){return e.Active="ACTIVE",e.Inactive="INACTIVE",e}({}),s=function(e){return e.INITIALIZING="INITIALIZING",e.LIST="LIST",e.NEW="NEW",e.EXISTING="EXISTING",e}({});let a=[{value:"1",label:"1 hour",hours:1},{value:"24",label:"1 day",hours:24},{value:"168",label:"1 week",hours:168},{value:"720",label:"1 month",hours:720},{value:"8760",label:"1 year",hours:8760}];function l(e){return e?e.map((t,n)=>{let r=e[n-1],i=r?t.insertedAt.valueOf()/1e3-r.insertedAt.valueOf()/1e3:null;return{...t,elapsed:i}}):null}function u(e,t,n,r){let i=t.conversations?.find(t=>t.id===e);i?n(i.id):function(e,t,n,r){let i=t.memberChannel;if(!i){console.warn("No memberChannel set"),r();return}i.push("getConversationForParticipant",{participantId:e}).receive("ok",e=>c(e,t,n,r))}(e,t,n,r)}async function c(e,t,n,r){let i=e.conversation;if(i){let e=i.id;await t.loadConversations(),n(e)}else console.warn("Error response from conversation_for_participant:",e),r()}},23060:(e,t,n)=>{"use strict";n.d(t,{JQ:()=>o,M7:()=>a,ie:()=>u,mh:()=>s,sP:()=>l,t1:()=>i});var r=n(22634);let i=[{id:"magenta-spotlight",name:"Magenta Spotlight",thumbnailUrl:"https://mp1md-pub.s3-us-west-2.amazonaws.com/content/THXvbYuy_FfZcTp.jpeg",imageUrl:"https://mp1md-pub.s3-us-west-2.amazonaws.com/content/vmk8E2d1MdVHTz9.jpeg"},{id:"sunset-horizon-dark",name:"Sunset Horizon - dark",thumbnailUrl:"https://mp1md-pub.s3-us-west-2.amazonaws.com/content/pcUDekNYgGUYgbh.jpeg",imageUrl:"https://mp1md-pub.s3-us-west-2.amazonaws.com/content/BPGyNND4BHQVqyX.jpeg"},{id:"sunset-horizon-light",name:"Sunset Horizon - light",thumbnailUrl:"https://mp1md-pub.s3-us-west-2.amazonaws.com/content/acinOzAynG8Fh9S.jpeg",imageUrl:"https://mp1md-pub.s3-us-west-2.amazonaws.com/content/8Rt3NxH-khfjP1w.jpeg"},{id:"midnight-glow-dark",name:"Midnight Glow - dark",thumbnailUrl:"https://mp1md-pub.s3-us-west-2.amazonaws.com/content/Dn-g8CeDe-1HB7G.jpeg",imageUrl:"https://mp1md-pub.s3-us-west-2.amazonaws.com/content/UMl-Ox7u_h91F17.jpeg"},{id:"portland-skies-light",name:"Portland Skies - light",thumbnailUrl:"https://mp1md-pub.s3-us-west-2.amazonaws.com/content/BcU5Q8Sw1GJRu9t.jpeg",imageUrl:"https://mp1md-pub.s3-us-west-2.amazonaws.com/content/7WfBQLaQt8U38BF.jpeg"}],o=[{value:"TEXT",label:"Text"},{value:"HTML",label:"HTML"},{value:"REFERENCE",label:"Reference"},{value:"GF_PRESET",label:"Preset"},{value:"PASSTHROUGH",label:"Passthrough"}],s=[{value:"ATTRIBUTE",label:"Attribute"},{value:"TEMPLATE",label:"Template"},{value:"PASSTHROUGH",label:"Passthrough"},{value:"OVERRIDE",label:"Override"}];function a(e){return!!(0,r.UX)(e)}function l(e){let t=function(e){let t=e.reduce((e,t)=>
1546{let n=t.parentId;if(!n)return e;{let r=e[n]||[];return r=[...r,t],{...e,[n]:r}}},{});return e.filter(e=>!e.parentId).map(e=>(function e(t,n){let r=n[t.id]||[];return r=r.map(t=>e(t,n)),{...t,attrs:r}})(e,t))}(e.components);return{...e,parents:t}}function u(e,t){t=t.filter(e=>e.route);let n=e.split("#")[0],r=t.find(e=>e.route===n);return r||t.filter(e=>{if(!e.route.endsWith("*"))return!1;{let t=e.route.replace(/\/?\*$/,"");return n.startsWith(t)}}).sort((e,t)=>t.route.length-e.route.length)[0]}},23218:(e,t,n)=>{e.exports=n(43622)(n(19031),"DataView")},23264:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var r=n(2836),i=n(5199),o={tag_name:function(e){return"function"==typeof e?function(t){return(0,r.isTag)(t)&&e(t.name)}:"*"===e?r.isTag:function(t){return(0,r.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,r.isText)(t)&&e(t.data)}:function(t){return(0,r.isText)(t)&&t.data===e}}};function s(e,t){return"function"==typeof t?function(n){return(0,r.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,r.isTag)(n)&&n.attribs[e]===t}}function a(e,t){return function(n){return e(n)||t(n)}}function l(e){var t=Object.keys(e).map(function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(o,t)?o[t](n):s(t,n)});return 0===t.length?null:t.reduce(a)}t.testElement=function(e,t){var n=l(e);return!n||n(t)},t.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var o=l(e);return o?(0,i.filter)(o,t,n,r):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(s("id",e),t,n)},t.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,i.filter)(o.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,i.filter)(o.tag_type(e),t,n,r)}},23955:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var r=function(e){return e.ADMIN="admin",e.MEMBERS="members",e.MARKETING="marketing",e}({})},24007:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var i=r(n(90524)),o=r(n(31288)),s=r(n(94510)),a=r(n(16338)),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function u(e){var t=d(e);return function(e){return String(e).replace(l,t)}}t.decodeXML=u(s.default),t.decodeHTMLStrict=u(i.default);var c=function(e,t){return e<t?1:-1};function d(e){return function(t){if("#"===t.charAt(1)){var n=t.charAt(2);return"X"===n||"x"===n?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}t.decodeHTML=function(){for(var e=Object.keys(o.default).sort(c),t=Object.keys(i.default).sort(c),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var s=RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=d(i.default);function l(e){return";"!==e.substr(-1)&&(e+=";"),a(e)}return function(e){return String(e).replace(s,l)}}()},24015:(e,t,n)=>{var r=n(23218),i=n(36315),o=n(54316),s=n(37973),a=n(96703),l=n(89950),u=n(82675),c="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",m=u(r),g=u(i),y=u(o),v=u(s),b=u(a),x=l;(r&&x(new r(new ArrayBuffer(1)))!=f||i&&x(new i)!=c||o&&x(o.resolve())!=d||s&&x(new s)!=h||a&&x(new a)!=p)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return f;case g:return c;case y:return d;case v:return h;case b:return p}return t}),e.exports=x},24044:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",className:t,title:"Send",...{},"data-sentry-element":"svg","data-sentry-component":"SendIcon","data-sentry-source-file":"SendIcon.tsx",children:(0,r.jsx)("path",{d:"M2.317,10.332l3.982,3.982c0.394,0.394,1.022,0.424,1.451,0.07l10.653-8.786L9.617,16.25 c-0.354,0.429-0.324,1.058,0.07,1.451l3.982,3.982c0.559,0.559,1.509,0.348,1.779-0.395l6.486-17.837 c0.313-0.862-0.522-1.698-1.384-1.384L2.712,8.553C1.969,8.823,1.758,9.773,2.317,10.332z","data-sentry-element":"path","data-sentry-source-file":"SendIcon.tsx"})})}},24117:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",className:t,style:n,title:"Edit properties",...{},"data-sentry-element":"svg","data-sentry-component":"EditPropertiesIcon","data-sentry-source-file":"EditPropertiesIcon.tsx",children:(0,r.jsx)("path",{d:"M 5 3 C 3.895 3 3 3.895 3 5 L 3 19 C 3 20.105 3.895 21 5 21 L 16.171875 21 L 14.171875 19 L 5 19 L 5 9 L 19 9 L 18.998047 14.171875 L 21 16.171875 L 21 5 C 21 3.895 20.105 3 19 3 L 5 3 z M 5 5 L 19 5 L 19 7 L 5 7 L 5 5 z M 7 11 L 7 13 L 9 13 L 9 11 L 7 11 z M 11 11 L 11 13 L 17 13 L 17 11 L 11 11 z M 7 15 L 7 17 L 9 17 L 9 15 L 7 15 z M 11 15 L 11 17 L 13 17 L 13 15 L 11 15 z M 15 15 L 15 17 L 20.146484 22.146484 L 22.146484 20.146484 L 17 15 L 15 15 z M 22.853516 20.853516 L 20.853516 22.853516 L 21.853516 23.853516 C 22.048516 24.048516 22.365547 24.048516 22.560547 23.853516 L 23.853516 22.560547 C 24.048516 22.364547 24.048516 22.048516 23.853516 21.853516 L 22.853516 20.853516 z","data-sentry-element":"path","data-sentry-source-file":"EditPropertiesIcon.tsx"})})}},24295:(e,t,n)=>{"use strict";n.d(t,{g:()=>r.A});var r=n(91074)}
1546,24298:(e,t,n)=>{e.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},24444:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(37876),i=n(94829),o=n(42383),s=n(13220),a=n(1815),l=n(89099),u=n(14232),c=n(88992);function d(e){let{jwt:t}=e,[n,d]=(0,u.useState)("new"),h={...(0,s.QU)(),jwt:t},[p,f]=(0,u.useState)(),m=(0,c.mN)(),g=(0,l.useRouter)(),y=e.returnToUri||g.asPath;return(0,r.jsxs)(r.Fragment,{children:["submitted"!==n?(0,r.jsxs)("form",{onSubmit:m.handleSubmit(function({email:t}){t&&(d("submitting"),(0,a.vo)(h,{unconfirmedEmail:t,returnToUri:y}).then(t=>{t.error?(f("Failed to service your request."),d("new")):(d("submitted"),f(void 0),e.onSubmitted&&e.onSubmitted())}))}),children:[(0,r.jsx)("p",{className:"p",children:"Please enter your email address:"}),"submitting"===n?(0,r.jsx)("p",{className:"p",children:"Submitting..."}):null,"new"===n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.ks,{type:"email",register:m.register("email",{required:!0,pattern:/^\S+@\S+\.\w+$/}),className:"max-w-xs",style:{display:"inline-block"}}),(0,r.jsx)(o.Kw,{errors:m.formState.errors,name:"email",messages:{pattern:"This does not appear to be an email address"}}),(0,r.jsx)(o.rA,{className:"ml-2",type:"submit",children:"Next"})]}):null]}):null,p&&(0,r.jsx)(i.A,{type:"warning",children:p}),"submitted"===n?(0,r.jsx)(i.A,{children:"A confirmation email has been sent. Please check your email."}):null]})}},24447:(e,t,n)=>{"use strict";n.d(t,{Jl:()=>u,Mn:()=>o,RM:()=>l,Ro:()=>a,VE:()=>d,VY:()=>c,s:()=>i});var r=n(94674);async function i(e){let t,{call:n,query:i,opName:a,opType:l}=e,{qName:u,decoder:c}=i;t=i.encodedQuery?i.encodedQuery:function(e,t,n,r){let i=t;if(r){let e=Object.keys(r).map(e=>{var t,n;let i=r[e];return t=e,n=i,`$${t}: ${n}`}).join(", "),n=e?`(${e})`:"";i=`${t}${n}`}return`${e} ${i} { ${n} }`}(l,a,function(e){var t;let n,{qName:r,args:i,argPlaceholders:o,argTypes:a,returnNames:l}=e;a?n=Object.keys(a).map(e=>`${e}: $${e}`).join(", "):o?n=Object.keys(t=o).map(e=>{let n=t[e];return`${e}: $${n}`}).join(", "):i&&(n=s(i));let u=n&&`(${n})`||"",c=l.join(",\n"),d=l&&l.length>0?`{ ${c} }`:"";return`${r}${u} ${d}`}(i),i.argTypes);let d=await o(n,a,t,e.query.variables),h=await d.json();return(0,r.U3)(d,h,u,c)}async function o(e,t,n,i){let o=`/gql?op=${t}`,s=e.baseUrl+o,a={query:n};return i&&(a={...a,variables:i}),(0,r.YO)(s,{method:"POST",body:JSON.stringify(a),headers:(0,r.mp)(e)})}function s(e){return e?Object.keys(e).map(t=>`${t}: ${function e(t){return Array.isArray(t)?"["+t.map(t=>e(t)).join(",\n")+"]":null===t?"null":"object"==typeof t?"{"+s(t)+"}":JSON.stringify(t=void 0===t?null:t)}(e[t])}`).join(",\n"):null}function a(e){let t=[];e.error2?t=e.errors:e.error?t=[e.error]:e.errors&&(t=e.errors);let n=Object.keys(e.data||{}).find(t=>!!e.data[t]?.errors);return n&&(t=[...t,...e.data[n].errors]),t}function l(e){let t=a(e);if("boolean"==typeof e.called){let{called:n,loading:r}=e;return n&&!r&&0===t.length}return 0===t.length}function u(e,t,n){if(e.data.errors)return{errors:e.data.errors};let r=e.data[t],i=n?.decodeResult||(e=>e),o=r.results.map(i);return{...r,results:o,errors:null}}function c(e,t,n){let r=a(e);if(r&&r.length>0)return{data:null,errors:r,hasError:!0,metadata:{},serverError:null};let i=e?.data,o=i&&i[t],s=n?.decodeResult;return{data:s&&o?.result?s(o?.result):o?.result,errors:null,hasError:!1,metadata:o?.metadata,serverError:null}}let d=` 1547 errors { 1548 code 1549 fields 1550 message 1551 shortMessage 1552 vars 1553 } 1554`},24519:function(e,t,n){var r,i,o,s,a,l,u,c,d,h,p,f,m,g,y,v,b,x,_,w,k,C,E,A,S,T,j,N;e=n.nmd(e),e&&e.exports,(i="object"==typeof n.g&&n.g).global===i||i.window,o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,a=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20
1554D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,u={"\xad":"shy","â":"zwnj","â":"zwj","â":"lrm","â£":"ic","â¢":"it","â¡":"af","â":"rlm","â":"ZeroWidthSpace","â ":"NoBreak","Ì":"DownBreve","â":"tdot","â":"DotDot"," ":"Tab","\n":"NewLine","â":"puncsp","â":"MediumSpace","â":"thinsp","â":"hairsp","â":"emsp13","â":"ensp","â
":"emsp14","â":"emsp","â":"numsp","\xa0":"nbsp","ââ":"ThickSpace","â¾":"oline",_:"lowbar","â":"dash","â":"ndash","â":"mdash","â":"horbar",",":"comma",";":"semi","â":"bsemi",":":"colon","â©´":"Colone","!":"excl","\xa1":"iexcl","?":"quest","\xbf":"iquest",".":"period","â¥":"nldr","â¦":"mldr","\xb7":"middot","'":"apos","â":"lsquo","â":"rsquo","â":"sbquo","â¹":"lsaquo","âº":"rsaquo",'"':"quot","â":"ldquo","â":"rdquo","â":"bdquo","\xab":"laquo","\xbb":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","â":"lceil","â":"rceil","â":"lfloor","â":"rfloor","â¦
":"lopar","â¦":"ropar","â¦":"lbrke","â¦":"rbrke","â¦":"lbrkslu","â¦":"rbrksld","â¦":"lbrksld","â¦":"rbrkslu","â¦":"langd","â¦":"rangd","â¦":"lparlt","â¦":"rpargt","â¦":"gtlPar","â¦":"ltrPar","â¦":"lobrk","â§":"robrk","â¨":"lang","â©":"rang","âª":"Lang","â«":"Rang","â¬":"loang","â":"roang","â²":"lbbrk","â³":"rbbrk","â":"Vert","\xa7":"sect","\xb6":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","â°":"permil","â±":"pertenk","â ":"dagger","â¡":"Dagger","â¢":"bull","â":"hybull","â²":"prime","â³":"Prime","â´":"tprime","â":"qprime","âµ":"bprime","â":"caret","`":"grave","\xb4":"acute","Ë":"tilde","^":"Hat","\xaf":"macr","Ë":"breve","Ë":"dot","\xa8":"die","Ë":"ring","Ë":"dblac","\xb8":"cedil","Ë":"ogon",Ë:"circ",Ë:"caron","\xb0":"deg","\xa9":"copy","\xae":"reg","â":"copysr",â:"wp","â":"rx","â§":"mho","â©":"iiota","â":"larr","â":"nlarr","â":"rarr","â":"nrarr","â":"uarr","â":"darr","â":"harr","â®":"nharr","â":"varr","â":"nwarr","â":"nearr","â":"searr","â":"swarr","â":"rarr
1554w","â̸":"nrarrw","â":"Larr","â":"Uarr","â ":"Rarr","â¡":"Darr","â¢":"larrtl","â£":"rarrtl","â¤":"mapstoleft","â¥":"mapstoup","â¦":"map","â§":"mapstodown","â©":"larrhk","âª":"rarrhk","â«":"larrlp","â¬":"rarrlp","â":"harrw","â°":"lsh","â±":"rsh","â²":"ldsh","â³":"rdsh","âµ":"crarr","â¶":"cularr","â·":"curarr","âº":"olarr","â»":"orarr","â¼":"lharu","â½":"lhard","â¾":"uharr","â¿":"uharl","â":"rharu","â":"rhard","â":"dharr","â":"dharl","â":"rlarr","â
":"udarr","â":"lrarr","â":"llarr","â":"uuarr","â":"rrarr","â":"ddarr","â":"lrhar","â":"rlhar","â":"lArr","â":"nlArr","â":"uArr","â":"rArr","â":"nrArr","â":"dArr","â":"iff","â":"nhArr","â":"vArr","â":"nwArr","â":"neArr","â":"seArr","â":"swArr","â":"lAarr","â":"rAarr","â":"zigrarr","â¤":"larrb","â¥":"rarrb","âµ":"duarr","â½":"loarr","â¾":"roarr","â¿":"hoarr","â":"forall","â":"comp","â":"part","â̸":"npart","â":"exist","â":"nexist","â
":"empty","â":"Del","â":"in","â":"notin","â":"ni","â":"notni","϶":"bepsi","â":"prod","â":"coprod","â":"sum","+":"plus","\xb1":"pm","\xf7":"div","\xd7":"times","<":"lt","â®":"nlt","<â":"nvlt","=":"equals","â ":"ne","=â¥":"bne","⩵":"Equal",">":"gt","â¯":"ngt",">â":"nvgt","\xac":"not","|":"vert","\xa6":"brvbar","â":"minus","â":"mp","â":"plusdo","â":"frasl","â":"setmn","â":"lowast","â":"compfn","â":"Sqrt","â":"prop","â":"infin","â":"angrt","â ":"ang","â â":"nang","â¡":"angmsd","â¢":"angsph","â£":"mid","â¤":"nmid","â¥":"par","â¦":"npar","â§":"and","â¨":"or","â©":"cap","â©ï¸":"caps","âª":"cup","âªï¸":"cups","â«":"int","â¬":"Int","â":"tint","â¨":"qint","â®":"oint","â¯":"Conint","â°":"Cconint","â±":"cwint","â²":"cwconint","â³":"awconint","â´":"there4","âµ":"becaus","â¶":"ratio","â·":"Colon","â¸":"minusd","âº":"mDDot","â»":"homtht","â¼":"sim","â":"nsim","â¼â":"nvsim","â½":"bsim","â½Ì±":"race","â¾":"ac","â¾Ì³":"acE","â¿":"acd","â":"wr","â":"esim","â̸":"nesim","â":"sime","â":"nsime","â
":"cong","â":"ncong","â":"simne","â":"ap","â":"nap","â":"ape","â":"apid","â̸":"napid","â":"bcong","â":"CupCap","â":"NotCupCap","ââ":"nvap","â":"bump","â̸":"nbump","â":"bumpe","â̸":"nbumpe","â":"doteq","â̸":"nedot","â":"eDot","â":"efDot","â":"erDot","â":"colone","â":"ecolon","â":"ecir","â":"cire","â":"wedgeq","â":"veeeq","â":"trie","â":"equest","â¡":"equiv","â¢":"nequiv","â¡â¥":"bnequiv","â¤":"le","â°":"nle","â¤â":"nvle","â¥":"ge","â±":"nge","â¥â":"nvge","â¦":"lE","â¦Ì¸":"nlE","â§":"gE","â§Ì¸":"ngE","â¨ï¸":"lvnE","â¨":"lnE","â©":"gnE","â©ï¸":"gvnE","âª":"ll","âªÌ¸":"nLtv","âªâ":"nLt","â«":"gg","â«Ì¸":"nGtv","â«â":"nGt","â¬":"twixt","â²":"lsim","â´":"nlsim","â³":"gsim","âµ":"ngsim","â¶":"lg","â¸":"ntlg","â·":"gl","â¹":"ntgl","âº":"pr","â":"npr","â»":"sc","â":"nsc","â¼":"prcue","â ":"nprcue","â½":"sccue","â¡":"nsccue","â¾":"prsim","â¿":"scsim","â¿Ì¸":"NotSucceedsTilde","â":"sub","â":"nsub","ââ":"vnsub","â":"sup","â
":"nsup","ââ":"vnsup","â":"sube","â":"nsube","â":"supe","â":"nsupe","âï¸":"vsubne","â":"subne","âï¸":"vsupne","â":"supne","â":"cupdot","â":"uplus","â":"sqsub","â̸":"NotSquareSubset","â":"sqsup","â̸":"NotSquareSuperset","â":"sqsube","â¢":"nsqsube","â":"sqsupe","â£":"nsqsupe","â":"sqcap","âï¸":"sqcaps","â":"sqcup","âï¸":"sqcups","â":"oplus","â":"ominus","â":"otimes","â":"osol","â":"odot","â":"ocir","â":"oast","â":"odash","â":"plusb","â":"minusb","â ":"timesb","â¡":"sdotb","â¢":"vdash","â¬":"nvdash","â£":"dashv","â¤":"top","â¥":"bot","â§":"models","â¨":"vDash","â":"nvDash","â©":"Vdash","â®":"nVdash","âª":"Vvdash","â«":"VDash","â¯":"nVDash","â°":"prurel","â²":"vltri","âª":"nltri","â³":"vrtri","â«":"nrtri","â´":"ltrie","â¬":"nltrie","â´â":"nvltrie","âµ":"rtrie","â":"nrtrie","âµâ":"nvrtrie","â¶":"origof","â·":"imof","â¸":"mumap","â¹":"hercon","âº":"intcal","â»":"veebar","â½":"barvee","â¾":"angrtvb","â¿":"lrtri","â":"Wedge","â":"Vee","â":"xcap","â":"xcup","â":"diam","â
":"sdot","â":"Star","â":"divonx","â":"bowtie","â":"ltimes","â":"rtimes","â":"lthree","â":"rthree","â":"bsime","â":"cuvee","â":"cuwed","â":"Sub","â":"Sup","â":"Cap","â":"Cup","â":"fork","â":"epar","â":"ltdot","â":"gtdot","â":"Ll","â̸":"nLl","â":"Gg","â̸":"nGg","âï¸":"lesg","â":"leg","â":"gel","âï¸":"gesl","â":"cuepr","â":"cuesc","â¦":"lnsim","â§":"gnsim","â¨":"prnsim","â©":"scnsim","â®":"vellip","â¯":"ctdot","â°":"utdot","â±":"dtdot","â²":"disin","â³":"isinsv","â´":"isins","âµ":"isindot","âµÌ¸":"notindot","â¶":"notinvc","â·":"notinvb","â¹":"isinE","â¹Ì¸":"notinE","âº":"nisd","â»":"xnis","â¼":"nis","â½":"notnivc","â¾":"notnivb","â
":"barwed","â":"Barwed","â":"drcrop","â":"dlcrop","â":"urcrop","â":"ulcrop","â":"bnot","â":"profline","â":"profsurf","â":"telrec","â":"target","â":"ulcorn","â":"urcorn","â":"dlcorn","â":"drcorn","â¢":"frown","â£":"smile","â":"cylcty","â®":"profalar","â¶":"topbot","â½":"ovbar","â¿":"solbar","â¼":"angzarr","â°":"lmoust","â±":"rmoust","â´":"tbrk","âµ":"bbrk","â¶":"bbrktbrk","â":"OverParenthesis","â":"UnderParenthesis","â":"OverBrace","â":"UnderBrace","â¢":"trpezium","â§":"elinters","â£":"blank","â":"boxh","â":"boxv","â":"boxdr","â":"boxdl","â":"boxur","â":"boxul","â":"boxvr","â¤":"boxvl","â¬":"boxhd","â´":"boxhu","â¼":"boxvh","â":"boxH","â":"boxV","â":"boxdR","â":"boxDr","â":"boxDR","â":"boxdL","â":"boxDl","â":"boxDL","â":"boxuR","â":"boxUr","â":"boxUR","â":"boxuL","â":"boxUl","â":"boxUL","â":"boxvR","â":"boxVr","â ":"boxVR","â¡":"boxvL","â¢":"boxVl","â£":"boxVL","â¤":"boxHd","â¥":"boxhD","â¦":"boxHD","â§":"boxHu","â¨":"boxhU","â©":"boxHU","âª":"boxvH","â«":"boxVh","â¬":"boxVH","â":"uhblk","â":"lhblk","â":"block","â":"blk14","â":"blk12","â":"blk34","â
1554¡":"squ","âª":"squf","â«":"EmptyVerySmallSquare","â":"rect","â®":"marker","â±":"fltns","â³":"xutri","â´":"utrif","âµ":"utri","â¸":"rtrif","â¹":"rtri","â½":"xdtri","â¾":"dtrif","â¿":"dtri","â":"ltrif","â":"ltri","â":"loz","â":"cir","â¬":"tridot","â¯":"xcirc","â¸":"ultri","â¹":"urtri","âº":"lltri","â»":"EmptySmallSquare","â¼":"FilledSmallSquare","â
":"starf","â":"star","â":"phone","â":"female","â":"male","â ":"spades","â£":"clubs","â¥":"hearts","â¦":"diams","âª":"sung","â":"check","â":"cross","â ":"malt","â¶":"sext","â":"VerticalSeparator","â":"bsolhsub","â":"suphsol","âµ":"xlarr","â¶":"xrarr","â·":"xharr","â¸":"xlArr","â¹":"xrArr","âº":"xhArr","â¼":"xmap","â¿":"dzigrarr","â¤":"nvlArr","â¤":"nvrArr","â¤":"nvHarr","â¤
":"Map","â¤":"lbarr","â¤":"rbarr","â¤":"lBarr","â¤":"rBarr","â¤":"RBarr","â¤":"DDotrahd","â¤":"UpArrowBar","â¤":"DownArrowBar","â¤":"Rarrtl","â¤":"latail","â¤":"ratail","â¤":"lAtail","â¤":"rAtail","â¤":"larrfs","â¤":"rarrfs","â¤":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","â¥
":"rarrpl","â¥":"harrcir","â¥":"Uarrocir","â¥":"lurdshar","â¥":"ldrushar","â¥":"LeftRightVector","â¥":"RightUpDownVector","â¥":"DownLeftRightVector","â¥":"LeftUpDownVector","â¥":"LeftVectorBar","â¥":"RightVectorBar","â¥":"RightUpVectorBar","â¥":"RightDownVectorBar","â¥":"DownLeftVectorBar","â¥":"DownRightVectorBar","â¥":"LeftUpVectorBar","â¥":"LeftDownVectorBar","â¥":"LeftTeeVector","â¥":"RightTeeVector","â¥":"RightUpTeeVector","â¥":"RightDownTeeVector","â¥":"DownLeftTeeVector","â¥":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","â¥":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","â¦":"vzigzag","â¦":"vangrt","â¦":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","â¦":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","â§":"olt","â§":"ogt","â§":"cirscir","â§":"cirE","â§":"solb","â§
":"bsolb","â§":"boxbox","â§":"trisb","â§":"rtriltri","â§":"LeftTriangleBar","â§Ì¸":"NotLeftTriangleBar","â§":"RightTriangleBar","â§Ì¸":"NotRightTriangleBar","â§":"iinfin","â§":"infintie","â§":"nvinfin","â§£":"eparsl","⧤":"smeparsl","â§¥":"eqvparsl","â§«":"lozf","â§´":"RuleDelayed","â§¶":"dsol","â¨":"xodot","â¨":"xoplus","â¨":"xotime","â¨":"xuplus","â¨":"xsqcup","â¨":"fpartint","â¨":"cirfnint","â¨":"awint","â¨":"rppolint","â¨":"scpolint","â¨":"npolint","â¨":"pointint","â¨":"quatint","â¨":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","â¨":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","â©":"capdot","â©":"ncup","â©":"ncap","â©":"capand","â©
":"cupor","â©":"cupcap","â©":"capcup","â©":"cupbrcap","â©":"capbrcup","â©":"cupcup","â©":"capcap","â©":"ccups","â©":"ccaps","â©":"ccupssm","â©":"And","â©":"Or","â©":"andand","â©":"oror","â©":"orslope","â©":"andslope","â©":"andv","â©":"orv","â©":"andd","â©":"ord","â©":"wedbar","⩦":"sdote","⩪":"simdot","â©":"congdot","â©Ì¸":"ncongdot","â©®":"easter","⩯":"ap
1554acir","â©°":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","â©·":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","â©»":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","â©¿":"lesdot","âª":"gesdot","âª":"lesdoto","âª":"gesdoto","âª":"lesdotor","âª":"gesdotol","âª
":"lap","âª":"gap","âª":"lne","âª":"gne","âª":"lnap","âª":"gnap","âª":"lEg","âª":"gEl","âª":"lsime","âª":"gsime","âª":"lsimg","âª":"gsiml","âª":"lgE","âª":"glE","âª":"lesges","âª":"gesles","âª":"els","âª":"egs","âª":"elsdot","âª":"egsdot","âª":"el","âª":"eg","âª":"siml","âª":"simg","âª":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬ï¸":"smtes","âª":"late","âªï¸":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","â«":"supplus","â«":"submult","â«":"supmult","â«":"subedot","â«":"supedot","â«
":"subE","â«
̸":"nsubE","â«":"supE","â«Ì¸":"nsupE","â«":"subsim","â«":"supsim","â«ï¸":"vsubnE","â«":"subnE","â«ï¸":"vsupnE","â«":"supnE","â«":"csub","â«":"csup","â«":"csube","â«":"csupe","â«":"subsup","â«":"supsub","â«":"subsub","â«":"supsup","â«":"suphsub","â«":"supdsub","â«":"forkv","â«":"topfork","â«":"mlcp","⫤":"Dashv","⫦":"Vdashl","â«§":"Barv","⫨":"vBar","â«©":"vBarv","â««":"Vbar","⫬":"Not","â«":"bNot","â«®":"rnmid","⫯":"cirmid","â«°":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽â¥":"nparsl","â":"flat","â®":"natur","â¯":"sharp","\xa4":"curren","\xa2":"cent",$:"dollar","\xa3":"pound","\xa5":"yen","â¬":"euro","\xb9":"sup1","\xbd":"half","â
":"frac13","\xbc":"frac14","â
":"frac15","â
":"frac16","â
":"frac18","\xb2":"sup2","â
":"frac23","â
":"frac25","\xb3":"sup3","\xbe":"frac34","â
":"frac35","â
":"frac38","â
":"frac45","â
":"frac56","â
":"frac58","â
":"frac78","\uD835\uDCB6":"ascr","\uD835\uDD52":"aopf","\uD835\uDD1E":"afr","\uD835\uDD38":"Aopf","\uD835\uDD04":"Afr","\uD835\uDC9C":"Ascr",ª:"ordf",á:"aacute",Ã:"Aacute",à :"agrave",Ã:"Agrave",Ä:"abreve",Ä:"Abreve",â:"acirc",Ã:"Acirc",Ã¥:"aring",Ã
:"angst",ä:"auml",Ã:"Auml",ã:"atilde",Ã:"Atilde",Ä
:"aogon",Ä:"Aogon",Ä:"amacr",Ä:"Amacr",æ:"aelig",Ã:"AElig","\uD835\uDCB7":"bscr","\uD835\uDD53":"bopf","\uD835\uDD1F":"bfr","\uD835\uDD39":"Bopf",â¬:"Bscr","\uD835\uDD05":"Bfr","\uD835\uDD20":"cfr","\uD835\uDCB8":"cscr","\uD835\uDD54":"copf",â:"Cfr","\uD835\uDC9E":"Cscr",â:"Copf",Ä:"cacute",Ä:"Cacute",Ä:"ccirc",Ä:"Ccirc",Ä:"ccaron",Ä:"Ccaron",Ä:"cdot",Ä:"Cdot",ç:"ccedil",Ã:"Ccedil","â
":"incare","\uD835\uDD21":"dfr",â
:"dd","\uD835\uDD55":"dopf","\uD835\uDCB9":"dscr","\uD835\uDC9F":"Dscr","\uD835\uDD07":"Dfr",â
:"DD","\uD835\uDD3B":"Dopf",Ä:"dcaron",Ä:"Dcaron",Ä:"dstrok",Ä:"Dstrok",ð:"eth",Ã:"ETH",â
:"ee",â¯:"escr","\uD835\uDD22":"efr","\uD835\uDD56":"eopf",â°:"Escr","\uD835\uDD08":"Efr","\uD835\uDD3C":"Eopf",é:"eacute",Ã:"Eacute",è:"egrave",Ã:"Egrave",ê:"ecirc",Ã:"Ecirc",Ä:"ecaron",Ä:"Ecaron",ë:"euml",Ã:"Euml",Ä:"edot",Ä:"Edot",Ä:"eogon",Ä:"Eogon",Ä:"emacr",Ä:"Emacr","\uD835\uDD23":"ffr","\uD835\uDD57":"fopf","\uD835\uDCBB":"fscr","\uD835\uDD09":"Ffr","\uD835\uDD3D":"Fopf",â±:"Fscr",ï¬:"fflig",ï¬:"ffilig",ï¬:"ffllig",ï¬:"filig",fj:"fjlig",ï¬:"fllig",Æ:"fnof",â:"gscr","\uD835\uDD58":"gopf","\uD835\uDD24":"gfr","\uD835\uDCA2":"Gscr","\uD835\uDD3E":"Gopf","\uD835\uDD0A":"Gfr",ǵ:"gacute",Ä:"gbreve",Ä:"Gbreve",Ä:"gcirc",Ä:"Gcirc",Ä¡:"gdot",Ä :"Gdot",Ä¢:"Gcedil","\uD835\uDD25":"hfr",â:"planckh","\uD835\uDCBD":"hscr","\uD835\uDD59":"hopf",â:"Hscr",â:"Hfr",â:"Hopf",Ä¥:"hcirc",Ĥ:"Hcirc",â:"hbar",ħ:"hstrok",Ħ:"Hstrok","\uD835\uDD5A":"iopf","\uD835\uDD26":"ifr","\uD835\uDCBE":"iscr",â
:"ii","\uD835\uDD40":"Iopf",â:"Iscr",â:"Im",Ã:"iacute",Ã:"Iacute",ì:"igrave",Ã:"Igrave",î:"icirc",Ã:"Icirc",ï:"iuml",Ã:"Iuml",Ä©:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Ä®:"Iogon",Ä«:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath","\uD835\uDCBF":"jscr","\uD835\uDD5B":"jopf","\uD835\uDD27":"jfr","\uD835\uDCA5":"Jscr","\uD835\uDD0D":"Jfr","\uD835\uDD41":"Jopf",ĵ:"jcirc",Ä´:"Jcirc",È·:"jmath","\uD835\uDD5C":"kopf","\uD835\uDCC0":"kscr","\uD835\uDD28":"kfr","\uD835\uDCA6":"Kscr","\uD835\uDD42":"Kopf","\uD835\uDD0E":"Kfr",Ä·:"kcedil",Ķ:"Kcedil","\uD835\uDD29":"lfr","\uD835\uDCC1":"lscr",â:"ell","\uD835\uDD5D":"lopf",â:"Lscr","\uD835\uDD0F":"Lfr","\uD835\uDD43":"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ä»:"Lcedil",Å:"lstrok",Å:"Lstrok",Å:"lmidot",Ä¿:"Lmidot","\uD835\uDD2A":"mfr","\uD835\uDD5E":"mopf","\uD835\uDCC2":"mscr","\uD835\uDD10":"Mfr","\uD835\uDD44":"Mopf",â³:"Mscr","\uD835\uDD2B":"nfr","\uD835\uDD5F":"nopf","\uD835\uDCC3":"nscr",â:"Nopf","\uD835\uDCA9":"Nscr","\uD835\uDD11":"Nfr",Å:"nacute",Å:"Nacute",Å:"ncaron",Å:"Ncaron",ñ:"ntilde",Ã:"Ntilde",Å:"ncedil",Å
:"Ncedil","â":"numero",Å:"eng",Å:"ENG","\uD835\uDD60":"oopf","\uD835\uDD2C":"ofr",â´:"oscr","\uD835\uDCAA":"Oscr","\uD835\uDD12":"Ofr","\uD835\uDD46":"Oopf",º:"ordm",ó:"oacute",Ã:"Oacute",ò:"ograve",Ã:"Ograve",ô:"ocirc",Ã:"Ocirc",ö:"ouml",Ã:"Ouml",Å:"odblac",Å:"Odblac",õ:"otilde",Ã:"Otilde",ø:"oslash",Ã:"Oslash",Å:"omacr",Å:"Omacr",Å:"oelig",Å:"OElig","\uD835\uDD2D":"pfr","\uD835\uDCC5":"pscr","\uD835\uDD61":"popf",â:"Popf","\uD835\uDD13":"Pfr","\uD835\uDCAB":"Pscr","\uD835\uDD62":"qopf","\uD835\uDD2E":"qfr","\uD835\uDCC6":"qscr","\uD835\uDCAC":"Qscr","\uD835\uDD14":"Qfr",â:"Qopf",ĸ:"kgreen","\uD835\uDD2F":"rfr","\uD835\uDD63":"ropf","\uD835\uDCC7":"rscr",â:"Rscr",â:"Re",â:"Ropf",Å:"racute",Å:"Racute",Å:"rcaron",Å:"Rcaron",Å:"rcedil",Å:"Rcedil","\uD835\uDD64":"sopf","\uD835\uDCC8":"sscr","\uD835\uDD30":"sfr","\uD835\uDD4A":"Sopf","\uD835\uDD16":"Sfr","\uD835\uDCAE":"Sscr","â":"oS",Å:"sacute",Å:"Sacute",Å:"scirc",Å:"Scirc",Å¡:"scaron",Å :"Scaron",Å:"scedil",Å:"Scedil",Ã:"szlig","\uD835\uDD31":"tfr","\uD835\uDCC9":"tscr","\uD835\uDD65":"topf","\uD835\uDCAF":"Tscr","\uD835\uDD17":"Tfr","\uD835\uDD4B":"Topf",Å¥:"tcaron",Ť:"Tcaron",Å£:"tcedil",Å¢:"Tcedil","â¢":"trade",ŧ:"tstrok",Ŧ:"Tstrok","\uD835\uDCCA":"uscr","\uD835\uDD66":"uopf","\uD835\uDD32":"ufr","\uD835\uDD4C":"Uopf","\uD835\uDD18":"Ufr","\uD835\uDCB0":"Uscr",ú:"uacute",Ã:"Uacute",ù:"ugrave",Ã:"Ugrave",Å:"ubreve",Ŭ:"Ubreve",û:"ucirc",Ã:"Ucirc",ů:"uring",Å®:"Uring",ü:"uuml",Ã:"Uuml",ű:"udblac",Ű:"Udblac",Å©
1554:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",Å«:"umacr",Ū:"Umacr","\uD835\uDD33":"vfr","\uD835\uDD67":"vopf","\uD835\uDCCB":"vscr","\uD835\uDD19":"Vfr","\uD835\uDD4D":"Vopf","\uD835\uDCB1":"Vscr","\uD835\uDD68":"wopf","\uD835\uDCCC":"wscr","\uD835\uDD34":"wfr","\uD835\uDCB2":"Wscr","\uD835\uDD4E":"Wopf","\uD835\uDD1A":"Wfr",ŵ:"wcirc",Å´:"Wcirc","\uD835\uDD35":"xfr","\uD835\uDCCD":"xscr","\uD835\uDD69":"xopf","\uD835\uDD4F":"Xopf","\uD835\uDD1B":"Xfr","\uD835\uDCB3":"Xscr","\uD835\uDD36":"yfr","\uD835\uDCCE":"yscr","\uD835\uDD6A":"yopf","\uD835\uDCB4":"Yscr","\uD835\uDD1C":"Yfr","\uD835\uDD50":"Yopf",ý:"yacute",Ã:"Yacute",Å·:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml","\uD835\uDCCF":"zscr","\uD835\uDD37":"zfr","\uD835\uDD6B":"zopf",â¨:"Zfr",â¤:"Zopf","\uD835\uDCB5":"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Å»:"Zdot",Ƶ:"imped",þ:"thorn",Ã:"THORN",Å:"napos",α:"alpha",Î:"Alpha",β:"beta",Î:"Beta",γ:"gamma",Î:"Gamma",δ:"delta",Î:"Delta",ε:"epsi",ϵ:"epsiv",Î:"Epsilon",Ï:"gammad",Ï:"Gammad",ζ:"zeta",Î:"Zeta",η:"eta",Î:"Eta",θ:"theta",Ï:"thetav",Î:"Theta",ι:"iota",Î:"Iota",κ:"kappa",ϰ:"kappav",Î:"Kappa",λ:"lambda",Î:"Lambda",μ:"mu",µ:"micro",Î:"Mu",ν:"nu",Î:"Nu",ξ:"xi",Î:"Xi",ο:"omicron",Î:"Omicron",Ï:"pi",Ï:"piv",Î :"Pi",Ï:"rho",ϱ:"rhov",Ρ:"Rho",Ï:"sigma",Σ:"Sigma",Ï:"sigmaf",Ï:"tau",Τ:"Tau",Ï
:"upsi",Î¥:"Upsilon",Ï:"Upsi",Ï:"phi",Ï:"phiv",Φ:"Phi",Ï:"chi",Χ:"Chi",Ï:"psi",Ψ:"Psi",Ï:"omega",Ω:"ohm",а:"acy",Ð:"Acy",б:"bcy",Ð:"Bcy",в:"vcy",Ð:"Vcy",г:"gcy",Ð:"Gcy",Ñ:"gjcy",Ð:"GJcy",д:"dcy",Ð:"Dcy",Ñ:"djcy",Ð:"DJcy",е:"iecy",Ð:"IEcy",Ñ:"iocy",Ð:"IOcy",Ñ:"jukcy",Ð:"Jukcy",ж:"zhcy",Ð:"ZHcy",з:"zcy",Ð:"Zcy",Ñ:"dscy",Ð
:"DScy",и:"icy",Ð:"Icy",Ñ:"iukcy",Ð:"Iukcy",Ñ:"yicy",Ð:"YIcy",й:"jcy",Ð:"Jcy",Ñ:"jsercy",Ð:"Jsercy",к:"kcy",Ð:"Kcy",Ñ:"kjcy",Ð:"KJcy",л:"lcy",Ð:"Lcy",Ñ:"ljcy",Ð:"LJcy",м:"mcy",Ð:"Mcy",н:"ncy",Ð:"Ncy",Ñ:"njcy",Ð:"NJcy",о:"ocy",Ð:"Ocy",п:"pcy",Ð:"Pcy",Ñ:"rcy",Ð :"Rcy",Ñ:"scy",С:"Scy",Ñ:"tcy",Т:"Tcy",Ñ:"tshcy",Ð:"TSHcy",Ñ:"ucy",У:"Ucy",Ñ:"ubrcy",Ð:"Ubrcy",Ñ:"fcy",Ф:"Fcy",Ñ
:"khcy",Ð¥:"KHcy",Ñ:"tscy",Ц:"TScy",Ñ:"chcy",Ч:"CHcy",Ñ:"dzcy",Ð:"DZcy",Ñ:"shcy",Ш:"SHcy",Ñ:"shchcy",Щ:"SHCHcy",Ñ:"hardcy",Ъ:"HARDcy",Ñ:"ycy",Ы:"Ycy",Ñ:"softcy",Ь:"SOFTcy",Ñ:"ecy",Ð:"Ecy",Ñ:"yucy",Ю:"YUcy",Ñ:"yacy",Я:"YAcy",âµ:"aleph",â¶:"beth",â·:"gimel",â¸:"daleth"},c=/["&'<>`]/g,d={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},h=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,p=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f
vendor: 16,834 bytes, line 1554
1554=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,
1554m={aacute:"\xe1",Aacute:"\xc1",abreve:"Ä",Abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",acy:"а",Acy:"Ð",aelig:"\xe6",AElig:"\xc6",af:"â¡",afr:"\uD835\uDD1E",Afr:"\uD835\uDD04",agrave:"\xe0",Agrave:"\xc0",alefsym:"âµ",aleph:"âµ",alpha:"α",Alpha:"Î",amacr:"Ä",Amacr:"Ä",amalg:"⨿",amp:"&",AMP:"&",and:"â§",And:"â©",andand:"â©",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsd:"â¡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"\xc5",angzarr:"â¼",aogon:"Ä
",Aogon:"Ä",aopf:"\uD835\uDD52",Aopf:"\uD835\uDD38",ap:"â",apacir:"⩯",ape:"â",apE:"â©°",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",aring:"\xe5",Aring:"\xc5",ascr:"\uD835\uDCB6",Ascr:"\uD835\uDC9C",Assign:"â",ast:"*",asymp:"â",asympeq:"â",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",barwed:"â
",Barwed:"â",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",bcy:"б",Bcy:"Ð",bdquo:"â",becaus:"âµ",because:"âµ",Because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",beta:"β",Beta:"Î",beth:"â¶",between:"â¬",bfr:"\uD835\uDD1F",Bfr:"\uD835\uDD05",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bnot:"â",bNot:"â«",bopf:"\uD835\uDD53",Bopf:"\uD835\uDD39",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxdl:"â",boxdL:"â",boxDl:"â",boxDL:"â",boxdr:"â",boxdR:"â",boxDr:"â",boxDR:"â",boxh:"â",boxH:"â",boxhd:"â¬",boxhD:"â¥",boxHd:"â¤",boxHD:"â¦",boxhu:"â´",boxhU:"â¨",boxHu:"â§",boxHU:"â©",boxminus:"â",boxplus:"â",boxtimes:"â ",boxul:"â",boxuL:"â",boxUl:"â",boxUL:"â",boxur:"â",boxuR:"â",boxUr:"â",boxUR:"â",boxv:"â",boxV:"â",boxvh:"â¼",boxvH:"âª",boxVh:"â«",boxVH:"â¬",boxvl:"â¤",boxvL:"â¡",boxVl:"â¢",boxVL:"â£",boxvr:"â",boxvR:"â",boxVr:"â",boxVR:"â ",bprime:"âµ",breve:"Ë",Breve:"Ë",brvbar:"\xa6",bscr:"\uD835\uDCB7",Bscr:"â¬",bsemi:"â",bsim:"â½",b
1554sime:"â",bsol:"\\",bsolb:"â§
",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpe:"â",bumpE:"⪮",bumpeq:"â",Bumpeq:"â",cacute:"Ä",Cacute:"Ä",cap:"â©",Cap:"â",capand:"â©",capbrcup:"â©",capcap:"â©",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",ccaron:"Ä",Ccaron:"Ä",ccedil:"\xe7",Ccedil:"\xc7",ccirc:"Ä",Ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",cdot:"Ä",Cdot:"Ä",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\uD835\uDD20",Cfr:"â",chcy:"Ñ",CHcy:"Ч",check:"â",checkmark:"â",chi:"Ï",Chi:"Χ",cir:"â",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"\xae",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cire:"â",cirE:"â§",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",colon:":",Colon:"â·",colone:"â",Colone:"â©´",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",conint:"â®",Conint:"â¯",ContourIntegral:"â®",copf:"\uD835\uDD54",Copf:"â",coprod:"â",Coproduct:"â",copy:"\xa9",COPY:"\xa9",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",cross:"â",Cross:"⨯",cscr:"\uD835\uDCB8",Cscr:"\uD835\uDC9E",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",cup:"âª",Cup:"â",cupbrcap:"â©",cupcap:"â©",CupCap:"â",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"\xa4",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",dagger:"â ",Dagger:"â¡",daleth:"â¸",darr:"â",dArr:"â",Darr:"â¡",dash:"â",dashv:"â£",Dashv:"⫤",dbkarow:"â¤",dblac:"Ë",dcaron:"Ä",Dcaron:"Ä",dcy:"д",Dcy:"Ð",dd:"â
",DD:"â
",ddagger:"â¡",ddarr:"â",DDotrahd:"â¤",ddotseq:"â©·",deg:"\xb0",Del:"â",delta:"δ",Delta:"Î",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",Dfr:"\uD835\uDD07",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"\xb4",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",diamond:"â",Diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"\xa8",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"\xf7",divide:"\xf7",divideontimes:"â",divonx:"â",djcy:"Ñ",DJcy:"Ð",dlcorn:"â",dlcrop:"â",dollar:"$",dopf:"\uD835\uDD55",Dopf:"\uD835\uDD3B",dot:"Ë",Dot:"\xa8",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"\xa8",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",downarrow:"â",Downarrow:"â",DownArrow:"â",DownArrowBar:"â¤",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVector:"â½",DownLeftVectorBar:"â¥",DownRightTeeVector:"â¥",DownRightVector:"â",DownRightVectorBar:"â¥",DownTee:"â¤",DownTeeArrow:"â§",drbkarow:"â¤",drcorn:"â",drcrop:"â",dscr:"\uD835\uDCB9",Dscr:"\uD835\uDC9F",dscy:"Ñ",DScy:"Ð
",dsol:"â§¶",dstrok:"Ä",Dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",dzcy:"Ñ",DZcy:"Ð",dzigrarr:"â¿",eacute:"\xe9",Eacute:"\xc9",easter:"â©®",ecaron:"Ä",Ecaron:"Ä",ecir:"â",ecirc:"\xea",Ecirc:"\xca",ecolon:"â",ecy:"Ñ",Ecy:"Ð",eDDot:"â©·",edot:"Ä",eDot:"â",Edot:"Ä",ee:"â
",efDot:"â",efr:"\uD835\uDD22",Efr:"\uD835\uDD08",eg:"âª",egrave:"\xe8",Egrave:"\xc8",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",emacr:"Ä",Emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp:"â",emsp13:"â",emsp14:"â
",eng:"Å",ENG:"Å",ensp:"â",eogon:"Ä",Eogon:"Ä",eopf:"\uD835\uDD56",Eopf:"\uD835\uDD3C",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Î",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",escr:"â¯",Escr:"â°",esdot:"â",esim:"â",Esim:"⩳",eta:"η",Eta:"Î",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",exponentiale:"â
",ExponentialE:"â
",fallingdotseq:"â",fcy:"Ñ",Fcy:"Ф",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",ffr:"\uD835\uDD23",Ffr:"\uD835\uDD09",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",fopf:"\uD835\uDD57",Fopf:"\uD835\uDD3D",forall:"â",ForAll:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"\xbd",frac13:"â
",frac14:"\xbc",frac15:"â
",frac16:"â
",frac18
1554:"â
",frac23:"â
",frac25:"â
",frac34:"\xbe",frac35:"â
",frac38:"â
",frac45:"â
",frac56:"â
",frac58:"â
",frac78:"â
",frasl:"â",frown:"â¢",fscr:"\uD835\uDCBB",Fscr:"â±",gacute:"ǵ",gamma:"γ",Gamma:"Î",gammad:"Ï",Gammad:"Ï",gap:"âª",gbreve:"Ä",Gbreve:"Ä",Gcedil:"Ä¢",gcirc:"Ä",Gcirc:"Ä",gcy:"г",Gcy:"Ð",gdot:"Ä¡",Gdot:"Ä ",ge:"â¥",gE:"â§",gel:"â",gEl:"âª",geq:"â¥",geqq:"â§",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"âª",gesdoto:"âª",gesdotol:"âª",gesl:"âï¸",gesles:"âª",gfr:"\uD835\uDD24",Gfr:"\uD835\uDD0A",gg:"â«",Gg:"â",ggg:"â",gimel:"â·",gjcy:"Ñ",GJcy:"Ð",gl:"â·",gla:"⪥",glE:"âª",glj:"⪤",gnap:"âª",gnapprox:"âª",gne:"âª",gnE:"â©",gneq:"âª",gneqq:"â©",gnsim:"â§",gopf:"\uD835\uDD58",Gopf:"\uD835\uDD3E",grave:"`",GreaterEqual:"â¥",GreaterEqualLess:"â",GreaterFullEqual:"â§",GreaterGreater:"⪢",GreaterLess:"â·",GreaterSlantEqual:"⩾",GreaterTilde:"â³",gscr:"â",Gscr:"\uD835\uDCA2",gsim:"â³",gsime:"âª",gsiml:"âª",gt:">",Gt:"â«",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"â",gtlPar:"â¦",gtquest:"⩼",gtrapprox:"âª",gtrarr:"⥸",gtrdot:"â",gtreqless:"â",gtreqqless:"âª",gtrless:"â·",gtrsim:"â³",gvertneqq:"â©ï¸",gvnE:"â©ï¸",Hacek:"Ë",hairsp:"â",half:"\xbd",hamilt:"â",hardcy:"Ñ",HARDcy:"Ъ",harr:"â",hArr:"â",harrcir:"â¥",harrw:"â",Hat:"^",hbar:"â",hcirc:"Ä¥",Hcirc:"Ĥ",hearts:"â¥",heartsuit:"â¥",hellip:"â¦",hercon:"â¹",hfr:"\uD835\uDD25",Hfr:"â",HilbertSpace:"â",hksearow:"⤥",hkswarow:"⤦",hoarr:"â¿",homtht:"â»",hookleftarrow:"â©",hookrightarrow:"âª",hopf:"\uD835\uDD59",Hopf:"â",horbar:"â",HorizontalLine:"â",hscr:"\uD835\uDCBD",Hscr:"â",hslash:"â",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"â",HumpEqual:"â",hybull:"â",hyphen:"â",iacute:"\xed",Iacute:"\xcd",ic:"â£",icirc:"\xee",Icirc:"\xce",icy:"и",Icy:"Ð",Idot:"İ",iecy:"е",IEcy:"Ð",iexcl:"\xa1",iff:"â",ifr:"\uD835\uDD26",Ifr:"â",igrave:"\xec",Igrave:"\xcc",ii:"â
",iiiint:"â¨",iiint:"â",iinfin:"â§",iiota:"â©",ijlig:"ij",IJlig:"IJ",Im:"â",imacr:"Ä«",Imacr:"Ī",image:"â",ImaginaryI:"â
",imagline:"â",imagpart:"â",imath:"ı",imof:"â·",imped:"Ƶ",Implies:"â",in:"â",incare:"â
",infin:"â",infintie:"â§",inodot:"ı",int:"â«",Int:"â¬",intcal:"âº",integers:"â¤",Integral:"â«",intercal:"âº",Intersection:"â",intlarhk:"â¨",intprod:"⨼",InvisibleComma:"â£",InvisibleTimes:"â¢",iocy:"Ñ",IOcy:"Ð",iogon:"į",Iogon:"Ä®",iopf:"\uD835\uDD5A",Iopf:"\uD835\uDD40",iota:"ι",Iota:"Î",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",Iscr:"â",isin:"â",isindot:"âµ",isinE:"â¹",isins:"â´",isinsv:"â³",isinv:"â",it:"â¢",itilde:"Ä©",Itilde:"Ĩ",iukcy:"Ñ",Iukcy:"Ð",iuml:"\xef",Iuml:"\xcf",jcirc:"ĵ",Jcirc:"Ä´",jcy:"й",Jcy:"Ð",jfr:"\uD835\uDD27",Jfr:"\uD835\uDD0D",jmath:"È·",jopf:"\uD835\uDD5B",Jopf:"\uD835\uDD41",jscr:"\uD835\uDCBF",Jscr:"\uD835\uDCA5",jsercy:"Ñ",Jsercy:"Ð",jukcy:"Ñ",Jukcy:"Ð",kappa:"κ",Kappa:"Î",kappav:"ϰ",kcedil:"Ä·",Kcedil:"Ķ",kcy:"к",Kcy:"Ð",kfr:"\uD835\uDD28",Kfr:"\uD835\uDD0E",kgreen:"ĸ",khcy:"Ñ
",KHcy:"Ð¥",kjcy:"Ñ",KJcy:"Ð",kopf:"\uD835\uDD5C",Kopf:"\uD835\uDD42",kscr:"\uD835\uDCC0",Kscr:"\uD835\uDCA6",lAarr:"â",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"â",lambda:"λ",Lambda:"Î",lang:"â¨",Lang:"âª",langd:"â¦",langle:"â¨",lap:"âª
",Laplacetrf:"â",laquo:"\xab",larr:"â",lArr:"â",Larr:"â",larrb:"â¤",larrbfs:"â¤",larrfs:"â¤",larrhk:"â©",larrlp:"â«",larrpl:"⤹",larrsim:"⥳",larrtl:"â¢",lat:"⪫",latail:"â¤",lAtail:"â¤",late:"âª",lates:"âªï¸",lbarr:"â¤",lBarr:"â¤",lbbrk:"â²",lbrace:"{",lbrack:"[",lbrke:"â¦",lbrksld:"â¦",lbrkslu:"â¦",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ä»",lceil:"â",lcub:"{",lcy:"л",Lcy:"Ð",ldca:"⤶",ldquo:"â",ldquor:"â",ldrdhar:"⥧",ldrushar:"â¥",ldsh:"â²",le:"â¤",lE:"â¦",LeftAngleBracket:"â¨",leftarrow:"â",Leftarrow:"â",LeftArrow:"â",LeftArrowBar:"â¤",LeftArrowRightArrow:"â",leftarrowtail:"â¢",LeftCeiling:"â",LeftDoubleBracket:"â¦",LeftDownTeeVector:"⥡",LeftDownVector:"â",LeftDownVectorBar:"â¥",LeftFloor:"â",leftharpoondown:"â½",leftharpoonup:"â¼",leftleftarrows:"â",leftrightarrow:"â",Leftrightarrow:"â",LeftRightArrow:"â",leftrightarrows:"â",leftrightharpoons:"â",leftrightsquigarrow:"â",LeftRightVector:"â¥",LeftTee:"â£",LeftTeeArrow:"â¤",LeftTeeVector:"â¥",leftthreetimes:"â",LeftTriangle:"â²",LeftTriangleBar:"â§",LeftTriangleEqual:"â´",LeftUpDownVector:"â¥",LeftUpTeeVector:"⥠",LeftUpVector:"â¿",LeftUpVectorBar:"â¥",LeftVector:"â¼",LeftVectorBar:"â¥",leg:"â",lEg:"âª",leq:"â¤",leqq:"â¦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"âª",lesdotor:"âª",lesg:"âï¸",lesges:"âª",lessapprox:"âª
",lessdot:"â
1554",lesseqgtr:"â",lesseqqgtr:"âª",LessEqualGreater:"â",LessFullEqual:"â¦",LessGreater:"â¶",lessgtr:"â¶",LessLess:"⪡",lesssim:"â²",LessSlantEqual:"⩽",LessTilde:"â²",lfisht:"⥼",lfloor:"â",lfr:"\uD835\uDD29",Lfr:"\uD835\uDD0F",lg:"â¶",lgE:"âª",lHar:"⥢",lhard:"â½",lharu:"â¼",lharul:"⥪",lhblk:"â",ljcy:"Ñ",LJcy:"Ð",ll:"âª",Ll:"â",llarr:"â",llcorner:"â",Lleftarrow:"â",llhard:"⥫",lltri:"âº",lmidot:"Å",Lmidot:"Ä¿",lmoust:"â°",lmoustache:"â°",lnap:"âª",lnapprox:"âª",lne:"âª",lnE:"â¨",lneq:"âª",lneqq:"â¨",lnsim:"â¦",loang:"â¬",loarr:"â½",lobrk:"â¦",longleftarrow:"âµ",Longleftarrow:"â¸",LongLeftArrow:"âµ",longleftrightarrow:"â·",Longleftrightarrow:"âº",LongLeftRightArrow:"â·",longmapsto:"â¼",longrightarrow:"â¶",Longrightarrow:"â¹",LongRightArrow:"â¶",looparrowleft:"â«",looparrowright:"â¬",lopar:"â¦
",lopf:"\uD835\uDD5D",Lopf:"\uD835\uDD43",loplus:"â¨",lotimes:"⨴",lowast:"â",lowbar:"_",LowerLeftArrow:"â",LowerRightArrow:"â",loz:"â",lozenge:"â",lozf:"â§«",lpar:"(",lparlt:"â¦",lrarr:"â",lrcorner:"â",lrhar:"â",lrhard:"â¥",lrm:"â",lrtri:"â¿",lsaquo:"â¹",lscr:"\uD835\uDCC1",Lscr:"â",lsh:"â°",Lsh:"â°",lsim:"â²",lsime:"âª",lsimg:"âª",lsqb:"[",lsquo:"â",lsquor:"â",lstrok:"Å",Lstrok:"Å",lt:"<",Lt:"âª",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"â",lthree:"â",ltimes:"â",ltlarr:"⥶",ltquest:"â©»",ltri:"â",ltrie:"â´",ltrif:"â",ltrPar:"â¦",lurdshar:"â¥",luruhar:"⥦",lvertneqq:"â¨ï¸",lvnE:"â¨ï¸",macr:"\xaf",male:"â",malt:"â ",maltese:"â ",map:"â¦",Map:"â¤
",mapsto:"â¦",mapstodown:"â§",mapstoleft:"â¤",mapstoup:"â¥",marker:"â®",mcomma:"⨩",mcy:"м",Mcy:"Ð",mdash:"â",mDDot:"âº",measuredangle:"â¡",MediumSpace:"â",Mellintrf:"â³",mfr:"\uD835\uDD2A",Mfr:"\uD835\uDD10",mho:"â§",micro:"\xb5",mid:"â£",midast:"*",midcir:"â«°",middot:"\xb7",minus:"â",minusb:"â",minusd:"â¸",minusdu:"⨪",MinusPlus:"â",mlcp:"â«",mldr:"â¦",mnplus:"â",models:"â§",mopf:"\uD835\uDD5E",Mopf:"\uD835\uDD44",mp:"â",mscr:"\uD835\uDCC2",Mscr:"â³",mstpos:"â¾",mu:"μ",Mu:"Î",multimap:"â¸",mumap:"â¸",nabla:"â",nacute:"Å",Nacute:"Å",nang:"â â",nap:"â",napE:"⩰̸",napid:"â̸",napos:"Å",napprox:"â",natur:"â®",natural:"â®",naturals:"â",nbsp:"\xa0",nbump:"â̸",nbumpe:"â̸",ncap:"â©",ncaron:"Å",Ncaron:"Å",ncedil:"Å",Ncedil:"Å
",ncong:"â",ncongdot:"â©Ì¸",ncup:"â©",ncy:"н",Ncy:"Ð",ndash:"â",ne:"â ",nearhk:"⤤",nearr:"â",neArr:"â",nearrow:"â",nedot:"â̸",NegativeMediumSpace:"â",NegativeThickSpace:"â",NegativeThinSpace:"â",NegativeVeryThinSpace:"â",nequiv:"â¢",nesear:"⤨",nesim:"â̸",NestedGreaterGreater:"â«",NestedLessLess:"âª",NewLine:"\n",nexist:"â",nexists:"â",nfr:"\uD835\uDD2B",Nfr:"\uD835\uDD11",nge:"â±",ngE:"â§Ì¸",ngeq:"â±",ngeqq:"â§Ì¸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"â̸",ngsim:"âµ",ngt:"â¯",nGt:"â«â",ngtr:"â¯",nGtv:"â«Ì¸",nharr:"â®",nhArr:"â",nhpar:"⫲",ni:"â",nis:"â¼",nisd:"âº",niv:"â",njcy:"Ñ",NJcy:"Ð",nlarr:"â",nlArr:"â",nldr:"â¥",nle:"â°",nlE:"â¦Ì¸",nleftarrow:"â",nLeftarrow:"â",nleftrightarrow:"â®",nLeftrightarrow:"â",nleq:"â°",nleqq:"â¦Ì¸",nleqslant:"⩽̸",nles:"⩽̸",nless:"â®",nLl:"â̸",nlsim:"â´",nlt:"â®",nLt:"âªâ",nltri:"âª",nltrie:"â¬",nLtv:"âªÌ¸",nmid:"â¤",NoBreak:"â ",NonBreakingSpace:"\xa0",nopf:"\uD835\uDD5F",Nopf:"â",not:"\xac",Not:"⫬",NotCongruent:"â¢",NotCupCap:"â",NotDoubleVerticalBar:"â¦",NotElement:"â",NotEqual:"â ",NotEqualTilde:"â̸",NotExists:"â",NotGreater:"â¯",NotGreaterEqual:"â±",NotGreaterFullEqual:"â§Ì¸",NotGreaterGreater:"â«Ì¸",NotGreaterLess:"â¹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"âµ",NotHumpDownHump:"â̸",NotHumpEqual:"â̸",notin:"â",notindot:"âµÌ¸",notinE:"â¹Ì¸",notinva:"â",notinvb:"â·",notinvc:"â¶",NotLeftTriangle:"âª",NotLeftTriangleBar:"â§Ì¸",NotLeftTriangleEqual:"â¬",NotLess:"â®",NotLessEqual:"â°",NotLessGreater:"â¸",NotLessLess:"âªÌ¸",NotLessSlantEqual:"⩽̸",NotLessTilde:"â´",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"â",notniva:"â",notnivb:"â¾",notnivc:"â½",NotPrecedes:"â",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"â ",NotReverseElement:"â",NotRightTriangle:"â«",NotRightTriangleBar:"â§Ì¸",NotRightTriangleEqual:"â",NotSquareSubset:"â̸",NotSquareSubsetEqual:"â¢",NotSquareSuperset:"â̸",NotSquareSupersetEqual:"â£",NotSubset:"ââ",NotSubsetEqual:"â",NotSucceeds:"â",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"â¡",NotSucceedsTilde:"â¿Ì¸",NotSuperset:"ââ",NotSupersetEqual:"â",NotTilde:"â",NotTildeEqual:"â",NotTildeFullEqual:"â",NotTildeTilde:"â",NotVerticalBar:"â¤",npar:"â¦",nparallel:"â¦",nparsl:"⫽â¥",npart:"â̸",npolint:"â¨",npr:"â",nprcue:"â
1554 ",npre:"⪯̸",nprec:"â",npreceq:"⪯̸",nrarr:"â",nrArr:"â",nrarrc:"⤳̸",nrarrw:"â̸",nrightarrow:"â",nRightarrow:"â",nrtri:"â«",nrtrie:"â",nsc:"â",nsccue:"â¡",nsce:"⪰̸",nscr:"\uD835\uDCC3",Nscr:"\uD835\uDCA9",nshortmid:"â¤",nshortparallel:"â¦",nsim:"â",nsime:"â",nsimeq:"â",nsmid:"â¤",nspar:"â¦",nsqsube:"â¢",nsqsupe:"â£",nsub:"â",nsube:"â",nsubE:"â«
̸",nsubset:"ââ",nsubseteq:"â",nsubseteqq:"â«
̸",nsucc:"â",nsucceq:"⪰̸",nsup:"â
",nsupe:"â",nsupE:"â«Ì¸",nsupset:"ââ",nsupseteq:"â",nsupseteqq:"â«Ì¸",ntgl:"â¹",ntilde:"\xf1",Ntilde:"\xd1",ntlg:"â¸",ntriangleleft:"âª",ntrianglelefteq:"â¬",ntriangleright:"â«",ntrianglerighteq:"â",nu:"ν",Nu:"Î",num:"#",numero:"â",numsp:"â",nvap:"ââ",nvdash:"â¬",nvDash:"â",nVdash:"â®",nVDash:"â¯",nvge:"â¥â",nvgt:">â",nvHarr:"â¤",nvinfin:"â§",nvlArr:"â¤",nvle:"â¤â",nvlt:"<â",nvltrie:"â´â",nvrArr:"â¤",nvrtrie:"âµâ",nvsim:"â¼â",nwarhk:"⤣",nwarr:"â",nwArr:"â",nwarrow:"â",nwnear:"⤧",oacute:"\xf3",Oacute:"\xd3",oast:"â",ocir:"â",ocirc:"\xf4",Ocirc:"\xd4",ocy:"о",Ocy:"Ð",odash:"â",odblac:"Å",Odblac:"Å",odiv:"⨸",odot:"â",odsold:"⦼",oelig:"Å",OElig:"Å",ofcir:"⦿",ofr:"\uD835\uDD2C",Ofr:"\uD835\uDD12",ogon:"Ë",ograve:"\xf2",Ograve:"\xd2",ogt:"â§",ohbar:"⦵",ohm:"Ω",oint:"â®",olarr:"âº",olcir:"⦾",olcross:"⦻",oline:"â¾",olt:"â§",omacr:"Å",Omacr:"Å",omega:"Ï",Omega:"Ω",omicron:"ο",Omicron:"Î",omid:"⦶",ominus:"â",oopf:"\uD835\uDD60",Oopf:"\uD835\uDD46",opar:"⦷",OpenCurlyDoubleQuote:"â",OpenCurlyQuote:"â",operp:"⦹",oplus:"â",or:"â¨",Or:"â©",orarr:"â»",ord:"â©",order:"â´",orderof:"â´",ordf:"\xaa",ordm:"\xba",origof:"â¶",oror:"â©",orslope:"â©",orv:"â©",oS:"â",oscr:"â´",Oscr:"\uD835\uDCAA",oslash:"\xf8",Oslash:"\xd8",osol:"â",otilde:"\xf5",Otilde:"\xd5",otimes:"â",Otimes:"⨷",otimesas:"⨶",ouml:"\xf6",Ouml:"\xd6",ovbar:"â½",OverBar:"â¾",OverBrace:"â",OverBracket:"â´",OverParenthesis:"â",par:"â¥",para:"\xb6",parallel:"â¥",parsim:"⫳",parsl:"⫽",part:"â",PartialD:"â",pcy:"п",Pcy:"Ð",percnt:"%",period:".",permil:"â°",perp:"â¥",pertenk:"â±",pfr:"\uD835\uDD2D",Pfr:"\uD835\uDD13",phi:"Ï",Phi:"Φ",phiv:"Ï",phmmat:"â³",phone:"â",pi:"Ï",Pi:"Î ",pitchfork:"â",piv:"Ï",planck:"â",planckh:"â",plankv:"â",plus:"+",plusacir:"⨣",plusb:"â",pluscir:"⨢",plusdo:"â",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"â",pointint:"â¨",popf:"\uD835\uDD61",Popf:"â",pound:"\xa3",pr:"âº",Pr:"⪻",prap:"⪷",prcue:"â¼",pre:"⪯",prE:"⪳",prec:"âº",precapprox:"⪷",preccurlyeq:"â¼",Precedes:"âº",PrecedesEqual:"⪯",PrecedesSlantEqual:"â¼",PrecedesTilde:"â¾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"â¨",precsim:"â¾",prime:"â²",Prime:"â³",primes:"â",prnap:"⪹",prnE:"⪵",prnsim:"â¨",prod:"â",Product:"â",profalar:"â®",profline:"â",profsurf:"â",prop:"â",Proportion:"â·",Proportional:"â",propto:"â",prsim:"â¾",prurel:"â°",pscr:"\uD835\uDCC5",Pscr:"\uD835\uDCAB",psi:"Ï",Psi:"Ψ",puncsp:"â",qfr:"\uD835\uDD2E",Qfr:"\uD835\uDD14",qint:"â¨",qopf:"\uD835\uDD62",Qopf:"â",qprime:"â",qscr:"\uD835\uDCC6",Qscr:"\uD835\uDCAC",quaternions:"â",quatint:"â¨",quest:"?",questeq:"â",quot:'"',QUOT:'"',rAarr:"â",race:"â½Ì±",racute:"Å",Racute:"Å",radic:"â",raemptyv:"⦳",rang:"â©",Rang:"â«",rangd:"â¦",range:"⦥",rangle:"â©",raquo:"\xbb",rarr:"â",rArr:"â",Rarr:"â ",rarrap:"⥵",rarrb:"â¥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"â¤",rarrhk:"âª",rarrlp:"â¬",rarrpl:"â¥
",rarrsim:"⥴",rarrtl:"â£",Rarrtl:"â¤",rarrw:"â",ratail:"â¤",rAtail:"â¤",ratio:"â¶",rationals:"â",rbarr:"â¤",rBarr:"â¤",RBarr:"â¤",rbbrk:"â³",rbrace:"}",rbrack:"]",rbrke:"â¦",rbrksld:"â¦",rbrkslu:"â¦",rcaron:"Å",Rcaron:"Å",rcedil:"Å",Rcedil:"Å",rceil:"â",rcub:"}",rcy:"Ñ",Rcy:"Ð ",rdca:"⤷",rdldhar:"⥩",rdquo:"â",rdquor:"â",rdsh:"â³",Re:"â",real:"â",realine:"â",realpart:"â",reals:"â",rect:"â",reg:"\xae",REG:"\xae",ReverseElement:"â",ReverseEquilibrium:"â",ReverseUpEquilibrium:"⥯",rf
1554isht:"⥽",rfloor:"â",rfr:"\uD835\uDD2F",Rfr:"â",rHar:"⥤",rhard:"â",rharu:"â",rharul:"⥬",rho:"Ï",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"â©",rightarrow:"â",Rightarrow:"â",RightArrow:"â",RightArrowBar:"â¥",RightArrowLeftArrow:"â",rightarrowtail:"â£",RightCeiling:"â",RightDoubleBracket:"â§",RightDownTeeVector:"â¥",RightDownVector:"â",RightDownVectorBar:"â¥",RightFloor:"â",rightharpoondown:"â",rightharpoonup:"â",rightleftarrows:"â",rightleftharpoons:"â",rightrightarrows:"â",rightsquigarrow:"â",RightTee:"â¢",RightTeeArrow:"â¦",RightTeeVector:"â¥",rightthreetimes:"â",RightTriangle:"â³",RightTriangleBar:"â§",RightTriangleEqual:"âµ",RightUpDownVector:"â¥",RightUpTeeVector:"â¥",RightUpVector:"â¾",RightUpVectorBar:"â¥",RightVector:"â",RightVectorBar:"â¥",ring:"Ë",risingdotseq:"â",rlarr:"â",rlhar:"â",rlm:"â",rmoust:"â±",rmoustache:"â±",rnmid:"â«®",roang:"â",roarr:"â¾",robrk:"â§",ropar:"â¦",ropf:"\uD835\uDD63",Ropf:"â",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"â¦",rppolint:"â¨",rrarr:"â",Rrightarrow:"â",rsaquo:"âº",rscr:"\uD835\uDCC7",Rscr:"â",rsh:"â±",Rsh:"â±",rsqb:"]",rsquo:"â",rsquor:"â",rthree:"â",rtimes:"â",rtri:"â¹",rtrie:"âµ",rtrif:"â¸",rtriltri:"â§",RuleDelayed:"â§´",ruluhar:"⥨",rx:"â",sacute:"Å",Sacute:"Å",sbquo:"â",sc:"â»",Sc:"⪼",scap:"⪸",scaron:"Å¡",Scaron:"Å ",sccue:"â½",sce:"⪰",scE:"⪴",scedil:"Å",Scedil:"Å",scirc:"Å",Scirc:"Å",scnap:"⪺",scnE:"⪶",scnsim:"â©",scpolint:"â¨",scsim:"â¿",scy:"Ñ",Scy:"С",sdot:"â
",sdotb:"â¡",sdote:"⩦",searhk:"⤥",searr:"â",seArr:"â",searrow:"â",sect:"\xa7",semi:";",seswar:"⤩",setminus:"â",setmn:"â",sext:"â¶",sfr:"\uD835\uDD30",Sfr:"\uD835\uDD16",sfrown:"â¢",sharp:"â¯",shchcy:"Ñ",SHCHcy:"Щ",shcy:"Ñ",SHcy:"Ш",ShortDownArrow:"â",ShortLeftArrow:"â",shortmid:"â£",shortparallel:"â¥",ShortRightArrow:"â",ShortUpArrow:"â",shy:"\xad",sigma:"Ï",Sigma:"Σ",sigmaf:"Ï",sigmav:"Ï",sim:"â¼",simdot:"⩪",sime:"â",simeq:"â",simg:"âª",simgE:"⪠",siml:"âª",simlE:"âª",simne:"â",simplus:"⨤",simrarr:"⥲",slarr:"â",SmallCircle:"â",smallsetminus:"â",smashp:"⨳",smeparsl:"⧤",smid:"â£",smile:"â£",smt:"⪪",smte:"⪬",smtes:"⪬ï¸",softcy:"Ñ",SOFTcy:"Ь",sol:"/",solb:"â§",solbar:"â¿",sopf:"\uD835\uDD64",
1554Sopf:"\uD835\uDD4A",spades:"â ",spadesuit:"â ",spar:"â¥",sqcap:"â",sqcaps:"âï¸",sqcup:"â",sqcups:"âï¸",Sqrt:"â",sqsub:"â",sqsube:"â",sqsubset:"â",sqsubseteq:"â",sqsup:"â",sqsupe:"â",sqsupset:"â",sqsupseteq:"â",squ:"â¡",square:"â¡",Square:"â¡",SquareIntersection:"â",SquareSubset:"â",SquareSubsetEqual:"â",SquareSuperset:"â",SquareSupersetEqual:"â",SquareUnion:"â",squarf:"âª",squf:"âª",srarr:"â",sscr:"\uD835\uDCC8",Sscr:"\uD835\uDCAE",ssetmn:"â",ssmile:"â£",sstarf:"â",star:"â",Star:"â",starf:"â
",straightepsilon:"ϵ",straightphi:"Ï",strns:"\xaf",sub:"â",Sub:"â",subdot:"⪽",sube:"â",subE:"â«
",subedot:"â«",submult:"â«",subne:"â",subnE:"â«",subplus:"⪿",subrarr:"⥹",subset:"â",Subset:"â",subseteq:"â",subseteqq:"â«
",SubsetEqual:"â",subsetneq:"â",subsetneqq:"â«",subsim:"â«",subsub:"â«",subsup:"â«",succ:"â»",succapprox:"⪸",succcurlyeq:"â½",Succeeds:"â»",SucceedsEqual:"⪰",SucceedsSlantEqual:"â½",SucceedsTilde:"â¿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"â©",succsim:"â¿",SuchThat:"â",sum:"â",Sum:"â",sung:"âª",sup:"â",Sup:"â",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"â«",supe:"â",supE:"â«",supedot:"â«",Superset:"â",SupersetEqual:"â",suphsol:"â",suphsub:"â«",suplarr:"⥻",supmult:"â«",supne:"â",supnE:"â«",supplus:"â«",supset:"â",Supset:"â",supseteq:"â",supseteqq:"â«",supsetneq:"â",supsetneqq:"â«",supsim:"â«",supsub:"â«",supsup:"â«",swarhk:"⤦",swarr:"â",swArr:"â",swarrow:"â",swnwar:"⤪",szlig:"\xdf",Tab:" ",target:"â",tau:"Ï",Tau:"Τ",tbrk:"â´",tcaron:"Å¥",Tcaron:"Ť",tcedil:"Å£",Tcedil:"Å¢",tcy:"Ñ",Tcy:"Т",tdot:"â",telrec:"â",tfr:"\uD835\uDD31",Tfr:"\uD835\uDD17",there4:"â´",therefore:"â´",Therefore:"â´",theta:"θ",Theta:"Î",thetasym:"Ï",thetav:"Ï",thickapprox:"â",thicksim:"â¼",ThickSpace:"ââ",thinsp:"â",ThinSpace:"â",thkap:"â",thksim:"â¼",thorn:"\xfe",THORN:"\xde",tilde:"Ë",Tilde:"â¼",TildeEqual:"â",TildeFullEqual:"â
",TildeTilde:"â",times:"\xd7",timesb:"â ",timesbar:"⨱",timesd:"⨰",tint:"â",toea:"⤨",top:"â¤",topbot:"â¶",topcir:"⫱",topf:"\uD835\uDD65",Topf:"\uD835\uDD4B",topfork:"â«",tosa:"⤩",tprime:"â´",trade:"â¢",TRADE:"â¢",triangle:"âµ",triangledown:"â¿",triangleleft:"â",trianglelefteq:"â´",triangleq:"â",triangleright:"â¹",trianglerighteq:"âµ",tridot:"â¬",trie:"â",triminus:"⨺",TripleDot:"â",triplus:"⨹",trisb:"â§",tritime:"⨻",trpezium:"â¢",tscr:"\uD835\uDCC9",Tscr:"\uD835\uDCAF",tscy:"Ñ",TScy:"Ц",tshcy:"Ñ",TSHcy:"Ð",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"â¬",twoheadleftarrow:"â",twoheadrightarrow:"â ",uacute:"\xfa",Uacute:"\xda",uarr:"â",uArr:"â",Uarr:"â",Uarrocir:"â¥",ubrcy:"Ñ",Ubrcy:"Ð",ubreve:"Å",Ubreve:"Ŭ",ucirc:"\xfb",Ucirc:"\xdb",ucy:"Ñ",Ucy:"У",udarr:"â
",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"\uD835\uDD32",Ufr:"\uD835\uDD18",ugrave:"\xf9",Ugrave:"\xd9",uHar:"⥣",uharl:"â¿",uharr:"â¾",uhblk:"â",ulcorn:"â",ulcorner:"â",ulcrop:"â",ultri:"â¸",umacr:"Å«",Umacr:"Ū",uml:"\xa8",UnderBar:"_",UnderBrace:"â",UnderBracket:"âµ",UnderParenthesis:"â",Union:"â",UnionPlus:"â",uogon:"ų",Uogon:"Ų",uopf:"\uD835\uDD66",Uopf:"\uD835\uDD4C",uparrow:"â",Uparrow:"â",UpArrow:"â",UpArrowBar:"â¤",UpArrowDownArrow:"â
",updownarrow:"â",Updownarrow:"â",UpDownArrow:"â",UpEquilibrium:"⥮",upharpoonleft:"â¿",upharpoonright:"â¾",uplus:"â",UpperLeftArrow:"â",UpperRightArrow:"â",upsi:"Ï
",Upsi:"Ï",upsih:"Ï",upsilon:"Ï
",Upsilon:"Î¥",UpTee:"â¥",UpTeeArrow:"â¥",upuparrows:"â",urcorn:"â",urcorner:"â",urcrop:"â",uring:"ů",Uring:"Å®",urtri:"â¹",uscr:"\uD835\uDCCA",Uscr:"\uD835\uDCB0",utdot:"â°",utilde:"Å©",Utilde:"Ũ",utri:"âµ",utrif:"â´",uuarr:"â",uuml:"\xfc",Uuml:"\xdc",uwangle:"⦧",vangrt:"â¦",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"â
",varphi:"Ï",varpi:"Ï",varpropto:"â",varr:"â",vArr:"â",varrho:"ϱ",varsigma:"Ï",varsubsetneq:"âï¸",varsubsetneqq:"â«ï¸",varsupsetneq:"âï¸",varsupsetneqq:"â«ï¸",vartheta:"Ï",vartriangleleft:"â²",vartriangleright:"â³",vBar:"⫨",Vbar:"â««",vBarv:"â«©",vcy:"в",Vcy:"Ð",vdash:"â¢",vDash:"â¨",Vdash:"â©",VDash:"â«",Vdashl:"⫦",vee:"â¨",Vee:"â",veebar:"â»",veeeq:"â",vellip:"â®",verbar:"|",Verbar:"â",vert:"|",Vert:"â",VerticalBar:"â£",VerticalLine:"|",VerticalSeparator:"â",VerticalTilde:"â",VeryThinSpace:"â",vfr:"\uD835\uDD33",Vfr:"\uD835\uDD19",vltri:"â²",vnsub:"ââ",vnsup:"ââ",vopf:"\uD835\uDD67",Vopf:"\uD835\uDD4D",vprop:"â",vrtri:"â³",vscr:"\uD835\uDCCB",Vscr:"\uD835\uDCB1",vsubne:"âï¸",vsubnE:"â«ï¸",vsupne:"âï¸",vsupnE:"â«ï¸",Vvdash:"âª",vzigzag:"â¦",wcirc:"ŵ",Wcirc:"Å´",wedbar:"â©",wedge:"â§",Wedge:"â",wedgeq:"â",weierp:"â",wfr:"\uD835\uDD34",Wfr:"\uD835\uDD1A",wopf:"\uD835\uDD68",Wopf:"\uD835\uDD4E",wp:"â",wr:"â",wreath:"â",wscr:"\uD835\uDCCC",Wscr:"\uD835\uDCB2",xcap:"â",xcirc:"â¯",xcup:"â",xdtri:"â½",xfr:"\uD835\uDD35",Xfr:"\uD835\uDD1B",xharr:"â·",xhArr:"âº",xi:"ξ",Xi:"Î",xlarr:"âµ",xlArr:"â¸",xmap:"â¼",xnis:"â»",xodot:"â¨",xopf:"\uD835\uDD69",Xopf:"\uD835\uDD4F",xoplus:"â¨",xotime:"â¨",xrarr:"â¶",xrArr:"â¹",xscr:"\uD835\uDCCD",Xscr:"\uD835\uDCB3",xsqcup:"â¨",xuplus:"â¨",xutri:"â³",xvee:"â",xwedge:"â",yacute:"\xfd",Yacute:"\xdd",yacy:"Ñ",YAcy:"Я",ycirc:"Å·",Ycirc:"Ŷ",ycy:"Ñ",Ycy:"Ы",yen:"\xa5",yfr:"\uD835\uDD36",Yfr:"\uD835\uDD1C",yicy:"Ñ",YIcy:"Ð",y
1554opf:"\uD835\uDD6A",Yopf:"\uD835\uDD50",yscr:"\uD835\uDCCE",Yscr:"\uD835\uDCB4",yucy:"Ñ",YUcy:"Ю",yuml:"\xff",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"Ð",zdot:"ż",Zdot:"Å»",zeetrf:"â¨",ZeroWidthSpace:"â",zeta:"ζ",Zeta:"Î",zfr:"\uD835\uDD37",Zfr:"â¨",zhcy:"ж",ZHcy:"Ð",zigrarr:"â",zopf:"\uD835\uDD6B",Zopf:"â¤",zscr:"\uD835\uDCCF",Zscr:"\uD835\uDCB5",zwj:"â",zwnj:"â"},g={aacute:"\xe1",Aacute:"\xc1",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",aelig:"\xe6",AElig:"\xc6",agrave:"\xe0",Agrave:"\xc0",amp:"&",AMP:"&",aring:"\xe5",Aring:"\xc5",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",brvbar:"\xa6",ccedil:"\xe7",Ccedil:"\xc7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",COPY:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",Eacute:"\xc9",ecirc:"\xea",Ecirc:"\xca",egrave:"\xe8",Egrave:"\xc8",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",GT:">",iacute:"\xed",Iacute:"\xcd",icirc:"\xee",Icirc:"\xce",iexcl:"\xa1",igrave:"\xec",Igrave:"\xcc",iquest:"\xbf",iuml:"\xef",Iuml:"\xcf",laquo:"\xab",lt:"<",LT:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",Ntilde:"\xd1",oacute:"\xf3",Oacute:"\xd3",ocirc:"\xf4",Ocirc:"\xd4",ograve:"\xf2",Ograve:"\xd2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",Oslash:"\xd8",otilde:"\xf5",Otilde:"\xd5",ouml:"\xf6",Ouml:"\xd6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',QUOT:'"',raquo:"\xbb",reg:"\xae",REG:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",THORN:"\xde",times:"\xd7",uacute:"\xfa",Uacute:"\xda",ucirc:"\xfb",Ucirc:"\xdb",ugrave:"\xf9",Ugrave:"\xd9",uml:"\xa8",uuml:"\xfc",Uuml:"\xdc",yacute:"\xfd",Yacute:"\xdd",yen:"\xa5",yuml:"\xff"},y={0:"�",128:"â¬",130:"â",131:"Æ",132:"â",133:"â¦",134:"â ",135:"â¡",136:"Ë",137:"â°",138:"Å ",139:"â¹",140:"Å",142:"Ž",145:"â",146:"â",147:"â",148:"â",149:"â¢",150:"â",151:"â",152:"Ë",153:"â¢",154:"Å¡",155:"âº",156:"Å",158:"ž",159:"Ÿ"},v=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],b=String.fromCharCode,x=({}).hasOwnProperty,_=function(e,t){return x.call(e,t)},w=function(e,t){for(var n=-1,r=e.length;++n<r;)if(e[n]==t)return!0;return!1},k=function(e,t){if(!e)return t;var n,r={};for(n in t)r[n]=_(e,n)?e[n]:t[n];return r},C=function(e,t){var n="";return e>=55296&&e<=57343||e>1114111?(t&&S("character reference outside the permissible Unicode range"),"�"):_(y,e)?(t&&S("disallowed character reference"),y[e]):(t&&w(v,e)&&S("disallowed character reference"),e>65535&&(e-=65536,n+=b(e>>>10&1023|55296),e=56320|1023&e),n+=b(e))},E=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},A=function(e){return"&#"+e+";"},S=function(e){throw Error("Parse error: "+e)},(T=function(e,t){(t=k(t,T.options)).strict&&p.test(e)&&S("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,i=t.allowUnsafeSymbols,d=t.decimal?A:E,h=function(e){return d(e.charCodeAt(0))};return n?(e=e.replace(s,function(e){return r&&_(u,e)?"&"+u[e]+";":h(e)}),r&&(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),r&&(e=e.replace(l,function(e){return"&"+u[e]+";"}))):r?(i||(e=e.replace(c,function(e){return"&"+u[e]+";"})),e=(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(l,function(e){return"&"+u[e]+";"})):i||(e=e.replace(c,h)),e.replace(o,function(e){return d((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536)}).replace(a,h)}).options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal
1554:!1},(j=function(e,t){var n=(t=k(t,j.options)).strict;return n&&h.test(e)&&S("malformed character reference"),e.replace(f,function(e,r,i,o,s,a,l,u,c){var d,h;return r?m[h=r]:i?(h=i,o&&t.isAttributeValue)?(n&&"="==o&&S("`&` did not start a character reference"),e):(n&&S("named character reference was not terminated by a semicolon"),g[h]+(o||"")):s?(d=a,n&&!d&&S("character reference was not terminated by a semicolon"),C(parseInt(s,10),n)):l?(d=u,n&&!d&&S("character reference was not terminated by a semicolon"),C(parseInt(l,16),n)):(n&&S("named character reference was not terminated by a semicolon"),e)})}).options={isAttributeValue:!1,strict:!1},N={version:"1.2.0",encode:T,decode:j,escape:function(e){return e.replace(c,function(e){return d[e]})},unescape:j},void 0===(r=(function(){return N}).call(t,n,t,e))||(e.exports=r)},24641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},24809:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"}))})},25225:(e,t,n)=>{"use strict";let r,i;n.d(t,{E3:()=>u,Dm:()=>h}),function(e){let t,n={};e.attach=function(e,t){n[e]||(n[e]=[]),n[e].push(t)}
1554,e.fire=function(e,t=[]){n[e]&&n[e].forEach(e=>{e(...t)})},e.remove=function(e,t){t||delete n[e],n[e]&&(n[e]=n[e].filter(e=>t!==e))},e.dom=function(e,n,r){return t||(t=e.addEventListener?(e,t,n)=>e.addEventListener(t,n,!1):"function"==typeof e.attachEvent?(e,t,n)=>e.attachEvent(`on${t}`,n,!1):(e,t,n)=>e[`on${t}`]=n),t(e,n,r)}}(c||(c={}));class o{constructor(e,t,n){this.ifvisible=e,this.seconds=t,this.callback=n,this.token=0,this.stopped=!1,this.start(),this.ifvisible.on("statusChanged",e=>{!1===this.stopped&&(e.status===s?this.start():this.pause())})}start(){this.stopped=!1,clearInterval(this.token),this.token=setInterval(this.callback,1e3*this.seconds)}stop(){this.stopped=!0,clearInterval(this.token)}resume(){this.start()}pause(){this.stop()}}let s="active",a="idle",l="hidden";class u{constructor(e,t){if(this.root=e,this.doc=t,this.status=s,this.VERSION="2.0.11",this.timers=[],this.idleTime=3e4,this.idleStartedTime=0,this.isLegacyModeOn=!1,void 0!==this.doc.hidden?(r="hidden",i="visibilitychange"):void 0!==this.doc.mozHidden?(r="mozHidden",i="mozvisibilitychange"):void 0!==this.doc.msHidden?(r="msHidden",i="msvisibilitychange"):void 0!==this.doc.webkitHidden&&(r="webkitHidden",i="webkitvisibilitychange"),void 0===r)this.legacyMode();else{let e=()=>{this.doc[r]?this.blur():this.focus()};e(),c.dom(this.doc,i,e)}this.startIdleTimer(),this.trackIdleStatus()}legacyMode(){if(this.isLegacyModeOn)return;let e="blur",t=function(){let e,t=3,n=document.createElement("div"),r=n.getElementsByTagName("i");for(;n.innerHTML=`<!--[if gt IE ${++t}]><i></i><![endif]-->`,r[0];);return t>4?t:e}();(!t||t<9)&&(e="focusout"),c.dom(this.root,e,()=>this.blur()),c.dom(this.root,"focus",()=>this.focus()),this.isLegacyModeOn=!0}startIdleTimer(e){e instanceof MouseEvent&&0===e.movementX&&0===e.movementY||(this.timers.map(clearTimeout),this.timers.length=0,this.status===a&&this.wakeup(),this.idleStartedTime=+new Date,this.timers.push(setTimeout(()=>{(this.status===s||this.status===l)&&this.idle()},this.idleTime)))}trackIdleStatus(){c.dom(this.doc,"mousemove",this.startIdleTimer.bind(this)),c.dom(this.doc,"mousedown",this.startIdleTimer.bind(this)),c.dom(this.doc,"keyup",this.startIdleTimer.bind(this)),c.dom(this.doc,"touchstart",this.startIdleTimer.bind(this)),c.dom(this.doc,"scroll",this.startIdleTimer.bind(this)),c.dom(this.root,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))}on(e,t){return c.attach(e,t),this}off(e,t){return c.remove(e,t),this}setIdleDuration(e){return this.idleTime=1e3*e,this.startIdleTimer(),this}getIdleDuration(){return this.idleTime}getIdleInfo(){let e,t=+new Date;if(this.status===a)e={isIdle:!0,idleFor:t-this.idleStartedTime,timeLeft:0,timeLeftPer:100};else{let n=this.idleStartedTime+this.idleTime-t;e={isIdle:!1,idleFor:t-this.idleStartedTime,timeLeft:n,timeLeftPer:parseFloat((100-100*n/this.idleTime).toFixed(2))}}return e}idle(e){if(e)this.on("idle",e);else{this.status=a,c.fire("idle");let e=[{status:this.status}];c.fire("statusChanged",e)}return this}blur(e){if(e)this.on("blur",e);else{this.status=l,c.fire("blur");let e=[{status:this.status}];c.fire("statusChanged",e)}return this}focus(e){return e?this.on("focus",e):this.status!==s&&(this.status=s,c.fire("focus"),c.fire("wakeup"),c.fire("statusChanged",[{status:this.status}])),this}wakeup(e){return e?this.on("wakeup",e):this.status!==s&&(this.status=s,c.fire("wakeup"),c.fire("statusChanged",[{status:this.status}])),this}onEvery(e,t){return new o(this,e,t)}now(e){return void 0!==e?this.status===e:this.status===s}}var c,d=n(14232);let h=e=>{let t=(0,d.useRef)(!0);return(0,d.useEffect)(()=>{let n=new u(window,document);n.setIdleDuration(1);let r=()=>{t.current||(t.current=!0,e?.())},i=()=>{t.current=!1};return n.on("wakeup",r),n.on("blur",i),n.on("idle",i),()=>{n.off("wakeup",r),n.off("blur",i),n.off("idle",i)}},[e]),t};"object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g},25240:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t,n){if(!t||!n)return t;let r=n.match(/^(\w+)(?:\.(.*))?$/);if(r){let n=t[r[1]];return void 0!==n?e(n,r[2]):void 0}let i=n.match(/^\[(\d+)\](\.)?(.*)$/);if(i)return e(t[parseInt(i[1])],i[3])}})},25268:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(37876),i=n(81684),o=n(80229),s=n(54587),a=n.n(s);function l(e){let t,{className:n,domRef:s}=e,{photoUrl:l}=e;if(e.photoSize){let n=e.photoSize;t={...{minWidth:`${n}px`,maxWidth:`${n}px`,width:`${n}px`,height:`${n}px`},...e.style||{}}}else t=e.style;let u=e.alt;return(e.name&&(u=`Member photo of ${e.name}`),l)?(0,r.jsx)(a(),{className:(0,o.Wd)(n,"rounded-full object-cover md:block"),ref:s,src:l,style:t,alt:u||"Member photo",width:e.photoSize||40,height:e.photoSize||40,"data-sentry-element":"Image","data-sentry-component":"MemberPhoto","data-sentry-source-file":"MemberPhoto.tsx"}):(0,r.jsx)(i.A,{className:(0,o.Wd)(n),style:t})}}
1554,25898:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"}))})},26437:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(14232),i=n(62307),o=n(83660),s=n(64671);function a({disabled:e=!1}={}){let t=(0,r.useRef)(null),[n,l]=(0,r.useState)(!1),u=(0,o.L)(),c=(0,s._)(()=>{t.current=null,l(!1),u.dispose()}),d=(0,s._)(e=>{if(u.dispose(),null===t.current){t.current=e.currentTarget,l(!0);{let n=(0,i.T)(e.currentTarget);u.addEventListener(n,"pointerup",c,!1),u.addEventListener(n,"pointermove",e=>{if(t.current){var n,r;let i,o;l((i=e.width/2,o=e.height/2,n={top:e.clientY-o,right:e.clientX+i,bottom:e.clientY+o,left:e.clientX-i},r=t.current.getBoundingClientRect(),!(!n||!r||n.right<r.left||n.left>r.right||n.bottom<r.top||n.top>r.bottom)))}},!1),u.addEventListener(n,"pointercancel",c,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:d,onPointerUp:c,onClick:c}}}},26478:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(49995),o=n(48230),s=n.n(o);function a(e){let{className:t,href:n,label:o,parentTag:a}=e;return(0,r.jsxs)(s(),{href:n||"/",className:(0,i.A)(a,"Button",t),role:"button","data-sentry-element":"Link","data-sentry-component":"Button","data-sentry-source-file":"Button.tsx",children:[(0,r.jsx)("span",{className:"pre-content"}),o,(0,r.jsx)("span",{className:"post-content"})]})}},26975:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(94829),o=n(9664);function s(e){let{error:t,flashStyle:n}=e;return t?"admin"===n?(0,r.jsx)(o.A,{type:"warning",children:t?.message}):(0,r.jsx)(i.A,{type:"warning","data-sentry-element":"ThemeFlash","data-sentry-component":"ApolloApiError","data-sentry-source-file":"ApolloApiError.tsx",children:t?.message}):null}},27136:(e,t,n)=>{var r=n(19850),i=n(52742);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},27185:(e,t,n)=>{"use strict";n.d(t,{A:()=>eD});var r=n(37876),i=n(56788),o=n(36607),s=n(14232),a=n(98477);function l(e,t,n){let r,i=n.initialDeps??[];return()=>{var o,s,a,l;let u,c;n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(u=Date.now());let d=e();if(!(d.length!==i.length||d.some((e,t)=>i[t]!==e)))return r;if(i=d,n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(c=Date.now()),r=t(...d),n.key&&(null==(a=n.debug)?void 0:a.call(n))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%câ± ${i(t,5)} /${i(e,5)} ms`,` 1555 font-size: .6rem; 1556 font-weight: bold; 1557 color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,r),r}}function u(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let c=e=>e,d=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},h=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let o=new r.ResizeObserver(e=>{let t=e[0];if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return void i({width:e.inlineSize,height:e.blockSize})}i(n.getBoundingClientRect())});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},p={passive:!0},f="undefined"==typeof window||"onscrollend"in window,m=(e,t)=>
1557{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=0,o=e.options.useScrollendEvent&&f?()=>void 0:((e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}})(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),s=r=>()=>{let{horizontal:s,isRtl:a}=e.options;i=s?n.scrollLeft*(a&&-1||1):n.scrollTop,o(),t(i,r)},a=s(!0),l=s(!1);return l(),n.addEventListener("scroll",a,p),n.addEventListener("scrollend",l,p),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",l)}},g=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},y=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class v{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{this._measureElement(e.target,e)})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:c,rangeExtractor:d,onChange:()=>{},measureElement:g,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=l(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}}
1557,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let o=r.get(t.lane);if(null==o||t.end>o.end?r.set(t.lane,t):t.end<o.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=l(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i}),{key:!1}),this.getMeasurements=l(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let a=this.measurementsCache.slice(0,s);for(let i=s;i<e;i++){let e=r(i),s=1===this.options.lanes?a[i-1]:this.getFurthestMeasurement(a,i),l=s?s.end+this.options.gap:t+n,u=o.get(e),c="number"==typeof u?u:this.options.estimateSize(i),d=l+c,h=s?s.lane:i%this.options.lanes;a[i]={index:i,start:l,size:c,end:d,key:e,lane:h}}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=l(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n}){let r=e.length-1,i=b(0,r,t=>e[t].start,n),o=i;for(;o<r&&e[o].end<n+t;)o++;return{startIndex:i,endIndex:o}}({measurements:e,outerSize:t,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=l(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(e,t,n,r)=>null===t?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:n,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;let i=r.key,o=this.elementsCache.get(i);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});this._measureElement(e,void 0)},this.getVirtualItems=l(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return u(t[b(0,t.length-1,e=>u(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>
1557{let n=this.getSize(),r=this.getScrollOffset();"auto"===t&&(t=e<=r?"start":e>=r+n?"end":"start"),"start"===t||("end"===t?e-=n:"center"===t&&(e-=n/2));let i=this.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-n,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let r=this.getSize(),i=this.getScrollOffset();if("auto"===t)if(n.end>=i+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}let o="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,o]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[t]=u(this.getOffsetForIndex(e,o));1>Math.abs(t-this.getScrollOffset())||this.scrollToIndex(e,{align:o,behavior:n})}else this.scrollToIndex(e,{align:o,behavior:n})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
1557stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t=this.getMeasurements();return Math.max((0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(e=>e.end)))-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let b=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else{if(!(o>r))return i;t=i-1}}return e>0?e-1:0},x="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;var _=n(26437),w=n(33163),k=n(48774),C=n(13566),E=n(83660),A=n(1495),S=n(64671),T=n(12853),j=n(47737),N=n(29842),O=n(83988),I=n(6869),D=n(44884),M=n(93162);function L(e){let t=(0,s.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,M.M)(e,"blur",e=>{let n=e.target;n instanceof HTMLInputElement&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),(0,S._)(()=>{if(document.activeElement!==e&&e instanceof HTMLInputElement&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:r}=t.current;null!==n&&null!==r&&e.setSelectionRange(n,r)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var R=n(22529),P=n(96815),F=n(29203),B=n(66409),$=n(6186),q=n(11562),V=n(41632),z=n(35308),U=n(73302),H=n(59884),W=n(41114),G=n(82153),K=n(39103),J=n(97922),Q=n(64599),Y=n(48160),X=n(31787),Z=n(7784),ee=n(99289),et=n(58127),en=n(41612),er=n(96946),ei=n(33890),eo=n(22522),es=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(es||{}),ea=n(98496),el=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(el||{}),eu=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(eu||{}),ec=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(ec||{}),ed=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.SetTyping=3]="SetTyping",e[e.RegisterOption=4]="RegisterOption",e[e.UnregisterOption=5]="UnregisterOption",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualConfiguration=7]="UpdateVirtualConfiguration",e[e.SetInputElement=8]="SetInputElement",e[e.SetButtonElement=9]="SetButtonElement",e[e.SetOptionsElement=10]="SetOptionsElement",e))(ed||{});function eh(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=t(e.options.slice()),i=r.length>0&&null!==r[0].dataRef.current.order?r.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,Z.wl)(r,e=>e.dataRef.current.domRef.current),o=n?i.indexOf(n):null;return -1===o&&(o=null),{options:i,activeOptionIndex:o}}let ep={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&&n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1}}return{...e,comboboxState:0,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,r,i,o;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&!(null!=(r=e.dataRef.current)&&r.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:r}=e.virtual,o=t.focus===Y.B.Specific?t.idx:(0,Y.X)(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,i;return null!=(i=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!r(e)))?i:null},resolveDisabled:r,resolveId(){throw Error("Function not implemented.")}}),s=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===o&&e.activationTrigger===s?e:{...e,activeOptionIndex:o,activationTrigger:s,isTyping:!1,__demoMode:!1}}let s=eh(e);if(null===s.activeOptionIndex){let e=s.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(s.activeOptionIndex=e)}let a=t.focus===Y.B.Specific?t.idx:(0,Y.X)(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),l=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===a&&e.activationTrigger===l?e:{...e,...s,isTyping:!1,activeOptionIndex:a,activationTrigger:l,__demoMode:!1}},4:(e,t)=>{var n,r,i;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let o=t.payload,s=eh(e,e=>(e.push(o),e));null===e.activeOptionIndex&&null!=(r=e.dataRef.current)&&r.isSelected(t.payload.dataRef.current.value)&&(s.activeOptionIndex=s.options.indexOf(o));let a={...e,...s,activationTrigger:2};return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(
1557a.activeOptionIndex=0),a},5:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let r=eh(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...r,activationTrigger:2}},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var n,r;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let i=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i=-1!==n?n:null}return{...e,activeOptionIndex:i,virtual:{options:t.options,disabled:null!=(r=t.disabled)?r:()=>!1}}},8:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},9:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},10:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},ef=(0,s.createContext)(null);function em(e){let t=(0,s.useContext)(ef);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,em),t}return t}ef.displayName="ComboboxActionsContext";let eg=(0,s.createContext)(null);function ey(e){let t=eb("VirtualProvider"),{options:n}=t.virtual,[r,i]=(0,s.useMemo)(()=>{let e=t.optionsElement;if(!e)return[0,0];let n=window.getComputedStyle(e);return[parseFloat(n.paddingBlockStart||n.paddingTop),parseFloat(n.paddingBlockEnd||n.paddingBottom)]},[t.optionsElement]),o=function(e){let t=s.useReducer(()=>({}),{})[1],n={...e,onChange:(n,r)=>{var i;r?(0,a.flushSync)(t):t(),null==(i=e.onChange)||i.call(e,n,r)}},[r]=s.useState(()=>new v(n));return r.setOptions(n),x(()=>r._didMount(),[]),x(()=>r._willUpdate()),r}({observeElementRect:h,observeElementOffset:m,scrollToFn:y,...{enabled:0!==n.length,scrollPaddingStart:r,scrollPaddingEnd:i,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.optionsElement,overscan:12}}),[l,u]=(0,s.useState)(0);(0,j.s)(()=>{u(e=>e+1)},[n]);let c=o.getVirtualItems();return 0===c.length?null:s.createElement(eg.Provider,{value:o},s.createElement("div",{style:{position:"relative",width:"100%",height:`${o.getTotalSize()}px`},ref:e=>{e&&0!==t.activationTrigger&&null!==t.activeOptionIndex&&n.length>t.activeOptionIndex&&o.scrollToIndex(t.activeOptionIndex)}},c.map(t=>{var r;return s.createElement(s.Fragment,{key:t.key},s.cloneElement(null==(r=e.children)?void 0:r.call(e,{...e.slot,option:n[t.index]}),{key:`${l}-${t.key}`,"data-index":t.index,"aria-setsize":n.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))})))}let ev=(0,s.createContext)(null);function eb(e){let t=(0,s.useContext)(ev);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eb),t}return t}function ex(e,t){return(0,ee.Y)(t.type,ep,e,t)}ev.displayName="ComboboxDataContext";let e_=s.Fragment,ew=en.Ac.RenderStrategy|en.Ac.Static,ek=(0,en.FX)(function(e,t){var n,r;let i=(0,z._)(),{value:o,defaultValue:a,onChange:l,form:u,name:c,by:d,disabled:h=i||!1,onClose:p,__demoMode:f=!1,multiple:m=!1,immediate:g=!1,virtual:y=null,nullable:v,...b}=e,x=(0,C.K)(a),[_=m?[]:void 0,E]=(0,k.P)(o,l,x),[A,T]=(0,s.useReducer)(ex,{dataRef:(0,s.createRef)(),comboboxState:+!f,isTyping:!1,options:[],virtual:y?{options:y.options,disabled:null!=(n=y.disabled)?n:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:f}),N=(0,s.useRef)(!1),O=(0,s.useRef)({static:!1,hold:!1}),D=(0,w.t)(d),M=(0,S._)(e=>y?null===d?y.options.indexOf(e):y.options.findIndex(t=>D(t,e)):A.options.findIndex(t=>D(t.dataRef.current.value,e))),L=(0,s.useCallback)(e=>(0,ee.Y)(P.mode,{1:()=>_.some(t=>D(t,e)),0:()=>D(_,e)}),[_]),R=(0,S._)(e=>A.activeOptionIndex===M(e)),P=(0,s.useMemo)(()=>({...A,immediate:g,optionsPropsRef:O,value:_,defaultValue:x,disabled:h,mode:+!!m,virtual:y?A.virtual:null,get activeOptionIndex(){if(N.current&&null===A.activeOptionIndex&&(y?y.options.length>0:A.options.length>0)){if(y){let e=y.options.findIndex(e=>{var t,n;return!(null!=(n=null==(t=y.disabled)?void 0:t.call(y,e))&&n)});if(-1!==e)return e}let e=A.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==e)return e}return A.activeOptionIndex},calculateIndex:M,compare:D,isSelected:L,isActive:R}),[_,x,h,m,f,A,y]);(0,j.s)(()=>{var e;y&&T({type:7,options:y.options,disabled:null!=(e=y.disabled)?e:null})},[y,null==y?void 0:y.options,null==y?void 0:y.disabled]),(0,j.s)(()=>{A.dataRef.current=P},[P]);let F=0===P.comboboxState;(0,I.j)(F,[P.buttonElement,P.inputElement,P.optionsElement],()=>ei.closeCombobox());let B=(0,s.useMemo)(()=>{var e,t,n;return{open:0===P.comboboxState,disabled:h,activeIndex:P.activeOptionIndex,activeOption:null===P.activeOptionIndex?null:P.virtual?P.virtual.options[null!=(e=P.activeOptionIndex)?e:0]:null!=(n=null==(t=P.options[P.activeOptionIndex])?void 0:t.dataRef.current.value)?n:null,value:_}},[P,h,_]),$=(0,S._)(()=>
1557{if(null!==P.activeOptionIndex){if(ei.setIsTyping(!1),P.virtual)Q(P.virtual.options[P.activeOptionIndex]);else{let{dataRef:e}=P.options[P.activeOptionIndex];Q(e.current.value)}ei.goToOption(Y.B.Specific,P.activeOptionIndex)}}),q=(0,S._)(()=>{T({type:0}),N.current=!0}),V=(0,S._)(()=>{T({type:1}),N.current=!1,null==p||p()}),W=(0,S._)(e=>{T({type:3,isTyping:e})}),G=(0,S._)((e,t,n)=>(N.current=!1,e===Y.B.Specific?T({type:2,focus:Y.B.Specific,idx:t,trigger:n}):T({type:2,focus:e,trigger:n}))),J=(0,S._)((e,t)=>(T({type:4,payload:{id:e,dataRef:t}}),()=>{P.isActive(t.current.value)&&(N.current=!0),T({type:5,id:e})})),Q=(0,S._)(e=>(0,ee.Y)(P.mode,{0:()=>null==E?void 0:E(e),1(){let t=P.value.slice(),n=t.findIndex(t=>D(t,e));return -1===n?t.push(e):t.splice(n,1),null==E?void 0:E(t)}})),X=(0,S._)(e=>{T({type:6,trigger:e})}),Z=(0,S._)(e=>{T({type:8,element:e})}),et=(0,S._)(e=>{T({type:9,element:e})}),er=(0,S._)(e=>{T({type:10,element:e})}),ei=(0,s.useMemo)(()=>({onChange:Q,registerOption:J,goToOption:G,setIsTyping:W,closeCombobox:V,openCombobox:q,setActivationTrigger:X,selectActiveOption:$,setInputElement:Z,setButtonElement:et,setOptionsElement:er}),[]),[es,ea]=(0,eo.b0)(),el=(0,s.useCallback)(()=>{if(void 0!==x)return null==E?void 0:E(x)},[E,x]),eu=(0,en.Ci)();return s.createElement(ea,{value:es,props:{htmlFor:null==(r=P.inputElement)?void 0:r.id},slot:{open:0===P.comboboxState,disabled:h}},s.createElement(U.St,null,s.createElement(ef.Provider,{value:ei},s.createElement(ev.Provider,{value:P},s.createElement(K.El,{value:(0,ee.Y)(P.comboboxState,{0:K.Uw.Open,1:K.Uw.Closed})},null!=c&&s.createElement(H.CL,{disabled:h,data:null!=_?{[c]:_}:{},form:u,onReset:el}),eu({ourProps:null===t?{}:{ref:t},theirProps:b,slot:B,defaultTag:e_,name:"Combobox"}))))))}),eC=(0,en.FX)(function(e,t){var n;let r=eb("Combobox.Button"),l=em("Combobox.Button"),u=(0,F.P)(t,l.setButtonElement),c=(0,s.useId)(),{id:d=`headlessui-combobox-button-${c}`,disabled:h=r.disabled||!1,autoFocus:p=!1,...f}=e,m=L(r.inputElement),g=(0,S._)(e=>{switch(e.key){case ei.D.Space:case ei.D.Enter:e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(0,a.flushSync)(()=>l.openCombobox()),m();return;case ei.D.ArrowDown:e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&((0,a.flushSync)(()=>l.openCombobox()),r.value||l.goToOption(Y.B.First)),m();return;case ei.D.ArrowUp:e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&((0,a.flushSync)(()=>l.openCombobox()),r.value||l.goToOption(Y.B.Last)),m();return;case ei.D.Escape:if(0!==r.comboboxState)return;e.preventDefault(),r.optionsElement&&!r.optionsPropsRef.current.static&&e.stopPropagation(),(0,a.flushSync)(()=>l.closeCombobox()),m();return;default:return}}),y=(0,S._)(e=>{e.preventDefault(),(0,Q.l)(e.currentTarget)||(e.button===es.Left&&(0===r.comboboxState?l.closeCombobox():l.openCombobox()),m())}),v=(0,eo.o2)([d]),{isFocusVisible:b,focusProps:x}=(0,i.o)({autoFocus:p}),{isHovered:w,hoverProps:k}=(0,o.M)({isDisabled:h}),{pressed:C,pressProps:E}=(0,_.Z)({disabled:h}),A=(0,s.useMemo)(()=>({open:0===r.comboboxState,active:C||0===r.comboboxState,disabled:h,value:r.value,hover:w,focus:b}),[r,w,b,C,h]),T=(0,en.v6)({ref:u,id:d,type:(0,R.c)(e,r.buttonElement),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=r.optionsElement)?void 0:n.id,"aria-expanded":0===r.comboboxState,"aria-labelledby":v,disabled:h||void 0,autoFocus:p,onMouseDown:y,onKeyDown:g},x,k,E);return(0,en.Ci)()({ourProps:T,theirProps:f,slot:A,defaultTag:"button",name:"Combobox.Button"})}),eE=(0,en.FX)(function(e,t){var n,r,l,u,c;let d=eb("Combobox.Input"),h=em("Combobox.Input"),p=(0,s.useId)(),f=(0,G.q)(),{id:m=f||`headlessui-combobox-input-${p}`,onChange:g,displayValue:y,disabled:v=d.disabled||!1,autoFocus:b=!1,type:x="text",..._}=e,w=(0,s.useRef)(null),k=(0,F.P)(w,t,(0,U.Xc)(),h.setInputElement),C=(0,D.g)(d.inputElement),A=(0,E.L)(),T=(0,S._)(()=>{h.onChange(null),d.optionsElement&&(d.optionsElement.scrollTop=0),h.goToOption(Y.B.Nothing)}),j=(0,s.useMemo)(()=>{var e;return"function"==typeof y&&void 0!==d.value?null!=(e=y(d.value))?e:"":"string"==typeof d.value?d.value:""},[d.value,y]);
1557(0,V.F)(([e,t],[n,r])=>{if(d.isTyping)return;let i=w.current;i&&((0===r&&1===t||e!==n)&&(i.value=e),requestAnimationFrame(()=>{if(d.isTyping||!i||(null==C?void 0:C.activeElement)!==i)return;let{selectionStart:e,selectionEnd:t}=i;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&i.setSelectionRange(i.value.length,i.value.length)}))},[j,d.comboboxState,C,d.isTyping]),(0,V.F)(([e],[t])=>{if(0===e&&1===t){if(d.isTyping)return;let e=w.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:r,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(n,r,i):e.setSelectionRange(n,r)}},[d.comboboxState]);let N=(0,s.useRef)(!1),O=(0,S._)(()=>{N.current=!0}),I=(0,S._)(()=>{A.nextFrame(()=>{N.current=!1})}),M=(0,S._)(e=>{switch(h.setIsTyping(!0),e.key){case ei.D.Enter:if(0!==d.comboboxState||N.current)return;if(e.preventDefault(),e.stopPropagation(),null===d.activeOptionIndex)return void h.closeCombobox();h.selectActiveOption(),0===d.mode&&h.closeCombobox();break;case ei.D.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,ee.Y)(d.comboboxState,{0:()=>h.goToOption(Y.B.Next),1:()=>h.openCombobox()});case ei.D.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,ee.Y)(d.comboboxState,{0:()=>h.goToOption(Y.B.Previous),1:()=>{(0,a.flushSync)(()=>h.openCombobox()),d.value||h.goToOption(Y.B.Last)}});case ei.D.Home:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),h.goToOption(Y.B.First);case ei.D.PageUp:return e.preventDefault(),e.stopPropagation(),h.goToOption(Y.B.First);case ei.D.End:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),h.goToOption(Y.B.Last);case ei.D.PageDown:return e.preventDefault(),e.stopPropagation(),h.goToOption(Y.B.Last);case ei.D.Escape:return 0!==d.comboboxState?void 0:(e.preventDefault(),d.optionsElement&&!d.optionsPropsRef.current.static&&e.stopPropagation(),0===d.mode&&null===d.value&&T(),h.closeCombobox());case ei.D.Tab:if(0!==d.comboboxState)return;0===d.mode&&1!==d.activationTrigger&&h.selectActiveOption(),h.closeCombobox()}}),L=(0,S._)(e=>{null==g||g(e),0===d.mode&&""===e.target.value&&T(),h.openCombobox()}),R=(0,S._)(e=>{var t,n,r;let i=null!=(t=e.relatedTarget)?t:J.b.find(t=>t!==e.currentTarget);if(!(null!=(n=d.optionsElement)&&n.contains(i))&&!(null!=(r=d.buttonElement)&&r.contains(i))&&0===d.comboboxState)return e.preventDefault(),0===d.mode&&null===d.value&&T(),h.closeCombobox()}),P=(0,S._)(e=>{var t,n,r;let i=null!=(t=e.relatedTarget)?t:J.b.find(t=>t!==e.currentTarget);null!=(n=d.buttonElement)&&n.contains(i)||null!=(r=d.optionsElement)&&r.contains(i)||d.disabled||d.immediate&&0!==d.comboboxState&&A.microTask(()=>{(0,a.flushSync)(()=>h.openCombobox()),h.setActivationTrigger(1)})}),B=(0,eo.o2)(),$=(0,er.MM)(),{isFocused:q,focusProps:z}=(0,i.o)({autoFocus:b}),{isHovered:H,hoverProps:W}=(0,o.M)({isDisabled:v}),K=(0,s.useMemo)(()=>({open:0===d.comboboxState,disabled:v,hover:H,focus:q,autofocus:b}),[d,H,q,b,v]),Q=(0,en.v6)({ref:k,id:m,role:"combobox",type:x,"aria-controls":null==(n=d.optionsElement)?void 0:n.id,"aria-expanded":0===d.comboboxState,"aria-activedescendant":null===d.activeOptionIndex?void 0:d.virtual?null==(r=d.options.find(e=>!e.dataRef.current.disabled&&d.compare(e.dataRef.current.value,d.virtual.options[d.activeOptionIndex])))?void 0:r.id:null==(l=d.options[d.activeOptionIndex])?void 0:l.id,"aria-labelledby":B,"aria-describedby":$,"aria-autocomplete":"list",defaultValue:null!=(c=null!=(u=e.defaultValue)?u:void 0!==d.defaultValue?null==y?void 0:y(d.defaultValue):null)?c:d.defaultValue,disabled:v||void 0,autoFocus:b,onCompositionStart:O,onCompositionEnd:I,onKeyDown:M,onChange:L,onFocus:P,onBlur:R},z,W);return(0,en.Ci)()({ourProps:Q,theirProps:_,slot:K,defaultTag:"input",name:"Combobox.Input"})}),eA=eo.JU,eS=(0,en.FX)(function(e,t){var n,r,i;let o=(0,s.useId)(),{id:a=`headlessui-combobox-options-${o}`,hold:l=!1,anchor:u,portal:c=!1,modal:d=!0,transition:h=!1,...p}=e,f=eb("Combobox.Options"),m=em("Combobox.Options"),g=(0,U.zn)(u);g&&(c=!0);
1557let[y,v]=(0,U.UF)(g),[b,x]=(0,s.useState)(null),_=(0,U.G3)(),w=(0,F.P)(t,g?y:null,m.setOptionsElement,x),k=(0,D.g)(f.optionsElement),C=(0,K.O_)(),[E,N]=(0,$.p)(h,b,null!==C?(C&K.Uw.Open)===K.Uw.Open:0===f.comboboxState);(0,O.O)(E,f.inputElement,m.closeCombobox);let I=!f.__demoMode&&d&&0===f.comboboxState;(0,P.K)(I,k);let M=!f.__demoMode&&d&&0===f.comboboxState;(0,T.v)(M,{allowed:(0,s.useCallback)(()=>[f.inputElement,f.buttonElement,f.optionsElement],[f.inputElement,f.buttonElement,f.optionsElement])}),(0,j.s)(()=>{var t;f.optionsPropsRef.current.static=null!=(t=e.static)&&t},[f.optionsPropsRef,e.static]),(0,j.s)(()=>{f.optionsPropsRef.current.hold=l},[f.optionsPropsRef,l]),(0,q.i)(0===f.comboboxState,{container:f.optionsElement,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let L=(0,eo.o2)([null==(n=f.buttonElement)?void 0:n.id]),R=(0,s.useMemo)(()=>({open:0===f.comboboxState,option:void 0}),[f.comboboxState]),B=(0,S._)(()=>{m.setActivationTrigger(0)}),V=(0,S._)(e=>{e.preventDefault(),m.setActivationTrigger(0)}),z=(0,en.v6)(g?_():{},{"aria-labelledby":L,role:"listbox","aria-multiselectable":1===f.mode||void 0,id:a,ref:w,style:{...p.style,...v,"--input-width":(0,A.L)(f.inputElement,!0).width,"--button-width":(0,A.L)(f.buttonElement,!0).width},onWheel:0===f.activationTrigger?void 0:B,onMouseDown:V,...(0,$.B)(N)}),H=E&&1===f.comboboxState,G=(0,W.O)(H,null==(r=f.virtual)?void 0:r.options),J=(0,W.O)(H,f.value),Q=(0,S._)(e=>f.compare(J,e));if(f.virtual){if(void 0===G)throw Error("Missing `options` in virtual mode");Object.assign(p,{children:s.createElement(ev.Provider,{value:G!==f.virtual.options?{...f,virtual:{...f.virtual,options:G}}:f},s.createElement(ey,{slot:R},p.children))})}let Y=(0,en.Ci)();return s.createElement(ea.ZL,{enabled:!!c&&(e.static||E)},s.createElement(ev.Provider,{value:1===f.mode?f:{...f,isSelected:Q}},Y({ourProps:z,theirProps:{...p,children:s.createElement(W.j,{freeze:H},"function"==typeof p.children?null==(i=p.children)?void 0:i.call(p,R):p.children)},slot:R,defaultTag:"div",features:ew,visible:E,name:"Combobox.Options"}
1557)))}),eT=(0,en.FX)(function(e,t){var n,r,i,o;let a=eb("Combobox.Option"),l=em("Combobox.Option"),u=(0,s.useId)(),{id:c=`headlessui-combobox-option-${u}`,value:d,disabled:h=null!=(i=null==(r=null==(n=a.virtual)?void 0:n.disabled)?void 0:r.call(n,d))&&i,order:p=null,...f}=e,m=L(a.inputElement),g=a.virtual?a.activeOptionIndex===a.calculateIndex(d):null!==a.activeOptionIndex&&(null==(o=a.options[a.activeOptionIndex])?void 0:o.id)===c,y=a.isSelected(d),v=(0,s.useRef)(null),b=(0,N.Y)({disabled:h,value:d,domRef:v,order:p}),x=(0,s.useContext)(eg),_=(0,F.P)(t,v,x?x.measureElement:null),w=(0,S._)(()=>{l.setIsTyping(!1),l.onChange(d)});(0,j.s)(()=>l.registerOption(c,b),[b,c]);let k=(0,s.useRef)(!(a.virtual||a.__demoMode));(0,j.s)(()=>{if(!a.virtual&&!a.__demoMode)return(0,X.e)().requestAnimationFrame(()=>{k.current=!0})},[a.virtual,a.__demoMode]),(0,j.s)(()=>{if(k.current&&0===a.comboboxState&&g&&0!==a.activationTrigger)return(0,X.e)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[v,g,a.comboboxState,a.activationTrigger,a.activeOptionIndex]);let C=(0,S._)(e=>{e.preventDefault(),e.button===es.Left&&(h||(w(),(0,et.Fr)()||requestAnimationFrame(()=>m()),0===a.mode&&l.closeCombobox()))}),E=(0,S._)(()=>{if(h)return l.goToOption(Y.B.Nothing);let e=a.calculateIndex(d);l.goToOption(Y.B.Specific,e)}),A=(0,B.J)(),T=(0,S._)(e=>A.update(e)),O=(0,S._)(e=>{if(!A.wasMoved(e)||h||g)return;let t=a.calculateIndex(d);l.goToOption(Y.B.Specific,t,0)}),I=(0,S._)(e=>{A.wasMoved(e)&&(h||g&&(a.optionsPropsRef.current.hold||l.goToOption(Y.B.Nothing)))}),D=(0,s.useMemo)(()=>({active:g,focus:g,selected:y,disabled:h}),[g,y,h]);return(0,en.Ci)()({ourProps:{id:c,ref:_,role:"option",tabIndex:!0===h?void 0:-1,"aria-disabled":!0===h||void 0,"aria-selected":y,disabled:void 0,onMouseDown:C,onFocus:E,onPointerEnter:T,onMouseEnter:T,onPointerMove:O,onMouseMove:O,onPointerLeave:I,onMouseLeave:I},theirProps:f,slot:D,defaultTag:"div",name:"Combobox.Option"})}),ej=Object.assign(ek,{Input:eE,Button:eC,Label:eA,Options:eS,Option:eT});var eN=n(43371),eO=n(20174);let eI=function(e){let{member:t}=e;return(0,r.jsx)("div",{className:"flex items-center p-2 cursor-pointer",children:(0,r.jsx)(eO.A,{member:(0,eN.OT)(t),onClick:()=>void 0})})},eD=function(e){let{value:t,onChange:n,onFocus:i,members:o,onAdd:s,inputRef:a}=e;return(0,r.jsxs)(ej,{onChange:function(e){e&&s((0,eN.ZI)(e))},children:[(0,r.jsx)(eE,{ref:a,value:t,onChange:n,onFocus:i,displayValue:()=>t,placeholder:"Search by name...",className:"w-full border rounded px-3 py-2 outline-none focus:ring-2 focus:ring-primary-300 text-secondary-800",autoFocus:!0}),o.length>0&&(0,r.jsx)(eS,{static:!0,anchor:"bottom start",className:"w-[var(--input-width)] border rounded bg-white text-secondary-800 max-h-48 overflow-y-auto shadow-lg z-50",children:o.map(e=>(0,r.jsx)(eT,{value:e,className:"data-[focus]:bg-gray-50",children:(0,r.jsx)(eI,{member:e})},e.id))})]})}},27371:e=>{e.exports=function(){return[]}},27527:(e,t,n)=>{"use strict";n.d(t,{N:()=>g});var r=n(37876),i=n(5811),o=n(42383),s=n(73382),a=n(38537),l=n(9327),u=n(13220),c=n(78248),d=n(6195),h=n(14232),p=n(76366),f=n(6884);function m(e){let t=(0,u.lF)(),[n,i]=(0,h.useState)(null),[o]=(0,c._)(d._c,{fetchPolicy:"network-only"});return t?(0,r.jsx)(l.EM,{onSearch:function(t){o({variables:{query:t,filter:(0,f.Mr)({parentId:null,type:e.type})}}).then(e=>{e.data?.searchContentItems&&i(e.data.searchContentItems)})},onItemSelected:e.onItemSelected,items:n,mapResultItem:e=>(0,r.jsx)(p.A,{contentItem:e}),"data-sentry-element":"ItemSearch","data-sentry-component":"ContentItemsSearch","data-sentry-source-file":"ContentItemsSearch.tsx"}):null}let g={label:"Website Pages",component:(0,i.PA)(function(e){let t=(0,a.MM)();return(0,r.jsxs)("div",{style:{maxWidth:"500px"},className:"mx-auto","data-sentry-component":"PageIndex","data-sentry-source-file":"PageIndex.tsx",children:["entry"===e.origin&&(0,r.jsx)("div",{className:"flex justify-end mb-4",children:(0,r.jsx)(o.rA,{onClick:function(){t?.openNew({type:s.nz.Page})},className:"text-base",children:"Add Member Page"})}),(0,r.jsx)(m,{onItemSelected:function(e){t?.open(e.id)},type:s.nz.Page,"data-sentry-element":"ContentItemsSearch","data-sentry-source-file":"PageIndex.tsx"})]})})}},28035:(e,t,n)=>{"use strict";n.d(t,{A:()=>
1557o});var r=n(37876),i=n(49995);function o(e){let{className:t,field:n,label:o}=e;return(0,r.jsxs)("div",{className:(0,i.A)("flex flex-row justify-between content-start gap-2",t),"data-sentry-component":"FieldOptionLayout","data-sentry-source-file":"FieldOptionLayout.tsx",children:[(0,r.jsx)("div",{children:n}),(0,r.jsx)("div",{className:"flex-grow",children:o})]})}},28333:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{sortable:t,children:n,id:i,onClick:o,style:s,title:a}=e,{className:l}=e;return o&&(l=`${l} pointer-cursor`),(0,r.jsx)("div",{className:l||"",id:i,draggable:!!t,onClick:o,...t,style:s,title:a,"data-sentry-component":"ListItem","data-sentry-source-file":"ListItem.tsx",children:n})}},28375:(e,t,n)=>{var r=n(19465),i=n(15744),o=n(28389);e.exports=function(e,t,n,s,a,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<c;){var y=e[f],v=t[f];if(s)var b=u?s(v,y,f,t,e,l):s(y,v,f,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,function(e,t){if(!o(g,t)&&(y===e||a(y,e,n,s,l)))return g.push(t)})){m=!1;break}}else if(!(y===v||a(y,v,n,s,l))){m=!1;break}}return l.delete(e),l.delete(t),m}},28389:e=>{e.exports=function(e,t){return e.has(t)}},28429:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a,WX:()=>l,_1:()=>u});var r=n(37876),i=n(72954),o=n(65416),s=n(73382);let a=(0,n(5811).PA)(function(e){let{className:t,contentSlug:n}=e,{getPostListBySlug:a}=(0,o.j6)(),l=n?a(n):void 0,u=l?.photo?.url||"https://mp1md-pub.s3.amazonaws.com/images/generic-image.svg";return(0,r.jsx)(i.A,{showEditButton:!1,editById:l?{id:l?.id,type:s.nz.Image,webComponentName:"Image"}:void 0,editBySlug:n&&!l?{slug:n,type:s.nz.Image,webComponentName:"Image"}:void 0,className:"image-content","data-sentry-element":"EditableSection","data-sentry-component":"Image","data-sentry-source-file":"Image.tsx",children:(0,r.jsx)("img",{src:u,className:t,alt:(0,s.NM)(l,"user generated image")})})}),l=[{key:"contentSlug",type:"string"}],u={isParentEditable:!0,title:"Image",type:"image"}},28654:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},29203:(e,t,n)=>{"use strict";n.d(t,{P:()=>a,a:()=>s});var r=n(14232),i=n(64671);let o=Symbol();function s(e,t=!0){return Object.assign(e,{[o]:t})}function a(...e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e},[e]);let n=(0,i._)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[o]))?void 0:n}},29428:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(14232);function i({onShow:e,onHide:t,threshold:n=.75}){let i=(0,r.useRef)(null),o=(0,r.useRef)(e),s=(0,r.useRef)(t);return o.current=e,s.current=t,(0,r.useEffect)(()=>{let e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?o.current?.():s.current?.()})},{root:null,rootMargin:"0px",threshold:n}),t=i.current;return t&&e.observe(t),()=>{t&&e.unobserve(t)}},[n]),i}},29429:(e,t,n)=>{"use strict";var r=n(14232),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,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===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,c=r[1];return a(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),s(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},29842:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(14232),i=n(47737);function o(e){let t=(0,r.useRef)(e);return(0,i.s)(()=>{t.current=e},[e]),t}},29934:(e,t,n)=>{var r=n(59059),i=n(6216),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}}
1557,30139:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(37876),i=n(95494),o=n(54587),s=n.n(o),a=n(22767);function l({attachments:e,onRemove:t}){return 0===e.length?null:(0,r.jsx)("div",{className:"flex gap-2 flex-wrap pb-2","data-sentry-component":"AttachmentPreview","data-sentry-source-file":"AttachmentPreview.tsx",children:e.map((e,n)=>(0,r.jsxs)("div",{className:"relative w-16 h-16 rounded overflow-hidden bg-gray-100",children:["uploading"===e.status&&(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-white/80",children:(0,r.jsx)(a.A,{className:"w-6 h-6"})}),"error"===e.status&&(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-red-100 text-red-600 text-xs",children:"Error"}),("complete"===e.status||"uploading"===e.status)&&(0,r.jsx)(s(),{src:e.result?.url||URL.createObjectURL(e.file),alt:"Attachment preview",fill:!0,className:"object-cover"}),(0,r.jsx)("button",{type:"button",onClick:()=>t(e.file),className:"absolute top-0 right-0 p-0.5 bg-black/50 rounded-bl text-white hover:bg-black/70","aria-label":"Remove attachment",children:(0,r.jsx)(i.A,{className:"w-4 h-4"})})]},n))})}},30503:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(37876),i=n(49995),o=n(10969),s=n(73382),a=n(54587),l=n.n(a);function u({img:e,alt:t,caption:n}){return e?(0,r.jsxs)("figure",{className:"md:w-1/2 md:float-right md:ml-4 md:mt-3 md:mb-2","data-sentry-component":"Figure","data-sentry-source-file":"PostCard.tsx",children:[e&&(0,r.jsx)(l(),{className:"w-full",alt:t||"Post image",src:e,width:400,height:300}),n&&(0,r.jsx)("div",{className:"text-sm mt-1 text-gray-darker overflow-y-auto max-h-24",children:n})]}):null}function c({title:e}){return e?(0,r.jsx)("h2",{className:"font-bold text-xl mb-2","data-sentry-component":"Heading","data-sentry-source-file":"PostCard.tsx",children:e}):null}function d(e){let{addedClasses:t,title:n,photoItem:a,children:l}=e,d=a?.photo;return(0,r.jsxs)("section",{className:(0,i.A)("PostCard w-full mb-4 px-6 py-4",o.Ay.primaryCard,t),"data-sentry-component":"PostCard","data-sentry-source-file":"PostCard.tsx",children:[(0,r.jsx)(c,{title:n,"data-sentry-element":"Heading","data-sentry-source-file":"PostCard.tsx"}),(0,r.jsxs)("div",{className:"overflow-auto",children:[a&&(0,r.jsx)(u,{img:d?.url,alt:(0,s.NM)(a,n||"Post image"),caption:a.content}),(0,r.jsx)("div",{children:l})]})]})}n(14232)},31009:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(37876),i=n(77404);let o=function(e){let t=e.contentItem?.photo;return t?.url?(0,r.jsx)("div",{className:"background-image",style:{backgroundImage:`url(${t.url})`},"data-sentry-component":"BackgroundMedia","data-sentry-source-file":"BackgroundMedia.tsx",children:t.mediaType===i.z.Video&&t.videoUrl&&(0,r.jsx)("video",{className:"background-video",src:t.videoUrl,poster:t.url,autoPlay:!0,loop:!0,muted:!0,playsInline:!0})}):null}},31167:(e,t,n)=>{"use strict";n.d(t,{k:()=>k,I:()=>w});var r=n(4902),i=n(75093),o=n(14232),s=n.t(o,2),a=n(80542),l=!1,u=s.useSyncExternalStore||function(e,t,n){var r=t();__DEV__&&!l&&r!==t()&&(l=!0,__DEV__&&i.V1.error("The result of getSnapshot should be cached to avoid an infinite loop"));var s=o.useState({inst:{value:r,getSnapshot:t}}),u=s[0].inst,d=s[1];return a.JR?o.useLayoutEffect(function(){Object.assign(u,{value:r,getSnapshot:t}),c(u)&&d({inst:u})},[e,r,t]):Object.assign(u,{value:r,getSnapshot:t}),o.useEffect(function(){return c(u)&&d({inst:u}),e(function(){c(u)&&d({inst:u})})},[e]),r};function c(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(e){return!0}}var d=n(20996),h=n(18877),p=n(94852),f=n(83070),m=n(66434),g=n(37510),y=n(67994),v=n(21500),b=n(79760),x=n(35785),_=Object.prototype.hasOwnProperty;function w(e,t){return void 0===t&&(t=Object.create(null)),k((0,y.m)(t.client),e).useQuery(t)}function k(e,t){var n=(0,o.useRef)();n.current&&e===n.current.client&&t===n.current.query||(n.current=new C(e,t,n.current));var r=n.current,i=(0,o.useState)(0),s=(i[0],i[1]);return r.forceUpdate=function(){s(function(e){return e+1})},r}var C=function(){function e(e,t,n){this.client=e,this.query=t,this.ssrDisabledResult=(0,v.G)({loading:!0,data:void 0,error:void 0,networkStatus:m.p.loading}),this.skipStandbyResult=(0,v.G)({loading:!1,data:void 0,error:void 0,networkStatus:m.p.ready}),this.toQueryResultCache=new(a.et?WeakMap:Map),(0,g.D$)(t,g.KG.Query);var r=n&&n.result,i=r&&r.data;i&&(this.previousData=i)}return e.prototype.forceUpdate=function(){__DEV__&&i.V1.warn("Calling default no-op implementation of InternalState#forceUpdate")},e.prototype.executeQuery=function(e){var t,n=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var r=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null==(t=this.result)?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise(function(e){var t;r.subscribe({next:function(e){t=e},error:function(){e(n.toQueryResult(n.observable.getCurrentResult()))},complete:function(){e(n.toQueryResult(t))}})})},e.prototype.useQuery=function(e){var t=this;this.renderPromises=(0,o.useContext)((0,p.l)()).renderPromises,this.useOptions(e);var n=this.useObservableQuery(),r=u((0,o.useCallback)(function(){if(t.renderPromises)return function(){};var e=function(){var e=t.result,r=n.getCurrentResult();e&&e.loading===r.loading&&e.networkStatus===r.networkStatus&&(0,d.L)(e.data,r.data)||t.setResult(r)},r=function(o){var s=n.last;i.unsubscribe();try{n.resetLastResults(),i=n.subscribe(e,r)}finally{n.last=s}if(!_.call(o,"graphQLErrors"))throw o;var a=t.result;(!a||a&&a.loading||!(0,d.L)(o,a.error))&&t.setResult({data:a&&a.data,error:o,loading:!1,networkStatus:m.p.error})},i=n.subscribe(e,r);return function(){return setTimeout(function(){return i.unsubscribe()})}},[n,this.renderPromises,this.client.disableNetworkFetches]),function(){return t.getCurrentResult()},function(){return t.getCurrentResult()});return this.unsafeHandlePartialRefetch(r),this.toQueryResult(r)},e.prototype.useOptions=function(t){var n,r=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;
1557!(0,d.L)(r,i)&&(this.watchQueryOptions=r,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null==(n=this.result)?void 0:n.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,(this.renderPromises||this.client.disableNetworkFetches)&&!1===this.queryHookOptions.ssr&&!this.queryHookOptions.skip?this.result=this.ssrDisabledResult:this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:(this.result===this.ssrDisabledResult||this.result===this.skipStandbyResult)&&(this.result=void 0)},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push((0,b.o)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(h.l)},e.prototype.createWatchQueryOptions=function(e){void 0===e&&(e={});var t,n=e.skip,i=Object.assign((e.ssr,e.onCompleted,e.onError,e.defaultOptions,(0,r.Tt)(e,["skip","ssr","onCompleted","onError","defaultOptions"])),{query:this.query});if(this.renderPromises&&("network-only"===i.fetchPolicy||"cache-and-network"===i.fetchPolicy)&&(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),n){var o=i.fetchPolicy,s=void 0===o?this.getDefaultFetchPolicy():o,a=i.initialFetchPolicy;Object.assign(i,{initialFetchPolicy:void 0===a?s:a,fetchPolicy:"standby"})}else i.fetchPolicy||(i.fetchPolicy=(null==(t=this.observable)?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return i},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null==(e=this.queryHookOptions.defaultOptions)?void 0:e.fetchPolicy)||(null==(t=this.client.defaultOptions.watchQuery)?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=(0,o.useMemo)(function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}},[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e)},e.prototype.handleErrorOrCompleted=function(e){var t=this;if(!e.loading){var n=this.toApolloError(e);Promise.resolve().then(function(){n?t.onError(n):e.data&&t.onCompleted(e.data)}).catch(function(e){__DEV__&&i.V1.warn(e)})}},e.prototype.toApolloError=function(e){return(0,x.E)(e.errors)?new f.K4({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var n=e.data,i=(e.partial,(0,r.Tt)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,r.Cl)((0,r.Cl)((0,r.Cl)({data:n},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&(0,x.E)(e.errors)&&(t.error=new f.K4({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){e.partial&&this.queryHookOptions.partialRefetch&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cache-only"!==this.observable.options.fetchPolicy&&(Object.assign(e,{loading:!0,networkStatus:m.p.refetch}),this.observable.refetch())},e}()},31288:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","AElig":"\xc6","aelig":"\xe6","Agrave":"\xc0","agrave":"\xe0","amp":"&","AMP":"&","Aring":"\xc5","aring":"\xe5","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","brvbar":"\xa6","Ccedil":"\xc7","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","COPY":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","Eacute":"\xc9","eacute":"\xe9","Ecirc":"\xca","ecirc":"\xea","Egrave":"\xc8","egrave":"\xe8","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","GT":">","Iacute":"\xcd","iacute":"\xed","Icirc":"\xce","icirc":"\xee","iexcl":"\xa1","Igrave":"\xcc","igrave":"\xec","iquest":"\xbf","Iuml":"\xcf","iuml":"\xef","laquo":"\xab","lt":"<","LT":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","Ntilde":"\xd1","ntilde":"\xf1","Oacute":"\xd3","oacute":"\xf3","Ocirc":"\xd4","ocirc":"\xf4","Ograve":"\xd2","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","Oslash":"\xd8","oslas
1557h":"\xf8","Otilde":"\xd5","otilde":"\xf5","Ouml":"\xd6","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","QUOT":"\\"","raquo":"\xbb","reg":"\xae","REG":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","THORN":"\xde","thorn":"\xfe","times":"\xd7","Uacute":"\xda","uacute":"\xfa","Ucirc":"\xdb","ucirc":"\xfb","Ugrave":"\xd9","ugrave":"\xf9","uml":"\xa8","Uuml":"\xdc","uuml":"\xfc","Yacute":"\xdd","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},31341:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(){return(0,r.jsx)("span",{className:"text-red-danger","data-sentry-component":"FieldRequiredAsterisk","data-sentry-source-file":"FieldRequiredAsterisk.tsx",children:"*"})}},31695:(e,t,n)=>{"use strict";n.d(t,{C:()=>u,X:()=>c});var r=n(38537),i=n(85819),o=n(73382),s=n(6195),a=n(14232),l=n(70544);function u(e,t){if(!t)return e;let{id:n,...r}=t;return{...r,...e}}function c(e){let{form:t,formToParams:n,populateForm:c,onBeforeSave:d,onClose:h}=e,p=(0,l.f)(),f=p.cursor,m=(0,r.uV)(),g=f?.contentId??void 0,[y,v]=(0,a.useState)(null),b=p.contentItem;(0,a.useEffect)(()=>{b&&(c(b),v(b))},[b]);let[x,_]=(0,i.X)(s.Jt),[w,k]=(0,i.X)(s.o5),[C,E]=(0,a.useState)("create"),A="create"===C?_:k,S=p.loading||_.loading||k.loading;async function T(e){d&&await d(e);let t=n(e,y);y||(t=u(t,f?.initialParams));let r=(0,o.Bd)(t);E(y?"update":"create");let i=y?await w({variables:{id:y.id,input:r}},"updateContentItem2"):await x({variables:{input:r}},"createContentItem2");if(i.hasError||!i.data)return!1;let s=i.data;return c(s),v(s),m.onPageUpdated(),!0}async function j(){let e=!1;return await t.handleSubmit(async t=>{e=await T(t)})(),e}return{cancelProps:{onClick:h},contentId:g,contentItemError:p.error,contentItem:y,setContentItem:v,upsertContentItemInfo:A,loading:S,save:j,handleSubmit:t.handleSubmit(T)}}},31787:(e,t,n)=>{"use strict";n.d(t,{e:()=>function e(){let t=[],n={addEventListener:(e,t,r,i)=>(e.addEventListener(t,r,i),n.add(()=>e.removeEventListener(t,r,i))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>n.requestAnimationFrame(()=>n.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return n.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return(0,r._)(()=>{t.current&&e[0]()}),n.add(()=>{t.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}});var r=n(82030)},31796:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(12089),o=n(88129),s=n(32752);let a=function({buttonClassName:e,canDelete:t,onCloneClick:n,onDeleteClick:a}){let l=[{label:"Clone page",icon:i.A,handleClick:n},...t?[{label:"Delete page",icon:o.A,handleClick:a,danger:!0}]:[]];return(0,r.jsx)(s.A,{ariaLabel:"Page options",buttonClassName:e,items:l})}},31896:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(37876),i=n(49995),o=n(10969),s=n(22611),a=n(72569);function l(e){let{className:t,required:n,...l}=e,u=(0,a.Eh)(),c=e.themeArea||u,d="";return d="admin"===c?o.OT.fieldLabel:(0,i.A)("field-label",o.Ay.labelText),(0,r.jsxs)("label",{className:(0,i.A)(d,t),...l,"data-sentry-component":"FieldLabel","data-sentry-source-file":"FieldLabel.tsx",children:[e.children,n&&(0,r.jsx)(s.A,{})]})}},32112:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var r=n(85819),i=n(73382),o=n(6195),s=n(38537);function a(){let e=(0,s.uV)(),[t,n]=(0,r.X)(o.Jt);return[async function(n,r){let o=e.contentItems?.find(e=>"primary-footer"===e.slug),s=(0,i.Ql)(o,e);if(!s)throw Error("No primary-footer found");let a=e.contentItems?.find(e=>e.type===i.nz.Image&&"background-image"===e.purpose);if(!a)throw Error("No source background image found");return t({variables:{input:{...(0,i.pz)({sourceBackgroundImage:a,footer:s,path:n}),...r?{title:r}:{}}}},"createContentItem2")},n]}},32290:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,d:()=>o});var r=n(14232),i=n(23955),o=function(e){return e.HEADER="HEADER",e.MAIN="MAIN",e.FOOTER="FOOTER",e.SIDE_CAR="SIDE_CAR",e.WELCOME_BACK="WELCOME_BACK",e}({});let s={pageSection:"MAIN",siteArea:i.L.MARKETING},a=(0,r.createContext)(s)},32468:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>s,Ay:()=>a});var r=n(14232);let i=n(74830).A;var o=r.createContext(new i),s=o.Provider;o.Consumer;let a=o},32513:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(37876),i=n(70274),o=n(42383),s=n(77162),a=n(22767),l=n(5044),u=n(1815),c=n(20437),d=n(14232),h=n(19979),p=n(16710),f=n(39812),m=n(80229),g=n(13055),y=n(94829),v=n(49995),b=n(10969),x=n(72569);let _=d.createRef(),w=d.createRef(),k=d.createRef();function C(e){let{featureSet:t="email",preserveMarkup:n,register:C}=e,E=(0,b.CI)((0,x.Eh)()),A="web"===t,{control:S,formState:T,watch:j}=e.hookForm,{name:N}=C,O=(0,d.useRef)(null),I=(0,c.q)(),D=(0,d.useRef)(null),[M,L]=(0,d.useState)("edit"),R=(0,d.useRef)(null),[P,F]=(0,d.useState)(null);async function B(e){let t=O.current;q();let n=await I.wrapCall(t=>(0,u.cp)(t,e));return n.error||function({url:e}){if(!O.current)return;let t=R.current,n="";n=e.endsWith("pdf")?`<a href="${(0,m.Zn)(e)}" target="_blank">${(0,m.Zn)(e)}</a>`:`<img src="${(0,m.Zn)(e)}" alt="photo" />`,t?.insertHtmlAtCursor(n)}
1557(n.data),V(),t&&(D.current&&(t.selectionEnd=D.current),t.focus()),!0}function $(e){let t=e?.dataTransfer?.types;t&&Array.from(t).includes("Files")&&(e.preventDefault(),q())}function q(){let e=_.current,t=w.current;e&&t&&(t.style.display="block",e.style.display="flex")}function V(){let e=_.current,t=w.current;e&&t&&(e.style.display="none",t.style.display="none")}let{ref:z}=C||{};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"mb-2 mt-2 flex gap-2",children:[A&&(0,r.jsxs)("button",{type:"button",className:"flex items-center gap-2 border hover:border-secondary-400 rounded px-2 py-1 bg-white text-secondary-900 whitespace-nowrap",onClick:function(e){e.preventDefault(),e.stopPropagation();let t=k.current,n=O.current;t&&(n&&(D.current=n.selectionEnd),t.click())},children:[(0,r.jsx)("span",{title:"Upload Photo",className:"border rounded px-2 py-1",children:(0,r.jsx)(h.A,{className:"size-4"})}),"Add image or PDF"]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:(0,v.A)("text-sm whitespace-nowrap",E.cardMutedTextColor),children:"Edit mode:"}),(0,r.jsx)(p.A,{onChange:e=>L(e.target.value),options:[{value:"edit",label:"Edit"},{value:"preview",label:"Preview"}],"data-sentry-element":"Select","data-sentry-source-file":"ContentTextArea.tsx"})]})]}),A&&(0,r.jsx)(o.zp,{fileBroadTypes:[g.RG.RASTER,g.RG.VECTOR,g.RG.PDF,g.RG.VIDEO],inputRef:k,onChange:B,onError:e=>F(e),className:"hidden"}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"relative",children:[!1,(0,r.jsx)(r.Fragment,{children:"preview"===M?(0,r.jsx)("div",{className:"overflow-y-auto border rounded px-3 py-1 h-[20rem]",children:(0,r.jsx)(s.A,{format:"HTML"===j("textFormat")?"HTML":"MARKDOWN",text:j(N)})}):(0,r.jsx)(f.A,{className:"border border-gray text-gray-darkest overflow-auto p-6 w-full",featureSet:t,placeholder:"page text...",rows:12,style:{fontFamily:'SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace'},control:S,inputRef:function(e){C?.ref&&C.ref(e),z?.(e),O.current=e,setTimeout(()=>{if(e){let t=_.current,n=w.current;if(t&&n){let r=(0,l.B7)(e),i=r.right-r.left,o=r.bottom-r.top;n.style.width=`${i}px`,n.style.height=`${o}px`,t.style.width=`${i}px`,t.style.height=`${o}px`}else console.log("maskEl is not present")}},10)},onDragEnter:A?$:void 0,onEditorInitialized:function(e){R.current=e},name:"content",preserveMarkup:n,rules:{maxLength:3e4}})}),A&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mask absolute z-10 flex justify-center items-center",style:{display:"none",backgroundColor:"rgba(220, 220, 220, 0.75)",width:"300px",height:"300px",left:"0",top:"0"},ref:_,children:(0,r.jsx)("div",{className:"text-xl bg-white text-secondary-900 p-4 rounded",children:I.processing?(0,r.jsx)(a.A,{}):"Drop Photo Here"})}),(0,r.jsx)("div",{className:"cover absolute z-10",style:{display:"none",backgroundColor:"rgba(255, 255, 255, 0.0)",width:"300px",height:"300px",left:"0",top:"0"},ref:w,onDragEnter:$,onDragLeave:function(){V()},onDrop:function(e){if(e.preventDefault(),!O.current)return;let t=e.dataTransfer.files;0!==t.length&&B(t[0])},onDragOver:e=>e.preventDefault()})]})]}),P&&(0,r.jsx)(y.A,{type:"warning",onClose:()=>F(null),children:P}),(0,r.jsx)(i.A,{error:I.errorResponse,"data-sentry-element":"ApiErrors","data-sentry-source-file":"ContentTextArea.tsx"})]})]})}},32678:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(37876),i=n(82037),o=n(45600),s=n(49995),a=n(19070),l=n(72569),u=n(32290),c=n(13220);function d(e){let{cancel:t,children:n,className:d,disabled:h,saving:p,submitButtonType:f,submitDataTestId:m,withGroupFlow:g}=e,y=(0,l.jz)(e.themeArea),v=(0,c.LV)(),b=e.marginTopClass??"mt-4",x=t?.onClick,_=f??(e.onClick?"button":"submit");return"admin"===y?(0,r.jsx)(a.A,{...e,loading:p,submitButton:{handleClick:e.onClick,href:e.href,label:n||e.label,type:_,"data-testid":m}}):(0,r.jsx)(u.M.Provider,{value:{...v,siteArea:y},"data-sentry-element":"LayoutContext.Provider","data-sentry-component":"SubmitButtonRow","data-sentry-source-file":"SubmitButtonRow.tsx",children:(0,r.jsxs)("div",{className:(0,s.A)("SubmitButtonRow flex gap-2 justify-between",b,d),children:[t&&(0,r.jsx)(i.tA,{onClick:x,href:t.href,className:t.className||"grow",children:t.label||"Cancel"}),(0,r.jsx)(o.A,{type:_,disabled:h||!1,loading:p,onClick:e.onClick,href:e.href,className:"grow",withGroupFlow:g,"data-testid":m,"data-sentry-element":"ActionButton","data-sentry-source-file":"SubmitButtonRow.tsx",children:n||e.label||"Save"})]})})}}
1557,32752:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(37876),i=n(14766),o=n(14232);let s=o.forwardRef(function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 12.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 18.75a.75.75 0 110-1.5.75.75 0 010 1.5z"}))});var a=n(63009),l=n(49995),u=n(10969),c=n(72569),d=n(23955);let h=function({ariaLabel:e="Options",items:t,...n}){let o=(0,u.ZF)(),h=(0,c.Eh)(),p=(0,u.CI)(h),f=n.buttonClassName??(0,l.A)("h-9 w-9 rounded-full border",h===d.L.ADMIN?"shadow-sm border-new-gray-200 bg-white text-secondary-950 hover:border-black hover:text-black focus:ring-2 focus:ring-new-green-500":(0,l.A)(p.cardLineColor,p.cardMutedTextColor,p.accentBorderHoverColor,p.accentTextHoverColor,"focus:ring-2",p.focusRingColor));return 0===t.length?null:(0,r.jsxs)(i.W1,{as:"div",className:"relative inline-block text-left",children:[(0,r.jsx)(i.IU,{"aria-label":e,className:(0,l.A)("inline-flex justify-center items-center transition focus:outline-none",f),children:(0,r.jsx)(s,{className:"h-5 w-5","aria-hidden":"true"})}),(0,r.jsx)(a.A,{anchor:"bottom end",className:"min-w-[12rem] z-10 [--anchor-gap:0.25rem]",children:t.map(e=>(0,r.jsx)(i.Dr,{disabled:e.disabled,children:({focus:t})=>(0,r.jsxs)("button",{type:"button",onClick:e.handleClick,disabled:e.disabled,className:(0,l.A)(o.item,e.danger&&"text-new-red-700",t&&o.focused),children:[(0,r.jsx)(e.icon,{className:(0,l.A)("h-4 w-4",o.icon),"aria-hidden":"true"}),e.label]})},e.label))})]})}},32762:(e,t,n)=>{"use strict";function r(e){return e?.status==="CREATED"}function i(e){return r(e)||!e?.error?null:{errorMessage:e.error.message}}function o(e,t){return{items:t,subtotal:parseFloat(e.lineItemsTotal),tax:parseFloat(e.taxAmount),taxRate:parseFloat(e.taxRate),total:parseFloat(e.totalAmount)}}function s(e,t){let{attemptId:n,cart:r,checkoutName:i,eventParams:o,simulateError:s}=t,a={...e||{},checkoutName:i};if(n&&(a={...a,attemptId:n}),a.paymentInfo&&r?.paymentInfo){let e={...Object.fromEntries(Object.entries(r.paymentInfo).filter(([e,t])=>null!=t)),...a.paymentInfo};Object.keys(e).length>0&&(a={...a,paymentInfo:e})}return a.meta&&(a={...a,meta:JSON.stringify(a.meta)}),o?.eventId&&(a={...a,eventId:o.eventId}),s&&(a={...a,simulateError:!0}),a.eventRegistration&&(a={...a,eventRegistration:{...a.eventRegistration,version:o?.version||1}}),a}function a(e){return JSON.stringify([...Object.keys(e)].sort().map(t=>[t,e[t]]))}n.d(t,{$c:()=>r,f9:()=>i,t_:()=>o,wi:()=>s,zY:()=>a})},33065:(e,t,n)=>{var r=n(50224),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},33163:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(14232);function i(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function o(e=i){return(0,r.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}},33556:(e,t,n)=>{"use strict";n.d(t,{P:()=>u,v:()=>c});var r=n(14232),i=n(8345),o=n(21993),s=n(39114),a=n(38537),l=n(58873);function u(){let e=(0,l.l)();(0,r.useEffect)(()=>{e||(0,s.yB)()})}function c(){let[e,t]=(0,i.A)(),n=(0,a.gy)();return{login:function(e){var r;r=e,t(o.x5,r,{maxAge:2592e3,path:"/"}),n.jwtStore.setJwt(e)},logout:function(){n.endSession()}}}},33575:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 11-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06z",clipRule:"evenodd"}))})}
1557,33649:(e,t,n)=>{"use strict";n.d(t,{CY:()=>h,Cq:()=>u,KQ:()=>m,S0:()=>f,WJ:()=>p,XP:()=>b,k9:()=>y,kt:()=>d,lD:()=>g,rb:()=>c,sl:()=>v});var r=n(3422),i=n(21993),o=n(39324),s=n.n(o),a=n(88220).Buffer;let{jwtVersion:l}=s()().publicRuntimeConfig;function u(e){try{var t;let[,n]=e.split(".");return(n&&JSON.parse((t=n,a.from(t,"base64").toString("binary"))))??null}catch{return null}}function c(e){return["members","linked"].includes(u(e)?.aud)}function d(e){return!!e&&h(u(e))}function h(e){var t;return e&&!((t=e)&&p(t)<new Date)&&e.ver===l||!1}function p({exp:e}){return new Date(1e3*e)}function f(e){return(0,r.parseCookies)({req:e})[i.x5]}function m(){if("undefined"!=typeof document)return(0,r.parseCookies)()[i.x5]}function g(){"undefined"!=typeof document&&(document.cookie=`${i.x5}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`)}let y="jwtSessionEnded";function v(){try{window.localStorage.setItem(y,String(Date.now()))}catch{}}function b(e){return e?.aud==="members"||e?.aud==="linked"}},33872:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(14232);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=o(e,r)),t&&(i.current=o(t,r))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33881:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(49995),o=n(94829);function s({className:e,mutationInfo:t,mutationResult:n}){if(!t&&!n)return null;let s=t?.serverError,a=t?.errors??(n?.error&&[n.error]);return(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(o.A,{type:"warning",className:e,children:s.message}),a&&a.length>0&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:(0,i.A)(e,"flex flex-col gap-y-2"),children:a.map((e,t)=>(0,r.jsxs)(o.A,{type:"warning",children:["Error: ",(e=>{let t=e.message;if(!t&&e.code&&(t=e.code.replace("_"," ")),Array.isArray(e.fields)&&e.fields.length){let n=e.fields.at(-1);t=`${n}: ${t}`}return t})(e)]},t))})})]})}},33885:(e,t,n)=>{let{Picker:r}=n(42034),{trimCharacter:i}=n(61388),{StackItem:o,BlockStackItem:s,TableCellStackItem:a,TableRowStackItem:l,TableStackItem:u,TransformerStackItem:c}=n(96071),{tableToString:d}=n(16113),{WhitespaceProcessor:h}=n(34764);n(85668);class p{constructor(e,t){this.options=e,this.picker=t,this.whitespaceProcessor=new h(e),this._stackItem=new s(e),this._wordTransformer=void 0}pushWordTransform(e){this._wordTransformer=new c(this._wordTransformer,e)}popWordTransform(){if(!this._wordTransformer)return;let e=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,e}_getCombinedWordTransformer(){let e=(t,n)=>n?e(n.transform(t),n.next):t;return t=>e(t,this._wordTransformer)}_popStackItem(){let e=this._stackItem;return this._stackItem=e.next,e}addLineBreak(){(this._stackItem instanceof s||this._stackItem instanceof a)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof s||this._stackItem instanceof a)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,t={}){"object"==typeof t?this._addInline(e,t):this._addInline(e,{noWordTransform:t})}_addInline(e,{noWordTransform:t=!1}={}){if(this._stackItem instanceof s||this._stackItem instanceof a){if(this._stackItem.isPre){this._stackItem.rawText+=e;return}if(0!==e.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(e))){if(this.options.preserveNewlines){let t=this.whitespaceProcessor.countNewlinesNoWords(e);if(t>0)return void this._stackItem.inlineTextBuilder.startNewLine(t)}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(e,this._stackItem.inlineTextBuilder,this._wordTransformer&&!t?this._getCombinedWordTransformer():void 0),this._stackItem.stashedLineBreaks=0}}}openBlock(e={},t,n){"object"==typeof e?this._openBlock(e):this._openBlock({isPre:n,leadingLineBreaks:e,reservedLineLength:t})}_openBlock({leadingLineBreaks:e=1,reservedLineLength:t=0,isPre:n=!1}={}){let r=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-t);this._stackItem=new s(this.options,this._stackItem,e,r),n&&(this._stackItem.isPre=!0)}closeBlock(e={},t){"object"==typeof e?this._closeBlock(e):this._closeBlock({trailingLineBreaks:e,blockTransform:t})}_closeBlock({trailingLineBreaks:e=1,blockTransform:t}={}){let n=this._popStackItem(),r=t?t(f(n)):f(n);m(this._stackItem,r,n.leadingLineBreaks,Math.max(n.stashedLineBreaks,e))}openTable(){this._stackItem=new u(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof u))throw Error("Can't add table row to something that is not a table! Check the formatter.");this._stackItem=new l(this._stackItem)}openTableCell(e={}){"object"==typeof e?this._openTableCell(e):this._openTableCell({maxColumnWidth:e})}_openTableCell({maxColumnWidth:e}={}){if(!(this._stackItem instanceof l))throw Error("Can't add table cell to something that is not a table row! Check the formatter.");this._stackItem=new a(this.options,this._stackItem,e)}closeTableCell(e={},t){"object"==typeof e?this._closeTableCell(e):this._closeTableCell({colspan:e,rows
1557pan:t})}_closeTableCell({colspan:e=1,rowspan:t=1}={}){let n=this._popStackItem(),r=i(f(n),"\n");n.next.cells.push({colspan:e,rowspan:t,text:r})}closeTableRow(){let e=this._popStackItem();e.next.rows.push(e.cells)}closeTable(e={},t,n,r){"object"==typeof e?this._closeTable(e):this._closeTable({colSpacing:e,leadingLineBreaks:n,rowSpacing:t,trailingLineBreaks:r})}_closeTable({colSpacing:e=3,rowSpacing:t=0,leadingLineBreaks:n=2,trailingLineBreaks:r=2}={}){let i=d(this._popStackItem().rows,t,e);i&&m(this._stackItem,i,n,r)}toString(){return f(this._stackItem.getRoot())}}function f(e){if(!(e instanceof s||e instanceof a))throw Error("Only blocks and table cells can be requested for text contents.");return e.inlineTextBuilder.isEmpty()?e.rawText:e.rawText+e.inlineTextBuilder.toString()}function m(e,t,n,r){if(!(e instanceof s||e instanceof a))throw Error("Only blocks and table cells can contain text.");let i=f(e),o=Math.max(e.stashedLineBreaks,n);e.inlineTextBuilder.clear(),i?e.rawText=i+"\n".repeat(o)+t:(e.rawText=t,e.leadingLineBreaks=o),e.stashedLineBreaks=r}e.exports={BlockTextBuilder:p}},33890:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(r||{})},34011:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(37876),i=n(10969);function o(e){let{children:t}=e;return(0,r.jsx)("h2",{className:i.OT.modal.heading,"data-sentry-component":"ModalHeading","data-sentry-source-file":"ModalHeading.tsx",children:t})}},34296:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))})},34405:(e,t,n)=>{"use strict";n.d(t,{p:()=>o,x:()=>s});var r=n(14232),i=n(88992);function o(e){let[t,n]=(0,r.useState)(null);return{currentFieldName:t,handleSubmit:async function(t){if(!e.onSubmit)return null;let r=await e.onSubmit(t);return r?.error||setTimeout(()=>n(null),20),r},setCurrentFieldName:n}}function s(e){let{hookFormProps:t,initialValues:n}=e,o=(0,i.mN)(t||{}),{handleSubmit:s,setValue:a}=o,l=(0,r.useRef)(!1),[u,c]=(0,r.useState)(null),[d,h]=(0,r.useState)(!1);async function p(t){if(!e.onSubmit)return null;h(!0);let n=await e.onSubmit(t);return h(!1),n?.error&&c(n),n}return(0,r.useEffect)(()=>{n&&!l.current&&(Object.keys(n).forEach(e=>{a(e,n[e])}),l.current=!0)},[n]),{hookForm:o,onSubmit:p,saving:d,saveError:u,handleSubmit:s(p)}}},34705:e=>{e.exports=function(){return!1}},34728:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(49995),o=n(14232),s=n(85767),a=n(10969),l=n(72569);function u(e){let{children:t,className:n,title:u}=e,c=(0,a.CI)((0,l.Eh)()),[d,h]=(0,o.useState)(!1);return(0,r.jsxs)("div",{className:(0,i.A)("border rounded-lg",c.cardLineColor,n),"data-sentry-component":"EditorOptionsSection","data-sentry-source-file":"EditorOptionsSection.tsx",children:[(0,r.jsxs)("button",{type:"button","aria-expanded":d,onClick:()=>h(!d),className:(0,i.A)("group flex w-full items-center gap-2 px-3 py-3 text-left font-medium rounded-lg transition-colors",c.cardTextHoverColor),children:[(0,r.jsx)(s.A,{className:(0,i.A)("w-3 h-3 fill-current transition group-hover:[color:inherit]",d&&"rotate-90",c.cardMutedTextColor),"data-sentry-element":"ArrowIcon","data-sentry-source-file":"EditorOptionsSection.tsx"}),u]}),(0,r.jsx)("div",{hidden:!d,className:"px-3 pb-3",children:t})]})}}
1557,34764:(e,t,n)=>{let{InlineTextBuilder:r}=n(92165);n(85668);class i{constructor(e){this.whitespaceChars=e.preserveNewlines?e.whitespaceCharacters.replace(/\n/g,""):e.whitespaceCharacters;let t=[...this.whitespaceChars].map(e=>"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0")).join("");if(this.leadingWhitespaceRe=RegExp(`^[${t}]`),this.trailingWhitespaceRe=RegExp(`[${t}]$`),this.allWhitespaceOrEmptyRe=RegExp(`^[${t}]*$`),this.newlineOrNonWhitespaceRe=RegExp(`(\\n|[^\\n${t}])`,"g"),e.preserveNewlines){let e=RegExp(`\\n|[^\\n${t}]+`,"gm");this.shrinkWrapAdd=function(t,n,r=e=>e){if(!t)return;let i=n.stashedSpace,o=!1,s=e.exec(t);if(s)for(o=!0,"\n"===s[0]?n.startNewLine():i||this.testLeadingWhitespace(t)?n.pushWord(r(s[0])):n.concatWord(r(s[0]));null!==(s=e.exec(t));)"\n"===s[0]?n.startNewLine():n.pushWord(r(s[0]));n.stashedSpace=i&&!o||this.testTrailingWhitespace(t)}}else{let e=RegExp(`[^${t}]+`,"g");this.shrinkWrapAdd=function(t,n,r=e=>e){if(!t)return;let i=n.stashedSpace,o=!1,s=e.exec(t);if(s)for(o=!0,i||this.testLeadingWhitespace(t)?n.pushWord(r(s[0])):n.concatWord(r(s[0]));null!==(s=e.exec(t));)n.pushWord(r(s[0]));n.stashedSpace=i&&!o||this.testTrailingWhitespace(t)}}}testLeadingWhitespace(e){return this.leadingWhitespaceRe.test(e)}testTrailingWhitespace(e){return this.trailingWhitespaceRe.test(e)}testContainsWords(e){return!this.allWhitespaceOrEmptyRe.test(e)}countNewlinesNoWords(e){let t;this.newlineOrNonWhitespaceRe.lastIndex=0;let n=0;for(;null!==(t=this.newlineOrNonWhitespaceRe.exec(e));)if("\n"!==t[0])return 0;else n++;return n}}e.exports={WhitespaceProcessor:i}},35308:(e,t,n)=>{"use strict";n.d(t,{S:()=>s,_:()=>o});var r=n(14232);let i=(0,r.createContext)(void 0);function o(){return(0,r.useContext)(i)}function s({value:e,children:t}){return r.createElement(i.Provider,{value:e},t)}},35316:(e,t,n)=>{"use strict";var r=n(24815),i=n(39324),o=n.n(i);globalThis._sentryRewritesTunnelPath=void 0,globalThis.SENTRY_RELEASE={id:"gf-web@fa03e5f2377d1068c254e05d7e2cbddbbc1dd6be"},globalThis._sentryBasePath=void 0,globalThis._sentryRewriteFramesAssetPrefixPath="",globalThis._sentryAssetPrefix=void 0,globalThis._sentryExperimentalThirdPartyOriginStackFrames=void 0,globalThis._sentryRouteManifest='{"dynamicRoutes":[],"staticRoutes":[]}';{let e=o()(),t=e?.publicRuntimeConfig?.deployEnv||"production";r.Ts({dsn:"https://[email protected]/6546653",release:"gf-web@fa03e5f2377d1068c254e05d7e2cbddbbc1dd6be",environment:t,tracesSampleRate:1,debug:!1})}},35536:(e,t,n)=>{var r=n(66521);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=!!t,t}},35739:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))})},35785:(e,t,n)=>{"use strict";n.d(t,{E:()=>i,c:()=>r});var r=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},35885:(e,t,n)=>{"use strict";n.d(t,{O:()=>i,U:()=>o});var r=n(14232);let i=(0,r.createContext)({});function o(){return(0,r.useContext)(i)}},36078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(78755)).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},36187:(e,t,n)=>{var r=n(79364);e.exports=function(e,t){for(var n=e.length;n--;
1557)if(r(e[n][0],t))return n;return -1}},36315:(e,t,n)=>{e.exports=n(43622)(n(19031),"Map")},36568:(e,t,n)=>{"use strict";n.d(t,{Fr:()=>o,qE:()=>i});let r=RegExp("\\bGFAppWebView/");function i(){var e;return"undefined"!=typeof navigator&&(e=navigator.userAgent,r.test(e))}function o(e){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}},36572:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(14232),i=n(47737);function o(){let e=(0,r.useRef)(!1);return(0,i.s)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},36607:(e,t,n)=>{"use strict";n.d(t,{M:()=>u});var r=n(14232);let i=!1,o=0;function s(){i=!0,setTimeout(()=>{i=!1},50)}function a(e){"touch"===e.pointerType&&s()}function l(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",a):document.addEventListener("touchend",s),o++,()=>{--o>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",a):document.removeEventListener("touchend",s))}}function u(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:o,isDisabled:s}=e,[a,u]=(0,r.useState)(!1),c=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(l,[]);let{hoverProps:d,triggerHoverEnd:h}=(0,r.useMemo)(()=>{let e=(e,r)=>{if(c.pointerType=r,s||"touch"===r||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let i=e.currentTarget;c.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),u(!0)},r=(e,t)=>{if(c.pointerType="",c.target=null,"touch"===t||!c.isHovered)return;c.isHovered=!1;let r=e.currentTarget;o&&o({type:"hoverend",target:r,pointerType:t}),n&&n(!1),u(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{i&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(a.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||i||e(t,"mouse"),c.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!s&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:a,triggerHoverEnd:r}},[t,n,o,s,c]);return(0,r.useEffect)(()=>{s&&h({currentTarget:c.target},c.pointerType)},[s]),{hoverProps:d,isHovered:a}}},36767:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"}))})},36893:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=a,t.handleFocus=l,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==i.length&&(t=i.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){o=e,window.addEventListener?(window.addEventListener("blur",a,!1),document.addEventListener("focus",l,!0)):(window.attachEvent("onBlur",a),document.attachEvent("onFocus",l))},t.teardownScopedFocus=function(){o=null,window.addEventListener?(window.removeEventListener("blur",a),document.removeEventListener("focus",l)):(window.detachEvent("onBlur",a),document.detachEvent("onFocus",l))};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(77289)),i=[],o=null,s=!1;function a(){s=!0}function l(){s&&(s=!1,o&&setTimeout(function(){o.contains(document.activeElement)||((0,r.default)(o)[0]||o).focus()},0))}},37101:(e,t,n)=>{"use strict";n.d(t,{j1:()=>a,oL:()=>i});var r=n(89681);let i=e=>{if(e.size>5242880){let t=(e.size/1048576).toFixed(1);return`File size (${t}MB) exceeds the 5.0MB limit. Please choose a smaller file.`}return null},o=e=>/^image\/(heic|heif)$/i.test(e.type)||/\.(heic|heif)$/i.test(e.name),s=async e=>{try{let{default:t}=await n.e(2246).then(n.t.bind(n,3290,23)),r=await t({blob:e,toType:"image/jpeg",quality:.9}),i=Array.isArray(r)?r[0]:r,o=e.name.replace(/\.(heic|heif)$/i,".jpg");return new File([i],o,{type:"image/jpeg"})}catch{throw Error("Couldn't read this HEIC photo. Try exporting it as a JPEG, or use Safari.")}};async function a(e){if(!(e.type.startsWith("image/")||o(e)))return e;let t=e;o(e)&&!(()=>
1557{if("undefined"==typeof navigator)return!1;let e=navigator.userAgent;return/Safari/.test(e)&&!/(Chrome|Chromium|Edg|OPR|Android|CriOS|FxiOS)/.test(e)})()&&(t=await s(e));try{return await (0,r.SU)(t,1e3,.85)}catch{return t}}},37267:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(14232),i=n(1815),o=n(13220);function s(){let[e,t]=(0,r.useState)([]),n=(0,o.QU)(),s=(0,r.useCallback)(async e=>{let r={file:e,status:"uploading"};t(e=>[...e,r]);try{let r=await (0,i.cp)(n,e);if(r.error)t(t=>t.map(t=>t.file===e?{...t,status:"error",error:"Upload failed"}:t));else{let n=r.data;t(t=>t.map(t=>t.file===e?{...t,status:"complete",result:{id:n.id,url:n.url}}:t))}}catch(n){t(t=>t.map(t=>t.file===e?{...t,status:"error",error:"Upload failed"}:t))}},[n]),a=(0,r.useCallback)(e=>{t(t=>t.filter(t=>t.file!==e))},[]),l=(0,r.useCallback)(()=>{t([])},[]),u=(0,r.useCallback)(()=>e.filter(e=>"complete"===e.status&&e.result?.id).map(e=>e.result?.id).filter(e=>void 0!==e),[e]),c=e.some(e=>"uploading"===e.status);return{pendingAttachments:e,addAttachment:s,removeAttachment:a,clearAttachments:l,getImageIds:u,hasUploadsInProgress:c}}},37483:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(37876),i=n(72954),o=n(73382),s=n(6884),a=n(38537),l=n(64628),u=n(77162),c=n(5811),d=n(49995),h=n(87089),p=n(14232);let f=(0,c.PA)(function(e){let{contentSlug:t,pageType:n}=e,c=e.as,f=e.contentItem?.id??e.contentId,m=e.contentItem?.type??e.type,g=(0,s.Z1)(m);m||console.warn("No type provided for ContentItem",e);let y=(0,a.uV)();(0,p.useEffect)(()=>{y.getContentItems()},[y]);let v=e.contentItem;!v&&f&&(v=f&&y.contentItems?.find(e=>e.id===f)||void 0),!v&&t&&(v=g?t&&y.navItems?.find(e=>e.slug===t)||void 0:t&&y.contentItems?.find(e=>e.slug===t)||void 0);let b=(0,d.A)(e.className,(0,o.kB)(v),(0,o.Tm)(v)),x=v&&{type:v.type??void 0},_=x&&(0,h.yJ)(x),w=(0,o.xs)(v),k=!0,C=v?.content||null;if(_?.component?(C=(0,r.jsx)(_.component,{contentItem:v,className:b}),!1===_.wrapWithEditable&&(k=!1),_.containerOpts?.as&&(c=_.containerOpts.as)):w&&"HTML"!==w&&"MARKDOWN"!==w?v&&(console.warn("Content type not supported",v),C="(content type not supported)"):C=(0,r.jsx)(u.A,{text:v?.content||"(edit this text)",format:w}),!k)return(0,r.jsx)(l.Ay,{contentItem:v,children:C});let E=m?{slug:t||"",type:m,pageType:n}:void 0,A=_?.isEmpty&&v?!_.isEmpty(v):void 0;return(0,r.jsx)(i.A,{hasContent:A,editById:v?{id:v?.id,type:v.type??void 0}:void 0,editBySlug:E,as:c,className:(0,d.A)("content-item",b),editRoles:e.editRoles,withEditLink:e.withEditLink,"data-sentry-element":"EditableSection","data-sentry-component":"ContentItem","data-sentry-source-file":"ContentItem.tsx",children:(0,r.jsx)(l.Ay,{contentItem:v,"data-sentry-element":"ContentPathProvider","data-sentry-source-file":"ContentItem.tsx",children:C||"(no content)"})})})},37510:(e,t,n)=>{"use strict";n.d(t,{D$:()=>a,KG:()=>r});var r,i=n(75093);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var o=new Map;function s(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function a(e,t){var n=function(e){var t,n,s=o.get(e);if(s)return s;__DEV__?(0,i.V1)(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,i.V1)(!!e&&!!e.kind,33);for(var a=[],l=[],u=[],c=[],d=0,h=e.definitions;d<h.length;d++){var p=h[d];if("FragmentDefinition"===p.kind){a.push(p);continue}if("OperationDefinition"===p.kind)switch(p.operation){case"query":l.push(p);break;case"mutation":u.push(p);break;case"subscription":c.push(p)}}__DEV__?(0,i.V1)(!a.length||l.length||u.length||c.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):(0,i.V1)(!a.length||l.length||u.length||c.length,34),__DEV__?(0,i.V1)(l.length+u.length+c.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(l.length," queries, ").concat(c.length," ")+"subscriptions and ".concat(u.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):(0,i.V1)(l.length+u.length+c.length<=1,35),n=l.length?r.Query:r.Mutation,l.length||u.length||(n=r.Subscription);var f=l.length?l:u.length?u:c;__DEV__?(0,i.V1)(1===f.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(f.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):(0,i.V1)(1===f.length,36);var m=f[0];t=m.variableDefinitions||[];var g={name:m.name&&"Name"===m.name.kind?m.name.value:"data",type:n,variables:t};return o.set(e,g),g}(e),a=s(t),l=s(n.type);__DEV__?(0,i.V1)(n.type===t,"Running a ".concat(a," requires a graphql ")+"".concat(a,", but a ").concat(l," was used instead.")):(0,i.V1)(n.type===t,37)}},37973:(e,t,n)=>{e.exports=n(43622)(n(19031),"Set")},38167:function(e,t){"use strict";var n=this&&this.__assign||function(){return(n=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}).apply(this,arguments)};function r(e,t){var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0}
1557Object.defineProperty(t,"__esModule",{value:!0}),t.areCookiesEqual=t.hasSameProperties=t.createCookie=t.isBrowser=void 0,t.isBrowser=function(){return"undefined"!=typeof window},t.createCookie=function(e,t,r){var i=r.sameSite;!0===i&&(i="strict"),(void 0===i||!1===i)&&(i="lax");var o=n(n({},r),{sameSite:i});return delete o.encode,n({name:e,value:t},o)},t.hasSameProperties=r,t.areCookiesEqual=function(e,t){var i=e.sameSite===t.sameSite;return"string"==typeof e.sameSite&&"string"==typeof t.sameSite&&(i=e.sameSite.toLowerCase()===t.sameSite.toLowerCase()),r(n(n({},e),{sameSite:void 0}),n(n({},t),{sameSite:void 0}))&&i}},38537:(e,t,n)=>{"use strict";n.d(t,{yd:()=>B,iR:()=>H,BT:()=>W,MM:()=>U,uV:()=>z,Mg:()=>et,$U:()=>G,xt:()=>Q,g1:()=>Z,s_:()=>Y,rq:()=>K,Me:()=>X,N8:()=>ee,gy:()=>q,kH:()=>V,G6:()=>J});var r=n(80035),i=n(33649);class o{constructor(e){this.jwtValue=null,this.validClaims=null,this.unprotectedSetJwt(e),(0,r.Gn)(this,{jwtValue:r.sH,validClaims:r.sH})}unprotectedSetJwt(e){this.jwtValue=e||null;let t=e&&(0,i.Cq)(e)||null;(0,i.CY)(t)?this.validClaims=t:this.validClaims=null}get memberJwt(){let e=this.validClaims;return e&&["members","linked"].includes(e.aud)?this.jwtValue:null}get linkedAccountJwt(){let e=this.validClaims;return e&&"linked"===e.aud?this.jwtValue:null}get passwordResetJwt(){let e=this.validClaims;return e&&"pwd-reset"===e.aud?this.jwtValue:null}get validJwt(){return!this.validClaims||this.isExpired()?(this.clearJwt(),null):this.passwordResetJwt||this.memberJwt||this.linkedAccountJwt}isExpired(){if(!this.validClaims)return!1;let e=this.validClaims.exp;return e&&Date.now()/1e3>e}clearJwt(){this.validClaims&&this.isExpired()&&(0,i.lD)(),(0,r.h5)(()=>{this.jwtValue=null,this.validClaims=null})}expireSession(){return"undefined"!=typeof document&&((0,i.lD)(),(0,r.h5)(()=>{this.jwtValue=null,this.validClaims=null}),!(0,i.KQ)())}setJwt(e){(0,r.h5)(()=>{this.unprotectedSetJwt(e)})}}var s=n(18334),a=n(2138),l=n(52226);class u{constructor(e,t,n,i=null){this.baseUrl=e,this.jwtStore=t,this.fetchedUser=i,this.loading=!1,this.groupSlug=n,(0,r.Gn)(this,{fetchedUser:r.sH})}async loadUser(){if(this.loading)return null;let e=this.jwtStore.memberJwt;if(!e)return null;this.loading=!0;try{let t=await (0,a.fy)({baseUrl:this.baseUrl,jwt:e,groupSlug:this.groupSlug});(0,r.h5)(()=>{this.fetchedUser=t}),t&&s.gV({id:`m-${t.id}`,groupSlug:this.groupSlug})}catch(e){throw e instanceof l.A&&this.jwtStore.clearJwt(),e}finally{(0,r.h5)(()=>{this.loading=!1})}return this.fetchedUser}get user(){return!this.jwtStore.memberJwt&&this.fetchedUser?((0,r.h5)(()=>{this.fetchedUser=null}),null):this.fetchedUser}}var c=n(43982),d=n(39114),h=n(89099),p=n.n(h);function f(e){let{mostRecentReceivedAt:t}=e;t=(0,c._U)(t);let n=e.lastReadMessage;return n&&(n=m(n)),{...e,mostRecentReceivedAt:t,lastReadMessage:n}}function m(e){let t=(0,c._U)(e.sentAt);return{elapsed:null,read:!1,...e,insertedAt:t}}class g{constructor(e,t){this.conversations=null,this.jwtStore=t,this.memberChannel=null,this.startedMemberChannel=!1,this.webSocketStore=e,this.unreadTopicsCount=0,this.unreadMessageCounts={topic:0,event:0,chat:0},(0,r.Gn)(this,{conversations:r.sH,unreadTopicsCount:r.sH,unreadMessageCounts:r.sH,setConversations:r.XI,updateConversation:r.XI,unreadCount:r.EW,setUnreadTopicsCount:r.XI})}getWebSocket(){return this.webSocketStore.getWebSocket()}async loadMemberChannelAndConversations(){this.validMemberId()&&(await this.getMemberChannel(),this.memberChannel&&this.loadConversations())}validMemberId(){let e=this.jwtStore.validClaims;return e?.sub&&(0,i.CY)(e)?e.sub:null}async getMemberChannel(){if(this.validMemberId()){if(!this.startedMemberChannel){this.startedMemberChannel=!0;let e=this.getWebSocket();if(!e)throw this.startedMemberChannel=!1,Error("getMemberChannel: No socket set");let t=this.validMemberId();if(!t)throw this.startedMemberChannel=!1,Error("No valid claims found");let n=`member:${t}`;this.memberChannel=e.channel(n,{}),this.memberChannel.join().receive("error",e=>{console.warn("Unable to join",e)});let r=e=>{let t=m(e),n=this.conversations&&this.conversations.find(e=>e.id===t.conversationId);if(n){let{selfParticipant:t}=n;n={...n,selfParticipant:{isSilenced:t?.isSilenced??!1,lastReadMessageId:t?.lastReadMessageId??null,silenceUntil:t?.silenceUntil??null,totalMessagesCount:t?.totalMessagesCount??0,unreadMessagesCount:e.conversationUnreadMessagesCount}}}else this.loadConversations();this.setUnreadMessageCount("chat",e.unreadMessagesCount||0)};this.memberChannel.on("messaging.chat.message.created",r),this.memberChannel.on("messaging.chat.message.marked-as-read",r),this.memberChannel.on("messaging.forum.topic.published",e=>{this.setUnreadTopicsCount(e.unreadTopicsCount)}),this.memberChannel.on("messaging.forum.topic.viewed",e=>{this.setUnreadTopicsCount(e.unreadTopicsCount)}),["messaging.forum.topic.message.created","messaging.forum.topic.message.deleted","messaging.forum.topic.message.marked-as-read"].forEach(e
1557=>{this.memberChannel?.on(e,e=>{this.setUnreadMessageCount("topic",e.unreadMessagesCount)})}),["messaging.forum.event.message.created","messaging.forum.event.message.deleted","messaging.forum.event.message.marked-as-read"].forEach(e=>{this.memberChannel?.on(e,e=>{this.setUnreadMessageCount("event",e.unreadMessagesCount)})}),this.memberChannel.on("reload",()=>{console.log("Reloading app..."),p().reload()}),this.memberChannel.on("logout",()=>{this.jwtStore.jwtValue&&(0,d.yB)()}),this.memberChannel.push("get-topic-counts",{}).receive("ok",e=>{"number"==typeof e.unreadTopicsCount&&this.setUnreadTopicsCount(e.unreadTopicsCount),"number"==typeof e.unreadMessagesCount&&this.setUnreadMessageCount("topic",e.unreadMessagesCount)}).receive("error",e=>{console.error("Failed to get topic counts:",e)})}return this.memberChannel}}setConversations(e){this.conversations=e}updateConversation(e,t){this.conversations&&(this.conversations=this.conversations.map(n=>n.id===e?{...n,...t}:n))}get unreadCount(){return this.conversations?this.conversations.reduce((e,t)=>e+(t.selfParticipant?.unreadMessagesCount??0),0):0}getUnreadCountForConversation(e){if(this.conversations){let t=this.conversations.find(t=>t.id===e);if(t)return t.selfParticipant?.unreadMessagesCount??0}return 0}loadConversations(){let{memberChannel:e}=this;if(!e)throw Error("memberChannel not set");let t=e=>{this.setConversations(e)};return new Promise(n=>{e.push("getConversations",{}).receive("ok",e=>{t(e.conversations.map(f)),n(!0)}).receive("error",()=>{n(!1)})})}setUnreadTopicsCount(e){(0,r.h5)(()=>{this.unreadTopicsCount=e})}setUnreadMessageCount(e,t){(0,r.h5)(()=>{this.unreadMessageCounts[e]=t})}resetUnreadTopicsCount(){this.setUnreadTopicsCount(0),this.memberChannel&&this.memberChannel.push("mark_topics_seen",{})}}class y{constructor(e){this.baseUrl=e.baseUrl,this.jwt=e.jwt,this.groupSlug=e.groupSlug,this.cursor=null,this.rootScreen=null,this.editMode=!1,this.loadingRootNavLists=null,(0,r.l_)(this)}get modalOpen(){return!!this.cursor||!!this.rootScreen}setEditMode(e){(0,r.h5)(()=>{this.editMode=e,e||(this.cursor=null,this.rootScreen=null)})}open(e,t){(0,r.h5)(()=>{this.rootScreen=null,this.cursor={contentId:e,path:function(e,t){if(!t?.length)return[];let n=t.findIndex(t=>t.id===e);return -1===n?t:t.slice(0,n)}(e,t?.path),webComponentName:t?.webComponentName}})}openNew(e,t){(0,r.h5)(()=>{this.rootScreen=null,this.cursor={contentId:null,initialParams:e,path:t?.path??[],webComponentName:t?.webComponentName}})}showRootScreen(e,t){(0,r.h5)(()=>{this.cursor=null,this.rootScreen={rootUp:e,origin:t}})}close(){(0,r.h5)(()=>{this.cursor=null,this.rootScreen=null,this.editMode=!1})}}var v=n(6195),b=n(73382),x=n(85318);function _(e){console.warn("Failed to refresh published content:",e)}class w{constructor(e){this.baseUrl=e.baseUrl||null,this.groupConfig=e.groupConfig||null,this.pageId=null,this.pageLoadCallback=null,this.navigation=null,this.navItems=null,this.loadingNavigation=null,this.jwt=e.jwt||null,this.contentItems=null,this.loadingContentItems=null,this.groupSlug=e.groupSlug||null,(0,r.Gn)(this,{navItems:r.sH,navigation:r.sH,pageId:r.sH,contentItems:r.sH})}reloadNavigationData(e){return this.loadingNavigation=null,this.loadNavigationData({items:e})}async listNavItems(){if(!this.groupConfig)throw Error("No groupConfig found");return(0,v.Cy)(x.C.Navigation,this.groupConfig)}loadNavigationData(e){if(this.loadingNavigation&&!e?.force)return this.loadingNavigation;let t=e?.items;return this.loadingNavigation=new Promise((e,n)=>{(t?Promise.resolve({error:!1,data:t}):this.listNavItems()).then(t=>{let n;if(t.error)throw Error(t.requestErrors[0].title);let i=t.data,o=[],s=[],a=[];i.forEach(e=>{let t=(0,b.KR)(e);t===b.nz.NavGroup?s.push(e):t===b.nz.NavMenu?o.push(e):t===b.nz.NavLink&&a.push(e)});let l=o.find(e=>"primary-nav"===e.slug),u=s.find(e=>"secondary-nav"===e.slug),c=s.find(e=>"side-nav"===e.slug);l&&(n=a.filter(e=>e.parentId===l.id).sort(k),l={...l,children:n}),u&&(n=o.filter(e=>e.parentId===u?.id).map(e=>{let t=a.filter(t=>t.parentId===e.id).sort(k);return{...e,children:t}}).sort(k),u={...u,children:n}),c&&(n=o.filter(e=>e.parentId===c.id).map(e=>{let t=a.filter(t=>t.parentId===e.id).sort(k);return{...e,children:t}}).sort(k),c={...c,children:n});let d={sideNav:c,secondaryNav:u,primaryNav:l};(0,r.h5)(()=>{this.navItems=i,this.navigation=d}),setTimeout(()=>{this.loadNavigationData({force:!0})?.catch(_)},36e5),e(d)}).catch(e=>{this.loadingNavigation=null,n(e)})}),this.loadingNavigation}registerCurrentPage(e,t){(0,r.h5)(()=>{this.pageId=e,this.pageLoadCallback=t})}onPageUpdated(e){if(setTimeout(()=>
1557{this.refreshInBackground()},200),!this.pageLoadCallback||!this.pageId)return null;this.pageId===e&&this.pageLoadCallback()}refreshInBackground(){this.loadNavigationData({force:!0})?.catch(_),this.getContentItems({force:!0}).catch(_)}reloadContentItems(){return this.getContentItems({force:!0}).catch(_)}getContentItems(e){if(!this.groupConfig)throw Error("No groupConfig found");if(!this.baseUrl)throw Error("No baseUrl found");if(!this.groupSlug)throw Error("No groupSlug found");return!e?.force&&this.loadingContentItems||(this.loadingContentItems=new Promise((e,t)=>{if(!this.groupConfig)throw Error("No groupConfig found");if(!this.baseUrl)throw Error("No baseUrl found");if(!this.groupSlug)throw Error("No groupSlug found");(0,v.Cy)(x.C.Content,this.groupConfig).then(n=>{n.error?t(n):((0,r.h5)(()=>{this.contentItems=n.data,e(this.contentItems)}),setTimeout(()=>{this.getContentItems({force:!0}).catch(_)},36e5))}).catch(e=>{s.Cp(e),t(e)})})),this.loadingContentItems}}function k(e,t){return e.order<=t.order?-1:1}class C{constructor(e){this.isOpen=!1,this.navItemSlug=e?.navItemSlug,this.navItemId=e?.navItemId,(0,r.l_)(this)}open(){(0,r.h5)(()=>{this.isOpen=!0})}close(){(0,r.h5)(()=>{this.isOpen=!1})}toggle(){(0,r.h5)(()=>{this.isOpen=!this.isOpen})}setNavItemId(e){(0,r.h5)(()=>{this.navItemId=e})}setNavItemSlug(e){(0,r.h5)(()=>{this.navItemSlug=e})}}class E{constructor(){this.isOpen=!1,(0,r.l_)(this)}open(){(0,r.h5)(()=>{this.isOpen=!0})}close(){(0,r.h5)(()=>{this.isOpen=!1})}}class A{constructor(){this.isOpen=!1,this.children=null,this.modalProps={},(0,r.Gn)(this,{isOpen:r.sH,children:r.sH,modalProps:r.sH})}open(e,t){(0,r.h5)(()=>{this.isOpen=!0,this.children=e,this.modalProps=t?.modalProps||{}})}close(){(0,r.h5)(()=>{this.isOpen=!1,this.children=null,this.modalProps={}})}}class S{constructor(){this._returnedFromStripe=!1,(0,r.Gn)(this,{_returnedFromStripe:r.sH})}get returnedFromStripe(){return this._returnedFromStripe}set returnedFromStripe(e){(0,r.h5)(()=>{this._returnedFromStripe=e})}}var T=n(46338),j=n(54595);class N{constructor(e){this.profile=null,this.profileAdmin=null,this.application=null,this.applicationAdmin=null,this.loading=!1,this.group=e.group,(0,r.l_)(this)}async loadData(){(0,r.h5)(()=>{this.loading=!0});
1557try{let e=await (0,T.iV)(this.group);if(!e.error){let t=(0,j.JO)(e.data,j.D5.profile),n=(0,j.JO)(e.data,j.D5.profile,{admin:!0}),i=(0,j.JO)(e.data,j.D5.application),o=(0,j.JO)(e.data,j.D5.application,{admin:!0});(0,r.h5)(()=>{this.profile=t,this.profileAdmin=n,this.application=i,this.applicationAdmin=o})}}finally{(0,r.h5)(()=>{this.loading=!1})}}}class O{constructor(){this.isOpen=!1,(0,r.l_)(this)}open(){(0,r.h5)(()=>{this.isOpen=!0})}close(){(0,r.h5)(()=>{this.isOpen=!1})}}class I{constructor(){this.isOpen=!1,(0,r.l_)(this)}open(){(0,r.h5)(()=>{this.isOpen=!0})}close(){(0,r.h5)(()=>{this.isOpen=!1})}}var D=n(81692);class M{constructor(e,t,n){this.jwtStore=t,this.groupSlug=n,this.socketUrl=e,this.startedConnectingWebSocket=!1,this.webSocket=null,(0,r.Gn)(this,{webSocket:r.sH,getWebSocket:r.XI})}getWebSocket(){if(this.webSocket)return this.webSocket;let e=this.jwtStore.memberJwt;if(!e)return console.warn("Attempt to connect to WebSocket without JWT"),null;if(!(0,i.kt)(e))return console.warn("Attempt to connect to WebSocket with invalid JWT"),null;if(!this.startedConnectingWebSocket){this.startedConnectingWebSocket=!0;let t=(0,D.o9)(this.socketUrl,e,this.groupSlug);this.webSocket=t,t&&(t.onError(()=>this.disconnectIfSessionExpired()),t.onClose(()=>this.disconnectIfSessionExpired()))}return this.webSocket}disconnectIfSessionExpired(){(0,i.kt)(this.jwtStore.jwtValue??void 0)||(console.warn("JWT is no longer valid. Disconnecting WebSocket."),this.disconnect())}disconnect(){this.webSocket&&this.webSocket.disconnect(),(0,r.h5)(()=>{this.webSocket=null,this.startedConnectingWebSocket=!1})}}class L{constructor(){this.isOpen=!1,this.toggleSidebar=()=>{this.isOpen=!this.isOpen},this.openSidebar=()=>{this.isOpen=!0},this.closeSidebar=()=>{this.isOpen=!1},(0,r.l_)(this)}}class R{constructor(){this.errorMessage=null,(0,r.Gn)(this,{errorMessage:r.sH})}open(e){(0,r.h5)(()=>{this.errorMessage=e})}close(){(0,r.h5)(()=>{this.errorMessage=null})}}class P{constructor(){this.isOpen=!1,(0,r.Gn)(this,{isOpen:r.sH})}open(){(0,r.h5)(()=>{this.isOpen=!0})}close(){(0,r.h5)(()=>{this.isOpen=!1})}}class F{constructor(){this.isOpen=!1,(0,r.l_)(this)}open(){(0,r.h5)(()=>{this.isOpen=!0})}close(){(0,r.h5)(()=>{this.isOpen=!1})}}class B{constructor(e){let{apiBaseUrl:t,wsBaseUrl:n,jwt:i,groupSlug:s,groupConfig:a,me:l}=e;this.adminSidebarStore=new L,this.alertStore=new A,this.errorStore=new R,this.memberChannelStore=null,this.contentEditStore=void 0,this.contentStore=null,this.emailSetModalStore=new I,this.webSocketStore=null,this.formStore=new N({group:a||{slug:"",name:""}}),this.hamburgerStore=new C,this.jwtStore=new o(i),this.loginModalStore=new E,this.passwordSetModalStore=new O,this.stripeStore=new S,this.userStore=null,this.tourStore=new P,this.helpAndSupportStore=new F,t&&s&&(this.userStore=new u(t,this.jwtStore,s,l??null),n&&(this.webSocketStore=new M(n,this.jwtStore,s),this.memberChannelStore=new g(this.webSocketStore,this.jwtStore)),this.contentEditStore=new y({baseUrl:t,jwt:i||"",groupSlug:s})),a&&(this.contentStore=new w({baseUrl:t,groupSlug:s,jwt:i,groupConfig:a}),this.formStore=new N({group:a}),this.stripeStore=new S),(0,r.l_)(this),this.jwtStore?.validJwt&&this.userStore&&!this.userStore.fetchedUser&&this.userStore.loadUser(),this.memberChannelStore&&this.jwtStore?.memberJwt&&(this.memberChannelStore.getWebSocket(),this.memberChannelStore.loadMemberChannelAndConversations()),this.contentStore&&this.contentStore.loadNavigationData()?.catch(e=>{console.warn("Failed to load navigation data:",e)}),this.formStore&&this.formStore.loadData(),this.tourStore&&this.tourStore.open()}endSession(){this.webSocketStore?.disconnect();let e=this.jwtStore.expireSession();return(0,i.sl)(),e}}var $=n(35885);function q(){let{rootStore:e}=(0,$.U)();if(!e)throw Error("No RootStore available");return e}function V(){let{userStore:e}=q();if(!e)throw Error("UserStore is not available");return e}function z(){let{contentStore:e}=q();if(!e)throw Error("ContentStore is not available");return e}function U(){let{contentEditStore:e}=q();if(!e)throw Error("ContentEditStore is not available");return e}function H(){let{adminSidebarStore:e}=q();return e}function W(){let{alertStore:e}=q();if(!e)throw Error("AlertStore is not available");return e}function G(){let{errorStore:e}=q();if(!e)throw Error("ErrorStore is not available");return e}function K(){let{loginModalStore:e}=q();if(!e)throw Error("LoginModalStore is not available");return e}function J(){let{webSocketStore:e}=q();if(!e)throw Error("WebSocketStore is not available");return e}function Q(){let{formStore:e}=q();if(!e)throw Error("FormStore is not available");return e}function Y(){let{jwtStore:e}=q();if(!e)throw Error("JwtStore is not available");return e}function X(){let{memberChannelStore:e}=q();if(!e)throw Error("MemberChannelStore is not available");return e}function Z(){let{hamburgerStore:e}=q();if(!e)throw Error("HamburgerStore is not available");return e}function ee(){let{passwordSetModalStore:e}=q();if(!e)throw Error("PasswordSetModalStore is not available");return e}function et(){let{emailSetModalStore:e}=q();if(!e)throw Error("EmailSetModalStore is not available");return e}},38806:(e,t,n)=>{"use strict";e.exports=n(29429)},39004:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},39103:(e,t,n)=>{"use strict";n.d(t,{$x:()=>l,El:()=>a,O_:()=>s,Uw:()=>o});var r=n(14232);let i=(0,r.createContext)(null);i.displayName="OpenClosedContext";var o=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(o||{});function s(){return(0,r.useContext)(i)}function a({value:e,children:t}){return r.createElement(i.Provider,{value:e},t)}function l({children:e}){return r.createElement(i.Provider,{value:null},e)}}
1557,39114:(e,t,n)=>{"use strict";n.d(t,{GX:()=>l,RW:()=>a,hN:()=>s,yB:()=>o});var r=n(89099),i=n.n(r);function o(){let e=i().asPath;i().push(`/login?ret=${encodeURIComponent(e)}`)}function s(e,t){if(e?.status!=="ACTIVE")return!1;if(e.roles.includes("super")&&"developer"!==t)return!0;let n=Array.isArray(t)?t:[t];for(let t=0;t<n.length;t++)if(e.roles.includes(n[t]))return!0;return!1}function a(e){return!!e&&"ACTIVE"===e.status&&!!e.roles.length}let l=/^[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])?)*$/},39812:(e,t,n)=>{"use strict";let r,i;n.d(t,{A:()=>dH});var o=n(37876),s=n(14232),a=n(88992),l=n(74472),u=n.n(l),c=n(5044),d=n(98477),h=n(38806);function p(e){this.content=e}p.prototype={constructor:p,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 p(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 p(n)},addToStart:function(e,t){return new p([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new p(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 p(i)},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=p.from(e)).size?new p(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=p.from(e)).size?new p(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=p.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}},p.from=function(e){if(e instanceof p)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new p(t)};class f{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let o=0,s=0;s<t;o++){let a=this.content[o],l=s+a.nodeSize;if(l>e&&!1!==n(a,r+s,i||null,o)&&a.content.size){let i=s+1;a.nodesBetween(Math.max(0,e-i),Math.min(a.content.size,t-i),n,r+i)}s=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i="",o=!0;return this.nodesBetween(e,t,(s,a)=>{let l=s.isText?s.text.slice(Math.max(e,a)-a,t-a):s.isLeaf?r?"function"==typeof r?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&l||s.isTextblock)&&n&&(o?o=!1:i+=n),i+=l},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new f(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let i=0,o=0;o<t;i++){let s=this.content[i],a=o+s.nodeSize;a>e&&((o<e||a>t)&&(s=s.isText?s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),n.push(s),r+=s.nodeSize),o=a}return new f(n,r)}cutByIndex(e,t){return e==t?f.empty:0==e&&t==this.content.length?this:new f(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new f(r,i)}addToStart(e){return new f([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new f(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return function e(t,n,r){for(let i=0;;i++){if(i==t.childCount||i==n.childCount)return t.childCount==n.childCount?null:r;let o=t.child(i),s=n.child(i);if(o==s){r+=o.nodeSize;continue}if(!o.sameMarkup(s))return r;if(o.isText&&o.text!=s.text){for(let e=0;o.text[e]==s.text[e];e++)r++;return r}if(o.content.size||s.content.size){let t=e(o.content,s.content,r+1);if(null!=t)return t}r+=o.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return function e(t,n,r,i){for(let o=t.childCount,s=n.childCount;;){if(0==o||0==s)return o==s?null:{a:r,b:i};let a=t.child(--o),l=n.child(--s),u=a.nodeSize;if(a==l){r-=u,i-=u;continue}if(!a.sameMarkup(l))return{a:r,b:i};if(a.isText&&a.text!=l.text){let e=0,t=Math.min(a.text.length,l.text.length);for(;e<t&&a.text[a.text.length-e-1]==l.text[l.text.length-e-1];)e++,r--,i--;return{a:r,b:i}}if(a.content.size||l.content.size){let t=e(a.content,l.content,r-1,i-1);if(t)return t}r-=u,i-=u}}(this,e,t,n)}findIndex(e){if(0==e)return g(0,e);if(e==this.size)return g(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=n+this.child(t).nodeSize;if(r>=e){if(r==e)return g(t+1,r);return g(t,n)}n=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return f.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new f(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return f.empty;let t,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new f(t||e,n)}static from(e){if(!e)return f.empty;if(e instanceof f)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new f([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}f.empty=new f([],0);let m={index:0,offset:0};function g(e,t){return m.index=e,m.offset=t,m}function y(e,t){if(e===t)return!0;
1557if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!y(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!y(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class v{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let 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}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&y(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return v.none;if(e instanceof v)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}v.none=[];class b extends Error{}class x{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=function e(t,n,r,i){let{index:o,offset:s}=t.findIndex(n),a=t.maybeChild(o);if(s==n||a.isText)return i&&!i.canReplace(o,o,r)?null:t.cut(0,n).append(r).append(t.cut(n));let l=e(a.content,n-s-1,r,a);return l&&t.replaceChild(o,a.copy(l))}(this.content,e+this.openStart,t);return n&&new x(n,this.openStart,this.openEnd)}removeBetween(e,t){return new x(function e(t,n,r){let{index:i,offset:o}=t.findIndex(n),s=t.maybeChild(i),{index:a,offset:l}=t.findIndex(r);if(o==n||s.isText){if(l!=r&&!t.child(a).isText)throw RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(i!=a)throw RangeError("Removing non-flat range");return t.replaceChild(i,s.copy(e(s.content,n-o-1,r-o-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return x.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new x(f.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new x(e,n,r)}}function _(e,t){if(!t.type.compatibleContent(e.type))throw new b("Cannot join "+t.type.name+" onto "+e.type.name)}function w(e,t,n){let r=e.node(n);return _(r,t.node(n)),r}function k(e,t){let 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 C(e,t,n,r){let i=(t||e).node(n),o=0,s=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(k(e.nodeAfter,r),o++));for(let e=o;e<s;e++)k(i.child(e),r);t&&t.depth==n&&t.textOffset&&k(t.nodeBefore,r)}function E(e,t){return e.type.checkContent(t),e.copy(t)}function A(e,t,n){let r=[];return C(null,e,n,r),e.depth>n&&k(E(w(e,t,n+1),A(e,t,n+1)),r),C(t,null,n,r),new f(r)}x.empty=new x(f.empty,0,0);class S{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw 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}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let 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)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return v.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||r&&i[o].isInSet(r.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var 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}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let 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 O(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let n=[],r=0,i=t;for(let t=e;;){let{index:e,offset:o}=t.content.findIndex(i),s=i-o;if(n.push(t,e,r+o),!s||(t=t.child(e)).isText)break;
1557i=s-1,r+=o+1}return new S(t,n,i)}static resolveCached(e,t){let n=N.get(e);if(n)for(let e=0;e<n.elts.length;e++){let r=n.elts[e];if(r.pos==t)return r}else N.set(e,n=new T);let r=n.elts[n.i]=S.resolve(e,t);return n.i=(n.i+1)%j,r}}class T{constructor(){this.elts=[],this.i=0}}let j=12,N=new WeakMap;class O{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let I=Object.create(null);class D{constructor(e,t,n,r=v.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||f.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&y(this.attrs,t||e.defaultAttrs||I)&&v.sameSet(this.marks,n||v.none)}copy(e=null){return e==this.content?this:new D(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new D(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return x.empty;let r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),s=r.start(o);return new x(r.node(o).content.cut(r.pos-s,i.pos-s),r.depth-o,i.depth-o)}replace(e,t,n){var r=this.resolve(e),i=this.resolve(t);if(n.openStart>r.depth)throw new b("Inserted content deeper than insertion position");if(r.depth-n.openStart!=i.depth-n.openEnd)throw new b("Inconsistent open depths");return function e(t,n,r,i){let o=t.index(i),s=t.node(i);if(o==n.index(i)&&i<t.depth-r.openStart){let a=e(t,n,r,i+1);return s.copy(s.content.replaceChild(o,a))}if(!r.content.size)return E(s,A(t,n,i));if(r.openStart||r.openEnd||t.depth!=i||n.depth!=i){let{start:e,end:o}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(f.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t);return E(s,function e(t,n,r,i,o){let s=t.depth>o&&w(t,n,o+1),a=i.depth>o&&w(r,i,o+1),l=[];return C(null,t,o,l),s&&a&&n.index(o)==r.index(o)?(_(s,a),k(E(s,e(t,n,r,i,o+1)),l)):(s&&k(E(s,A(t,n,o+1)),l),C(n,r,o,l),a&&k(E(a,A(r,i,o+1)),l)),C(i,null,o,l),new f(l)}(t,e,o,n,i))}{let e=t.parent,i=e.content;return E(e,i.cut(0,t.parentOffset).append(r.content).append(i.cut(n.parentOffset)))}}(r,i,n,0)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(!(t=t.maybeChild(n)))return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return S.resolveCached(this,e)}resolveNoCache(e){return S.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}
1557toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),L(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=f.empty,r=0,i=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,r,i),s=o&&o.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=v.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!v.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let 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(e=>e.toJSON())),e}static fromJSON(e,t){let n;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=f.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}}D.prototype.text=void 0;class M extends D{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):L(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new M(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new M(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function L(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class R{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var n;let r,i=new P(e,t);if(null==i.next)return R.empty;let o=function e(t){let n=[];do n.push(function(t){let n=[];do n.push(function(t){let n=function(t){if(t.eat("(")){let n=e(t);return t.eat(")")||t.err("Missing closing paren"),n}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=(function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}}(t);for(;;)if(t.eat("+"))n={type:"plus",expr:n};else if(t.eat("*"))n={type:"star",expr:n};else if(t.eat("?"))n={type:"opt",expr:n};else if(t.eat("{"))n=function(e,t){let n=F(e),r=n;return e.eat(",")&&(r="}"!=e.next?F(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}(t,n);else break;return n}(t));while(t.next&&")"!=t.next&&"|"!=t.next);return 1==n.length?n[0]:{type:"seq",exprs:n}}(t));while(t.eat("|"));return 1==n.length?n[0]:{type:"choice",exprs:n}}(i);i.next&&i.err("Unexpected trailing text");let s=(n=function(e){let t=[[]];return i(function e(t,o){if("choice"==t.type)return t.exprs.reduce((t,n)=>t.concat(e(n,o)),[]);if("seq"==t.type)for(let r=0;;r++){let s=e(t.exprs[r],o);if(r==t.exprs.length-1)return s;i(s,o=n())}else if("star"==t.type){let s=n();return r(o,s),i(e(t.expr,s),s),[r(s)]}else if("plus"==t.type){let s=n();return i(e(t.expr,o),s),i(e(t.expr,s),s),[r(s)]}else if("opt"==t.type)return[r(o)].concat(e(t.expr,o));else if("range"==t.type){let s=o;for(let r=0;r<t.min;r++){let r=n();i(e(t.expr,s),r),s=r}if(-1==t.max)i(e(t.expr,s),s);else for(let o=t.min;o<t.max;o++){let o=n();r(s,o),i(e(t.expr,s),o),s=o}return[r(s)]}else if("name"==t.type)return[r(o,void 0,t.value)];else throw Error("Unknown expr type")}(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}
1557function i(e,t){e.forEach(e=>e.to=t)}}(o),r=Object.create(null),function e(t){let i=[];t.forEach(e=>{n[e].forEach(({term:e,to:t})=>{let r;if(e){for(let t=0;t<i.length;t++)i[t][0]==e&&(r=i[t][1]);$(n,t).forEach(t=>{r||i.push([e,r=[]]),-1==r.indexOf(t)&&r.push(t)})}})});let o=r[t.join(",")]=new R(t.indexOf(n.length-1)>-1);for(let t=0;t<i.length;t++){let n=i[t][1].sort(B);o.next.push({type:i[t][0],next:r[n.join(",")]||e(n)})}return o}($(n,0)));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:n,next:s}=e.next[t];o.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),-1==r.indexOf(s)&&r.push(s)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(s,i),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function i(o,s){let a=o.matchFragment(e,n);if(a&&(!t||a.validEnd))return f.from(s.map(e=>e.createAndFill()));for(let e=0;e<o.next.length;e++){let{type:t,next:n}=o.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==r.indexOf(n)){r.push(n);let e=i(n,s.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:o,next:s}=i.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||r.type&&!s.validEnd||(n.push({match:o.contentMatch,type:o,via:r}),t[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return!function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)r+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return r}).join("\n")}}R.empty=new R(!0);class P{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function F(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function B(e,t){return t-e}function $(e,t){let n=[];return function t(r){let i=e[r];if(1==i.length&&!i[0].term)return t(i[0].to);n.push(r);for(let e=0;e<i.length;e++){let{term:r,to:o}=i[e];r||-1!=n.indexOf(o)||t(o)}}(t),n.sort(B)}function q(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function V(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(void 0===i){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function z(e,t,n,r){for(let r in t)if(!(r in e))throw RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function U(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new W(e,r,t[r]);return n}class H{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=U(e,n.attrs),this.defaultAttrs=q(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==R.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:V(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new D(this,this.computeAttrs(e),f.from(t),v.setFrom(n))}createChecked(e=null,t,n){return t=f.from(t),this.checkContent(t),new D(this,this.computeAttrs(e),t,v.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=f.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(f.empty,!0);return i?new D(this,e,t.append(i),v.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);
1557if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){z(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let 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:v.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new H(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw RangeError("The text node type should not have attributes");return n}}class W{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?function(e,t,n){let r=n.split("|");return n=>{let i=null===n?"null":typeof n;if(0>r.indexOf(i))throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class G{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=U(e,r.attrs),this.excluded=null;let i=q(this.attrs);this.instance=i?new v(this,i):null}create(e=null){return!e&&this.instance?this.instance:new v(this,V(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,i)=>n[e]=new G(e,r++,t,i)),n}removeFromSet(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}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){z(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class K{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=p.from(e.nodes),t.marks=p.from(e.marks||{}),this.nodes=H.compile(this.spec.nodes,this),this.marks=G.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=R.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?J(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:J(this,n.split(" "))}this.nodeFromJSON=e=>D.fromJSON(this,e),this.markFromJSON=e=>v.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof H){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new M(n,n.defaultAttrs,e,v.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function J(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],o=e.marks[i],s=o;if(o)n.push(o);else for(let t in e.marks){let r=e.marks[t];("_"==i||r.spec.group&&r.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=r)}if(!s)throw SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class Q{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];
1557t.forEach(e=>{if(null!=e.tag)this.tags.push(e);else if(null!=e.style){let t=/[^=]*/.exec(e.style)[0];0>n.indexOf(t)&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new en(this,t,!1);return n.addAll(e,v.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new en(this,t,!0);return n.addAll(e,v.none,t.from,t.to),x.maxOpen(n.finish())}matchTag(e,t,n){for(let o=n?this.tags.indexOf(n)+1:0;o<this.tags.length;o++){var r,i;let n=this.tags[o];if(r=e,i=n.tag,(r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector).call(r,i)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],o=r.style;if(0==o.indexOf(e)&&(!r.context||n.matchesContext(r.context))&&(!(o.length>e.length)||61==o.charCodeAt(e.length)&&o.slice(e.length+1)==t)){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=er(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=er(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Q(e,Q.schemaRules(e)))}}let Y={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},X={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Z={ol:!0,ul:!0};function ee(e,t,n){return null!=t?!!t|2*("full"===t):e&&"pre"==e.whitespace?3:-5&n}class et{constructor(e,t,n,r,i,o){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=o,this.content=[],this.activeMarks=v.none,this.match=i||(4&o?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(f.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=f.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(f.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Y.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class en{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,o=ee(null,t.preserveWhitespace,0)|4*!!n;i=r?new et(r.type,r.attrs,v.none,!0,t.topMatch||r.type.contentMatch,o):n?new et(null,null,v.none,!0,null,o):new et(e.schema.topNodeType,null,v.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=2&r.options?"full":this.localPreserveWS||(1&r.options)>0,{schema:o}=this.parser;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())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(o.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(o.text(e[n]),t,!/\S/.test(e[n]));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){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(o.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),s;Z.hasOwnProperty(o)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&Z.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,n));
1557e:if(a?a.ignore:X.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let n,r=this.needsBlock;if(Y.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let s=a&&a.skip?t:this.readStyles(e,t);s&&this.addAll(e,s),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,a,n,!1===a.consuming?s:void 0)}this.localPreserveWS=r}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1===n.consuming)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,o;
1557if(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{let e=this.enter(o,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let s=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(e=>this.insertNode(e,n,!1));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(s)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let o=n?e.childNodes[n]:e.firstChild,s=null==r?null:e.childNodes[r];o!=s;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,o=0;t>=0;t--){let s=this.nodes[t],a=s.findWrapping(e);if(a&&(!r||r.length>a.length+o)&&(r=a,i=s,!a.length))break;if(s.solid){if(n)break;o+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let n=v.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):ei(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&(i=this.enterInner(e,t,n,!0,r)),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let s=ee(e,i,o.options);4&o.options&&0==o.content.length&&(s|=4);let a=v.none;return n=n.filter(t=>(o.type?!o.type.allowsMarkType(t.type):!ei(t.type,e))||(a=t.addToSet(a),!1)),this.nodes.push(new et(e,t,a,r,null,s)),this.open++,n}closeExtra(e=!1){let 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}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=1);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let 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)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)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)}findInText(e){if(this.find)for(let 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))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,o=(e,s)=>{for(;e>=0;e--){let a=t[e];if(""==a){if(e==t.length-1||0==e)continue;for(;s>=i;s--)if(o(e-1,s))return!0;return!1}{let e=s>0||0==s&&r?this.nodes[s].type:n&&s>=i?n.node(s-i).type:null;if(!e||e.name!=a&&!e.isInGroup(a))return!1;s--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];
1557if(t.isTextblock&&t.defaultAttrs)return t}}}function er(e){let t={};for(let n in e)t[n]=e[n];return t}function ei(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],s=e=>{o.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||0>o.indexOf(i)&&s(i))return!0}};if(s(i.contentMatch))return!0}}class eo{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=ea(t).createDocumentFragment());let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,o=0;for(;n<i.length&&o<e.marks.length;){let t=e.marks[o];if(!this.marks[t.type.name]){o++;continue}if(!t.eq(i[n][0])||!1===t.type.spec.spanning)break;n++,o++}for(;n<i.length;)r=i.pop()[1];for(;o<e.marks.length;){let n=e.marks[o++],s=this.serializeMark(n,e.isInline,t);s&&(i.push([n,r]),r.appendChild(s.dom),r=s.contentDOM||s.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=eu(ea(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&eu(ea(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return eu(e,t,n,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new eo(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=es(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return es(e.marks)}}function es(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function ea(e){return e.document||window.document}let el=new WeakMap;function eu(e,t,n,r){let i,o,s;if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let a=t[0],l;if("string"!=typeof a)throw RangeError("Invalid array passed to renderSpec");if(r&&(void 0===(o=el.get(r))&&el.set(r,(s=null,!function e(t){if(t&&"object"==typeof t)if(Array.isArray(t))if("string"==typeof t[0])s||(s=[]),s.push(t);else for(let n=0;n<t.length;n++)e(t[n]);else for(let n in t)e(t[n])}(r),o=s)),l=o)&&l.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let u=a.indexOf(" ");u>0&&(n=a.slice(0,u),a=a.slice(u+1));let c=n?e.createElementNS(n,a):e.createElement(a),d=t[1],h=1;if(d&&"object"==typeof d&&null==d.nodeType&&!Array.isArray(d)){for(let e in h=2,d)if(null!=d[e]){let t=e.indexOf(" ");t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),d[e]):"style"==e&&c.style?c.style.cssText=d[e]:c.setAttribute(e,d[e])}}for(let o=h;o<t.length;o++){let s=t[o];if(0===s){if(o<t.length-1||o>h)throw RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}{let{dom:t,contentDOM:o}=eu(e,s,n,r);if(c.appendChild(t),o){if(i)throw RangeError("Multiple content holes");i=o}}}return{dom:c,contentDOM:i}}class ec{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class ed{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&ed.empty)return ed.empty}recover(e){let t=0,n=65535&e;if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let a=this.ranges[s]-(this.inverted?r:0);if(a>e)break;let l=this.ranges[s+i],u=this.ranges[s+o],c=a+l;if(e<=c){let i=l?e==a?-1:e==c?1:t:t,o=a+r+(i<0?0:u);if(n)return o;let d=e==(t<0?a:c)?null:s/3+(e-a)*65536,h=e==a?2:e==c?1:4;return(t<0?e!=a:e!=c)&&(h|=8),new ec(o,h,d)}r+=u-l}return n?e+r:new ec(e+r,0,null)}touches(e,t){let n=0,r=65535&t,i=this.inverted?2:1,o=this.inverted?1:2;
1557for(let t=0;t<this.ranges.length;t+=3){let s=this.ranges[t]-(this.inverted?n:0);if(s>e)break;let a=this.ranges[t+i];if(e<=s+a&&t==3*r)return!0;n+=this.ranges[t+o]-a}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let o=this.ranges[r],s=o-(this.inverted?i:0),a=o+(this.inverted?0:i),l=this.ranges[r+t],u=this.ranges[r+n];e(s,s+l,a,a+u),i+=u-l}}invert(){return new ed(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?ed.empty:new ed(e<0?[0,-e,0]:[0,0,e])}}ed.empty=new ed([]);class eh{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new eh(this._maps,this.mirror,e,t)}appendMap(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)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new eh;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new ec(e,r,null)}}let ep=Object.create(null);class ef{getMap(){return ed.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let n=ep[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in ep)throw RangeError("Duplicate use of step JSON ID "+e);return ep[e]=t,t.prototype.jsonID=e,t}}class em{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new em(e,null)}static fail(e){return new em(null,e)}static fromReplace(e,t,n,r){try{return em.ok(e.replace(t,n,r))}catch(e){if(e instanceof b)return em.fail(e.message);throw e}}}function eg(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let o=e.child(i);o.content.size&&(o=o.copy(eg(o.content,t,o))),o.isInline&&(o=t(o,n,i)),r.push(o)}return f.fromArray(r)}class ey extends ef{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new x(eg(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,r),t.openStart,t.openEnd);return em.fromReplace(e,this.from,this.to,i)}invert(){return new ev(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new ey(t.pos,n.pos,this.mark)}merge(e){return e instanceof ey&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ey(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new ey(t.from,t.to,e.markFromJSON(t.mark))}}ef.jsonID("addMark",ey);class ev extends ef{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new x(eg(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return em.fromReplace(e,this.from,this.to,n)}invert(){return new ey(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new ev(t.pos,n.pos,this.mark)}merge(e){return e instanceof ev&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ev(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new ev(t.from,t.to,e.markFromJSON(t.mark))}}ef.jsonID("removeMark",ev);class eb extends ef{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return em.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return em.fromReplace(e,this.pos,this.pos+1,new x(f.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new eb(this.pos,t.marks[n]);return new eb(this.pos,this.mark)}}return new ex(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new eb(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new eb(t.pos,e.markFromJSON(t.mark))}}ef.jsonID("addNodeMark",eb);class ex extends ef{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return em.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return em.fromReplace(e,this.pos,this.pos+1,new x(f.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new eb(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ex(t.pos,this.mark)}
1557toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new ex(t.pos,e.markFromJSON(t.mark))}}ef.jsonID("removeNodeMark",ex);class e_ extends ef{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&ek(e,this.from,this.to)?em.fail("Structure replace would overwrite content"):em.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new ed([this.from,this.to-this.from,this.slice.size])}invert(e){return new e_(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),n=this.from==this.to&&e_.MAP_BIAS<0?t:e.mapResult(this.from,1);return n.deletedAcross&&t.deletedAcross?null:new e_(n.pos,Math.max(n.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof e_)||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;else{let t=this.slice.size+e.slice.size==0?x.empty:new x(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new e_(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?x.empty:new x(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new e_(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new e_(t.from,t.to,x.fromJSON(e,t.slice),!!t.structure)}}e_.MAP_BIAS=1,ef.jsonID("replace",e_);class ew extends ef{constructor(e,t,n,r,i,o,s=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=o,this.structure=s}apply(e){if(this.structure&&(ek(e,this.from,this.gapFrom)||ek(e,this.gapTo,this.to)))return em.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return em.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?em.fromReplace(e,this.from,this.to,n):em.fail("Content does not fit in gap")}getMap(){return new ed([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new ew(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)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||i>n.pos?null:new ew(t.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let 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}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ew(t.from,t.to,t.gapFrom,t.gapTo,x.fromJSON(e,t.slice),t.insert,!!t.structure)}}function ek(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let e=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function eC(e,t,n,r=n.contentMatch,i=!0){let o=e.doc.nodeAt(t),s=[],a=t+1;for(let t=0;t<o.childCount;t++){let l=o.child(t),u=a+l.nodeSize,c=r.matchType(l.type);if(c){r=c;for(let t=0;t<l.marks.length;t++)n.allowsMarkType(l.marks[t].type)||e.step(new ev(a,u,l.marks[t]));if(i&&l.isText&&"pre"!=n.whitespace){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(l.text);)r||(r=new x(f.from(n.schema.text(" ",n.allowedMarks(l.marks))),0,0)),s.push(new e_(a+e.index,a+e.index+e[0].length,r))}}else s.push(new e_(a,u,x.empty));a=u}if(!r.validEnd){let t=r.fillBefore(f.empty,!0);
1557e.replace(a,a,new x(t,0,0))}for(let t=s.length-1;t>=0;t--)e.step(s[t])}function eE(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let o=e.$from.node(n),s=e.$from.index(n)+r,a=e.$to.indexAfter(n)-i;if(n<e.depth&&o.canReplace(s,a,t))return n;if(0==n||o.type.spec.isolating||!((0==s||o.canReplace(s,o.childCount))&&(a==o.childCount||o.canReplace(0,a))))break;s&&(r=1),a<o.childCount&&(i=1)}return null}function eA(e,t,n=null,r=e){let i=function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;let s=o.length?o[0]:t;return n.canReplaceWith(r,i,s)?o:null}(e,t),o=i&&function(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.child(r),s=t.contentMatch.findWrapping(o.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let e=r;a&&e<i;e++)a=a.matchType(n.child(e).type);return a&&a.validEnd?s:null}(r,t);return o?i.map(eS).concat({type:t,attrs:n}).concat(o.map(eS)):null}function eS(e){return{type:e,attrs:null}}function eT(e,t,n,r){t.forEach((i,o)=>{if(i.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(i.text);){let i=e.mapping.slice(r).map(n+1+o+s.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function ej(e,t,n,r){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+o);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function eN(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,s=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>o;e--,t--){let n=i.node(e),o=i.index(e);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(o,n.childCount),a=r&&r[t+1];a&&(s=s.replaceChild(0,a.type.create(a.attrs)));let l=r&&r[t]||n;if(!n.canReplace(o+1,n.childCount)||!l.type.validContent(s))return!1}let a=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(a,a,l?l.type:i.node(o+1).type)}function eO(e,t){let n=e.resolve(t),r=n.index();return eI(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function eI(e,t){return!!(e&&t&&!e.isLeaf&&function(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),s=o.type==r?e.type.schema.nodes.text:o.type;if(!(n=n.matchType(s))||!e.type.allowsMarks(o.marks))return!1}return n.validEnd}(e,t))}function eD(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,o,s=r.index(e);if(e==r.depth?(i=r.nodeBefore,o=r.nodeAfter):n>0?(i=r.node(e+1),s++,o=r.node(e).maybeChild(s)):(i=r.node(e).maybeChild(s-1),o=r.node(e+1)),i&&!i.isTextblock&&eI(i,o)&&r.node(e).canReplace(s,s+1))return t;if(0==e)break;t=n<0?r.before(e):r.after(e)}}function eM(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,o=r.index(t)+ +(n>0),s=r.node(t),a=!1;if(1==e)a=s.canReplace(o,o,i);else{let e=s.contentMatchAt(o).findWrapping(i.firstChild.type);a=e&&s.canReplaceWith(o,o,e[0])}if(a)return 0==n?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function eL(e,t,n=t,r=x.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),o=e.resolve(n);return eR(i,o,r)?new e_(t,n,r):new eP(i,o,r).fit()}function eR(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}ef.jsonID("replaceAround",ew);class eP{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=f.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=f.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,o=n.depth,s=r.depth;for(;o&&s&&1==i.childCount;)i=i.firstChild.content,o--,s--;let a=new x(i,o,s);return e>-1?new ew(n.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||n.pos!=this.$to.pos?new e_(n.pos,r.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e=null,r=(n?(e=e$(this.unplaced.content,n-1).firstChild).content:this.unplaced.content).firstChild;for(let i=this.depth;i>=0;i--){let{type:o,match:s}=this.frontier[i],a,l=null;if(1==t&&(r?s.matchType(r.type)||(l=s.fillBefore(f.from(r),!1)):e&&o.compatibleContent(e.type)))return{sliceDepth:n,frontierDepth:i,parent:e,inject:l};if(2==t&&r&&(a=s.findWrapping(r.type)))return{sliceDepth:n,frontierDepth:i,parent:e,wrap:a};if(e&&s.matchType(e.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=e$(e,t);return!!r.childCount&&!r.firstChild.isLeaf&&(this.unplaced=new x(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=e$(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new x(eF(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new x(eF(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let o=this.unplaced,s=n?n.content:o.content,a=o.openStart-e,l=0,u=[],{match:c,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)u.push(r.child(e));c=c.matchFragment(r)}let h=s.size+e-(o.content.size-o.openEnd);for(;l<s.childCount;){let e=s.child(l),t=c.matchType(e.type);if(!t)break;(++l>1||0==a||e.content.size)&&(c=t,u.push(function e(t,n,r){if(n<=0)return t;let i=t.content;return n>1&&(i=i.replaceChild(0,e(i.firstChild,n-1,1==i.childCount?r-1:0))),n>0&&(i=t.type.contentMatch.fillBefore(i).append(i),r<=0&&(i=i.append(t.type.contentMatch.matchFragment(i).fillBefore(f.empty,!0)))),t.copy(i)}(e.mark(d.allowedMarks(e.marks)),1==l?a:0,l==s.childCount?h:-1)))}
vendor: 4,175 bytes, line 1557
1557let p=l==s.childCount;p||(h=-1),this.placed=eB(this.placed,t,f.from(u)),this.frontier[t].match=c,p&&h<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=s;e<h;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?0==e?x.empty:new x(eF(o.content,e-1,1),e-1,h<0?o.openEnd:e-1):new x(eF(o.content,e,l),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!eV(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){t:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=eV(e,t,r,n,i);if(o){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=eV(e,n,r,t,!0);if(!i||i.childCount)continue t}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=eB(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=eB(this.placed,this.depth,f.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(f.empty,!0);e.childCount&&(this.placed=eB(this.placed,this.frontier.length,e))}}function eF(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(eF(e.firstChild.content,t-1,n)))}function eB(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(eB(e.lastChild.content,t-1,n)))}function e$(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function eV(e,t,n,r,i){let o=e.node(t),s=i?e.indexAfter(t):e.index(t);if(s==o.childCount&&!n.compatibleContent(o.type))return null;let a=r.fillBefore(o.content,!0,s);return a&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,o.content,s)?a:null}function ez(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}class eU extends ef{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return em.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return em.fromReplace(e,this.pos,this.pos+1,new x(f.from(r),0,+!t.isLeaf))}getMap(){return ed.empty}invert(e){return new eU(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new eU(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new eU(t.pos,t.attr,t.value)}}ef.jsonID("attr",eU);class eH extends ef{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return em.ok(n)}getMap(){return ed.empty}invert(e){return new eH(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new eH(t.attr,t.value)}}ef.jsonID("docAttr",eH);
1557let eW=class extends Error{};(eW=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n}).prototype=Object.create(Error.prototype),eW.prototype.constructor=eW,eW.prototype.name="TransformError";class eG{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new eh}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new eW(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,i,o)=>{e=Math.min(e,i),t=Math.max(t,o)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=x.empty){let r=eL(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new x(f.from(n),0,0))}delete(e,t){return this.replace(e,t,x.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return!function(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),o=e.doc.resolve(n);if(eR(i,o,r))return e.step(new e_(t,n,r));let s=ez(i,o);0==s[s.length-1]&&s.pop();let a=-(i.depth+1);s.unshift(a);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;s.indexOf(e)>-1?a=e:i.before(e)==t&&s.splice(1,0,-e)}let l=s.indexOf(a),u=[],c=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(u.push(n),t==r.openStart)break;e=n.content}for(let e=c-1;e>=0;e--){var d;let t=u[e],n=(d=t.type).spec.defining||d.spec.definingForContent;if(n&&!t.sameMarkup(i.node(Math.abs(a)-1)))c=e;else if(n||!t.type.isTextblock)break}for(let t=r.openStart;t>=0;t--){let a=(t+c+1)%(r.openStart+1),d=u[a];if(d)for(let t=0;t<s.length;t++){let u=s[(t+l)%s.length],c=!0;u<0&&(c=!1,u=-u);let h=i.node(u-1),p=i.index(u-1);if(h.canReplaceWith(p,p,d.type,d.marks))return e.replace(i.before(u),c?o.after(u):n,new x(function e(t,n,r,i,o){if(n<r){let o=t.firstChild;t=t.replaceChild(0,o.copy(e(o.content,n+1,r,i,o)))}if(n>i){let e=o.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(f.empty,!0))}return t}(r.content,0,r.openStart,a),a,r.openEnd))}}let h=e.steps.length;for(let a=s.length-1;a>=0&&(e.replace(t,n,r),!(e.steps.length>h));a--){let e=s[a];e<0||(t=i.before(e),n=o.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){var r=e,i=t;if(!n.isInline&&r==i&&this.doc.resolve(r).parent.content.size){let e=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)break}return null}(this.doc,r,n.type);null!=e&&(r=i=e)}return this.replaceRange(r,i,new x(f.from(n),0,0)),this}deleteRange(e,t){return!function(e,t,n){let 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){let o=r.sharedDepth(n),s=!1;for(let e=r.depth;e>o;e--)r.node(e).type.spec.isolating&&(s=!0);for(let e=i.depth;e>o;e--)i.node(e).type.spec.isolating&&(s=!0);if(!s){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=i.depth;e>0&&n==i.start(e);e--)n=i.before(e);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let o=ez(r,i);for(let t=0;t<o.length;t++){let n=o[t],s=t==o.length-1;if(s&&0==n||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(s||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(t-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o&&r.start(o-1)==i.start(o-1)&&r.node(o-1).canReplace(r.index(o-1),i.index(o-1)))return e.delete(r.before(o),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return!function(e,t,n){let{$from:r,$to:i,depth:o}=t,s=r.before(o+1),a=i.after(o+1),l=s,u=a,c=f.empty,d=0;for(let e=o,t=!1;e>n;e--)t||r.index(e)>
15570?(t=!0,c=f.from(r.node(e).copy(c)),d++):l--;let h=f.empty,p=0;for(let e=o,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,h=f.from(i.node(e).copy(h)),p++):u++;e.step(new ew(l,u,s,a,new x(c.append(h),d,p),c.size-d,!0))}(this,e,t),this}join(e,t=1){return!function(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,o=e.doc.resolve(t-n),s=o.node().type;if(i&&s.inlineContent){let e="pre"==s.whitespace,t=!!s.contentMatch.matchType(i);e&&!t?r=!1:!e&&t&&(r=!0)}let a=e.steps.length;if(!1===r){let r=e.doc.resolve(t+n);ej(e,r.node(),r.before(),a)}s.inlineContent&&eC(e,t+n-1,s,o.node().contentMatchAt(o.index()),null==r);let l=e.mapping.slice(a),u=l.map(t-n);if(e.step(new e_(u,l.map(t+n,-1),x.empty,!0)),!0===r){let t=e.doc.resolve(u);eT(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return!function(e,t,n){let r=f.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=f.from(n[e].type.create(n[e].attrs,r))}let i=t.start,o=t.end;e.step(new ew(i,o,i,o,new x(r,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,r=null){var i=this;if(!n.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let o=i.steps.length;return i.doc.nodesBetween(e,t,(e,t)=>{var s,a,l;let u,c,d="function"==typeof r?r(e):r;if(e.isTextblock&&!e.hasMarkup(n,d)&&(s=i.doc,a=i.mapping.slice(o).map(t),l=n,c=(u=s.resolve(a)).index(),u.parent.canReplaceWith(c,c+1,l))){let r=null;if(n.schema.linebreakReplacement){let e="pre"==n.whitespace,t=!!n.contentMatch.matchType(n.schema.linebreakReplacement);e&&!t?r=!1:!e&&t&&(r=!0)}!1===r&&ej(i,e,t,o),eC(i,i.mapping.slice(o).map(t,1),n,void 0,null===r);let s=i.mapping.slice(o),a=s.map(t,1),l=s.map(t+e.nodeSize,1);return i.step(new ew(a,l,a+1,l-1,new x(f.from(n.create(d,null,e.marks)),0,0),1,!0)),!0===r&&eT(i,e,t,o),!1}}),this}setNodeMarkup(e,t,n=null,r){return!function(e,t,n,r,i){let o=e.doc.nodeAt(t);if(!o)throw RangeError("No node at given position");n||(n=o.type);let s=n.create(r,null,i||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,s);if(!n.validContent(o.content))throw RangeError("Invalid content for node type "+n.name);e.step(new ew(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new x(f.from(s),0,0),1,!0))}(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new eU(e,t,n)),this}setDocAttribute(e,t){return this.step(new eH(e,t)),this}addNodeMark(e,t){return this.step(new eb(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError("No node at position "+e);if(t instanceof v)t.isInSet(n.marks)&&this.step(new ex(e,t));else{let r=n.marks,i,o=[];for(;i=t.isInSet(r);)o.push(new ex(e,i)),r=i.removeFromSet(r);for(let e=o.length-1;e>=0;e--)this.step(o[e])}return this}split(e,t=1,n){return!function(e,t,n=1,r){let i=e.doc.resolve(t),o=f.empty,s=f.empty;for(let e=i.depth,t=i.depth-n,a=n-1;e>t;e--,a--){o=f.from(i.node(e).copy(o));let t=r&&r[a];s=f.from(t?t.type.create(t.attrs,s):i.node(e).copy(s))}e.step(new e_(t,t,new x(o.append(s),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){var r;let i,o,s,a;return r=this,s=[],a=[],r.doc.nodesBetween(e,t,(r,l,u)=>{if(!r.isInline)return;let c=r.marks;if(!n.isInSet(c)&&u.type.allowsMarkType(n.type)){let u=Math.max(l,e),d=Math.min(l+r.nodeSize,t),h=n.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(h)||(i&&i.to==u&&i.mark.eq(c[e])?i.to=d:s.push(i=new ev(u,d,c[e])));o&&o.to==u?o.to=d:a.push(o=new ey(u,d,n))}}),s.forEach(e=>r.step(e)),a.forEach(e=>r.step(e)),this}removeMark(e,t,n){var r;let i,o;return r=this,i=[],o=0,r.doc.nodesBetween(e,t,(r,s)=>{if(!r.isInline)return;o++;let a=null;if(n instanceof G){let e=r.marks,t;for(;t=n.isInSet(e);)(a||(a=[])).push(t),e=t.removeFromSet(e)}else n?n.isInSet(r.marks)&&(a=[n]):a=r.marks;if(a&&a.length){let n=Math.min(s+r.nodeSize,t);for(let t=0;t<a.length;t++){let r=a[t],l;for(let e=0;e<i.length;e++){let t=i[e];t.step==o-1&&r.eq(i[e].style)&&(l=t)}l?(l.to=n,l.step=o):i.push({style:r,from:Math.max(s,e),to:n,step:o})}}}
1557),i.forEach(e=>r.step(new ev(e.from,e.to,e.style))),this}clearIncompatible(e,t,n){return eC(this,e,t,n),this}}let eK=Object.create(null);class eJ{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new eQ(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=x.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let i=e.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:a,$to:l}=o[s],u=e.mapping.slice(i);e.replaceRange(u.map(a.pos),u.map(l.pos),s?x.empty:t),0==s&&e8(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:s}=r[i],a=e.mapping.slice(n),l=a.map(o.pos),u=a.map(s.pos);i?e.deleteRange(l,u):(e.replaceRangeWith(l,u,t),e8(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new eZ(e):e4(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?e4(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):e4(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}
1557static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new e5(e.node(0))}static atStart(e){return e4(e,e,0,0,1)||new e5(e)}static atEnd(e){return e4(e,e,e.content.size,e.childCount,-1)||new e5(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let n=eK[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in eK)throw RangeError("Duplicate use of selection JSON ID "+e);return eK[e]=t,t.prototype.jsonID=e,t}getBookmark(){return eZ.between(this.$anchor,this.$head).getBookmark()}}eJ.prototype.visible=!0;class eQ{constructor(e,t){this.$from=e,this.$to=t}}let eY=!1;function eX(e){eY||e.parent.inlineContent||(eY=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class eZ extends eJ{constructor(e,t=e){eX(e),eX(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return eJ.near(n);let r=e.resolve(t.map(this.anchor));return new eZ(r.parent.inlineContent?r:n,n)}replace(e,t=x.empty){if(super.replace(e,t),t==x.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof eZ&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new e0(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new eZ(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if((!n||r)&&(n=r>=0?1:-1),!t.parent.inlineContent){let e=eJ.findFrom(t,n,!0)||eJ.findFrom(t,-n,!0);if(!e)return eJ.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(eJ.findFrom(e,-n,!0)||eJ.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0&&(e=t)),new eZ(e,t)}}eJ.jsonID("text",eZ);class e0{constructor(e,t){this.anchor=e,this.head=t}map(e){return new e0(e.map(this.anchor),e.map(this.head))}resolve(e){return eZ.between(e.resolve(this.anchor),e.resolve(this.head))}}class e1 extends eJ{constructor(e){let t=e.nodeAfter;super(e,e.node(0).resolve(e.pos+t.nodeSize)),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),i=e.resolve(r);return n?eJ.near(i):new e1(i)}content(){return new x(f.from(this.node),0,0)}eq(e){return e instanceof e1&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new e2(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new e1(e.resolve(t.anchor))}static create(e,t){return new e1(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}e1.prototype.visible=!1,eJ.jsonID("node",e1);class e2{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new e0(n,n):new e2(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&e1.isSelectable(n)?new e1(t):eJ.near(t)}}class e5 extends eJ{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=x.empty){if(t==x.empty){e.delete(0,e.doc.content.size);let t=eJ.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new e5(e)}map(e){return new e5(e)}eq(e){return e instanceof e5}getBookmark(){return e3}}eJ.jsonID("all",e5);let e3={map(){return this},resolve:e=>new e5(e)};function e4(e,t,n,r,i,o=!1){if(t.inlineContent)return eZ.create(e,n);for(let s=r-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){let r=t.child(s);if(r.isAtom){if(!o&&e1.isSelectable(r))return e1.create(e,n-(i<0?r.nodeSize:0))}else{let t=e4(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}return null}function e8(e,t,n){let r,i=e.steps.length-1;if(i<t)return;let o=e.steps[i];(o instanceof e_||o instanceof ew)&&(e.mapping.maps[i].forEach((e,t,n,i)=>{null==r&&(r=i)}),e.setSelection(eJ.near(e.doc.resolve(r),n)))}class e6 extends eG{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){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}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return v.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||v.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let 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);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.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(eJ.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function e7(e,t){return t&&e?e.bind(t):e}class e9{constructor(e,t,n){this.name=e,this.init=e7(t.init,n),this.apply=e7(t.apply,n)}}let te=[new e9("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new e9("selection",{init:(e,t)=>
1557e.selection||eJ.atStart(t.doc),apply:e=>e.selection}),new e9("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new e9("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class tt{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=te.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new e9(e.key,e.spec.state,e))})}}class tn{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let a=r?r[o].n:0,l=r?r[o].state:this,u=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(u&&n.filterTransaction(u,o)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<o?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),i=!0}r&&(r[o]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new tn(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new e6(this)}static create(e){let t=new tt(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new tn(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new tt(this.schema,e.plugins),n=t.fields,r=new tn(t);for(let t=0;t<n.length;t++){let i=n[t].name;r[i]=this.hasOwnProperty(i)?this[i]:n[t].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let r=new tt(e.schema,e.plugins),i=new tn(r);return r.fields.forEach(r=>{if("doc"==r.name)i.doc=D.fromJSON(e.schema,t.doc);else if("selection"==r.name)i.selection=eJ.fromJSON(i.doc,t.selection);else if("storedMarks"==r.name)t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let o in n){let s=n[o],a=s.spec.state;if(s.key==r.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,o)){i[r.name]=a.fromJSON.call(s,e,t[o],i);return}}i[r.name]=r.init(e,i)}}),i}}class tr{constructor(e){this.spec=e,this.props={},e.props&&function e(t,n,r){for(let i in t){let o=t[i];o instanceof Function?o=o.bind(n):"handleDOMEvents"==i&&(o=e(o,n,{})),r[i]=o}return r}(e.props,this,this.props),this.key=e.key?e.key.key:to("plugin")}getState(e){return e[this.key]}}let ti=Object.create(null);function to(e){return e in ti?e+"$"+ ++ti[e]:(ti[e]=0,e+"$")}class ts{constructor(e="key"){this.key=to(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}let ta=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function tl(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("backward",e):!(n.parentOffset>0))?n:null}let tu=(e,t,n)=>{let r=tl(e,n);if(!r)return!1;let i=tp(r);if(!i){let n=r.blockRange(),i=n&&eE(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let o=i.nodeBefore;if(tk(e,i,t,-1))return!0;
1557if(0==r.parent.content.size&&(td(o,"end")||e1.isSelectable(o)))for(let n=r.depth;;n--){let s=eL(e.doc,r.before(n),r.after(n),x.empty);if(s&&s.slice.size<s.to-s.from){if(t){let n=e.tr.step(s);n.setSelection(td(o,"end")?eJ.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):e1.create(n.doc,i.pos-o.nodeSize)),t(n.scrollIntoView())}return!0}if(1==n||r.node(n-1).childCount>1)break}return!!o.isAtom&&i.depth==r.depth-1&&(t&&t(e.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0)};function tc(e,t,n){let r=t.nodeBefore,i=t.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let o=t.nodeAfter,s=t.pos+1;for(;!o.isTextblock;s++){if(o.type.spec.isolating)return!1;let e=o.firstChild;if(!e)return!1;o=e}let a=eL(e.doc,i,s,x.empty);if(!a||a.from!=i||a instanceof e_&&a.slice.size>=s-i)return!1;if(n){let t=e.tr.step(a);t.setSelection(eZ.create(t.doc,i)),n(t.scrollIntoView())}return!0}function td(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)break}return!1}let th=(e,t,n)=>{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;o=tp(r)}let s=o&&o.nodeBefore;return!!s&&!!e1.isSelectable(s)&&(t&&t(e.tr.setSelection(e1.create(e.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)};function tp(e){if(!e.parent.type.spec.isolating)for(let 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 tf(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("forward",e):!(n.parentOffset<n.parent.content.size))?n:null}
1557let tm=(e,t,n)=>{let r=tf(e,n);if(!r)return!1;let i=ty(r);if(!i)return!1;let o=i.nodeAfter;if(tk(e,i,t,1))return!0;if(0==r.parent.content.size&&(td(o,"start")||e1.isSelectable(o))){let n=eL(e.doc,r.before(),r.after(),x.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(td(o,"start")?eJ.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):e1.create(r.doc,r.mapping.map(i.pos))),t(r.scrollIntoView())}return!0}}return!!o.isAtom&&i.depth==r.depth-1&&(t&&t(e.tr.delete(i.pos,i.pos+o.nodeSize).scrollIntoView()),!0)},tg=(e,t,n)=>{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;o=ty(r)}let s=o&&o.nodeAfter;return!!s&&!!e1.isSelectable(s)&&(t&&t(e.tr.setSelection(e1.create(e.doc,o.pos)).scrollIntoView()),!0)};function ty(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let 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}let tv=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!!n.parent.type.spec.code&&!!n.sameParent(r)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function tb(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}let tx=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),s=tb(i.contentMatchAt(o));if(!s||!i.canReplaceWith(o,o,s))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,s.createAndFill());i.setSelection(eJ.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},t_=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof e5||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=tb(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,s=e.tr.insert(n,o.createAndFill());s.setSelection(eZ.create(s.doc,n+1)),t(s.scrollIntoView())}return!0},tw=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(eN(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&eE(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function tk(e,t,n,r){let i,o,s,a=t.nodeBefore,l=t.nodeAfter,u,c,d=a.type.spec.isolating||l.type.spec.isolating;if(!d&&(i=t.nodeBefore,o=t.nodeAfter,s=t.index(),i&&o&&i.type.compatibleContent(o.type)&&(!i.content.size&&t.parent.canReplace(s-1,s)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(s,s+1)&&!!(o.isTextblock||eO(e.doc,t.pos))&&(n&&n(e.tr.join(t.pos).scrollIntoView()),!0))))return!0;let h=!d&&t.parent.canReplace(t.index(),t.index()+1);if(h&&(u=(c=a.contentMatchAt(a.childCount)).findWrapping(l.type))&&c.matchType(u[0]||l.type).validEnd){if(n){let r=t.pos+l.nodeSize,i=f.empty;for(let e=u.length-1;e>=0;e--)i=f.from(u[e].create(null,i));i=f.from(a.copy(i));let o=e.tr.step(new ew(t.pos-1,r,t.pos,r,new x(i,1,0),u.length,!0)),s=o.doc.resolve(r+2*u.length);s.nodeAfter&&s.nodeAfter.type==a.type&&eO(o.doc,s.pos)&&o.join(s.pos),n(o.scrollIntoView())}return!0}let p=l.type.spec.isolating||r>0&&d?null:eJ.findFrom(t,1),m=p&&p.$from.blockRange(p.$to),g=m&&eE(m);if(null!=g&&g>=t.depth)return n&&n(e.tr.lift(m,g).scrollIntoView()),!0;if(h&&td(l,"start",!0)&&td(a,"end")){let r=a,i=[];for(;i.push(r),!r.isTextblock;)r=r.lastChild;let o=l,s=1;for(;!o.isTextblock;o=o.firstChild)s++;if(r.canReplace(r.childCount,r.childCount,o.content)){if(n){let r=f.empty;for(let e=i.length-1;e>=0;e--)r=f.from(i[e].copy(r));n(e.tr.step(new ew(t.pos-i.length,t.pos+l.nodeSize,t.pos+s,t.pos+l.nodeSize-s,new x(r,i.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function tC(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return!!i.node(o).isTextblock&&(n&&n(t.tr.setSelection(eZ.create(t.doc,e<0?i.start(o):i.end(o)))),!0)}}let tE=tC(-1),tA=tC(1);function tS(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];n.doc.nodesBetween(o,s,(r,o)=>{if(i)return!1;if(!(!r.isTextblock||r.hasMarkup(e,t)))if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[r];i.setBlockType(o,s,e,t)}r(i.scrollIntoView())}return!0}}function tT(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}let tj=tT(ta,tu,th),tN=tT(ta,tm,tg),tO={Enter:tT(tv,t_,tw,(e,t)=>{let{$from:n,$to:r}=e.selection;if(e.selection instanceof e1&&e.selection.node.isBlock)return!!n.parentOffset&&!!eN(e.doc,n.pos)&&(t&&t(e.tr.split(n.pos).scrollIntoView()),!0);if(!n.depth)return!1;let i=[],o,s,a=!1,l=!1;for(let e=n.depth;;e--){if(n.node(e).isBlock){let t;a=n.end(e)==n.pos+(n.depth-e),l=n.start(e)==n.pos-(n.depth-e),s=tb(n.node(e-1).contentMatchAt(n.indexAfter(e-1)));i.unshift(t||(a&&s?{type:s}:null)),o=e;break}if(1==e)return!1;i.unshift(null)}let u=e.tr;(e.selection instanceof eZ||e.selection instanceof e5)&&u.deleteSelection();let c=u.mapping.map(n.pos),d=eN(u.doc,c,i.length,i);if(d||(i[0]=s?{type:s}:null,d=eN(u.doc,c,i.length,i)),!d)return!1;
1557if(u.split(c,i.length,i),!a&&l&&n.node(o).type!=s){let e=u.mapping.map(n.before(o)),t=u.doc.resolve(e);s&&n.node(o-1).canReplaceWith(t.index(),t.index()+1,s)&&u.setNodeMarkup(u.mapping.map(n.before(o)),s)}return t&&t(u.scrollIntoView()),!0}),"Mod-Enter":tx,Backspace:tj,"Mod-Backspace":tj,"Shift-Backspace":tj,Delete:tN,"Mod-Delete":tN,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new e5(e.doc))),!0)},tI={"Ctrl-h":tO.Backspace,"Alt-Backspace":tO["Mod-Backspace"],"Ctrl-d":tO.Delete,"Ctrl-Alt-Backspace":tO["Mod-Delete"],"Alt-Delete":tO["Mod-Delete"],"Alt-d":tO["Mod-Delete"],"Ctrl-a":tE,"Ctrl-e":tA};for(let e in tO)tI[e]=tO[e];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform();let tD=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},tM=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},tL=null,tR=function(e,t,n){let r=tL||(tL=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},tP=function(){tL=null},tF=function(e,t,n,r){return n&&(t$(e,t,n,r,-1)||t$(e,t,n,r,1))},tB=/^(img|br|input|textarea|hr)$/i;function t$(e,t,n,r,i){for(var o;;){if(e==n&&t==r)return!0;if(t==(i<0?0:tq(e))){let n=e.parentNode;if(!n||1!=n.nodeType||tV(e)||tB.test(e.nodeName)||"false"==e.contentEditable)return!1;t=tD(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;let n=e.childNodes[t+(i<0?-1:0)];if(1==n.nodeType&&"false"==n.contentEditable)if(null==(o=n.pmViewDesc)||!o.ignoreForSelection)return!1;else t+=i;else e=n,t=i<0?tq(e):0}}}function tq(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function tV(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}let tz=function(e){return e.focusNode&&tF(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function tU(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}let tH="undefined"!=typeof navigator?navigator:null,tW="undefined"!=typeof document?document:null,tG=tH&&tH.userAgent||"",tK=/Edge\/(\d+)/.exec(tG),tJ=/MSIE \d/.exec(tG),tQ=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(tG),tY=!!(tJ||tQ||tK),tX=tJ?document.documentMode:tQ?+tQ[1]:tK?+tK[1]:0,tZ=!tY&&/gecko\/(\d+)/i.test(tG);tZ&&(/Firefox\/(\d+)/.exec(tG)||[0,0])[1];let t0=!tY&&/Chrome\/(\d+)/.exec(tG),t1=!!t0,t2=t0?+t0[1]:0,t5=!tY&&!!tH&&/Apple Computer/.test(tH.vendor),t3=t5&&(/Mobile\/\w+/.test(tG)||!!tH&&tH.maxTouchPoints>2),t4=t3||!!tH&&/Mac/.test(tH.platform),t8=!!tH&&/Win/.test(tH.platform),t6=/Android \d/.test(tG),t7=!!tW&&"webkitFontSmoothing"in tW.documentElement.style,t9=t7?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function ne(e,t){return"number"==typeof e?e:e[t]}function nt(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let s=n||e.dom;s;){if(1!=s.nodeType){s=tM(s);continue}let e=s,n=e==o.body,a=n?function(e){let 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}}(o):function(e){let 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}}(e),l=0,u=0;if(t.top<a.top+ne(r,"top")?u=-(a.top-t.top+ne(i,"top")):t.bottom>a.bottom-ne(r,"bottom")&&(u=t.bottom-t.top>a.bottom-a.top?t.top+ne(i,"top")-a.top:t.bottom-a.bottom+ne(i,"bottom")),t.left<a.left+ne(r,"left")?l=-(a.left-t.left+ne(i,"left")):t.right>a.right-ne(r,"right")&&(l=t.right-a.right+ne(i,"right")),l||u)if(n)o.defaultView.scrollBy(l,u);else{let n=e.scrollLeft,r=e.scrollTop;u&&(e.scrollTop+=u),l&&(e.scrollLeft+=l);let i=e.scrollLeft-n,o=e.scrollTop-r;t={left:t.left-i,top:t.top-o,right:t.right-i,bottom:t.bottom-o}}let c=n?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(c))break;s="absolute"==c?s.offsetParent:tM(s)}}function nn(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=tM(r));return t}function nr(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:o}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=o&&(r.scrollLeft=o)}}let ni=null;function no(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>
1557=t.top-1&&e.top<=t.bottom+1}function ns(e){return e.top<e.bottom||e.left<e.right}function na(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(ns(e))return e}return Array.prototype.find.call(n,ns)||e.getBoundingClientRect()}let nl=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function nu(e,t,n){let{node:r,offset:i,atom:o}=e.docView.domFromPos(t,n<0?-1:1),s=t7||tZ;if(3==r.nodeType)if(s&&(nl.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=na(tR(r,i,i),n);if(tZ&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=na(tR(r,i-1,i-1),-1);if(t.top==e.top){let n=na(tR(r,i,i+1),-1);if(n.top!=e.top)return nc(n,n.left<t.left)}}return e}else{let e=i,t=i,o=n<0?1:-1;return n<0&&!i?(t++,o=-1):n>=0&&i==r.nodeValue.length?(e--,o=1):n<0?e--:t++,nc(na(tR(r,e,t),o),o<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(null==o&&i&&(n<0||i==tq(r))){let e=r.childNodes[i-1];if(1==e.nodeType)return nd(e.getBoundingClientRect(),!1)}if(null==o&&i<tq(r)){let e=r.childNodes[i];if(1==e.nodeType)return nd(e.getBoundingClientRect(),!0)}return nd(r.getBoundingClientRect(),n>=0)}if(null==o&&i&&(n<0||i==tq(r))){let e=r.childNodes[i-1],t=3==e.nodeType?tR(e,tq(e)-!s):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return nc(na(t,1),!1)}if(null==o&&i<tq(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?tR(e,0,+!s):1==e.nodeType?e:null:null;if(t)return nc(na(t,-1),!0)}return nc(na(3==r.nodeType?tR(r):r,-n),n>=0)}function nc(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function nd(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function nh(e,t,n){let 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()}}let np=/[\u0590-\u08ac]/,nf=null,nm=null,ng=!1;class ny{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){let r;if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode))if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}else{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}if(e==this.dom&&this.contentDOM)r=t>tD(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),o;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;else n=!1}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return -1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let i=this.children[n],o=t+i.size;if(o>e||i instanceof nC){r=e-t;break}t=o}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof nv&&e.side>=0;n--);if(t<=0){let e,r=!0;for(;(e=n?this.children[n-1]:null)&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?tD(e.dom)+1:0}}{let e,r=!0;for(;(e=n<this.children.length?this.children[n]:null)&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?tD(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let o=n,s=0;;s++){let n=this.children[s],a=o+n.size;if(-1==r&&e<=a){let i=o+n.border;if(e>=i&&t<=a-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=o;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=tD(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(a>t||s==this.children.length-1)){t=a;for(let e=s+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=tD(n.dom);break}t+=n.size}-1==i&&(i=this.contentDOM.childNodes.length);break}o=a}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let i=Math.min(e,t),o=Math.max(e,t);for(let s=0,a=0;s<this.children.length;s++){let l=this.children[s],u=a+l.size;if(i>a&&o<u)return l.setSelection(e-a-l.border,t-a-l.border,n,r);a=u}let s=this.domFromPos(e,e?-1:1),a=t==e?s:this.domFromPos(t,t?-1:1),l=n.root.getSelection(),u=n.domSelectionRange(),c=!1;if((tZ||t5)&&e==t){let{node:e,offset:t}=s;if(3==e.nodeType){if((c=!!(t&&"\n"==e.nodeValue[t-1]))&&t==e.nodeValue.length)for(let t=e,n;t;t=t.parentNode){if(n=t.nextSibling){"BR"==n.nodeName&&(s=a={node:n.parentNode,offset:tD(n)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];c=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(tZ&&u.focusNode&&u.focusNode!=a.node&&1==u.focusNode.nodeType){let e=u.focusNode.childNodes[u.focusOffset];e&&"false"==e.contentEditable&&(r=!0)}if(!(r||c&&t5)&&tF(s.node,s.offset,u.anchorNode,u.anchorOffset)&&tF(a.node,a.offset,u.focusNode,u.focusOffset))return;let d=!1;if((l.extend||e==t)&&!(c&&tZ)){l.collapse(s.node,s.offset);try{e!=t&&l.extend(a.node,a.offset),d=!0}catch(e){}}if(!d){if(e>t){let e=s;s=a,a=e}let n=document.createRange();n.setEnd(a.node,a.offset),n.setStart(s.node,s.offset),l.removeAllRanges(),l.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],o=n+i.size;if(n==o?e<=o&&t>=n:e<o&&t>n){let r=n+i.border,s=o-i.border;if(e>=r&&t<=s){this.dirty=e==n||t==o?2:1,e==r&&t==s&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=3:i.markDirty(e-r,t-r);return}i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?3:2}n=o}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?2:1;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class nv extends ny{constructor(e,t,n,r){let i,o=t.type.toDOM;if("function"==typeof o&&(o=o(n,()=>i?i.parent?i.parent.posBeforeChild(i):void 0:r)),!t.type.spec.raw){if(1!=o.nodeType){let e=document.createElement("span");e.appendChild(o),o=e}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class nb extends ny{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class nx extends ny{constructor(e,t,n,r,i){super(e,[],n,r),this.mark=t,this.spec=i}
1557static create(e,t,n,r){let i=r.nodeViews[t.type.name],o=i&&i(t,r,n);return o&&o.dom||(o=eo.renderSpec(document,t.type.spec.toDOM(t,n),null,t.attrs)),new nx(e,t,o.dom,o.contentDOM||o.dom,o)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,n){let r=nx.create(this.parent,this.mark,!0,n),i=this.children,o=this.size;t<o&&(i=nL(i,t,o,n)),e>0&&(i=nL(i,0,e,n));for(let e=0;e<i.length;e++)i[e].parent=r;return r.children=i,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class n_ extends ny{constructor(e,t,n,r,i,o,s,a,l){super(e,[],i,o),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=s}static create(e,t,n,r,i,o){let s=i.nodeViews[t.type.name],a,l=s&&s(t,i,()=>a?a.parent?a.parent.posBeforeChild(a):void 0:o,n,r),u=l&&l.dom,c=l&&l.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else if(!u){let e=eo.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);({dom:u,contentDOM:c}=e)}c||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let d=u;return(u=nN(u,n,t),l)?a=new nE(e,t,n,r,u,c||null,d,l,i,o+1):t.isText?new nk(e,t,n,r,u,d,i):new n_(e,t,n,r,u,c||null,d,i,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>f.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return 0==this.dirty&&e.eq(this.node)&&nO(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,o=i&&i.pos>-1?i:null,s=i&&i.pos<0,a=new nD(this,o&&o.node,e);(function(e,t,n,r){let i=t.locals(e),o=0;if(0==i.length){for(let n=0;n<e.childCount;n++){let s=e.child(n);r(s,i,t.forChild(o,s),n),o+=s.nodeSize}return}let s=0,a=[],l=null;for(let u=0;;){let c,d,h,p;for(;s<i.length&&i[s].to==o;){let e=i[s++];e.widget&&(c?(d||(d=[c])).push(e):c=e)}if(c)if(d){d.sort(nM);for(let e=0;e<d.length;e++)n(d[e],u,!!l)}else n(c,u,!!l);if(l)p=-1,h=l,l=null;else if(u<e.childCount)p=u,h=e.child(u++);else break;for(let e=0;e<a.length;e++)a[e].to<=o&&a.splice(e--,1);for(;s<i.length&&i[s].from<=o&&i[s].to>o;)a.push(i[s++]);let f=o+h.nodeSize;if(h.isText){let e=f;s<i.length&&i[s].from<e&&(e=i[s].from);for(let t=0;t<a.length;t++)a[t].to<e&&(e=a[t].to);e<f&&(l=h.cut(e-o),h=h.cut(0,e-o),f=e,p=-1)}else for(;s<i.length&&i[s].to<f;)s++;let m=h.isInline&&!h.isLeaf?a.filter(e=>!e.inline):a.slice();r(h,m,t.forChild(o,h),p),o=f}})(this.node,this.innerDeco,(t,i,o)=>{t.spec.marks?a.syncToMarks(t.spec.marks,n,e,i):t.type.side>=0&&!o&&a.syncToMarks(i==this.node.childCount?v.none:this.node.child(i).marks,n,e,i),a.placeWidget(t,e,r)},(t,o,l,u)=>{let c;a.syncToMarks(t.marks,n,e,u),a.findNodeMatch(t,o,l,u)||s&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(c=a.findIndexWithChild(i.node))>-1&&a.updateNodeAt(t,o,l,c,e)||a.updateNextNode(t,o,l,e,u,r)||a.addNode(t,o,l,e,r),r+=t.nodeSize}),a.syncToMarks([],n,e,0),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||2==this.dirty)&&(o&&this.protectLocalComposition(e,o),function e(t,n,r){let i=t.firstChild,o=!1;for(let s=0;s<n.length;s++){let a=n[s],l=a.dom;if(l.parentNode==t){for(;l!=i;)i=nI(i),o=!0;i=i.nextSibling}else o=!0,t.insertBefore(l,i);if(a instanceof nx){let n=i?i.previousSibling:t.lastChild;e(a.contentDOM,a.children,r),i=n?n.nextSibling:t.firstChild}}for(;i;)i=nI(i),o=!0;o&&r.trackWrites==t&&(r.trackWrites=null)}(this.contentDOM,this.children,e),t3&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof eZ)||n<t||r>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(!this.node.inlineContent)return{node:i,pos:-1,text:""};{let e=i.nodeValue,o=function(e,t,n,r){for(let i=0,o=0;i<e.childCount&&o<=r;){let s=e.child(i++),a=o;if(o+=s.nodeSize,!s.isText)continue;let l=s.text;for(;i<e.childCount;){let t=e.child(i++);if(o+=t.nodeSize,!t.isText)break;l+=t.text}
1557if(o>=n){if(o>=r&&l.slice(r-t.length-a,r-a)==t)return r-t.length;let e=a<r?l.lastIndexOf(t,r-a-1):-1;if(e>=0&&e+t.length+a>=n)return a+e;if(n==r&&l.length>=r+t.length-a&&l.slice(r-a,r-a+t.length)==t)return r}}return -1}(this.node.content,e,n-t,r-t);return o<0?null:{node:i,pos:o,text:e}}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let o=new nb(this,i,t,r);e.input.compositionNodes.push(o),this.children=nL(this.children,n,n+r.length,e,o)}update(e,t,n,r){return 3!=this.dirty&&!!e.sameMarkup(this.node)&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(nO(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=nj(this.dom,this.nodeDOM,nT(this.outerDeco,this.node,t),nT(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function nw(e,t,n,r,i){nN(r,t,e);let o=new n_(void 0,e,t,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class nk extends n_{constructor(e,t,n,r,i,o,s){super(e,t,n,r,i,null,o,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(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)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),i=document.createTextNode(r.text);return new nk(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(0==e||t==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}isText(e){return this.node.text==e}}class nC extends ny{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class nE extends n_{constructor(e,t,n,r,i,o,s,a,l,u){super(e,t,n,r,i,o,s,l,u),this.spec=a}update(e,t,n,r){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}return(!!this.contentDOM||!!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}let nA=function(e){e&&(this.nodeName=e)};nA.prototype=Object.create(null);let nS=[new nA];function nT(e,t,n){if(0==e.length)return nS;let r=n?nS[0]:new nA,i=[r];for(let o=0;o<e.length;o++){let s=e[o].type.attrs;if(s)for(let e in s.nodeName&&i.push(r=new nA(s.nodeName)),s){let o=s[e];null!=o&&(n&&1==i.length&&i.push(r=new nA(t.isInline?"span":"div")),"class"==e?r.class=(r.class?r.class+" ":"")+o:"style"==e?r.style=(r.style?r.style+";":"")+o:"nodeName"!=e&&(r[e]=o))}}return i}function nj(e,t,n,r){if(n==nS&&r==nS)return t;let i=t;for(let t=0;t<r.length;t++){let o=r[t],s=n[t];if(t){let t;s&&s.nodeName==o.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==o.nodeName||((t=document.createElement(o.nodeName)).pmIsDeco=!0,t.appendChild(i),s=nS[0]),i=t}!function(e,t,n){for(let r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);
1557if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let t=0;t<r.length;t++)-1==i.indexOf(r[t])&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)-1==r.indexOf(i[t])&&e.classList.add(i[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}(i,s||nS[0],o)}return i}function nN(e,t,n){return nj(e,e,nS,nT(t,n,1!=e.nodeType))}function nO(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function nI(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class nD{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let n=t,r=n.children.length,i=e.childCount,o=new Map,s=[];n:for(;i>0;){let a;for(;;)if(r){let e=n.children[r-1];if(e instanceof nx)n=e,r=e.children.length;else{a=e,r--;break}}else if(n==t)break n;else r=n.parent.children.indexOf(n),n=n.parent;let l=a.node;if(l){if(l!=e.child(i-1))break;--i,o.set(a,i),s.push(a)}}return{index:i,matched:o,matches:s.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let i=0,o=this.stack.length>>1,s=Math.min(o,e.length);for(;i<s&&(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);let i=-1,s=this.top.children.length;r<this.preMatch.index&&(s=Math.min(this.index+3,s));for(let t=this.index;t<s;t++){let n=this.top.children[t];if(n.matchesMark(e[o])&&!this.isLocked(n.dom)){i=t;break}}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=nx.create(this.top,e[o],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,o++}}findNodeMatch(e,t,n,r){let i=-1,o;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))i=this.top.children.indexOf(o,this.index);else for(let r=this.index,o=Math.min(this.top.children.length,r+5);r<o;r++){let o=this.top.children[r];if(o.matchesNode(e,t,n)&&!this.preMatch.matched.has(o)){i=r;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,i){let 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)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return -1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return -1}e=t}}updateNextNode(e,t,n,r,i,o){for(let s=this.index;s<this.top.children.length;s++){let a=this.top.children[s];if(a instanceof n_){let l=this.preMatch.matched.get(a);if(null!=l&&l!=i)return!1;let u=a.dom,c,d=this.isLocked(u)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&3!=a.dirty&&nO(t,a.outerDeco));if(!d&&a.update(e,t,n,r))return this.destroyBetween(this.index,s),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(c=this.recreateWrapper(a,e,t,n,r,o)))return this.destroyBetween(this.index,s),this.top.children[this.index]=c,c.contentDOM&&(c.dirty=2,c.updateChildren(r,o+1),c.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,i,o){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!nO(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let s=n_.create(this.top,t,n,r,i,o);if(s.contentDOM)for(let t of(s.children=e.children,e.children=[],s.children))t.parent=s;return e.destroy(),s}addNode(e,t,n,r,i){let o=n_.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}placeWidget(e,t,n){let 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))this.index++;else{let r=new nv(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof nx;)e=(t=e).children[t.children.length-1];(!e||!(e instanceof nk)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((t5||t1)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let r=new nC(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}
1557isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function nM(e,t){return e.type.side-t.type.side}function nL(e,t,n,r,i){let o=[];for(let s=0,a=0;s<e.length;s++){let l=e[s],u=a,c=a+=l.size;u>=n||c<=t?o.push(l):(u<t&&o.push(l.slice(0,t-u,r)),i&&(o.push(i),i=void 0),c>n&&o.push(l.slice(n-u,l.size,r)))}return o}function nR(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),o=i&&0==i.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a=r.resolve(s),l,u;if(tz(n)){for(l=s;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&e1.isSelectable(e)&&i.parent&&!(e.isInline&&function(e,t,n){for(let r=0==t,i=t==tq(e);r||i;){if(e==n)return!0;let t=tD(e);if(!(e=e.parentNode))return!1;r=r&&0==t,i=i&&t==tq(e)}}(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;u=new e1(s==e?a:r.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=s,i=s;for(let r=0;r<n.rangeCount;r++){let o=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(o.startContainer,o.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(o.endContainer,o.endOffset,-1))}if(t<0)return null;[l,s]=i==e.state.selection.anchor?[i,t]:[t,i],a=r.resolve(s)}else l=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let c=r.resolve(l);if(!u){let n="pointer"==t||e.state.selection.head<a.pos&&!o?1:-1;u=nH(e,c,a,n)}return u}function nP(e){return e.editable?e.hasFocus():nG(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function nF(e,t=!1){let n=e.state.selection;if(nz(e,n),nP(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&t1){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&tF(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r="IMG"==n.nodeName;r?t.collapse(n.parentNode,tD(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&tY&&tX<=11&&(n.disabled=!0,n.disabled=!1)}(e);else{var r;let i,o,s,a,{anchor:l,head:u}=n,c,d;nB&&!(n instanceof eZ)&&(n.$from.parent.inlineContent||(c=n$(e,n.from)),n.empty||n.$from.parent.inlineContent||(d=n$(e,n.to))),e.docView.setSelection(l,u,e,t),nB&&(c&&nV(c),d&&nV(d)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&((i=(r=e).dom.ownerDocument).removeEventListener("selectionchange",r.input.hideSelectionGuard),s=(o=r.domSelectionRange()).anchorNode,a=o.anchorOffset,i.addEventListener("selectionchange",r.input.hideSelectionGuard=()=>{(o.anchorNode!=s||o.anchorOffset!=a)&&(i.removeEventListener("selectionchange",r.input.hideSelectionGuard),setTimeout(()=>{(!nP(r)||r.state.selection.visible)&&r.dom.classList.remove("ProseMirror-hideselection")},20))})))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}let nB=t5||t1&&t2<63;function n$(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,o=r?n.childNodes[r-1]:null;if(t5&&i&&"false"==i.contentEditable)return nq(i);if((!i||"false"==i.contentEditable)&&(!o||"false"==o.contentEditable)){if(i)return nq(i);else if(o)return nq(o)}}function nq(e){return e.contentEditable="true",t5&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function nV(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function nz(e,t){if(t instanceof e1){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(nU(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else nU(e)}function nU(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function nH(e,t,n,r){return e.someProp("createSelectionBetween",r=>r(e,t,n))||eZ.between(t,n,r)}function nW(e){return(!e.editable||!!e.hasFocus())&&nG(e)}function nG(e){let 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.focu
1557sNode.parentNode:t.focusNode))}catch(e){return!1}}function nK(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&eJ.findFrom(o,t)}function nJ(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function nQ(e,t,n){let r=e.state.selection;if(r instanceof eZ){if(n.indexOf("s")>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let o=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return nJ(e,new eZ(r.$anchor,o))}else if(!r.empty)return!1;else if(e.endOfTextblock(t>0?"forward":"backward")){let n=nK(e.state,t);return!!n&&n instanceof e1&&nJ(e,n)}else if(!(t4&&n.indexOf("m")>-1)){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,o;if(!i||i.isText)return!1;let s=t<0?n.pos-i.nodeSize:n.pos;return!!(i.isAtom||(o=e.docView.descAt(s))&&!o.contentDOM)&&(e1.isSelectable(i)?nJ(e,new e1(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):!!t7&&nJ(e,new eZ(e.state.doc.resolve(t<0?s:s+i.nodeSize))))}}else{if(r instanceof e1&&r.node.isInline)return nJ(e,new eZ(t>0?r.$to:r.$from));let n=nK(e.state,t);return!!n&&nJ(e,n)}}function nY(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function nX(e,t){let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function nZ(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,s=!1;for(tZ&&1==n.nodeType&&r<nY(n)&&nX(n.childNodes[r],-1)&&(s=!0);;)if(r>0)if(1!=n.nodeType)break;else{let e=n.childNodes[r-1];if(nX(e,-1))i=n,o=--r;else if(3==e.nodeType)r=(n=e).nodeValue.length;else break}else if(n0(n))break;else{let t=n.previousSibling;for(;t&&nX(t,-1);)i=n.parentNode,o=tD(t),t=t.previousSibling;if(t)r=nY(n=t);else{if((n=n.parentNode)==e.dom)break;r=0}}s?n1(e,n,r):i&&n1(e,i,o)}(e):function(e){let t,n,r=e.domSelectionRange(),i=r.focusNode,o=r.focusOffset;if(!i)return;let s=nY(i);for(;;)if(o<s){if(1!=i.nodeType)break;if(nX(i.childNodes[o],1))t=i,n=++o;else break}else if(n0(i))break;else{let r=i.nextSibling;for(;r&&nX(r,1);)t=r.parentNode,n=tD(r)+1,r=r.nextSibling;if(r)o=0,s=nY(i=r);else{if((i=i.parentNode)==e.dom)break;o=s=0}}t&&n1(e,t,n)}(e)}function n0(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function n1(e,t,n){if(3!=t.nodeType){let e,r;(r=function(e,t){for(;e&&t==e.childNodes.length&&!tV(e);)t=tD(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=r,n=0):(e=function(e,t){for(;e&&!t&&!tV(e);)t=tD(e),e=e.parentNode;for(;e&&t;){let 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=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(tz(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&nF(e)},50)}function n2(e,t){let n=e.state.doc.resolve(t);if(!(t1||t8)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function n5(e,t,n){let r=e.state.selection;if(r instanceof eZ&&!r.empty||n.indexOf("s")>-1||t4&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=nK(e.state,t);if(n&&n instanceof e1)return nJ(e,n)}if(!i.parent.inlineContent){let n=t<0?i:o,s=r instanceof e5?eJ.near(n,t):eJ.findFrom(n,t);return!!s&&nJ(e,s)}return!1}function n3(e,t){if(!(e.state.selection instanceof eZ))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let r=e.state.tr;return t<0?r.delete(n.pos-o.nodeSize,n.pos):r.delete(n.pos,n.pos+o.nodeSize),e.dispatch(r),!0}return!1}function n4(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function n8(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:o}=t;for(;i>1&&o>1&&1==r.childCount&&1==r.firstChild.childCount;){i--,o--;let e=r.firstChild;
1557n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let s=e.someProp("clipboardSerializer")||eo.fromSchema(e.state.schema),a=ri(),l=a.createElement("div");l.appendChild(s.serializeFragment(r,{document:a}));let u=l.firstChild,c,d=0;for(;u&&1==u.nodeType&&(c=rn[u.nodeName.toLowerCase()]);){for(let e=c.length-1;e>=0;e--){let t=a.createElement(c[e]);for(;l.firstChild;)t.appendChild(l.firstChild);l.appendChild(t),d++}u=l.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${i} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`),{dom:l,text:e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,"\n\n"),slice:t}}function n6(e,t,n,r,i){let o,s,a=i.parent.type.spec.code;if(!n&&!t)return null;let l=!!t&&(r||a||!n);if(l){if(e.someProp("transformPastedText",n=>{t=n(t,a||r,e)}),a)return s=new x(f.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0),e.someProp("transformPasted",t=>{s=t(s,e,!0)}),s;let n=e.someProp("clipboardTextParser",n=>n(t,i,r,e));if(n)s=n;else{let n=i.marks(),{schema:r}=e.state,s=eo.fromSchema(r);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement("p"));e&&t.appendChild(s.serializeNode(r.text(e,n)))})}}else e.someProp("transformPastedHTML",t=>{n=t(n,e)}),o=function(e){var t;let n,r=/^(\s*<meta [^>]*>)*/.exec(e);r&&(e=e.slice(r[0].length));let i=ri().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e),s;if((s=o&&rn[o[1].toLowerCase()])&&(e=s.map(e=>"<"+e+">").join("")+e+s.map(e=>"</"+e+">").reverse().join("")),i.innerHTML=(t=e,(n=window.trustedTypes)?(ro||(ro=n.defaultPolicy||n.createPolicy("ProseMirrorClipboard",{createHTML:e=>e})),ro.createHTML(t)):t),s)for(let e=0;e<s.length;e++)i=i.querySelector(s[e])||i;return i}(n),t7&&function(e){let t=e.querySelectorAll(t1?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&"\xa0"==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(o);let u=o&&o.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let e=+c[3];e>0;e--){let e=o.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;o=e}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||Q.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(l||c),context:i,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||n7.test(e.parentNode.nodeName)?null:{ignore:!0}})),c)s=function(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch(t){return e}let{content:i,openStart:o,openEnd:s}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;i=f.from(t.create(r[e+1],i)),o++,s++}return new x(i,o,s)}(rt(s,+c[1],+c[2]),c[4]);else if((s=x.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,o=[];if(e.forEach(e=>{if(!o)return;let t=r.findWrapping(e.type),n;if(!t)return o=null;if(n=o.length&&i.length&&function e(t,n,r,i,o){if(o<t.length&&o<n.length&&t[o]==n[o]){let s=e(t,n,r,i.lastChild,o+1);if(s)return i.copy(i.content.replaceChild(i.childCount-1,s));if(i.contentMatchAt(i.childCount).matchType(o==t.length-1?r.type:t[o+1]))return i.copy(i.content.append(f.from(n9(r,t,o+1))))}}(t,i,e,o[o.length-1],0))o[o.length-1]=n;else{o.length&&(o[o.length-1]=function e(t,n){if(0==n)return t;let r=t.content.replaceChild(t.childCount-1,e(t.lastChild,n-1)),i=t.contentMatchAt(t.childCount).fillBefore(f.empty,!0);return t.copy(r.append(i))}(o[o.length-1],i.length));let n=n9(e,t);o.push(n),r=r.matchType(n.type),i=t}}),o)return f.from(o)}return e}(s.content,i),!0)).openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=rt(s,e,t)}return e.someProp("transformPasted",t=>{s=t(s,e,l)}),s}let n7=/^(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 n9(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,f.from(e));return e}
1557function re(e,t,n,r,i,o){let s=t<0?e.firstChild:e.lastChild,a=s.content;return e.childCount>1&&(o=0),i<r-1&&(a=re(a,t,n,r,i+1,o)),i>=n&&(a=t<0?s.contentMatchAt(0).fillBefore(a,o<=i).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(f.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(a))}function rt(e,t,n){return t<e.openStart&&(e=new x(re(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new x(re(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}let rn={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},rr=null;function ri(){return rr||(rr=document.implementation.createHTMLDocument("title"))}let ro=null,rs={},ra={},rl={touchstart:!0,touchmove:!0};class ru{constructor(){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 rc(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function rd(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>rh(e,t))})}function rh(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function rp(e){return{left:e.clientX,top:e.clientY}}function rf(e,t,n,r,i){if(-1==r)return!1;let o=e.state.doc.resolve(r);for(let r=o.depth+1;r>0;r--)if(e.someProp(t,t=>r>o.depth?t(e,n,o.nodeAfter,o.before(r),i,!0):t(e,n,o.node(r),o.before(r),i,!1)))return!0;return!1}function rm(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}ra.keydown=(e,t)=>{if((e.input.shiftKey=16==t.keyCode||t.shiftKey,!rv(e,t))&&(e.input.lastKeyCode=t.keyCode,e.input.lastKeyCodeTime=Date.now(),!t6||!t1||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!t3||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",n=>n(e,t))||function(e,t){let n,r=t.keyCode,i=(n="",t.ctrlKey&&(n+="c"),t.metaKey&&(n+="m"),t.altKey&&(n+="a"),t.shiftKey&&(n+="s"),n);if(8==r||t4&&72==r&&"c"==i)return n3(e,-1)||nZ(e,-1);if(46==r&&!t.shiftKey||t4&&68==r&&"c"==i)return n3(e,1)||nZ(e,1);if(13==r||27==r)return!0;if(37==r||t4&&66==r&&"c"==i){let t=37==r?"ltr"==n2(e,e.state.selection.from)?-1:1:-1;return nQ(e,t,i)||nZ(e,t)}if(39==r||t4&&70==r&&"c"==i){let t=39==r?"ltr"==n2(e,e.state.selection.from)?1:-1:1;return nQ(e,t,i)||nZ(e,t)}else if(38==r||t4&&80==r&&"c"==i)return n5(e,-1,i)||nZ(e,-1);else if(40==r||t4&&78==r&&"c"==i)return function(e){if(!t5||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;n4(e,n,"true"),setTimeout(()=>n4(e,n,"false"),20)}return!1}(e)||n5(e,1,i)||nZ(e,1);else if(i==(t4?"m":"c")&&(66==r||73==r||89==r||90==r))return!0;return!1}(e,t)?t.preventDefault():rc(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,tU(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},ra.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},ra.keypress=(e,t)=>{if(rv(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||t4&&t.metaKey)return;if(e.someProp("handleKeyPress",n=>n(e,t)))return void t.preventDefault();let n=e.state.selection;if(!(n instanceof eZ)||!n.$from.sameParent(n.$to)){let r=String.fromCharCode(t.charCode),i=()=>e.state.tr.insertText(r).scrollIntoView();/[\r\n]/.test(r)||e.someProp("handleTextInput",t=>t(e,n.$from.pos,n.$to.pos,r,i))||e.dispatch(i()),t.preventDefault()}};let rg=t4?"metaKey":"ctrlKey";rs.mousedown=(e,t)=>{e.input.shiftKey=t.shiftKey;let n=rw(e),r=Date.now(),i="singleClick";
1557r-e.input.lastClick.time<500&&function(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(t,e.input.lastClick)&&!t[rg]&&e.input.lastClick.button==t.button&&("singleClick"==e.input.lastClick.type?i="doubleClick":"doubleClick"==e.input.lastClick.type&&(i="tripleClick")),e.input.lastClick={time:r,x:t.clientX,y:t.clientY,type:i,button:t.button};let o=e.posAtCoords(rp(t));o&&("singleClick"==i?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new ry(e,o,t,!!n)):("doubleClick"==i?function(e,t,n,r){return rf(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}:function(e,t,n,r){return rf(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",n=>n(e,t,r))||function(e,t,n){if(0!=n.button)return!1;let r=e.state.doc;if(-1==t)return!!r.inlineContent&&(rm(e,eZ.create(r,0,r.content.size),"pointer"),!0);let i=r.resolve(t);for(let t=i.depth+1;t>0;t--){let n=t>i.depth?i.nodeAfter:i.node(t),o=i.before(t);if(n.inlineContent)rm(e,eZ.create(r,o+1,o+1+n.content.size),"pointer");else{if(!e1.isSelectable(n))continue;rm(e,e1.create(r,o),"pointer")}return!0}}(e,n,r)})(e,o.pos,o.inside,t)?t.preventDefault():rc(e,"pointer"))};class ry{constructor(e,t,n,r){let i,o;if(this.view=e,this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[rg],this.allowDefault=n.shiftKey,t.inside>-1)i=e.state.doc.nodeAt(t.inside),o=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,o=n.depth?n.before():0}let s=r?null:n.target,a=s?e.docView.nearestDesc(s,!0):null;this.target=a&&1==a.nodeDOM.nodeType?a.nodeDOM:null;let{selection:l}=e.state;0==n.button&&(i.type.spec.draggable&&!1!==i.type.spec.selectable||l instanceof e1&&l.from<=o&&l.to>o)&&(this.mightDrag={node:i,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&tZ&&!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(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),rc(e,"pointer")}done(){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(()=>nF(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;if(this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(rp(e))),this.updateAllowDefault(e),this.allowDefault||!t)rc(this.view,"pointer");else{var n,r,i,o;(n=this.view,r=t.pos,i=t.inside,o=this.selectNode,rf(n,"handleClickOn",r,i,e)||n.someProp("handleClick",t=>t(n,r,e))||(o?function(e,t){if(-1==t)return!1;let n=e.state.selection,r,i;n instanceof e1&&(r=n.node);let o=e.state.doc.resolve(t);for(let e=o.depth+1;e>0;e--){let t=e>o.depth?o.nodeAfter:o.node(e);if(e1.isSelectable(t)){i=r&&n.$from.depth>0&&e>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?o.before(n.$from.depth):o.before(e);break}}return null!=i&&(rm(e,e1.create(e.state.doc,i),"pointer"),!0)}(n,i):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&e1.isSelectable(r))&&(rm(e,new e1(n),"pointer"),!0)}(n,i)))?e.preventDefault():0==e.button&&(this.flushed||t5&&this.mightDrag&&!this.mightDrag.node.isAtom||t1&&!this.view.state.selection.visible&&2>=Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to)))?(rm(this.view,eJ.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):rc(this.view,"pointer")}}move(e){this.updateAllowDefault(e),rc(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function rv(e,t){return!!e.composing||!!(t5&&500>Math.abs(t.timeStamp-e.input.compositionEndedAt))&&(e.input.compositionEndedAt=-2e8,!0)}rs.touchstart=e=>{e.input.lastTouch=Date.now(),rw(e),rc(e,"pointer")}
1557,rs.touchmove=e=>{e.input.lastTouch=Date.now(),rc(e,"pointer")},rs.contextmenu=e=>rw(e);let rb=t6?5e3:-1;function rx(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>rw(e),t))}function r_(e){let t;for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=((t=document.createEvent("Event")).initEvent("event",!0,!0),t.timeStamp));e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function rw(e,t=!1){if(!t6||!(e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),r_(e),t||e.docView&&e.docView.dirty){let n=nR(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.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}ra.compositionstart=ra.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof eZ&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)||t1&&t8&&function(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||1!=t.nodeType||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return 1==r.nodeType&&"false"==r.contentEditable}(e)))e.markCursor=e.state.storedMarks||n.marks(),rw(e,!0),e.markCursor=null;else if(rw(e,!t.selection.empty),tZ&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}rx(e,rb)},ra.compositionend=(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(()=>e.domObserver.flush()),e.input.compositionID++,rx(e,20))};let rk=tY&&tX<15||t3&&t9<604;function rC(e,t,n,r,i){let o=n6(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,i,o||x.empty)))return!0;if(!o)return!1;let s=0==o.openStart&&0==o.openEnd&&1==o.content.childCount?o.content.firstChild:null,a=s?e.state.tr.replaceSelectionWith(s,r):e.state.tr.replaceSelection(o);return e.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function rE(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}rs.copy=ra.cut=(e,t)=>{let n=e.state.selection,r="cut"==t.type;if(n.empty)return;let i=rk?null:t.clipboardData,{dom:o,text:s}=n8(e,n.content());i?(t.preventDefault(),i.clearData(),i.setData("text/html",o.innerHTML),i.setData("text/plain",s)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}(e,o),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},ra.paste=(e,t)=>{if(e.composing&&!t6)return;let n=rk?null:t.clipboardData,r=e.input.shiftKey&&45!=e.input.lastKeyCode;n&&rC(e,rE(n),n.getData("text/html"),r,t)?t.preventDefault():function(e,t){if(!e.dom.parentNode)return;let 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();let i=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?rC(e,r.value,null,i,t):rC(e,r.textContent,r.innerHTML,i,t)},50)}(e,t)};class rA{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}}let rS=t4?"altKey":"ctrlKey";function rT(e,t){let n;return e.someProp("dragCopies",e=>{n=n||e(t)}),null!=n?!n:!t[rS]}for(let e in rs.dragstart=(e,t)=>{let n,r=e.input.mouseDown;if(r&&r.done(),!t.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(rp(t));if(o&&o.pos>=i.from&&o.pos<=(i instanceof e1?i.to-1:i.to));else if(r&&r.mightDrag)n=e1.create(e.state.doc,r.mightDrag.pos);else if(t.target&&1==t.target.nodeType){let r=e.docView.nearestDesc(t.target,!0);r&&r.node.type.spec.draggable&&r!=e.docView&&(n=e1.create(e.state.doc,r.posBefore))}
1557let s=(n||e.state.selection).content(),{dom:a,text:l,slice:u}=n8(e,s);t.dataTransfer.files.length&&t1&&!(t2>120)||t.dataTransfer.clearData(),t.dataTransfer.setData(rk?"Text":"text/html",a.innerHTML),t.dataTransfer.effectAllowed="copyMove",rk||t.dataTransfer.setData("text/plain",l),e.dragging=new rA(u,rT(e,t),n)},rs.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},ra.dragover=ra.dragenter=(e,t)=>t.preventDefault(),ra.drop=(e,t)=>{try{!function(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(rp(t));if(!r)return;let i=e.state.doc.resolve(r.pos),o=n&&n.slice;o?e.someProp("transformPasted",t=>{o=t(o,e,!1)}):o=n6(e,rE(t.dataTransfer),rk?null:t.dataTransfer.getData("text/html"),!1,i);let s=!!(n&&rT(e,t));if(e.someProp("handleDrop",n=>n(e,t,o||x.empty,s)))return t.preventDefault();if(!o)return;t.preventDefault();let a=o?eM(e.state.doc,i.pos,o):i.pos;null==a&&(a=i.pos);let l=e.state.tr;if(s){let{node:e}=n;e?e.replace(l):l.deleteSelection()}let u=l.mapping.map(a),c=0==o.openStart&&0==o.openEnd&&1==o.content.childCount,d=l.doc;if(c?l.replaceRangeWith(u,u,o.content.firstChild):l.replaceRange(u,u,o),l.doc.eq(d))return;let h=l.doc.resolve(u);if(c&&e1.isSelectable(o.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new e1(h));else{let t=l.mapping.map(a);l.mapping.maps[l.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),l.setSelection(nH(e,h,l.doc.resolve(t)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}(e,t,e.dragging)}finally{e.dragging=null}},rs.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&nF(e)},20))},rs.blur=(e,t)=>{e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},rs.beforeinput=(e,t)=>{if(t1&&t6&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,tU(8,"Backspace")))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}},ra)rs[e]=ra[e];function rj(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class rN{constructor(e,t){this.toDOM=e,this.spec=t||rL,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:o}=e.mapResult(t.from+r,this.side<0?-1:1);return o?null:new rD(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof rN&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&rj(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class rO{constructor(e,t){this.attrs=e,this.spec=t||rL}map(e,t,n,r){let 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 rD(i,o,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof rO&&rj(this.attrs,e.attrs)&&rj(this.spec,e.spec)}static is(e){return e.type instanceof rO}destroy(){}}class rI{constructor(e,t){this.attrs=e,this.spec=t||rL}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let o=e.mapResult(t.to+r,-1);return o.deleted||o.pos<=i.pos?null:new rD(i.pos-n,o.pos-n,this)}valid(e,t){let{index:n,offset:r}=e.content.findIndex(t.from),i;return r==t.from&&!(i=e.child(n)).isText&&r+i.nodeSize==t.to}eq(e){return this==e||e instanceof rI&&rj(this.attrs,e.attrs)&&rj(this.spec,e.spec)}destroy(){}}class rD{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new rD(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new rD(e,e,new rN(t,n))}static inline(e,t,n,r){return new rD(e,t,new rO(n,r))}static node(e,t,n,r){return new rD(e,t,new rI(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof rO}get widget(){return this.type instanceof rN}}let rM=[],rL={};class rR{constructor(e,t){this.local=e.length?e:rM,this.children=t.length?t:rM}static create(e,t){return t.length?rV(t,e,0,rL):rP}
vendor: 10,070 bytes, line 1557
1557find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}findInner(e,t,n,r,i){for(let o=0;o<this.local.length;o++){let s=this.local[o];s.from<=t&&s.to>=e&&(!i||i(s.spec))&&n.push(s.copy(s.from+r,s.to+r))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<t&&this.children[o+1]>e){let s=this.children[o]+1;this.children[o+2].findInner(e-s,t-s,n,r+s,i)}}map(e,t,n){return this==rP||0==e.maps.length?this:this.mapInner(e,t,0,0,n||rL)}mapInner(e,t,n,r,i){let o;for(let s=0;s<this.local.length;s++){let a=this.local[s].map(e,n,r);a&&a.type.valid(t,a)?(o||(o=[])).push(a):i.onRemove&&i.onRemove(this.local[s].spec)}return this.children.length?function(e,t,n,r,i,o,s){let a=e.slice();for(let e=0,t=o;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,i,o)=>{let s=o-i-(n-e);for(let i=0;i<a.length;i+=3){let o=a[i+1];if(o<0||e>o+t-r)continue;let l=a[i]+t-r;n>=l?a[i+1]=e<=l?-2:-1:e>=t&&s&&(a[i]+=s,a[i+1]+=s)}r+=s}),t=n.maps[e].map(t,-1)}let l=!1;for(let t=0;t<a.length;t+=3)if(a[t+1]<0){if(-2==a[t+1]){l=!0,a[t+1]=-1;continue}let u=n.map(e[t]+o),c=u-i;if(c<0||c>=r.content.size){l=!0;continue}let d=n.map(e[t+1]+o,-1)-i,{index:h,offset:p}=r.content.findIndex(c),f=r.maybeChild(h);if(f&&p==c&&p+f.nodeSize==d){let r=a[t+2].mapInner(n,f,u+1,e[t]+o+1,s);r!=rP?(a[t]=c,a[t+1]=d,a[t+2]=r):(a[t+1]=-2,l=!0)}else l=!0}if(l){let l=rV(function(e,t,n,r,i,o,s){for(let a=0;a<e.length;a+=3)-1==e[a+1]&&function e(t,o){for(let e=0;e<t.local.length;e++){let a=t.local[e].map(r,i,o);a?n.push(a):s.onRemove&&s.onRemove(t.local[e].spec)}for(let n=0;n<t.children.length;n+=3)e(t.children[n+2],t.children[n]+o+1)}(e[a+2],t[a]+o+1);return n}(a,e,t,n,i,o,s),r,0,s);t=l.local;for(let e=0;e<a.length;e+=3)a[e+1]<0&&(a.splice(e,3),e-=3);for(let e=0,t=0;e<l.children.length;e+=3){let n=l.children[e];for(;t<a.length&&a[t]<n;)t+=3;a.splice(t,0,l.children[e],l.children[e+1],l.children[e+2])}}return new rR(t.sort(rz),a)}(this.children,o||[],e,t,n,r,i):o?new rR(o.sort(rz),rM):rP}add(e,t){return t.length?this==rP?rR.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,i=0;e.forEach((e,o)=>{let s=o+n,a;if(a=r$(t,e,s)){for(r||(r=this.children.slice());i<r.length&&r[i]<o;)i+=3;r[i]==o?r[i+2]=r[i+2].addInner(e,a,s+1):r.splice(i,0,o,o+e.nodeSize,rV(a,e,s+1,rL)),i+=3}});let o=rB(i?rq(t):t,-n);for(let t=0;t<o.length;t++)o[t].type.valid(e,o[t])||o.splice(t--,1);return new rR(o.length?this.local.concat(o).sort(rz):this.local,r||this.children)}remove(e){return 0==e.length||this==rP?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let r=0;r<n.length;r+=3){let i,o=n[r]+t,s=n[r+1]+t;for(let t=0,n;t<e.length;t++)(n=e[t])&&n.from>o&&n.to<s&&(e[t]=null,(i||(i=[])).push(n));if(!i)continue;n==this.children&&(n=this.children.slice());let a=n[r+2].removeInner(i,o+1);a!=rP?n[r+2]=a:(n.splice(r,3),r-=3)}if(r.length){for(let n=0,i;n<e.length;n++)if(i=e[n])for(let e=0;e<r.length;e++)r[e].eq(i,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1))}return n==this.children&&r==this.local?this:r.length||n.length?new rR(r,n):rP}forChild(e,t){let n,r;if(this==rP)return this;if(t.isLeaf)return rR.empty;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(n=this.children[t+2]);break}let i=e+1,o=i+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<o&&t.to>i&&t.type instanceof rO){let e=Math.max(i,t.from)-i,n=Math.min(o,t.to)-i;e<n&&(r||(r=[])).push(t.copy(e,n))}}if(r){let e=new rR(r.sort(rz),rM);return n?new rF([e,n]):e}return n||rP}eq(e){if(this==e)return!0;if(!(e instanceof rR)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return rU(this.localsInner(e))}localsInner(e){if(this==rP)return rM;if(e.inlineContent||!this.local.some(rO.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof rO||t.push(this.local[e]);return t}forEachSet(e){e(this)}}rR.empty=new rR([],[]),rR.removeOverlap=rU;let rP=rR.empty;class rF{constructor(e){this.members=e}map(e,t){let n=this.members.map(n=>n.map(e,t,rL));return rF.from(n)}forChild(e,t){if(t.isLeaf)return rR.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,t);i!=rP&&(i instanceof rF?n=n.concat(i.members):n.push(i))}return rF.from(n)}eq(e){if(!(e instanceof rF)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<i.length;e++)t.push(i[e])}else t=i}return t?rU(n?t:t.sort(rz)):rM}static from(e){switch(e.length){case 0:return rP;case 1:return e[0];default:return new rF(e.every(e=>e instanceof rR)?e:e.reduce((e,t)=>e.concat(t instanceof rR?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function rB(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new rD(i.from+t,i.to+t,i.type))}return n}function r$(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let t=0,o;t<e.length;t++)(o=e[t])&&o.from>n&&o.to<r&&((i||(i=[])).push(o),e[t]=null);return i}function rq(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function rV(e,t,n,r){let i=[],o=!1;t.forEach((t,s)=>{let a=r$(e,t,s+n);if(a){o=!0;let e=rV(a,t,n+s+1,r);e!=rP&&i.push(s,s+t.nodeSize,e)}});let s=rB(o?rq(e):e,-n).sort(rz);for(let e=0;e<s.length;e++)s[e].type.valid(t,s[e])||(r.onRemove&&r.onRemove(s[e].spec),s.splice(e--,1));return s.length||i.length?new rR(s,i):rP}function rz(e,t){return e.from-t.from||e.to-t.to}function rU(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let o=t[i];if(o.from==r.from){o.to!=r.to&&(t==e&&(t=e.slice()),t[i]=o.copy(o.from,r.to),rH(t,i+1,o.copy(r.to,o.to)));continue}o.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,o.from),rH(t,i,r.copy(o.from,r.to)));break}}return t}function rH(e,t,n){for(;t<e.length&&rz(n,e[t])>0;)t++;e.splice(t,0,n)}function rW(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=rP&&t.push(r)}),e.cursorWrapper&&t.push(rR.create(e.state.doc,[e.cursorWrapper.deco])),rF.from(t)}let rG={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},rK=tY&&tX<=11;class rJ{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class rQ{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new rJ,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);tY&&tX<=11&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():t5&&e.composing&&t.some(e=>"childList"==e.type&&"TR"==e.target.nodeName)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),rK&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,rG)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(nW(this.view)){if(this.suppressingSelectionUpdates)return nF(this.view);if(tY&&tX<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&tF(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,n;for(let n=e.focusNode;n;n=tM(n))t.add(n);for(let r=e.anchorNode;r;r=tM(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:"selection",target:3==n.nodeType?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){var e;let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&nW(t)&&!this.ignoreSelectionChange(r),o=-1,s=-1,a=!1,l=[];
1557if(t.editable)for(let e=0;e<n.length;e++){let t=this.registerMutation(n[e],l);t&&(o=o<0?t.from:Math.min(t.from,o),s=s<0?t.to:Math.max(t.to,s),t.typeOver&&(a=!0))}if(l.some(e=>"BR"==e.nodeName)&&(8==t.input.lastKeyCode||46==t.input.lastKeyCode)){for(let e of l)if("BR"==e.nodeName&&e.parentNode){let t=e.nextSibling;for(;t&&1==t.nodeType;){if("false"==t.contentEditable){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(tZ&&l.length){let e=l.filter(e=>"BR"==e.nodeName);if(2==e.length){let[t,n]=e;t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of e){let e=r.parentNode;e&&"LI"==e.nodeName&&(!n||function(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}(t,n)!=e)&&r.remove()}}}let u=null;o<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&tz(r)&&(u=nR(t))&&u.eq(eJ.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,nF(t),this.currentSelection.set(r),t.scrollToSelection()):(o>-1||i)&&(o>-1&&(t.docView.markDirty(o,s),e=t,!rY.has(e)&&(rY.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace))&&(e.requiresGeckoHackNode=tZ,rX||(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."),rX=!0))),t.input.badSafariComposition&&(t.input.badSafariComposition=!1,function(e,t){var n;let{focusNode:r,focusOffset:i}=e.domSelectionRange();for(let o of t)if((null==(n=o.parentNode)?void 0:n.nodeName)=="TR"){let t=o.nextSibling;for(;t&&"TD"!=t.nodeName&&"TH"!=t.nodeName;)t=t.nextSibling;if(t){let n=t;for(;;){let e=n.firstChild;if(!e||1!=e.nodeType||"false"==e.contentEditable||/^(BR|IMG)$/.test(e.nodeName))break;n=e}n.insertBefore(o,n.firstChild),r==o&&e.domSelection().collapse(o,i)}else o.parentNode.removeChild(o)}}(t,l)),this.handleDOMChange(o,s,a,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||nF(t),this.currentSelection.set(r))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let 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"))||!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),3==r.nodeType&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(tY&&tX<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:o}=e.addedNodes[t];(!n||0>Array.prototype.indexOf.call(e.addedNodes,n))&&(r=n),(!o||0>Array.prototype.indexOf.call(e.addedNodes,o))&&(i=o)}let o=r&&r.parentNode==e.target?tD(r)+1:0,s=n.localPosFromDOM(e.target,o,-1),a=i&&i.parentNode==e.target?tD(i):e.target.childNodes.length;return{from:s,to:n.localPosFromDOM(e.target,a,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})}}let rY=new WeakMap,rX=!1;function rZ(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return tF(s.node,s.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function r0(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(t5&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}else if(e.parentNode.lastChild==e||t5&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}let r1=/^(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;
1557function r2(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:nH(e,t.resolve(n.anchor),t.resolve(n.head))}function r5(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}function r3(e){if(2!=e.length)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class r4{constructor(e,t){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 ru,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(ie),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=r7(this),r6(this),this.nodeViews=r9(this),this.docView=nw(this.state.doc,r8(this),rW(this),this.dom,this),this.domObserver=new rQ(this,(e,t,n,r)=>(function(e,t,n,r,i){let o,s,a,l=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=nR(e,t);
1557if(n&&!e.state.selection.eq(n)){if(t1&&t6&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",t=>t(e,tU(13,"Enter"))))return;let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),l&&r.setMeta("composition",l),e.dispatch(r)}return}let u=e.state.doc.resolve(t),c=u.sharedDepth(n);t=u.before(c+1),n=e.state.doc.resolve(n).after(c+1);let d=e.state.selection,h=function(e,t,n){let r,{node:i,fromOffset:o,toOffset:s,from:a,to:l}=e.docView.parseRange(t,n),u=e.domSelectionRange(),c=u.anchorNode;if(c&&e.dom.contains(1==c.nodeType?c:c.parentNode)&&(r=[{node:c,offset:u.anchorOffset}],tz(u)||r.push({node:u.focusNode,offset:u.focusOffset})),t1&&8===e.input.lastKeyCode)for(let e=s;e>o;e--){let t=i.childNodes[e-1],n=t.pmViewDesc;if("BR"==t.nodeName&&!n){s=e;break}if(!n||n.size)break}let d=e.state.doc,h=e.someProp("domParser")||Q.fromSchema(e.state.schema),p=d.resolve(a),f=null,m=h.parse(i,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:s,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:r,ruleFromNode:r0,context:p});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),f={anchor:e+a,head:t+a}}return{doc:m,sel:f,from:a,to:l}}(e,t,n),p=e.state.doc,m=p.slice(h.from,h.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(o=e.state.selection.to,s="end"):(o=e.state.selection.from,s="start"),e.input.lastKeyCode=null;let g=function(e,t,n,r,i){let o=e.findDiffStart(t,n);if(null==o)return null;let{a:s,b:a}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==i){let e=Math.max(0,o-Math.min(s,a));r-=s+e-o}if(s<o&&e.size<t.size){let e=r<=o&&r>=s?o-r:0;(o-=e)&&o<t.size&&r3(t.textBetween(o-1,o+1))&&(o+=e?1:-1),a=o+(a-s),s=o}else if(a<o){let t=r<=o&&r>=a?o-r:0;(o-=t)&&o<e.size&&r3(e.textBetween(o-1,o+1))&&(o+=t?1:-1),s=o+(s-a),a=o}return{start:o,endA:s,endB:a}}(m.content,h.doc.content,h.from,o,s);if(g&&e.input.domChangeCount++,(t3&&e.input.lastIOSEnter>Date.now()-225||t6)&&i.some(e=>1==e.nodeType&&!r1.test(e.nodeName))&&(!g||g.endA>=g.endB)&&e.someProp("handleKeyDown",t=>t(e,tU(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!g)if(r&&d instanceof eZ&&!d.empty&&d.$head.sameParent(d.$anchor)&&!e.composing&&!(h.sel&&h.sel.anchor!=h.sel.head))g={start:d.from,endA:d.to,endB:d.to};else{if(h.sel){let t=r2(e,e.state.doc,h.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);l&&n.setMeta("composition",l),e.dispatch(n)}}return}e.state.selection.from<e.state.selection.to&&g.start==g.endB&&e.state.selection instanceof eZ&&(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)),tY&&tX<=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--);let y=h.doc.resolveNoCache(g.start-h.from),v=h.doc.resolveNoCache(g.endB-h.from),b=p.resolve(g.start),x=y.sameParent(v)&&y.parent.inlineContent&&b.end()>=g.endA;if((t3&&e.input.lastIOSEnter>Date.now()-225&&(!x||i.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!x&&y.pos<h.doc.content.size&&(!y.sameParent(v)||!y.parent.inlineContent)&&y.pos<v.pos&&!/\S/.test(h.doc.textBetween(y.pos,v.pos,"","")))&&e.someProp("handleKeyDown",t=>t(e,tU(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>g.start&&function(e,t,n,r,i){if(n-t<=i.pos-r.pos||r5(r,!0,!1)<i.pos)return!1;let o=e.resolve(t);if(!r.parent.isTextblock){let e=o.nodeAfter;return null!=e&&n==t+e.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let s=e.resolve(r5(o,!0,!0));return!(!s.parent.isTextblock||s.pos>n||r5(s,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(s.parent.content)}(p,g.start,g.endA,y,v)&&e.someProp("handleKeyDown",t=>t(e,tU(8,"Backspace")))){t6&&t1&&e.domObserver.suppressSelectionUpdates();return}
1557t1&&g.endB==g.start&&(e.input.lastChromeDelete=Date.now()),t6&&!x&&y.start()!=v.start()&&0==v.parentOffset&&y.depth==v.depth&&h.sel&&h.sel.anchor==h.sel.head&&h.sel.head==g.endA&&(g.endB-=2,v=h.doc.resolveNoCache(g.endB-h.from),setTimeout(()=>{e.someProp("handleKeyDown",function(t){return t(e,tU(13,"Enter"))})},20));let _=g.start,w=g.endA,k=t=>{let n=t||e.state.tr.replace(_,w,h.doc.slice(g.start-h.from,g.endB-h.from));if(h.sel){let t=r2(e,n.doc,h.sel);t&&!(t1&&e.composing&&t.empty&&(g.start!=g.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==_||t.head==n.mapping.map(w)-1)||tY&&t.empty&&t.head==_)&&n.setSelection(t)}return l&&n.setMeta("composition",l),n.scrollIntoView()};if(x)if(y.pos==v.pos){tY&&tX<=11&&0==y.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>nF(e),20));let t=k(e.state.tr.delete(_,w)),n=p.resolve(g.start).marksAcross(p.resolve(g.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(g.endA==g.endB&&(a=function(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,o=r,s,a,l;for(let e=0;e<r.length;e++)i=r[e].removeFromSet(i);for(let e=0;e<n.length;e++)o=n[e].removeFromSet(o);if(1==i.length&&0==o.length)a=i[0],s="add",l=e=>e.mark(a.addToSet(e.marks));else{if(0!=i.length||1!=o.length)return null;a=o[0],s="remove",l=e=>e.mark(a.removeFromSet(e.marks))}let u=[];for(let e=0;e<t.childCount;e++)u.push(l(t.child(e)));if(f.from(u).eq(e))return{mark:a,type:s}}(y.parent.content.cut(y.parentOffset,v.parentOffset),b.parent.content.cut(b.parentOffset,g.endA-b.start())))){let t=k(e.state.tr);"add"==a.type?t.addMark(_,w,a.mark):t.removeMark(_,w,a.mark),e.dispatch(t)}else if(y.parent.child(y.index()).isText&&y.index()==v.index()-!v.textOffset){let t=y.parent.textBetween(y.parentOffset,v.parentOffset),n=()=>k(e.state.tr.insertText(t,_,w));e.someProp("handleTextInput",r=>r(e,_,w,t,n))||e.dispatch(n())}else e.dispatch(k());else e.dispatch(k())})(this,e,t,n,r)),this.domObserver.start(),function(e){for(let t in rs){let n=rs[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let 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,t)||rh(e,t)||!e.editable&&t.type in ra||n(e,t)},rl[t]?{passive:!0}:void 0)}t5&&e.dom.addEventListener("input",()=>null),rd(e)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;for(let t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&rd(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(ie),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];for(let n in t.state=this.state,e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var n,r,i;let o=this.state,s=!1,a=!1;e.storedMarks&&this.composing&&(r_(this),a=!0),this.state=e;let l=o.plugins!=e.plugins||this._props.plugins!=t.plugins;if(l||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=r9(this);(function(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r})(e,this.nodeViews)&&(this.nodeViews=e,s=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&rd(this),this.editable=r7(this),r6(this);let u=rW(this),c=r8(this),d=o.plugins==e.plugins||o.doc.eq(e.doc)?e.scrollToSelection>o.scrollToSelection?"to selection":"preserve":"reset",h=s||!this.docView.matchesNode(e.doc,c,u);(h||!e.selection.eq(o.selection))&&(a=!0);let p="preserve"==d&&a&&null==this.dom.style.overflowAnchor&&function(e){let t,n,r=e.dom.getBoundingClientRect(),i=Math.max(0,r.top);for(let o=(r.left+r.right)/2,s=i+1;s<Math.min(innerHeight,r.bottom);s+=5){let r=e.root.elementFromPoint(o,s);if(!r||r==e.dom||!e.dom.contains(r))continue;let a=r.getBoundingClientRect();if(a.top>=i-20){t=r,n=a.top;break}}return{refDOM:t,refTop:n,stack:nn(e.dom)}}(this);if(a){let t,n,a;this.domObserver.stop();let l=h&&(tY||t1)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&(r=o.selection,i=e.selection,a=Math.min(r.$anchor.sharedDepth(r.head),i.$anchor.sharedDepth(i.head)),r.$anchor.start(a)!=i.$anchor.start(a));if(h){let t=t1?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=function(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let 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=tq(e=e.childNodes[t-1])}else{if(!e.parentNode||tV(e))return null;t=tD(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||tV(e))return null;t=tD(e)+1,e=e.parentNode}}}(t.focusNode,t.focusOffset);
1557if(n&&r&&n!=r){let t=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(!(!e||!e.isText(n.nodeValue)))return r}}return n||r}(this)),(s||!this.docView.update(e.doc,c,u,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=nw(e.doc,c,u,this.dom,this)),!t||this.trackWrites&&this.dom.contains(this.trackWrites)||(l=!0)}l||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&(t=this.docView.domFromPos(this.state.selection.anchor,0),n=this.domSelectionRange(),tF(t.node,t.offset,n.anchorNode,n.anchorOffset)))?nF(this,l):(nz(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),(null==(n=this.dragging)?void 0:n.node)&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),"reset"==d?this.dom.scrollTop=0:"to selection"==d?this.scrollToSelection():p&&function({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;nr(n,0==r?0:r-t)}(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&this.dom.contains(1==e.nodeType?e:e.parentNode))if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof e1){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&nt(this,t.getBoundingClientRect(),e)}else nt(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}updateDraggedNode(e,t){let n=e.node,r=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new rA(e.slice,e.move,r<0?void 0:e1.create(this.state.doc,r))}someProp(e,t){let n=this._props&&this._props[e],r;if(null!=n&&(r=t?t(n):n))return r;for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n].props[e];if(null!=i&&(r=t?t(i):i))return r}let i=this.state.plugins;if(i)for(let n=0;n<i.length;n++){let o=i[n].props[e];if(null!=o&&(r=t?t(o):o))return r}}hasFocus(){if(tY){let 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}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(ni)return e.focus(ni);let t=nn(e);e.focus(null==ni?{get preventScroll(){return ni={preventScroll:!0},!0}}:void 0),ni||(ni=!1,nr(t,0))}(this.dom),nF(this),this.domObserver.start()}get root(){let e=this._root;if(null==e){for(let e=this.dom.parentNode;e;e=e.parentNode)if(9==e.nodeType||11==e.nodeType&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return function(e,t){var n;let r,i,o=e.dom.ownerDocument,s,a=0,l=function(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(tq(r.offsetNode),r.offset)}}catch(e){}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(tq(r.startContainer),r.startOffset)}}}(o,t.left,t.top);l&&({node:s,offset:a}=l);let u=(e.root.elementFromPoint?e.root:o).elementFromPoint(t.left,t.top);if(!u||!e.dom.contains(1!=u.nodeType?u.parentNode:u)){let n=e.dom.getBoundingClientRect();if(!no(t,n)||!(u=function e(t,n,r){let i=t.childNodes.length;if(i&&r.top<r.bottom)for(let o=Math.max(0,Math.min(i-1,Math.floor(i*(n.top-r.top)/(r.bottom-r.top))-2)),s=o;;){let r=t.childNodes[s];if(1==r.nodeType){let t=r.getClientRects();for(let i=0;i<t.length;i++){let o=t[i];if(no(n,o))return e(r,n,o)}}if((s=(s+1)%i)==o)break}return t}(e.dom,t,n)))return null}if(t5)for(let e=u;s&&e;e=tM(e))e.draggable&&(s=void 0);if(u=(r=(n=u).parentNode)&&/^li$/i.test(r.nodeName)&&t.left<n.getBoundingClientRect().left?r:n,s){let n;if(tZ&&1==s.nodeType&&(a=Math.min(a,s.childNodes.length))<s.childNodes.length){let e=s.childNodes[a],n;"IMG"==e.nodeName&&(n=e.getBoundingClientRect()).right<=t.left&&n.bottom>t.top&&a++}
1557t7&&a&&1==s.nodeType&&1==(n=s.childNodes[a-1]).nodeType&&"false"==n.contentEditable&&n.getBoundingClientRect().top>=t.top&&a--,s==e.dom&&a==s.childNodes.length-1&&1==s.lastChild.nodeType&&t.top>s.lastChild.getBoundingClientRect().bottom?i=e.state.doc.content.size:(0==a||1!=s.nodeType||"BR"!=s.childNodes[a-1].nodeName)&&(i=function(e,t,n,r){let i=-1;for(let n=t,o=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0),s;if(!t)return null;if(1==t.dom.nodeType&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((s=t.dom.getBoundingClientRect()).width||s.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!o&&s.left>r.left||s.top>r.top?i=t.posBefore:(!o&&s.right<r.left||s.bottom<r.top)&&(i=t.posAfter),o=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?r.top<(s.top+s.bottom)/2:r.left<(s.left+s.right)/2)?t.posBefore:t.posAfter;n=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}(e,s,a,t))}null==i&&(i=function(e,t,n){let{node:r,offset:i}=function e(t,n){let r,i,o,s=2e8,a,l=0,u=n.top,c=n.top;for(let e=t.firstChild,d=0;e;e=e.nextSibling,d++){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=tR(e).getClientRects()}for(let h=0;h<t.length;h++){let p=t[h];if(p.top<=u&&p.bottom>=c){u=Math.max(p.bottom,u),c=Math.min(p.top,c);let t=p.left>n.left?p.left-n.left:p.right<n.left?n.left-p.right:0;if(t<s){o=e,s=t,a=t&&3==o.nodeType?{left:p.right<n.left?p.right:p.left,top:n.top}:n,1==e.nodeType&&t&&(l=d+ +(n.left>=(p.left+p.right)/2));continue}}else p.top>n.top&&!r&&p.left<=n.left&&p.right>=n.left&&(r=e,i={left:Math.max(p.left,Math.min(p.right,n.left)),top:p.top});!o&&(n.left>=p.right&&n.top>=p.top||n.left>=p.left&&n.top>=p.bottom)&&(l=d+1)}}return(!o&&r&&(o=r,a=i,s=0),o&&3==o.nodeType)?function(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let o=0;o<n;o++){r.setEnd(e,o+1),r.setStart(e,o);let n=na(r,1);if(n.top!=n.bottom&&no(t,n)){i={node:e,offset:o+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}(o,a):!o||s&&1==o.nodeType?{node:t,offset:l}:e(o,a)}(t,n),o=-1;if(1==r.nodeType&&!r.firstChild){let e=r.getBoundingClientRect();o=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}(e,u,t));let c=e.docView.nearestDesc(u,!0);return{pos:i,inside:c?c.posAtStart-c.border:-1}}(this,e)}coordsAtPos(e,t=1){return nu(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return function(e,t,n){let r,i;return nf==t&&nm==n?ng:(nf=t,nm=n,ng="up"==n||"down"==n?(r=t.selection,i="up"==n?r.$from:r.$to,nh(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=nu(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=tR(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&("up"==n?r.top-i.top>(i.bottom-r.top)*2:i.bottom-r.bottom>(r.bottom-i.top)*2))return!1}}return!0})):function(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=i==r.parent.content.size,s=e.domSelection();return s?np.test(r.parent.textContent)&&s.modify?nh(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:o,anchorOffset:a}=e.domSelectionRange(),l=s.caretBidiLevel;s.modify("move",n,"character");let u=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:c,focusOffset:d}=e.domSelectionRange(),h=c&&!u.contains(1==c.nodeType?c:c.parentNode)||t==c&&i==d;try{s.collapse(o,a),t&&(t!=o||i!=a)&&s.extend&&s.extend(t,i)}catch(e){}return null!=l&&(s.caretBidiLevel=l),h}):"left"==n||"backward"==n?!i:o:r.pos==r.start()||r.pos==r.end()}(e,t,n))}(this,t||this.state,e)}pasteHTML(e,t){return rC(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return rC(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return n8(this,e)}destroy(){if(this.docView){for(let e in this.domObserver.stop(),this.input.eventHandlers)this.dom.removeEventListener(e,this.input.eventHandlers[e]);clearTimeout(this.input.composingTimeout),clearTimeout(this.input.lastIOSEnterFallbackTimeout),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],rW(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,tP()}}get isDestroyed(){return null==this.docView}dispatchEvent(e){!rh(this,e)&&rs[e.type]&&(this.editable||!(e.type in ra))&&rs[e.type](this,e)}domSelectionRange(){let e=this.domSelection();return e?t5&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){let n;if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return rZ(e,n)}function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?rZ(e,n):null}
1557(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function r8(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),t.translate||(t.translate="no"),[rD.node(0,e.state.doc.content.size,t)]}function r6(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:rD.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function r7(e){return!e.someProp("editable",t=>!1===t(e.state))}function r9(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function ie(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError("Plugins passed directly to the view must not have a state component")}r4.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};for(var it={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:"'"},ir={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ii="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),io="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),is=0;is<10;is++)it[48+is]=it[96+is]=String(is);for(var is=1;is<=24;is++)it[is+111]="F"+is;for(var is=65;is<=90;is++)it[is]=String.fromCharCode(is+32),ir[is]=String.fromCharCode(is);for(var ia in it)ir.hasOwnProperty(ia)||(ir[ia]=it[ia]);let il="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),iu="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function ic(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function id(e){let t=function(e){let t=Object.create(null);for(let n in e)t[function(e){let t,n,r,i,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let e=0;e<o.length-1;e++){let s=o[e];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else if(/^s(hift)?$/i.test(s))r=!0;else if(/^mod$/i.test(s))il?i=!0:n=!0;else throw Error("Unrecognized modifier name: "+s)}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),i&&(s="Meta-"+s),r&&(s="Shift-"+s),s}(n)]=e[n];return t}(e);return function(e,n){var r;let i=("Esc"==(r=!(ii&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||io&&n.shiftKey&&n.key&&1==n.key.length||"Unidentified"==n.key)&&n.key||(n.shiftKey?ir:it)[n.keyCode]||n.key||"Unidentified")&&(r="Escape"),"Del"==r&&(r="Delete"),"Left"==r&&(r="ArrowLeft"),"Up"==r&&(r="ArrowUp"),"Right"==r&&(r="ArrowRight"),"Down"==r&&(r="ArrowDown"),r),o,s=t[ic(i,n)];if(s&&s(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(n.shiftKey){let r=t[ic(i,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(iu&&n.ctrlKey&&n.altKey)&&(o=it[n.keyCode])&&o!=i){let r=t[ic(o,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var ih=Object.defineProperty,ip=(e,t)=>{for(var n in t)ih(e,n,{get:t[n],enumerable:!0})};function im(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:i}=n,{storedMarks:o}=n;return{...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 ig=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,o=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(o);return i.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(i),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:o}=r,s=[],a=!!e,l=e||i.tr,u=()=>(a||!t||l.getMeta("preventDispatch")||this.hasCustomState||o.dispatch(l),s.every(e=>!0===e)),c={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(l,t),i=n(...e)(r);return s.push(i),c}])),run:u};return c}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,i=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:o}=r,s={tr:e,editor:r,view:o,state:im({state:i,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(s)]))}};return s}},iy={};ip(iy,{blur:()=>iv,clearContent:()=>ib,clearNodes:()=>ix,command:()=>i_,createParagraphNear:()=>iw,cut:()=>ik,deleteCurrentNode:()=>iC,deleteNode:()=>iA,deleteRange:()=>iS,deleteSelection:()=>iT,enter:()=>ij,exitCode:()=>iN,extendMarkRange:()=>iP,first:()=>iF,focus:()=>iU,forEach:()=>iH,insertContent:()=>iW,insertContentAt:()=>iQ,joinBackward:()=>iZ,joinDown:()=>iX,joinForward:()=>i0,joinItemBackward:()=>i1,joinItemForward:()=>i2,joinTextblockBackward:()=>i5,joinTextblockForward:()=>i3,joinUp:()=>iY,keyboardShortcut:()=>i8,lift:()=>i7,liftEmptyBlock:()=>i9,liftListItem:()=>
1557oe,newlineInCode:()=>ot,resetAttributes:()=>oi,scrollIntoView:()=>oo,selectAll:()=>oa,selectNodeBackward:()=>ol,selectNodeForward:()=>ou,selectParentNode:()=>oc,selectTextblockEnd:()=>od,selectTextblockStart:()=>oh,setContent:()=>of,setMark:()=>oJ,setMeta:()=>oQ,setNode:()=>oY,setNodeSelection:()=>oX,setTextDirection:()=>oZ,setTextSelection:()=>o0,sinkListItem:()=>o1,splitBlock:()=>o5,splitListItem:()=>o3,toggleList:()=>o6,toggleMark:()=>o7,toggleNode:()=>o9,toggleWrap:()=>se,undoInputRule:()=>st,unsetAllMarks:()=>sn,unsetMark:()=>sr,unsetTextDirection:()=>si,updateAttributes:()=>so,wrapIn:()=>ss,wrapInList:()=>sa});var iv=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),null==(n=null==window?void 0:window.getSelection())||n.removeAllRanges())}),!0),ib=(e=!0)=>({commands:t})=>t.setContent("",{emitUpdate:e}),ix=()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:i}=r;return!n||(i.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:i}=t,o=r.resolve(i.map(n)),s=r.resolve(i.map(n+e.nodeSize)),a=o.blockRange(s);if(!a)return;let l=eE(a);if(e.type.isTextblock){let{defaultType:e}=o.parent.contentMatchAt(o.index());t.setNodeMarkup(a.start,e)}(l||0===l)&&t.lift(a,l)})}),!0)},i_=e=>t=>e(t),iw=()=>({state:e,dispatch:t})=>t_(e,t),ik=(e,t)=>({editor:n,tr:r})=>{let{state:i}=n,o=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let s=r.mapping.map(t);return r.insert(s,o.content),r.setSelection(new eZ(r.doc.resolve(Math.max(s-1,0)))),!0},iC=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let i=e.selection.$anchor;for(let n=i.depth;n>0;n-=1)if(i.node(n).type===r.type){if(t){let t=i.before(n),r=i.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1};function iE(e,t){if("string"==typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var iA=e=>({tr:t,state:n,dispatch:r})=>{let i=iE(e,n.schema),o=t.selection.$anchor;for(let e=o.depth;e>0;e-=1)if(o.node(e).type===i){if(r){let n=o.before(e),r=o.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},iS=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},iT=()=>({state:e,dispatch:t})=>ta(e,t),ij=()=>({commands:e})=>e.keyboardShortcut("Enter"),iN=()=>({state:e,dispatch:t})=>tx(e,t);function iO(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function iI(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:iO(t[r])?t[r].test(e[r]):t[r]===e[r])}function iD(e,t,n={}){return e.find(e=>e.type===t&&iI(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function iM(e,t,n={}){return!!iD(e,t,n)}function iL(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(r.node&&r.node.marks.some(e=>e.type===t)||(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(e=>e.type===t))return;if(!n){let e=r.node.marks.find(e=>e.type===t);e&&(n=e.attrs)}if(!iD([...r.node.marks],t,n))return;let i=r.index,o=e.start()+r.offset,s=i+1,a=o+r.node.nodeSize;for(;i>0&&iM([...e.parent.child(i-1).marks],t,n);)i-=1,o-=e.parent.child(i).nodeSize;for(;s<e.parent.childCount&&iM([...e.parent.child(s).marks],t,n);)a+=e.parent.child(s).nodeSize,s+=1;return{from:o,to:a}}function iR(e,t){if("string"==typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var iP=(e,t)=>({tr:n,state:r,dispatch:i})=>{let o=iR(e,r.schema),{doc:s,selection:a}=n,{$from:l,from:u,to:c}=a;if(i){let e=iL(l,o,t);if(e&&e.from<=u&&e.to>=c){let t=eZ.create(s,e.from,e.to);n.setSelection(t)}}return!0},iF=e=>t=>{let n="function"==typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function iB(e){return e instanceof eZ}function i$(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function iq(e,t=null){if(!t)return null;let n=eJ.atStart(e),r=eJ.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return r;let i=n.from,o=r.to;return"all"===t?eZ.create(e,i$(0,i,o),i$(e.content.size,i,o)):eZ.create(e,i$(t,i,o),i$(t,i,o))}function iV(){return"Android"===navigator.platform||/android/i.test(navigator.userAgent)}function iz(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var iU=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:o})=>{t={scrollIntoView:!0,...t};let s=()=>{(iz()||iV())&&r.dom.focus(),"undefined"!=typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!iz()&&!iV()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{!n.isDestroyed&&(r.focus(),(null==t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&null===e||!1===e)return!0}catch{return!1}if(o&&null===e&&!iB(n.state.selection))return s(),!0;let a=iq(i.doc,e)||n.state.selection,l=n.state.selection.eq(a);return o&&(l||i.setSelection(a),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},iH=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),iW=(e,t)=>
1557({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),iG=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){let r=t[n];3===r.nodeType&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):1===r.nodeType&&iG(r)}return e};function iK(e){if("undefined"==typeof window)throw Error("[tiptap error]: there is no window object available, so this function cannot be used");let t=`<body>${e}</body>`;return iG(new window.DOMParser().parseFromString(t,"text/html").body)}function iJ(e,t,n){if(e instanceof D||e instanceof f)return e;n={slice:!0,parseOptions:{},...n};let r="object"==typeof e&&null!==e,i="string"==typeof e;if(r)try{if(Array.isArray(e)&&e.length>0)return f.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error("[tiptap error]: Invalid JSON content",{cause:r});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),iJ("",t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i="",o=new K({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:e=>(r=!0,i="string"==typeof e?e:e.outerHTML,null)}]}})});if(n.slice?Q.fromSchema(o).parseSlice(iK(e),n.parseOptions):Q.fromSchema(o).parse(iK(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error("[tiptap error]: Invalid HTML content",{cause:Error(`Invalid element found: ${i}`)})}let r=Q.fromSchema(t);return n.slice?r.parseSlice(iK(e),n.parseOptions).content:r.parse(iK(e),n.parseOptions)}return iJ("",t,n)}var iQ=(e,t,n)=>({tr:r,dispatch:i,editor:o})=>{var s;if(i){let i,a;n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let l=e=>{o.emit("contentError",{editor:o,error:e,disableCollaboration:()=>{"collaboration"in o.storage&&"object"==typeof o.storage.collaboration&&o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!o.options.enableContentCheck&&o.options.emitContentError)try{iJ(t,o.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(e){l(e)}try{i=iJ(t,o.schema,{parseOptions:u,errorOnInvalidContent:null!=(s=n.errorOnInvalidContent)?s:o.options.enableContentCheck})}catch(e){return l(e),!1}let{from:c,to:d}="number"==typeof e?{from:e,to:e}:{from:e.from,to:e.to},h=!0,p=!0;if((!("type"in i)?i:[i]).forEach(e=>{e.check(),h=!!h&&e.isText&&0===e.marks.length,p=!!p&&e.isBlock}),c===d&&p){let{parent:e}=r.doc.resolve(c);!e.isTextblock||e.type.spec.code||e.childCount||(c-=1,d+=1)}if(h){if(Array.isArray(t))a=t.map(e=>e.text||"").join("");else if(t instanceof f){let e="";t.forEach(t=>{t.text&&(e+=t.text)}),a=e}else a="object"==typeof t&&t&&t.text?t.text:t;r.insertText(a,c,d)}else{a=i;let e=r.doc.resolve(c),t=e.node(),n=0===e.parentOffset,o=t.isText||t.isTextblock,s=t.content.size>0;n&&o&&s&&p&&(c=Math.max(0,c-1)),r.replaceWith(c,d,a)}n.updateSelection&&function(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof e_||i instanceof ew))return;let o=e.mapping.maps[r],s=0;o.forEach((e,t,n,r)=>{0===s&&(s=r)}),e.setSelection(eJ.near(e.doc.resolve(s),-1))}(r,r.steps.length-1,0),n.applyInputRules&&r.setMeta("applyInputRules",{from:c,text:a}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:c,text:a})}return!0},iY=()=>({state:e,dispatch:t})=>((e,t)=>{let n=e.selection,r=n instanceof e1,i;if(r){if(n.node.isTextblock||!eO(e.doc,n.from))return!1;i=n.from}else if(null==(i=eD(e.doc,n.from,-1)))return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(e1.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0})(e,t),iX=()=>({state:e,dispatch:t})=>((e,t)=>{let n=e.selection,r;if(n instanceof e1){if(n.node.isTextblock||!eO(e.doc,n.to))return!1;r=n.to}else if(null==(r=eD(e.doc,n.to,1)))return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0})(e,t),iZ=()=>({state:e,dispatch:t})=>tu(e,t),i0=()=>({state:e,dispatch:t})=>tm(e,t),i1=()=>({state:e,dispatch:t,tr:n})=>{try{let r=eD(e.doc,e.selection.$from.pos,-1);if(null==r)return!1;return n.join(r,2),t&&t(n),!0}catch{return!1}},i2=()=>({state:e,dispatch:t,tr:n})=>{try{let r=eD(e.doc,e.selection.$from.pos,1);if(null==r)return!1;return n.join(r,2),t&&t(n),!0}catch{return!1}},i5=()=>({state:e,dispatch:t})=>((e,t,n)=>{let r=tl(e,n);if(!r)return!1;let i=tp(r);return!!i&&tc(e,i,t)})(e,t),i3=()=>({state:e,dispatch:t})=>((e,t,n)=>{let r=tf(e,n);if(!r)return!1;let i=ty(r);return!!i&&tc(e,i,t)})(e,t);function i4(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}var i8=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let o=(function(e){let t,n,r,i,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"===s&&(s=" ");for(let e=0;e<o.length-1;e+=1){let s=o[e];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else if(/^s(hift)?$/i.test(s))r=!0;else if(/^mod$/i.test(s))iz()||i4()?i=!0:n=!0;else throw Error(`Unrecognized modifier name: ${s}`)}return t&&(s=`Alt-${s}`),n&&(s=`Ctrl-${s}`),i&&(s=`Meta-${s}`),r&&(s=`Shift-${s}`),s})(e).split(/-(?!$)/),s=o.find(e=>!["Alt","Ctrl","Meta","Shift"].includes(e)),a=new KeyboardEvent("keydown",{key:"Space"
1557===s?" ":s,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",e=>e(n,a))});return null==l||l.steps.forEach(e=>{let t=e.map(r.mapping);t&&i&&r.maybeStep(t)}),!0};function i6(e,t,n={}){let{from:r,to:i,empty:o}=e.selection,s=t?iE(t,e.schema):null,a=[];e.doc.nodesBetween(r,i,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),o=Math.min(i,t+e.nodeSize);a.push({node:e,from:n,to:o})});let l=i-r,u=a.filter(e=>!s||s.name===e.node.type.name).filter(e=>iI(e.node.attrs,n,{strict:!1}));return o?!!u.length:u.reduce((e,t)=>e+t.to-t.from,0)>=l}var i7=(e,t={})=>({state:n,dispatch:r})=>{let i=iE(e,n.schema);return!!i6(n,i,t)&&((e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),o=i&&eE(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)})(n,r)},i9=()=>({state:e,dispatch:t})=>tw(e,t),oe=e=>({state:t,dispatch:n})=>(function(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return!!o&&(!n||(r.node(o.depth-1).type==e?function(e,t,n,r){let i=e.tr,o=r.end,s=r.$to.end(r.depth);o<s&&(i.step(new ew(o-1,s,o,s,new x(f.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new O(i.doc.resolve(r.$from.pos),i.doc.resolve(s),r.depth));let a=eE(r);if(null==a)return!1;i.lift(r,a);let l=i.doc.resolve(i.mapping.map(o,-1)-1);return eO(i.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&i.join(l.pos),t(i.scrollIntoView()),!0}(t,n,e,o):function(e,t,n){let r=e.tr,i=n.parent;for(let e=n.end,t=n.endIndex-1,o=n.startIndex;t>o;t--)e-=i.child(t).nodeSize,r.delete(e-1,e+1);let o=r.doc.resolve(n.start),s=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let a=0==n.startIndex,l=n.endIndex==i.childCount,u=o.node(-1),c=o.index(-1);if(!u.canReplace(c+ +!a,c+1,s.content.append(l?f.empty:f.from(i))))return!1;let d=o.pos,h=d+s.nodeSize;return r.step(new ew(d-!!a,h+ +!!l,d+1,h-1,new x((a?f.empty:f.from(i.copy(f.empty))).append(l?f.empty:f.from(i.copy(f.empty))),+!a,+!l),+!a)),t(r.scrollIntoView()),!0}(t,n,o)))}})(iE(e,t.schema))(t,n),ot=()=>({state:e,dispatch:t})=>tv(e,t);function on(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function or(e,t){let n="string"==typeof t?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var oi=(e,t)=>({tr:n,state:r,dispatch:i})=>{let o=null,s=null,a=on("string"==typeof e?e:e.name,r.schema);if(!a)return!1;"node"===a&&(o=iE(e,r.schema)),"mark"===a&&(s=iR(e,r.schema));let l=!1;return n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{o&&o===e.type&&(l=!0,i&&n.setNodeMarkup(r,void 0,or(e.attrs,t))),s&&e.marks.length&&e.marks.forEach(o=>{s===o.type&&(l=!0,i&&n.addMark(r,r+e.nodeSize,s.create(or(o.attrs,t))))})})}),l},oo=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),oa=()=>({tr:e,dispatch:t})=>{if(t){let t=new e5(e.doc);e.setSelection(t)}return!0},ol=()=>({state:e,dispatch:t})=>th(e,t),ou=()=>({state:e,dispatch:t})=>tg(e,t),oc=()=>({state:e,dispatch:t})=>((e,t)=>{let{$from:n,to:r}=e.selection,i,o=n.sharedDepth(r);return 0!=o&&(i=n.before(o),t&&t(e.tr.setSelection(e1.create(e.doc,i))),!0)})(e,t),od=()=>({state:e,dispatch:t})=>tA(e,t),oh=()=>({state:e,dispatch:t})=>tE(e,t);function op(e,t,n={},r={}){return iJ(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var of=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:o,dispatch:s,commands:a})=>{let{doc:l}=o;if("full"!==r.preserveWhitespace){let a=op(e,i.schema,r,{errorOnInvalidContent:null!=t?t:i.options.enableContentCheck});return s&&o.replaceWith(0,l.content.size,a).setMeta("preventUpdate",!n),!0}return s&&o.setMeta("preventUpdate",!n),a.insertContentAt({from:0,to:l.content.size},e,{parseOptions:r,errorOnInvalidContent:null!=t?t:i.options.enableContentCheck})};function om(e,t){let n=iR(t,e.schema),{from:r,to:i,empty:o}=e.selection,s=[];o?(e.storedMarks&&s.push(...e.storedMarks),s.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,e=>{s.push(...e.marks)});let a=s.find(e=>
1557e.type.name===n.name);return a?{...a.attrs}:{}}function og(e,t){let n=new eG(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function oy(e,t){for(let n=e.depth;n>0;n-=1){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function ov(e){return t=>oy(t.$from,e)}function ob(e,t,n){return void 0===e.config[t]&&e.parent?ob(e.parent,t,n):"function"==typeof e.config[t]?e.config[t].bind({...n,parent:e.parent?ob(e.parent,t,n):null}):e.config[t]}function ox(e){return e.map(e=>{let t={name:e.name,options:e.options,storage:e.storage},n=ob(e,"addExtensions",t);return n?[e,...ox(n())]:e}).flat(10)}function o_(e,t){let n=eo.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function ow(e){return"function"==typeof e}function ok(e,t,...n){return ow(e)?t?e.bind(t)(...n):e(...n):e}function oC(e){let t=e.filter(e=>"extension"===e.type);return{baseExtensions:t,nodeExtensions:e.filter(e=>"node"===e.type),markExtensions:e.filter(e=>"mark"===e.type)}}function oE(e){let t=[],{nodeExtensions:n,markExtensions:r}=oC(e),i=[...n,...r],o={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},s=n.filter(e=>"text"!==e.name).map(e=>e.name),a=r.map(e=>e.name),l=[...s,...a];return e.forEach(e=>{let n={name:e.name,options:e.options,storage:e.storage,extensions:i},r=ob(e,"addGlobalAttributes",n);r&&r().forEach(e=>{(Array.isArray(e.types)?e.types:"*"===e.types?l:"nodes"===e.types?s:"marks"===e.types?a:[]).forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...o,...r}})})})})}
1557),i.forEach(e=>{let n={name:e.name,options:e.options,storage:e.storage},r=ob(e,"addAttributes",n);r&&Object.entries(r()).forEach(([n,r])=>{let i={...o,...r};"function"==typeof(null==i?void 0:i.default)&&(i.default=i.default()),(null==i?void 0:i.isRequired)&&(null==i?void 0:i.default)===void 0&&delete i.default,t.push({type:e.name,name:n,attribute:i})})}),t}function oA(e){let t=[],n=function(e){let t=[],n="",r=!1,i=!1,o=0,s=e.length;for(let a=0;a<s;a+=1){let s=e[a];if("'"===s&&!i){r=!r,n+=s;continue}if('"'===s&&!r){i=!i,n+=s;continue}if(!r&&!i){if("("===s){o+=1,n+=s;continue}if(")"===s&&o>0){o-=1,n+=s;continue}if(";"===s&&0===o){t.push(n),n="";continue}}n+=s}return n&&t.push(n),t}(e||""),r=n.length;for(let e=0;e<r;e+=1){let r=n[e],i=r.indexOf(":");if(-1===i)continue;let o=r.slice(0,i).trim(),s=r.slice(i+1).trim();o&&s&&t.push([o,s])}return t}function oS(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(!n[e]){n[e]=t;return}if("class"===e){let r=t?String(t).split(" "):[],i=n[e]?n[e].split(" "):[],o=r.filter(e=>!i.includes(e));n[e]=[...i,...o].join(" ")}else if("style"===e){let r=new Map([...oA(n[e]),...oA(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join("; ")}else n[e]=t}),n},{})}function oT(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>oS(e,t),{})}function oj(e,t){return"style"in e?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;let i=t.reduce((e,t)=>{var r;let i=t.attribute.parseHTML?t.attribute.parseHTML(n):"string"!=typeof(r=n.getAttribute(t.name))?r:r.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(r):"true"===r||"false"!==r&&r;return null==i?e:{...e,[t.name]:i}},{});return{...r,...i}}}}function oN(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>!("attrs"===e&&function(e={}){return 0===Object.keys(e).length&&e.constructor===Object}(t))&&null!=t))}function oO(e){var t,n;let 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),(null==(n=null==e?void 0:e.attribute)?void 0:n.validate)!==void 0&&(r.validate=e.attribute.validate),[e.name,r]}function oI(e){return e.sort((e,t)=>{let n=ob(e,"priority")||100,r=ob(t,"priority")||100;return n>r?-1:+(n<r)})}function oD(e){var t;let n=oI(ox(e)),r=Array.from(new Set((t=n.map(e=>e.name)).filter((e,n)=>t.indexOf(e)!==n)));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(e=>`'${e}'`).join(", ")}]. This can lead to issues.`),n}
1557function oM(e,t,n){let{from:r,to:i}=t,{blockSeparator:o="\n\n",textSerializers:s={}}=n||{},a="";return e.nodesBetween(r,i,(e,n,l,u)=>{var c;e.isBlock&&n>r&&(a+=o);let d=null==s?void 0:s[e.type.name];if(d)return l&&(a+=d({node:e,pos:n,parent:l,index:u,range:t})),!1;e.isText&&(a+=null==(c=null==e?void 0:e.text)?void 0:c.slice(Math.max(r,n)-n,i-n))}),a}function oL(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function oR(e,t){let n=on("string"==typeof t?t:t.name,e.schema);if("node"===n){let n=iE(t,e.schema),{from:r,to:i}=e.selection,o=[];e.doc.nodesBetween(r,i,e=>{o.push(e)});let s=o.reverse().find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}return"mark"===n?om(e,t):{}}function oP(e){let{mapping:t,steps:n}=e,r=[];t.maps.forEach((e,i)=>{let o=[];if(e.ranges.length)e.forEach((e,t)=>{o.push({from:e,to:t})});else{let{from:e,to:t}=n[i];if(void 0===e||void 0===t)return;o.push({from:e,to:t})}o.forEach(({from:e,to:n})=>{let o=t.slice(i).map(e,-1),s=t.slice(i).map(n),a=t.invert().map(o,-1),l=t.invert().map(s);r.push({oldRange:{from:a,to:l},newRange:{from:o,to:s}})})});let i=function(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)})}(r);return 1===i.length?i:i.filter((e,t)=>!i.filter((e,n)=>n!==t).some(t=>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 oF(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=iL(n.resolve(e),t.type);i&&r.push({mark:t,...i})}):n.nodesBetween(e,t,(e,t)=>{e&&(null==e?void 0:e.nodeSize)!==void 0&&r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}function oB(e,t){return t.nodes[e]||t.marks[e]||null}function o$(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return!!r&&r.attribute.keepOnSplit}))}function oq(e,t,n={}){let{empty:r,ranges:i}=e.selection,o=t?iR(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!o||o.name===e.type.name).find(e=>iI(e.attrs,n,{strict:!1}));let s=0,a=[];if(i.forEach(({$from:t,$to:n})=>{let r=t.pos,i=n.pos;e.doc.nodesBetween(r,i,(e,t)=>{if(o&&e.inlineContent&&!e.type.allowsMarkType(o))return!1;if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),l=Math.min(i,t+e.nodeSize);s+=l-n,a.push(...e.marks.map(e=>({mark:e,from:n,to:l})))})}),0===s)return!1;let l=a.filter(e=>!o||o.name===e.mark.type.name).filter(e=>iI(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),u=a.filter(e=>!o||e.mark.type!==o&&e.mark.type.excludes(o)).reduce((e,t)=>e+t.to-t.from,0);return(l>0?l+u:l)>=s}function oV(e,t){return Array.isArray(t)?t.some(t=>("string"==typeof t?t:t.name)===e.name):t}function oz(e,t){let{nodeExtensions:n}=oC(t),r=n.find(t=>t.name===e);if(!r)return!1;let i={name:r.name,options:r.options,storage:r.storage},o=ok(ob(r,"group",i));return"string"==typeof o&&o.split(" ").includes("list")}function oU(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if("hardBreak"===e.type.name)return!0;if(e.isText)return!/\S/.test(null!=(r=e.text)?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(0===e.content.childCount)return!0;if(t){let r=!0;return e.content.forEach(e=>{!1!==r&&(oU(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function oH(e){return e instanceof e1}var oW=class e{constructor(e){this.position=e}static fromJSON(t){return new e(t.position)}toJSON(){return{position:this.position}}};function oG(e,t){let n=t.mapping.mapResult(e.position);return{position:new oW(n.pos),mapResult:n}}function oK(e){return new oW(e)}var oJ=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:o}=n,{empty:s,ranges:a}=o,l=iR(e,r.schema);if(i)if(s){let e=om(r,l);n.addStoredMark(l.create({...e,...t}))}else a.forEach(e=>{let i=e.$from.pos,o=e.$to.pos;r.doc.nodesBetween(i,o,(e,r)=>{let s=Math.max(r,i),a=Math.min(r+e.nodeSize,o);e.marks.find(e=>e.type===l)?e.marks.forEach(e=>{l===e.type&&n.addMark(s,a,l.create({...e.attrs,...t}))}):n.addMark(s,a,l.create(t))})});return function(e,t,n){var r;let{selection:i}=t,o=null;
1557if(iB(i)&&(o=i.$cursor),o){let t=null!=(r=e.storedMarks)?r:o.marks();return o.parent.type.allowsMarkType(n)&&(!!n.isInSet(t)||!t.some(e=>e.type.excludes(n)))}let{ranges:s}=i;return s.some(({$from:t,$to:r})=>{let i=0===t.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(i)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),o=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));i=t&&o}return!i}),i})}(r,n,l)},oQ=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),oY=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let o,s=iE(e,n.schema);return(n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),s.isTextblock)?i().command(({commands:e})=>!!tS(s,{...o,...t})(n)||e.clearNodes()).command(({state:e})=>tS(s,{...o,...t})(e,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},oX=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=i$(e,0,n.content.size),i=e1.create(n,r);t.setSelection(i)}return!0},oZ=(e,t)=>({tr:n,state:r,dispatch:i})=>{let o,s,{selection:a}=r;return"number"==typeof t?(o=t,s=t):t&&"from"in t&&"to"in t?(o=t.from,s=t.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},o0=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}="number"==typeof e?{from:e,to:e}:e,o=eZ.atStart(n).from,s=eZ.atEnd(n).to,a=i$(r,o,s),l=i$(i,o,s),u=eZ.create(n,a,l);t.setSelection(u)}return!0},o1=e=>({state:t,dispatch:n})=>(function(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);if(!o)return!1;let s=o.startIndex;if(0==s)return!1;let a=o.parent,l=a.child(s-1);if(l.type!=e)return!1;if(n){let r=l.lastChild&&l.lastChild.type==a.type,i=f.from(r?e.create():null),s=new x(f.from(e.create(null,f.from(a.type.create(null,i)))),r?3:1,0),u=o.start,c=o.end;n(t.tr.step(new ew(u-(r?3:1),c,u,c,s,1,!0)).scrollIntoView())}return!0}})(iE(e,t.schema))(t,n);function o2(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>null==t?void 0:t.includes(e.type.name));e.tr.ensureMarks(r)}}var o5=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{let{selection:o,doc:s}=t,{$from:a,$to:l}=o,u=o$(i.extensionManager.attributes,a.node().type.name,a.node().attrs);if(o instanceof e1&&o.node.isBlock)return!!a.parentOffset&&!!eN(s,a.pos)&&(r&&(e&&o2(n,i.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;let c=l.parentOffset===l.parent.content.size,d=0===a.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(a.node(-1).contentMatchAt(a.indexAfter(-1))),h=c&&d?[{type:d,attrs:u}]:void 0,p=eN(t.doc,t.mapping.map(a.pos),1,h);if(!h&&!p&&eN(t.doc,t.mapping.map(a.pos),1,d?[{type:d}]:void 0)&&(p=!0,h=d?[{type:d,attrs:u}]:void 0),r){if(p&&(o instanceof eZ&&t.deleteSelection(),t.split(t.mapping.map(a.pos),1,h),d&&!c&&!a.parentOffset&&a.parent.type!==d)){let e=t.mapping.map(a.before()),n=t.doc.resolve(e);a.node(-1).canReplaceWith(n.index(),n.index()+1,d)&&t.setNodeMarkup(t.mapping.map(a.before()),d)}e&&o2(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return p},o3=(e,t={})=>({tr:n,state:r,dispatch:i,editor:o})=>{var s;let a=iE(e,r.schema),{$from:l,$to:u}=r.selection,c=r.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;let d=l.node(-1);if(d.type!==a)return!1;let h=o.extensionManager.attributes;if(0===l.parent.content.size&&l.node(-1).childCount===l.indexAfter(-1)){if(2===l.depth||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(i){let e=f.empty,r=l.index(-1)?1:l.index(-2)?2:3;for(let t=l.depth-r;t>=l.depth-3;t-=1)e=f.from(l.node(t).copy(e));let i=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,o={...o$(h,l.node().type.name,l.node().attrs),...t},u=(null==(s=a.contentMatch.defaultType)?void 0:s.createAndFill(o))||void 0;e=e.append(f.from(a.createAndFill(null,u)||void 0));let c=l.before(l.depth-(r-1));n.replace(c,l.after(-i),new x(e,4-r,0));let d=-1;n.doc.nodesBetween(c,n.doc.content.size,(e,t)=>{if(d>-1)return!1;e.isTextblock&&0===e.content.size&&(d=t+1)}),d>-1&&n.setSelection(eZ.near(n.doc.resolve(d))),n.scrollIntoView()}return!0}let p=u.pos===l.end()?d.contentMatchAt(0).defaultType:null,m={...o$(h,d.type.name,d.attrs),...t},g={...o$(h,l.node().type.name,l.node().attrs),...t};n.delete(l.pos,u.pos);let y=p?[{type:a,attrs:m},{type:p,attrs:g}]:[{type:a,attrs:m}];if(!eN(n.doc,l.pos,2))return!1;if(i){let{selection:e,storedMarks:t}=r,{splittableMarks:s}=o.extensionManager,a=t||e.$to.parentOffset&&e.$from.marks();if(n.split(l.pos,2,y).scrollIntoView(),!a||!i)return!0;let u=a.filter(e=>
1557s.includes(e.type.name));n.ensureMarks(u)}return!0},o4=(e,t)=>{let n=ov(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===(null==i?void 0:i.type)&&eO(e.doc,n.pos))||(e.join(n.pos),!0)},o8=(e,t)=>{let n=ov(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===(null==i?void 0:i.type)&&eO(e.doc,r))||(e.join(r),!0)},o6=(e,t,n,r={})=>({editor:i,tr:o,state:s,dispatch:a,chain:l,commands:u,can:c})=>{let{extensions:d,splittableMarks:h}=i.extensionManager,p=iE(e,s.schema),f=iE(t,s.schema),{selection:m,storedMarks:g}=s,{$from:y,$to:v}=m,b=y.blockRange(v),x=g||m.$to.parentOffset&&m.$from.marks();if(!b)return!1;let _=ov(e=>oz(e.type.name,d))(m),w=0===m.from&&m.to===s.doc.content.size,k=s.doc.content.content,C=1===k.length?k[0]:null,E=w&&C&&oz(C.type.name,d)?{node:C,pos:0,depth:0}:null,A=null!=_?_:E,S=!!_&&b.depth>=1&&b.depth-_.depth<=1,T=!!E;if((S||T)&&A){if(A.node.type===p)return w&&T?l().command(({tr:e,dispatch:t})=>{let n=function(e){let t=e.doc,n=t.firstChild;if(!n)return null;let r=t.resolve(1),i=t.resolve(n.nodeSize-1);return eZ.between(r,i)}(e);return!!n&&(e.setSelection(n),t&&t(e),!0)}).liftListItem(f).run():u.liftListItem(f);if(oz(A.node.type.name,d)&&p.validContent(A.node.content))return l().command(()=>(o.setNodeMarkup(A.pos,p),!0)).command(()=>o4(o,p)).command(()=>o8(o,p)).run()}return n&&x&&a?l().command(()=>{let e=c().wrapInList(p,r),t=x.filter(e=>h.includes(e.type.name));return o.ensureMarks(t),!!e||u.clearNodes()}).wrapInList(p,r).command(()=>o4(o,p)).command(()=>o8(o,p)).run():l().command(()=>!!c().wrapInList(p,r)||u.clearNodes()).wrapInList(p,r).command(()=>o4(o,p)).command(()=>o8(o,p)).run()},o7=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:o=!1}=n,s=iR(e,r.schema);return oq(r,s,t)?i.unsetMark(s,{extendEmptyMarkRange:o}):i.setMark(s,t)},o9=(e,t,n={})=>({state:r,commands:i})=>{let o,s=iE(e,r.schema),a=iE(t,r.schema),l=i6(r,s,n);return(r.selection.$anchor.sameParent(r.selection.$head)&&(o=r.selection.$anchor.parent.attrs),l)?i.setNode(a,o):i.setNode(s,{...o,...n})},se=(e,t={})=>({state:n,commands:r})=>{let i=iE(e,n.schema);return i6(n,i,t)?r.lift(i):r.wrapIn(i,t)},st=()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let i,o=n[r];if(o.spec.isInputRules&&(i=o.getState(e))){if(t){let t=e.tr,n=i.transform;for(let e=n.steps.length-1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(i.text){let n=t.doc.resolve(i.from).marks();t.replaceWith(i.from,i.to,e.schema.text(i.text,n))}else t.delete(i.from,i.to)}return!0}}return!1},sn=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,{empty:r,ranges:i}=n;
1557return!!r||(t&&i.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0)},sr=(e,t={})=>({tr:n,state:r,dispatch:i})=>{var o;let{extendEmptyMarkRange:s=!1}=t,{selection:a}=n,l=iR(e,r.schema),{$from:u,empty:c,ranges:d}=a;if(!i)return!0;if(c&&s){let{from:e,to:t}=a,r=null==(o=u.marks().find(e=>e.type===l))?void 0:o.attrs,i=iL(u,l,r);i&&(e=i.from,t=i.to),n.removeMark(e,t,l)}else d.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,l)});return n.removeStoredMark(l),!0},si=e=>({tr:t,state:n,dispatch:r})=>{let i,o,{selection:s}=n;return"number"==typeof e?(i=e,o=e):e&&"from"in e&&"to"in e?(i=e.from,o=e.to):(i=s.from,o=s.to),r&&t.doc.nodesBetween(i,o,(e,n)=>{if(e.isText)return;let r={...e.attrs};delete r.dir,t.setNodeMarkup(n,void 0,r)}),!0},so=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let o=null,s=null,a=on("string"==typeof e?e:e.name,r.schema);if(!a)return!1;"node"===a&&(o=iE(e,r.schema)),"mark"===a&&(s=iR(e,r.schema));let l=!1;return n.selection.ranges.forEach(e=>{let a,u,c,d,h=e.$from.pos,p=e.$to.pos;n.selection.empty?r.doc.nodesBetween(h,p,(e,t)=>{o&&o===e.type&&(l=!0,c=Math.max(t,h),d=Math.min(t+e.nodeSize,p),a=t,u=e)}):r.doc.nodesBetween(h,p,(e,r)=>{r<h&&o&&o===e.type&&(l=!0,c=Math.max(r,h),d=Math.min(r+e.nodeSize,p),a=r,u=e),r>=h&&r<=p&&(o&&o===e.type&&(l=!0,i&&n.setNodeMarkup(r,void 0,{...e.attrs,...t})),s&&e.marks.length&&e.marks.forEach(o=>{if(s===o.type&&(l=!0,i)){let i=Math.max(r,h),a=Math.min(r+e.nodeSize,p);n.addMark(i,a,s.create({...o.attrs,...t}))}}))}),u&&(void 0!==a&&i&&n.setNodeMarkup(a,void 0,{...u.attrs,...t}),s&&u.marks.length&&u.marks.forEach(e=>{s===e.type&&i&&n.addMark(c,d,s.create({...e.attrs,...t}))}))}),l},ss=(e,t={})=>({state:n,dispatch:r})=>(function(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,s=i.blockRange(o),a=s&&eA(s,e,t);return!!a&&(r&&r(n.tr.wrap(s,a).scrollIntoView()),!0)}})(iE(e,n.schema),t)(n,r),sa=(e,t={})=>({state:n,dispatch:r})=>(function(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,s=i.blockRange(o);if(!s)return!1;let a=r?n.tr:null;return!!function(e,t,n,r=null){let i=!1,o=t,s=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;let e=s.resolve(t.start-2);o=new O(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new O(t.$from,s.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let a=eA(o,n,r,t);return!!a&&(e&&function(e,t,n,r,i){let o=f.empty;for(let e=n.length-1;e>=0;e--)o=f.from(n[e].type.create(n[e].attrs,o));e.step(new ew(t.start-2*!!r,t.end,t.start,t.end,new x(o,0,0),n.length,!0));let s=0;for(let e=0;e<n.length;e++)n[e].type==i&&(s=e+1);let a=n.length-s,l=t.start+n.length-2*!!r,u=t.parent;for(let n=t.startIndex,r=t.endIndex,i=!0;n<r;n++,i=!1)!i&&eN(e.doc,l,a)&&(e.split(l,a),l+=2*a),l+=u.child(n).nodeSize}(e,t,a,i,n),!0)}(a,s,e,t)&&(r&&r(a.scrollIntoView()),!0)}})(iE(e,n.schema),t)(n,r),sl=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){let n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){let n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){let n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},su=class{constructor(e){var t;this.find=e.find,this.handler=e.handler,this.undoable=null==(t=e.undoable)||t}};function sc(e){var t;let{editor:n,from:r,to:i,text:o,rules:s,plugin:a}=e,{view:l}=n;if(l.composing)return!1;let u=l.state.doc.resolve(r);if(u.parent.type.spec.code||(null==(t=u.nodeBefore||u.nodeAfter)?void 0:t.marks.find(e=>e.type.spec.code)))return!1;let c=!1,d=((e,t=500)=>{let n="",r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,i,o)=>{var s,a;let l=(null==(a=(s=e.type.spec).toText)?void 0:a.call(s,{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})(u)+o;return s.forEach(e=>{if(c)return;let t=((e,t)=>{if(iO(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];
1557return 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})(d,e.find);if(!t)return;let s=l.state.tr,u=im({state:l.state,transaction:s}),h={from:r-(t[0].length-o.length),to:i},{commands:p,chain:f,can:m}=new ig({editor:n,state:u});null!==e.handler({state:u,range:h,match:t,commands:p,chain:f,can:m})&&s.steps.length&&(e.undoable&&s.setMeta(a,{transform:s,from:r,to:i,text:o}),l.dispatch(s),c=!0)}),c}function sd(e){return"Object"===Object.prototype.toString.call(e).slice(8,-1)&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}var sh=class{constructor(e={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...ok(ob(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...ok(ob(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>(function e(t,n){let r={...t};return sd(t)&&sd(n)&&Object.keys(n).forEach(i=>{sd(n[i])&&sd(t[i])?r[i]=e(t[i],n[i]):r[i]=n[i]}),r})(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){let t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name="name"in e?e.name:t.parent.name,t}},sp=class e extends sh{constructor(){super(...arguments),this.type="mark"}static create(t={}){return new e("function"==typeof t?t():t)}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let i=r.marks();if(!i.find(e=>(null==e?void 0:e.type.name)===t.name))return!1;let o=i.find(e=>(null==e?void 0:e.type.name)===t.name);return o&&n.removeStoredMark(o),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){let t="function"==typeof e?e():e;return super.extend(t)}},sf=class{constructor(e){this.find=e.find,this.handler=e.handler}},sm=null,sg=class{constructor(e,t){this.splittableMarks=[],this.editor=t,this.baseExtensions=e,this.extensions=oD(e),this.schema=function(e,t){var n;let r=oE(e),{nodeExtensions:i,markExtensions:o}=oC(e),s=null==(n=i.find(e=>ob(e,"topNode")))?void 0:n.name;return new K({topNode:s,nodes:Object.fromEntries(i.map(n=>{let i=r.filter(e=>e.type===n.name),o={name:n.name,options:n.options,storage:n.storage,editor:t},s=oN({...e.reduce((e,t)=>{let r=ob(t,"extendNodeSchema",o);return{...e,...r?r(n):{}}},{}),content:ok(ob(n,"content",o)),marks:ok(ob(n,"marks",o)),group:ok(ob(n,"group",o)),inline:ok(ob(n,"inline",o)),atom:ok(ob(n,"atom",o)),selectable:ok(ob(n,"selectable",o)),draggable:ok(ob(n,"draggable",o)),code:ok(ob(n,"code",o)),whitespace:ok(ob(n,"whitespace",o)),linebreakReplacement:ok(ob(n,"linebreakReplacement",o)),defining:ok(ob(n,"defining",o)),isolating:ok(ob(n,"isolating",o)),attrs:Object.fromEntries(i.map(oO))}),a=ok(ob(n,"parseHTML",o));a&&(s.parseDOM=a.map(e=>oj(e,i)));let l=ob(n,"renderHTML",o);l&&(s.toDOM=e=>l({node:e,HTMLAttributes:oT(e,i)}));let u=ob(n,"renderText",o);return u&&(s.toText=u),[n.name,s]})),marks:Object.fromEntries(o.map(n=>{let i=r.filter(e=>e.type===n.name),o={name:n.name,options:n.options,storage:n.storage,editor:t},s=oN({...e.reduce((e,t)=>{let r=ob(t,"extendMarkSchema",o);return{...e,...r?r(n):{}}},{}),inclusive:ok(ob(n,"inclusive",o)),excludes:ok(ob(n,"excludes",o)),group:ok(ob(n,"group",o)),spanning:ok(ob(n,"spanning",o)),code:ok(ob(n,"code",o)),attrs:Object.fromEntries(i.map(oO))}),a=ok(ob(n,"parseHTML",o));a&&(s.parseDOM=a.map(e=>oj(e,i)));let l=ob(n,"renderHTML",o);return l&&(s.toDOM=e=>l({mark:e,HTMLAttributes:oT(e,i)})),[n.name,s]}))})}(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:oB(t.name,this.schema)},r=ob(t,"addCommands",n);return r?{...e,...r()}:e},{})}get plugins(){let{editor:e}=this;return oI([...this.extensions].reverse()).flatMap(t=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:oB(t.name,this.schema)},r=[],i=ob(t,"addKeyboardShortcuts",n),o={};if("mark"===t.type&&ob(t,"exitable",n)&&(o.ArrowRight=()=>sp.handleExit({editor:e,mark:t})),i){let t=Object.fromEntries(Object.entries(i()).map(([t,n])=>[t,()=>n({editor:e})]));o={...o,...t}}let s=new tr({props:{handleKeyDown:id(o)}});r.push(s);let a=ob(t,"addInputRules",n);if(oV(t,e.options.enableInputRules)&&a){let t=a();if(t&&t.length){let n=function(e){let{editor:t,rules:n}=e,r=new tr({state:{init:()=>null,apply(e,i,o){let s=e.getMeta(r);if(s)return s;let a=e.getMeta("applyInputRules");return a&&setTimeout(()=>{let{text:e}=a;"string"==typeof e||(e=o_(f.from(e),o.schema));let{from:i}=a,s=i+e.length;sc({editor:t,from:i,to:s,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput:(e,i,o,s)=>sc({editor:t,from:i,to:o,text:s,rules:n,plugin:r}),handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&sc({editor:t,from:i.pos,to:i.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(e,i){if("Enter"!==i.key)return!1;let{$cursor:o}=e.state.selection;return!!o&&sc({editor:t,from:o.pos,to:o.pos,text:"\n",rules:n,plugin:r})}},isInputRules:!0});return r}({editor:e,rules:t}),i=Array.isArray(n)?n:[n];r.push(...i)}}let l=ob(t,"addPasteRules",n);if(oV(t,e.options.enablePasteRules)&&l){let t=l();if(t&&t.length){let n=function(e){let t,{editor:n,rules:r}=e,i=null,o=!1,s=!1,a="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null;try{t="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{t=null}let l=({state:e,from:r,to:i,rule:o,pasteEvt:s})=>{let l=e.tr;if(function(e){let{editor:t,state:n,from:r,to:i,rule:o,pasteEvent:s,dropEvent:a}=e,{commands:l,chain:u,can:c}=new ig({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(e,t)=>{var h,p,f,m,g;if((null==(p=null==(h=e.type)?void 0:h.spec)?void 0:p.code)||!(e.isText||e.isTextblock||e.isInline))return;let y=null!=(g=null!=(m=null==(f=e.content)?void 0:f.size)?m:e.nodeSize)?g:0,v=Math.max(r,t),b=Math.min(i,t+y);v>=b||((e,t,n)=>{if(iO(t))return[...e.matchAll(t)];let r=t(e,n);return r?r.map(t=>{let 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}):[]})(e.isText?e.text||"":e.textBetween(v-t,b-t,void 0,""),o.find,s).forEac
1557h(e=>{if(void 0===e.index)return;let t=v+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},h=o.handler({state:n,range:i,match:e,commands:l,chain:u,can:c,pasteEvent:s,dropEvent:a});d.push(h)})}),d.every(e=>null!==e)}({editor:n,state:im({state:e,transaction:l}),from:Math.max(r-1,0),to:i.b-1,rule:o,pasteEvent:s,dropEvent:t})&&l.steps.length){try{t="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{t=null}return a="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null,l}};return r.map(e=>new tr({view(e){let t=t=>{var r;(i=(null==(r=e.dom.parentElement)?void 0:r.contains(t.target))?e.dom.parentElement:null)&&(sm=n)},r=()=>{sm&&(sm=null)};return window.addEventListener("dragstart",t),window.addEventListener("dragend",r),{destroy(){window.removeEventListener("dragstart",t),window.removeEventListener("dragend",r)}}},props:{handleDOMEvents:{drop:(e,n)=>{if(s=i===e.dom.parentElement,t=n,!s){let e=sm;(null==e?void 0:e.isEditable)&&setTimeout(()=>{let t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{var n;let r=null==(n=t.clipboardData)?void 0:n.getData("text/html");return a=t,o=!!(null==r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(t,n,r)=>{let i=t[0],u="paste"===i.getMeta("uiEvent")&&!o,c="drop"===i.getMeta("uiEvent")&&!s,d=i.getMeta("applyPasteRules"),h=!!d;if(!u&&!c&&!h)return;if(h){let{text:t}=d;"string"==typeof t||(t=o_(f.from(t),r.schema));let{from:n}=d,i=n+t.length;return l({rule:e,state:r,from:n,to:{b:i},pasteEvt:(e=>{var t;let n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return null==(t=n.clipboardData)||t.setData("text/html",e),n})(t)})}let p=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);if("number"==typeof p&&m&&p!==m.b)return l({rule:e,state:r,from:p,to:m,pasteEvt:a})}}))}({editor:e,rules:t});r.push(...n)}}let u=ob(t,"addProseMirrorPlugins",n);if(u){let e=u();r.push(...e)}return r})}get attributes(){return oE(this.extensions)}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=oC(this.extensions);return Object.fromEntries(t.filter(e=>!!ob(e,"addNodeView")).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:iE(t.name,this.schema)},i=ob(t,"addNodeView",r);if(!i)return[];let o=i();return o?[t.name,(r,i,s,a,l)=>{let u=oT(r,n);return o({node:r,view:i,getPos:s,decorations:a,innerDecorations:l,editor:e,extension:t,HTMLAttributes:u})}]:[]}))}dispatchTransaction(e){let{editor:t}=this;return oI([...this.extensions].reverse()).reduceRight((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:oB(n.name,this.schema)},i=ob(n,"dispatchTransaction",r);return i?t=>{i.call(r,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){let{editor:t}=this;return oI([...this.extensions]).reduce((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:oB(n.name,this.schema)},i=ob(n,"transformPastedHTML",r);return i?(t,n)=>{let o=e(t,n);return i.call(r,o)}:e},e||(e=>e))}get markViews(){let{editor:e}=this,{markExtensions:t}=oC(this.extensions);return Object.fromEntries(t.filter(e=>!!ob(e,"addMarkView")).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:iR(t.name,this.schema)},i=ob(t,"addMarkView",r);return i?[t.name,(r,o,s)=>{let a=oT(r,n);return i()({mark:r,view:o,inline:s,editor:e,extension:t,HTMLAttributes:a,updateAttributes:t=>{!function(e,t,n={}){let{state:r}=t,{doc:i,tr:o}=r;i.descendants((t,r)=>{let i=o.mapping.map(r),s=o.mapping.map(r)+t.nodeSize,a=null;if(t.marks.forEach(t=>{if(t!==e)return!1;a=t}),!a)return;let l=!1;if(Object.keys(n).forEach(e=>{n[e]!==a.attrs[e]&&(l=!0)}),l){let t=e.type.create({...e.attrs,...n});o.removeMark(i,s,e.type),o.addMark(i,s,t)}}),o.docChanged&&t.view.dispatch(o)}(r,e,t)}})}]:[]}))}setupExtensions(){let e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(e=>
1557[e.name,e.storage])),e.forEach(e=>{var t;let n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:oB(e.name,this.schema)};"mark"===e.type&&(null==(t=ok(ob(e,"keepOnSplit",n)))||t)&&this.splittableMarks.push(e.name);let r=ob(e,"onBeforeCreate",n),i=ob(e,"onCreate",n),o=ob(e,"onUpdate",n),s=ob(e,"onSelectionUpdate",n),a=ob(e,"onTransaction",n),l=ob(e,"onFocus",n),u=ob(e,"onBlur",n),c=ob(e,"onDestroy",n);r&&this.editor.on("beforeCreate",r),i&&this.editor.on("create",i),o&&this.editor.on("update",o),s&&this.editor.on("selectionUpdate",s),a&&this.editor.on("transaction",a),l&&this.editor.on("focus",l),u&&this.editor.on("blur",u),c&&this.editor.on("destroy",c)})}};sg.resolve=oD,sg.sort=oI,sg.flatten=ox,ip({},{ClipboardTextSerializer:()=>sv,Commands:()=>sb,Delete:()=>sx,Drop:()=>s_,Editable:()=>sw,FocusEvents:()=>sC,Keymap:()=>sE,Paste:()=>sA,Tabindex:()=>sS,TextDirection:()=>sT,focusEventsPluginKey:()=>sk});var sy=class e extends sh{constructor(){super(...arguments),this.type="extension"}static create(t={}){return new e("function"==typeof t?t():t)}configure(e){return super.configure(e)}extend(e){let t="function"==typeof e?e():e;return super.extend(t)}},sv=sy.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new tr({key:new ts("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:o}=i,s=Math.min(...o.map(e=>e.$from.pos)),a=Math.max(...o.map(e=>e.$to.pos)),l=oL(n);return oM(r,{from:s,to:a},{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),sb=sy.create({name:"commands",addCommands:()=>({...iy})}),sx=sy.create({name:"delete",onUpdate({transaction:e,appendedTransactions:t}){var n,r,i;let o=()=>{var n,r,i,o;if(null!=(o=null==(i=null==(r=null==(n=this.editor.options.coreExtensionOptions)?void 0:n.delete)?void 0:r.filterTransaction)?void 0:i.call(r,e))?o:e.getMeta("y-sync$"))return;let s=og(e.before,[e,...t]);oP(s).forEach(t=>{s.mapping.mapResult(t.oldRange.from).deletedAfter&&s.mapping.mapResult(t.oldRange.to).deletedBefore&&s.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,r)=>{let i=r+n.nodeSize-2,o=t.oldRange.from<=r&&i<=t.oldRange.to;this.editor.emit("delete",{type:"node",node:n,from:r,to:i,newFrom:s.mapping.map(r),newTo:s.mapping.map(i),deletedRange:t.oldRange,newRange:t.newRange,partial:!o,editor:this.editor,transaction:e,combinedTransform:s})})});let a=s.mapping;s.steps.forEach((t,n)=>{var r,i;if(t instanceof ev){let o=a.slice(n).map(t.from,-1),l=a.slice(n).map(t.to),u=a.invert().map(o,-1),c=a.invert().map(l),d=o>0&&(null==(r=s.doc.nodeAt(o-1))?void 0:r.marks.some(e=>e.eq(t.mark))),h=null==(i=s.doc.nodeAt(l))?void 0:i.marks.some(e=>e.eq(t.mark));this.editor.emit("delete",{type:"mark",mark:t.mark,from:t.from,to:t.to,deletedRange:{from:u,to:c},newRange:{from:o,to:l},partial:!!(h||d),editor:this.editor,transaction:e,combinedTransform:s})}})};null==(i=null==(r=null==(n=this.editor.options.coreExtensionOptions)?void 0:n.delete)?void 0:r.async)||i?setTimeout(o,0):o()}}),s_=sy.create({name:"drop",addProseMirrorPlugins(){return[new tr({key:new ts("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),sw=sy.create({name:"editable",addProseMirrorPlugins(){return[new tr({key:new ts("editable"),props:{editable:()=>this.editor.options.editable}})]}}),sk=new ts("focusEvents"),sC=sy.create({name:"focusEvents",addProseMirrorPlugins(){let{editor:e}=this;return[new tr({key:sk,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),sE=sy.create({name:"keymap",addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:i,$anchor:o}=n,{pos:s,parent:a}=o,l=o.parent.isTextblock&&s>0?t.doc.resolve(s-1):o,u=l.parent.type.spec.isolating,c=o.pos-o.parentOffset,d=u&&1===l.parent.childCount?c===o.pos:eJ.atStart(r).from===s;return!!i&&!!a.type.isTextblock&&!a.textContent.length&&!!d&&(!d||"paragraph"!==o.parent.type.name)&&e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return iz()||i4()?i:r},addProseMirrorPlugins(){return[new tr({key:new ts("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta("composition")))return;let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),i=e.some(e=>e.getMeta("preventClearDocument"));if(!r||i)return;let{empty:o,from:s,to:a}=t.selection,l=eJ.atStart(t.doc).from,u=eJ.atEnd(t.doc).to;
1557if(o||s!==l||a!==u||!oU(n.doc))return;let c=n.tr,d=im({state:n,transaction:c}),{commands:h}=new ig({editor:this.editor,state:d});if(h.clearNodes(),c.steps.length)return c}})]}}),sA=sy.create({name:"paste",addProseMirrorPlugins(){return[new tr({key:new ts("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),sS=sy.create({name:"tabindex",addProseMirrorPlugins(){return[new tr({key:new ts("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),sT=sy.create({name:"textDirection",addOptions:()=>({direction:void 0}),addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=oC(this.extensions);return[{types:e.filter(e=>"text"!==e.name).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{let t=e.getAttribute("dir");return t&&("ltr"===t||"rtl"===t||"auto"===t)?t:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new tr({key:new ts("textDirection"),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}}),sj=class e{constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return null!=(e=this.actualDepth)?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let 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 ${this.name} at ${this.pos}`);t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+ +!this.node.isText}get parent(){if(0===this.depth)return null;let t=this.resolvedPos.start(this.resolvedPos.depth-1);return new e(this.resolvedPos.doc.resolve(t),this.editor)}get before(){let 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)}get after(){let 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)}get children(){let t=[];return this.node.content.forEach((n,r)=>{let i=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,s=n.isInline,a=this.pos+r+ +!o;if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;let l=this.resolvedPos.doc.resolve(a);if(!i&&!s&&l.depth<=this.depth)return;let u=new e(l,this.editor,i,i||s?n:null);i&&(u.actualDepth=this.depth+1),t.push(u)}),t}get firstChild(){return this.children[0]||null}get lastChild(){let e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e)if(Object.keys(t).length>0){let e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];if(e[i]!==t[i])break}}else n=r;r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||0===this.children.length)return r;let i=Object.keys(t);return this.children.forEach(o=>{(!n||!(r.length>0))&&(o.node.type.name===e&&i.every(e=>t[e]===o.node.attrs[e])&&r.push(o),n&&r.length>0||(r=r.concat(o.querySelectorAll(e,t,n))))}),r}setAttribute(e){let{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}},sN=`.ProseMirror { 1558 position: relative; 1559} 1560 1561.ProseMirror { 1562 word-wrap: break-word; 1563 white-space: pre-wrap; 1564 white-space: break-spaces; 1565 -webkit-font-variant-ligatures: none; 1566 font-variant-ligatures: none; 1567 font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ 1568} 1569 1570.ProseMirror [contenteditable="false"] { 1571 white-space: normal; 1572} 1573 1574.ProseMirror [contenteditable="false"] [contenteditable="true"] { 1575 white-space: pre-wrap; 1576} 1577 1578.ProseMirror pre { 1579 white-space: pre-wrap; 1580} 1581 1582img.ProseMirror-separator { 1583 display: inline !important; 1584 border: none !important; 1585 margin: 0 !important; 1586 width: 0 !important; 1587 height: 0 !important; 1588} 1589 1590.ProseMirror-gapcursor { 1591 display: none; 1592 pointer-events: none; 1593 position: absolute; 1594 margin: 0; 1595} 1596 1597.ProseMirror-gapcursor:after {
1598 content: ""; 1599 display: block; 1600 position: absolute; 1601 top: -2px; 1602 width: 20px; 1603 border-top: 1px solid black; 1604 animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; 1605} 1606 1607@keyframes ProseMirror-cursor-blink { 1608 to { 1609 visibility: hidden; 1610 } 1611} 1612 1613.ProseMirror-hideselection *::selection { 1614 background: transparent; 1615} 1616 1617.ProseMirror-hideselection *::-moz-selection { 1618 background: transparent; 1619} 1620 1621.ProseMirror-hideselection * { 1622 caret-color: transparent; 1623} 1624 1625.ProseMirror-focused .ProseMirror-gapcursor { 1626 display: block; 1627}`,sO=class extends sl{constructor(e={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.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:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:oG,createMappablePosition:oK},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n)),this.on("paste",({event:e,slice:t})=>this.options.onPaste(e,t)),this.on("delete",this.options.onDelete);let t=this.createDoc(),n=iq(t,this.options.autofocus);this.editorState=tn.create({doc:t,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(e){if("undefined"==typeof document)throw 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(()=>{this.isDestroyed||(!1!==this.options.autofocus&&null!==this.options.autofocus&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){let 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(`.${this.className}`).length)try{"function"==typeof this.css.remove?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&"undefined"!=typeof document&&(this.css=function(e,t,n){let r=document.querySelector("style[data-tiptap-style]");if(null!==r)return r;let i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}(sN,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.editorView&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}
1627),t&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if("state"===t)return this.editorState;if(t in e)return Reflect.get(e,t);throw Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){let n=ow(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;let t=this.state.plugins,n=t;if([].concat(e).forEach(e=>{let t="string"==typeof e?`${e}$`:e.key;n=n.filter(e=>!e.key.startsWith(t))}),t.length===n.length)return;let r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;let n=[...this.options.enableCoreExtensions?[sw,sv.configure({blockSeparator:null==(t=null==(e=this.options.coreExtensionOptions)?void 0:e.clipboardTextSerializer)?void 0:t.blockSeparator}),sb,sC,sE,sS,s_,sA,sx,sT.configure({direction:this.options.textDirection})].filter(e=>"object"!=typeof this.options.enableCoreExtensions||!1!==this.options.enableCoreExtensions[e.name]):[],...this.options.extensions].filter(e=>["extension","node","mark"].includes(null==e?void 0:e.type));this.extensionManager=new sg(n,this)}createCommandManager(){this.commandManager=new ig({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=op(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(t.message))throw t;this.emit("contentError",{editor:this,error:t,disableCollaboration:()=>{"collaboration"in this.storage&&"object"==typeof this.storage.collaboration&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>"collaboration"!==e.name),this.createExtensionManager()}}),e=op(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}createView(e){let{editorProps:t,enableExtensionDispatchTransaction:n}=this.options,r=t.dispatchTransaction||this.dispatchTransaction.bind(this),i=n?this.extensionManager.dispatchTransaction(r):r,o=t.transformPastedHTML,s=this.extensionManager.transformPastedHTML(o);this.editorView=new r4(e,{...t,attributes:{role:"textbox",...null==t?void 0:t.attributes},dispatchTransaction:i,transformPastedHTML:s,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});let a=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(a),this.prependClass(),this.injectCSS(),this.view.dom.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;let t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(e=>{var t;return null==(t=this.capturedTransaction)?void 0:t.step(e)});return}let{state:t,transactions:n}=this.state.applyTransaction(e),r=!this.state.selection.eq(t.selection),i=n.includes(e),o=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),!i)return;
1627this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:n.slice(1)}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});let s=n.findLast(e=>e.getMeta("focus")||e.getMeta("blur")),a=null==s?void 0:s.getMeta("focus"),l=null==s?void 0:s.getMeta("blur");a&&this.emit("focus",{editor:this,event:a.event,transaction:s}),l&&this.emit("blur",{editor:this,event:l.event,transaction:s}),e.getMeta("preventUpdate")||!n.some(e=>e.docChanged)||o.doc.eq(t.doc)||this.emit("update",{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return oR(this.state,e)}isActive(e,t){let n="string"==typeof e?e:null,r="string"==typeof e?t:e;return function(e,t,n={}){if(!t)return i6(e,null,n)||oq(e,null,n);let r=on(t,e.schema);return"node"===r?i6(e,t,n):"mark"===r&&oq(e,t,n)}(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return o_(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t="\n\n",textSerializers:n={}}=e||{};return function(e,t){let n={from:0,to:e.content.size};return oM(e,n,t)}(this.state.doc,{blockSeparator:t,textSerializers:{...oL(this.schema),...n}})}get isEmpty(){return oU(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var e,t;return null==(t=null==(e=this.editorView)?void 0:e.isDestroyed)||t}$node(e,t){var n;return(null==(n=this.$doc)?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return(null==(n=this.$doc)?void 0:n.querySelectorAll(e,t))||null}$pos(e){return new sj(this.state.doc.resolve(e),this)}get $doc(){return this.$pos(0)}};function sI(e){return new su({find:e.find,handler:({state:t,range:n,match:r})=>{let i=ok(e.getAttributes,void 0,r);if(!1===i||null===i)return null;let{tr:o}=t,s=r[r.length-1],a=r[0];if(s){let r=a.search(/\S/),l=n.from+a.indexOf(s),u=l+s.length;if(oF(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>l).length)return null;u<n.to&&o.delete(u,n.to),l>n.from&&o.delete(n.from+r,l);let c=n.from+r+s.length;o.addMark(n.from+r,c,e.type.create(i||{})),o.removeStoredMark(e.type)}},undoable:e.undoable})}function sD(e){return new su({find:e.find,handler:({state:t,range:n,match:r})=>{let i=ok(e.getAttributes,void 0,r)||{},{tr:o}=t,s=n.from,a=n.to,l=e.type.create(i);if(r[1]){let e=s+r[0].lastIndexOf(r[1]);e>a?e=a:a=e+r[1].length;let t=r[0][r[0].length-1];o.insertText(t,s+r[0].length-1),o.replaceWith(e,a,l)}else if(r[0]){let t=e.type.isInline?s:s-1;o.insert(t,e.type.create(i)).delete(o.mapping.map(s),o.mapping.map(a))}o.scrollIntoView()},undoable:e.undoable})}function sM(e){return new su({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),o=ok(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,o)},undoable:e.undoable})}function sL(e){return new su({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let o=ok(e.getAttributes,void 0,r)||{},s=t.tr.delete(n.from,n.to),a=s.doc.resolve(n.from).blockRange(),l=a&&eA(a,e.type,o);if(!l)return null;if(s.wrap(a,l),e.keepMarks&&e.editor){let{selection:n,storedMarks:r}=t,{splittableMarks:i}=e.editor.extensionManager,o=r||n.$to.parentOffset&&n.$from.marks();if(o){let e=o.filter(e=>i.includes(e.type.name));s.ensureMarks(e)}}if(e.keepAttributes){let t="bulletList"===e.type.name||"orderedList"===e.type.name?"listItem":"taskList";i().updateAttributes(t,o).run()}let u=s.doc.resolve(n.from-1).nodeBefore;u&&u.type===e.type&&eO(s.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,u))&&s.join(n.from-1)},undoable:e.undoable})}var sR=class{constructor(e){var t,n,r,i,o,s;this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=e=>{if(!this.isResizing||!this.activeHandle)return;let t=e.clientX-this.startX,n=e.clientY-this.startY;this.handleResize(t,n)},this.handleTouchMove=e=>{if(!this.isResizing||!this.activeHandle)return;let t=e.touches[0];if(!t)return;let n=t.clientX-this.startX,r=t.clientY-this.startY;this.handleResize(n,r)},this.handleMouseUp=()=>
1627{if(!this.isResizing)return;let e=this.element.offsetWidth,t=this.element.offsetHeight;this.onCommit(e,t),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)},this.handleKeyDown=e=>{"Shift"===e.key&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=e=>{"Shift"===e.key&&(this.isShiftKeyPressed=!1)},this.node=e.node,this.editor=e.editor,this.element=e.element,this.contentElement=e.contentElement,this.getPos=e.getPos,this.onResize=e.onResize,this.onCommit=e.onCommit,this.onUpdate=e.onUpdate,(null==(t=e.options)?void 0:t.min)&&(this.minSize={...this.minSize,...e.options.min}),(null==(n=e.options)?void 0:n.max)&&(this.maxSize=e.options.max),(null==(r=null==e?void 0:e.options)?void 0:r.directions)&&(this.directions=e.options.directions),(null==(i=e.options)?void 0:i.preserveAspectRatio)&&(this.preserveAspectRatio=e.options.preserveAspectRatio),(null==(o=e.options)?void 0:o.className)&&(this.classNames={container:e.options.className.container||"",wrapper:e.options.className.wrapper||"",handle:e.options.className.handle||"",resizing:e.options.className.resizing||""}),(null==(s=e.options)?void 0:s.createCustomHandle)&&(this.createCustomHandle=e.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){var e;return null!=(e=this.contentElement)?e:null}handleEditorUpdate(){let e=this.editor.isEditable;e!==this.lastEditableState&&(this.lastEditableState=e,e?e&&0===this.handleMap.size&&this.attachHandles():this.removeHandles())}update(e,t,n){return e.type===this.node.type&&(this.node=e,!this.onUpdate||this.onUpdate(e,t,n))}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){let e=document.createElement("div");return e.dataset.resizeContainer="",e.dataset.node=this.node.type.name,e.style.display=this.node.type.isInline?"inline-flex":"flex",this.classNames.container&&(e.className=this.classNames.container),e.appendChild(this.wrapper),e}createWrapper(){let e=document.createElement("div");return e.style.position="relative",e.style.display="block",e.dataset.resizeWrapper="",this.classNames.wrapper&&(e.className=this.classNames.wrapper),e.appendChild(this.element),e}createHandle(e){let t=document.createElement("div");return t.dataset.resizeHandle=e,t.style.position="absolute",this.classNames.handle&&(t.className=this.classNames.handle),t}positionHandle(e,t){let n=t.includes("top"),r=t.includes("bottom"),i=t.includes("left"),o=t.includes("right");n&&(e.style.top="0"),r&&(e.style.bottom="0"),i&&(e.style.left="0"),o&&(e.style.right="0"),("top"===t||"bottom"===t)&&(e.style.left="0",e.style.right="0"),("left"===t||"right"===t)&&(e.style.top="0",e.style.bottom="0")}attachHandles(){this.directions.forEach(e=>{let t;(t=this.createCustomHandle?this.createCustomHandle(e):this.createHandle(e))instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${e}") did not return an HTMLElement. Falling back to default handle.`),t=this.createHandle(e)),this.createCustomHandle||this.positionHandle(t,e),t.addEventListener("mousedown",t=>this.handleResizeStart(t,e)),t.addEventListener("touchstart",t=>this.handleResizeStart(t,e)),this.handleMap.set(e,t),this.wrapper.appendChild(t)})}
1627removeHandles(){this.handleMap.forEach(e=>e.remove()),this.handleMap.clear()}applyInitialSize(){let e=this.node.attrs.width,t=this.node.attrs.height;e?(this.element.style.width=`${e}px`,this.initialWidth=e):this.initialWidth=this.element.offsetWidth,t?(this.element.style.height=`${t}px`,this.initialHeight=t):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(e,t){e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.activeHandle=t,"touches"in e?(this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY):(this.startX=e.clientX,this.startY=e.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}handleResize(e,t){if(!this.activeHandle)return;let n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:r,height:i}=this.calculateNewDimensions(this.activeHandle,e,t),o=this.applyConstraints(r,i,n);this.element.style.width=`${o.width}px`,this.element.style.height=`${o.height}px`,this.onResize&&this.onResize(o.width,o.height)}calculateNewDimensions(e,t,n){let r=this.startWidth,i=this.startHeight,o=e.includes("right"),s=e.includes("left"),a=e.includes("bottom"),l=e.includes("top");return(o?r=this.startWidth+t:s&&(r=this.startWidth-t),a?i=this.startHeight+n:l&&(i=this.startHeight-n),("right"===e||"left"===e)&&(r=this.startWidth+(o?t:-t)),("top"===e||"bottom"===e)&&(i=this.startHeight+(a?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed)?this.applyAspectRatio(r,i,e):{width:r,height:i}}applyConstraints(e,t,n){var r,i,o,s;if(!n){let n=Math.max(this.minSize.width,e),o=Math.max(this.minSize.height,t);return(null==(r=this.maxSize)?void 0:r.width)&&(n=Math.min(this.maxSize.width,n)),(null==(i=this.maxSize)?void 0:i.height)&&(o=Math.min(this.maxSize.height,o)),{width:n,height:o}}let a=e,l=t;return a<this.minSize.width&&(l=(a=this.minSize.width)/this.aspectRatio),l<this.minSize.height&&(a=(l=this.minSize.height)*this.aspectRatio),(null==(o=this.maxSize)?void 0:o.width)&&a>this.maxSize.width&&(l=(a=this.maxSize.width)/this.aspectRatio),(null==(s=this.maxSize)?void 0:s.height)&&l>this.maxSize.height&&(a=(l=this.maxSize.height)*this.aspectRatio),{width:a,height:l}}applyAspectRatio(e,t,n){return"left"===n||"right"===n?{width:e,height:e/this.aspectRatio}:"top"===n||"bottom"===n?{width:t*this.aspectRatio,height:t}:{width:e,height:e/this.aspectRatio}}};function sP(e){if(!(null==e?void 0:e.trim()))return{};let t={},n=[],r=e.replace(/["']([^"']*)["']/g,e=>(n.push(e),`__QUOTED_${n.length-1}__`)),i=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);i&&(t.class=i.map(e=>e.trim().slice(1)).join(" "));let o=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);o&&(t.id=o[1]),Array.from(r.matchAll(/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g)).forEach(([,e,r])=>{var i;let o=n[parseInt((null==(i=r.match(/__QUOTED_(\d+)__/))?void 0:i[1])||"0",10)];o&&(t[e]=o.slice(1,-1))});let 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();return s&&s.split(/\s+/).filter(Boolean).forEach(e=>
1627{e.match(/^[a-zA-Z][\w-]*$/)&&(t[e]=!0)}),t}function sF(e){if(!e||0===Object.keys(e).length)return"";let t=[];return e.class&&String(e.class).split(/\s+/).filter(Boolean).forEach(e=>t.push(`.${e}`)),e.id&&t.push(`#${e.id}`),Object.entries(e).forEach(([e,n])=>{"class"!==e&&"id"!==e&&(!0===n?t.push(e):!1!==n&&null!=n&&t.push(`${e}="${String(n)}"`))}),t.join(" ")}function sB(e){let{nodeName:t,name:n,parseAttributes:r=sP,serializeAttributes:i=sF,defaultAttributes:o={},requiredAttributes:s=[],allowedAttributes:a}=e,l=n||t;return{parseMarkdown:(e,n)=>{let r={...o,...e.attributes};return n.createNode(t,r,[])},markdownTokenizer:{name:t,level:"block",start(e){var t;let n=RegExp(`^:::${l}(?:\\s|$)`,"m"),r=null==(t=e.match(n))?void 0:t.index;return void 0!==r?r:-1},tokenize(e,n,i){let o=RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),a=e.match(o);if(!a)return;let u=r(a[1]||"");if(!s.find(e=>!(e in u)))return{type:t,raw:a[0],attributes:u}}},renderMarkdown:e=>{let t=i((e=>{if(!a)return e;let t={};return a.forEach(n=>{n in e&&(t[n]=e[n])}),t})(e.attrs||{})),n=t?` {${t}}`:"";return`:::${l}${n} :::`}}}function s$(e){let{nodeName:t,name:n,getContent:r,parseAttributes:i=sP,serializeAttributes:o=sF,defaultAttributes:s={},content:a="block",allowedAttributes:l}=e,u=n||t;return{parseMarkdown:(e,n)=>{let i;if(r){let t=r(e);i="string"==typeof t?[{type:"text",text:t}]:t}else i="block"===a?n.parseChildren(e.tokens||[]):n.parseInline(e.tokens||[]);let o={...s,...e.attributes};return n.createNode(t,o,i)},markdownTokenizer:{name:t,level:"block",start(e){var t;let n=RegExp(`^:::${u}`,"m"),r=null==(t=e.match(n))?void 0:t.index;return void 0!==r?r:-1},tokenize(e,n,r){var o;let s=RegExp(`^:::${u}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),l=e.match(s);if(!l)return;let[c,d=""]=l,h=i(d),p=1,f=c.length,m="",g=/^:::([\w-]*)(\s.*)?/gm,y=e.slice(f);for(g.lastIndex=0;;){let n=g.exec(y);if(null===n)break;let i=n.index,s=n[1];if(null==(o=n[2])||!o.endsWith(":::")){if(s)p+=1;else if(0==(p-=1)){let o=y.slice(0,i);m=o.trim();let s=e.slice(0,f+i+n[0].length),l=[];if(m)if("block"===a)for((l=r.blockTokens(o)).forEach(e=>{e.text&&(!e.tokens||0===e.tokens.length)&&(e.tokens=r.inlineTokens(e.text))});l.length>0;){let e=l[l.length-1];if("paragraph"!==e.type||e.text&&""!==e.text.trim())break;l.pop()}else l=r.inlineTokens(m);return{type:t,raw:s,attributes:h,content:m,tokens:l}}}}}},renderMarkdown:(e,t)=>{let n=o((e=>{if(!l)return e;let t={};return l.forEach(n=>{n in e&&(t[n]=e[n])}),t})(e.attrs||{})),r=n?` {${n}}`:"",i=t.renderChildren(e.content||[],"\n\n");return`:::${u}${r} 1628 1629${i} 1630 1631:::`}}}function sq(e){if(!e.trim())return{};let t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=n.exec(e);for(;null!==r;){let[,i,o,s]=r;t[i]=o||s,r=n.exec(e)}return t}function sV(e){return Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${e}="${t}"`).join(" ")}function sz(e){let{nodeName:t,name:n,getContent:r,parseAttributes:i=sq,serializeAttributes:o=sV,defaultAttributes:s={},selfClosing:a=!1,allowedAttributes:l}=e,u=n||t,c=u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(e,n)=>{let i={...s,...e.attributes};if(a)return n.createNode(t,i);let 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(e){let t=a?RegExp(`\\[${c}\\s*[^\\]]*\\]`):RegExp(`\\[${c}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${c}\\]`),n=e.match(t),r=null==n?void 0:n.index;return void 0!==r?r:-1},tokenize(e,n,r){let o=a?RegExp(`^\\[${c}\\s*([^\\]]*)\\]`):RegExp(`^\\[${c}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${c}\\]`),s=e.match(o);if(!s)return;let l="",u="";if(a){let[,e]=s;u=e}else{let[,e,t]=s;u=e,l=t||""}let d=i(u.trim());return{type:t,raw:s[0],content:l.trim(),attributes:d}}},renderMarkdown:e=>{let t="";r?t=r(e):e.content&&e.content.length>0&&(t=e.content.filter(e=>"text"===e.type).map(e=>e.text).join(""));let n=o((e=>{if(!l)return e;let t={};return l.forEach(n=>{let r="string"==typeof n?n:n.name,i="string"==typeof n?void 0:n.skipIfDefault;if(r in e){let n=e[r];if(void 0!==i&&n===i)return;t[r]=n}}),t})(e.attrs||{})),i=n?` ${n}`:"";return a?`[${u}${i}]`:`[${u}${i}]${t}[/${u}]`}}
1631}function sU(e,t,n){var r,i,o,s;let a=e.split("\n"),l=[],u="",c=0,d=t.baseIndentSize||2;for(;c<a.length;){let e,h=a[c],p=h.match(t.itemPattern);if(!p)if(l.length>0)break;else{if(""!==h.trim())return;c+=1,u=`${u}${h} 1632`;continue}let f=t.extractItemData(p),{indentLevel:m,mainContent:g}=f;u=`${u}${h} 1633`;let y=[g];for(c+=1;c<a.length;){let e=a[c];if(""===e.trim()){let t=a.slice(c+1).findIndex(e=>""!==e.trim());if(-1===t)break;if(((null==(i=null==(r=a[c+1+t].match(/^(\s*)/))?void 0:r[1])?void 0:i.length)||0)>m){y.push(e),u=`${u}${e} 1634`,c+=1;continue}break}if(((null==(s=null==(o=e.match(/^(\s*)/))?void 0:o[1])?void 0:s.length)||0)>m)y.push(e),u=`${u}${e} 1635`,c+=1;else break}let v=y.slice(1);if(v.length>0){let r=v.map(e=>e.slice(m+d)).join("\n");r.trim()&&(e=t.customNestedParser?t.customNestedParser(r):n.blockTokens(r))}let b=t.createToken(f,e);l.push(b)}if(0!==l.length)return{items:l,raw:u}}function sH(e,t,n,r){if(!e||!Array.isArray(e.content))return"";let i="function"==typeof n?n(r):n,[o,...s]=e.content,a=t.renderChildren([o]),l=`${i}${a}`;return s&&s.length>0&&s.forEach((e,n)=>{var r,i;let o=null!=(i=null==(r=t.renderChild)?void 0:r.call(t,e,n+1))?i:t.renderChildren([e]);if(null!=o){let n=o.split("\n").map(e=>e?t.indent(e):t.indent("")).join("\n");l+="paragraph"===e.type?` 1636 1637${n}`:` 1638${n}`}}),l}ip({},{createAtomBlockMarkdownSpec:()=>sB,createBlockMarkdownSpec:()=>s$,createInlineMarkdownSpec:()=>sz,parseAttributes:()=>sP,parseIndentedBlocks:()=>sU,renderNestedMarkdownContent:()=>sH,serializeAttributes:()=>sF});var sW=class e extends sh{constructor(){super(...arguments),this.type="node"}static create(t={}){return new e("function"==typeof t?t():t)}configure(e){return super.configure(e)}extend(e){let t="function"==typeof e?e():e;return super.extend(t)}};function sG(e){return new sf({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let o=ok(e.getAttributes,void 0,r,i);if(!1===o||null===o)return null;let{tr:s}=t,a=r[r.length-1],l=r[0],u=n.to;if(a){let i=l.search(/\S/),c=n.from+l.indexOf(a),d=c+a.length;if(oF(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>c).length)return null;d<n.to&&s.delete(d,n.to),c>n.from&&s.delete(n.from+i,c),u=n.from+i+a.length,s.addMark(n.from+i,u,e.type.create(o||{})),void 0!==r.index&&void 0!==r.input&&r.index+r[0].length>=r.input.length||s.removeStoredMark(e.type)}}})}let{getOwnPropertyNames:sK,getOwnPropertySymbols:sJ}=Object,{hasOwnProperty:sQ}=Object.prototype;function sY(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function sX(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);let{cache:i}=r,o=i.get(t),s=i.get(n);if(o&&s)return o===n&&s===t;i.set(t,n),i.set(n,t);let a=e(t,n,r);return i.delete(t),i.delete(n),a}}function sZ(e){return sK(e).concat(sJ(e))}let s0=Object.hasOwn||((e,t)=>sQ.call(e,t));function s1(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let{getOwnPropertyDescriptor:s2,keys:s5}=Object;function s3(e,t){return e.byteLength===t.byteLength&&as(new Uint8Array(e),new Uint8Array(t))}function s4(e,t,n){let 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 s8(e,t){return e.byteLength===t.byteLength&&as(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function s6(e,t){return s1(e.getTime(),t.getTime())}function s7(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function s9(e,t){return e===t}function ae(e,t,n){let r,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let s=Array(o),a=e.entries(),l=0;for(;(r=a.next())&&!r.done;){let o=t.entries(),a=!1,u=0;for(;(i=o.next())&&!i.done;){if(s[u]){u++;continue}let o=r.value,c=i.value;if(n.equals(o[0],c[0],l,u,e,t,n)&&n.equals(o[1],c[1],o[0],c[0],e,t,n)){a=s[u]=!0;break}u++}if(!a)return!1;l++}return!0}function at(e,t,n){let r=s5(e),i=r.length;if(s5(t).length!==i)return!1;for(;i-- >0;)if(!al(e,t,n,r[i]))return!1;return!0}function an(e,t,n){let r,i,o,s=sZ(e),a=s.length;if(sZ(t).length!==a)return!1;for(;a-- >0;)if(!al(e,t,n,r=s[a])||(i=s2(e,r),o=s2(t,r),(i||o)&&(!i||!o||i.c
1638onfigurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function ar(e,t){return s1(e.valueOf(),t.valueOf())}function ai(e,t){return e.source===t.source&&e.flags===t.flags}function ao(e,t,n){let r,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let s=Array(o),a=e.values();for(;(r=a.next())&&!r.done;){let o=t.values(),a=!1,l=0;for(;(i=o.next())&&!i.done;){if(!s[l]&&n.equals(r.value,i.value,r.value,i.value,e,t,n)){a=s[l]=!0;break}l++}if(!a)return!1}return!0}function as(e,t){let 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 aa(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 al(e,t,n,r){return("_owner"===r||"__o"===r||"__v"===r)&&(!!e.$$typeof||!!t.$$typeof)||s0(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}let au={"[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},ac=Object.prototype.toString,ad=ah();function ah(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=function({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:s,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:d,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:f}){return function(m,g,y){if(m===g)return!0;if(null==m||null==g)return!1;let v=typeof m;if(v!==typeof g)return!1;if("object"!==v)return"number"===v?a(m,g,y):"function"===v&&o(m,g,y);let b=m.constructor;if(b!==g.constructor)return!1;if(b===Object)return l(m,g,y);if(Array.isArray(m))return t(m,g,y);if(b===Date)return r(m,g,y);if(b===RegExp)return c(m,g,y);if(b===Map)return s(m,g,y);if(b===Set)return d(m,g,y);let x=ac.call(m);if("[object Date]"===x)return r(m,g,y);if("[object RegExp]"===x)return c(m,g,y);if("[object Map]"===x)return s(m,g,y);if("[object Set]"===x)return d(m,g,y);if("[object Object]"===x)return"function"!=typeof m.then&&"function"!=typeof g.then&&l(m,g,y);if("[object URL]"===x)return p(m,g,y);if("[object Error]"===x)return i(m,g,y);if("[object Arguments]"===x)return l(m,g,y);if(au[x])return h(m,g,y);if("[object ArrayBuffer]"===x)return e(m,g,y);if("[object DataView]"===x)return n(m,g,y);if("[object Boolean]"===x||"[object Number]"===x||"[object String]"===x)return u(m,g,y);if(f){let e=f[x];if(!e){let t=null!=m?m[Symbol.toStringTag]:void 0;t&&(e=f[t])}if(e)return e(m,g,y)}return!1}}(function({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:s3,areArraysEqual:n?an:s4,areDataViewsEqual:s8,areDatesEqual:s6,areErrorsEqual:s7,areFunctionsEqual:s9,areMapsEqual:n?sY(ae,an):ae,areNumbersEqual:s1,areObjectsEqual:n?an:at,arePrimitiveWrappersEqual:ar,areRegExpsEqual:ai,areSetsEqual:n?sY(ao,an):ao,areTypedArraysEqual:n?sY(as,an):as,areUrlsEqual:aa,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=sX(r.areArraysEqual),t=sX(r.areMapsEqual),n=sX(r.areObjectsEqual),i=sX(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:i})}return r}(e)),s=n?n(o):function(e,t,n,r,i,s,a){return o(e,t,a)};return function({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(o,s){let{cache:a=e?new WeakMap:void 0,meta:l}=n();return t(o,s,{cache:a,equals:r,meta:l,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let o={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,o)}}({circular:t,comparator:o,createState:r,equals:s,strict:i})}ah({strict:!0}),ah({circular:!0}),ah({circular:!0,strict:!0}),ah({createInternalComparator:()=>s1}),ah({strict:!0,createInternalComparator:()=>s1}),ah({circular:!0,createInternalComparator:()=>s1}),ah({circular:!0,createInternalComparator:()=>s1,strict:!0});var ap=n(45712),af=({contentComponent:e})=>{let t=(0,h.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,o.jsx)(o.Fragment,{children:Object.values(t)})},am=class extends s.Component{constructor(e){super(e),this.editorContentRef=s.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;let t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){if(t.contentComponent)return;let e=this.editorContentRef.current;e.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:e}),t.contentComponent=function(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>
1638t,setRenderer(n,r){t={...t,[n]:d.createPortal(r.reactElement,r.element,n)},e.forEach(e=>e())},removeRenderer(n){let r={...t};delete r[n],t=r,e.forEach(e=>e())}}}(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;let 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;let n=document.createElement("div");n.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:n})}catch{}}}render(){let{editor:e,innerRef:t,...n}=this.props;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:((...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})})(t,this.editorContentRef),...n}),(null==e?void 0:e.contentComponent)&&(0,o.jsx)(af,{contentComponent:e.contentComponent})]})}},ag=(0,s.forwardRef)((e,t)=>{let n=s.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return s.createElement(am,{key:n,innerRef:t,...e})}),ay=s.memo(ag),av="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,ab=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,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)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}},ax="undefined"==typeof window,a_=ax||!!("undefined"!=typeof window&&window.next),aw=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=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)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender)return ax||a_?null:this.createEditor();return this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null}createEditor(){return new sO({...this.options.current,onBeforeCreate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onBeforeCreate)?void 0:n.call(t,...e)},onBlur:(...e)=>{var t,n;return null==(n=(t=this.options.current).onBlur)?void 0:n.call(t,...e)},onCreate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onCreate)?void 0:n.call(t,...e)},onDestroy:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDestroy)?void 0:n.call(t,...e)},onFocus:(...e)=>{var t,n;return null==(n=(t=this.options.current).onFocus)?void 0:n.call(t,...e)},onSelectionUpdate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onSelectionUpdate)?void 0:n.call(t,...e)},onTransaction:(...e)=>{var t,n;return null==(n=(t=this.options.current).onTransaction)?void 0:n.call(t,...e)},onUpdate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onUpdate)?void 0:n.call(t,...e)},onContentError:(...e)=>{var t,n;return null==(n=(t=this.options.current).onContentError)?void 0:n.call(t,...e)},onDrop:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDrop)?void 0:n.call(t,...e)},onPaste:(...e)=>{var t,n;return null==(n=(t=this.options.current).onPaste)?void 0:n.call(t,...e)},onDelete:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDelete)?void 0:n.call(t,...e)}})}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>!!["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((e,n)=>{var r;return e===(null==(r=t.extensions)?void 0:r[n])}):e[n]===t[n]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){
1638if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}},ak=(0,s.createContext)({editor:null});ak.Consumer;var aC=(0,s.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}});s.forwardRef((e,t)=>{let{onDragStart:n}=(0,s.useContext)(aC),r=e.as||"div";return(0,o.jsx)(r,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})}),s.createContext({markViewContentRef:()=>{}});var aE=(0,s.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});function aA({editor:e,instance:t,children:n}){let r=null!=e?e:t;if(!r)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let i=(0,s.useMemo)(()=>({editor:r}),[r]),a=(0,s.useMemo)(()=>({editor:r}),[r]);return(0,o.jsx)(ak.Provider,{value:a,children:(0,o.jsx)(aE.Provider,{value:i,children:n})})}function aS({...e}){let{editor:t}=(0,s.useContext)(aE);return(0,o.jsx)(ay,{editor:t,...e})}aE.displayName="TiptapContext",aA.displayName="Tiptap",aS.displayName="Tiptap.Content",Object.assign(aA,{Content:aS});var aT=(e,t)=>{if("slot"===e)return 0;if(e instanceof Function)return e(t);let{children:n,...r}=null!=t?t:{};if("svg"===e)throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,r,n]},aj=/^\s*>\s$/,aN=sW.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return aT("blockquote",{...oS(this.options.HTMLAttributes,e),children:aT("slot",{})})},parseMarkdown:(e,t)=>{var n;let r=null!=(n=t.parseBlockChildren)?n:t.parseChildren;return t.createNode("blockquote",void 0,r(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return"";let n=[];return e.content.forEach((e,r)=>{var i,o;let s=(null!=(o=null==(i=t.renderChild)?void 0:i.call(t,e,r))?o:t.renderChildren([e])).split("\n").map(e=>""===e.trim()?">":`> ${e}`);n.push(s.join("\n"))}),n.join(` 1639> 1640`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}}
1640,addInputRules(){return[sL({find:aj,type:this.type})]}}),aO=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,aI=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,aD=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,aM=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,aL=sp.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return aT("strong",{...oS(this.options.HTMLAttributes,e),children:aT("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[sI({find:aO,type:this.type}
1640),sI({find:aD,type:this.type})]},addPasteRules(){return[sG({find:aI,type:this.type}),sG({find:aM,type:this.type})]}}),aR=/(^|[^`])`([^`]+)`(?!`)$/,aP=/(^|[^`])`([^`]+)`(?!`)/g,aF=sp.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",oS(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[sI({find:aR,type:this.type})]},addPasteRules(){return[sG({find:aP,type:this.type})]}}),aB=/^```([a-z]+)?[\s\n]$/,a$=/^~~~([a-z]+)?[\s\n]$/,aq=sW.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options;if(!n)return null;let r=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",oS(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var n,r;return(null==(n=e.raw)?void 0:n.startsWith("```"))===!1&&(null==(r=e.raw)?void 0:r.startsWith("~~~"))===!1&&"indented"!==e.codeBlockStyle?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var n;let r=(null==(n=e.attrs)?void 0:n.language)||"";return e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join("\n"):`\`\`\`${r} 1641 1642\`\`\``},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!n||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let n=null!=(t=this.options.tabSize)?t:4,{state:r}=e,{selection:i}=r,{$from:o,empty:s}=i;if(o.parent.type!==this.type)return!1;let a=" ".repeat(n);return s?e.commands.insertContent(a):e.commands.command(({tr:e})=>{let{from:t,to:n}=i,o=r.doc.textBetween(t,n,"\n","\n").split("\n").map(e=>a+e).join("\n");return e.replaceWith(t,n,r.schema.text(o)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let n=null!=(t=this.options.tabSize)?t:4,{state:r}=e,{selection:i}=r,{$from:o,empty:s}=i;return o.parent.type===this.type&&(s?e.commands.command(({tr:e})=>{var t;let{pos:i}=o,s=o.start(),a=o.end(),l=r.doc.textBetween(s,a,"\n","\n").split("\n"),u=0,c=0,d=i-s;for(let e=0;e<l.length;e+=1){if(c+l[e].length>=d){u=e;break}c+=l[e].length+1}let h=Math.min(((null==(t=l[u].match(/^ */))?void 0:t[0])||"").length,n);if(0===h)return!0;let p=s;for(let e=0;e<u;e+=1)p+=l[e].length+1;return e.delete(p,p+h),i-p<=h&&e.setSelection(eZ.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:t,to:o}=i,s=r.doc.textBetween(t,o,"\n","\n").split("\n").map(e=>{var t;let r=Math.min(((null==(t=e.match(/^ */))?void 0:t[0])||"").length,n);return e.slice(r)}).join("\n");return e.replaceWith(t,o,r.schema.text(s)),!0}))},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let o=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith("\n\n");return!!o&&!!s&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>
1642{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let s=i.after();return void 0!==s&&(r.nodeAt(s)?e.commands.command(({tr:e})=>(e.setSelection(eJ.near(r.resolve(s))),!0)):e.commands.exitCode())}}},addInputRules(){return[sM({find:aB,type:this.type,getAttributes:e=>({language:e[1]})}),sM({find:a$,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new tr({key:new ts("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=null==i?void 0:i.mode;if(!n||!o)return!1;let{tr:s,schema:a}=e.state,l=a.text(n.replace(/\r\n?/g,"\n"));return s.replaceSelectionWith(this.type.create({language:o},l)),s.selection.$from.parent.type!==this.type&&s.setSelection(eZ.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}}),aV=sW.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n\n"):""}),az=sW.create({name:"hardBreak",markdownTokenName:"br",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",oS(this.options.HTMLAttributes,e)]},renderText:()=>"\n",renderMarkdown:()=>` 1643`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:o}=this.options,{splittableMarks:s}=r.extensionManager,a=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&a&&o){let t=a.filter(e=>s.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),aU=sW.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let n=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${n}`,oS(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var n;let r=(null==(n=e.attrs)?void 0:n.level)?parseInt(e.attrs.level,10):1,i="#".repeat(r);return e.content?`${i} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,...{[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}}),{})},addInputRules(){return this.options.levels.map(e=>sM({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
1643)\\s$`),type:this.type,getAttributes:{level:e}}))}}),aH=sW.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{},nextNodeType:"paragraph"}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",oS(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!function(e,t){let{selection:n}=e,{$from:r}=n;if(n instanceof e1){let e=r.index();return r.parent.canReplaceWith(e,e+1,t)}let i=r.depth;for(;i>=0;){let e=r.index(i);if(r.node(i).contentMatchAt(e).matchType(t))return!0;i-=1}return!1}(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:r}=n,i=e();return oH(n)?i.insertContentAt(r.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:e,tr:t,dispatch:n})=>{if(n){let{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(eZ.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(e1.create(t.doc,n.pos)):t.setSelection(eZ.create(t.doc,n.pos));else{let i=e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType,o=null==i?void 0:i.create();o&&(t.insert(r,o),t.setSelection(eZ.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[sD({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.t
1643ype})]}}),aW=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,aG=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,aK=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,aJ=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,aQ=sp.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",oS(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[sI({find:aW,type:this.type}
1643),sI({find:aK,type:this.type})]},addPasteRules(){return[sG({find:aG,type:this.type}),sG({find:aJ,type:this.type})]}});let aY="numeric",aX="ascii",aZ="alpha",a0="asciinumeric",a1="alphanumeric",a2="domain",a5="emoji",a3="whitespace";function a4(e,t,n){for(let r in t[aY]&&(t[a0]=!0,t[a1]=!0),t[aX]&&(t[a0]=!0,t[aZ]=!0),t[a0]&&(t[a1]=!0),t[aZ]&&(t[a1]=!0),t[a1]&&(t[a2]=!0),t[a5]&&(t[a2]=!0),t){let t=(r in n||(n[r]=[]),n[r]);0>t.indexOf(e)&&t.push(e)}}function a8(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}a8.groups={},a8.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t<this.jr.length;t++){let n=this.jr[t][0],r=this.jr[t][1];if(r&&n.test(e))return r}return this.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){let i;return r=r||a8.groups,t&&t.j?i=t:(i=new a8(t),n&&r&&a4(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,o=e.length;if(!o)return i;for(let t=0;t<o-1;t++)i=i.tt(e[t]);return i.tt(e[o-1],t,n,r)},tt(e,t,n,r){if(r=r||a8.groups,t&&t.j)return this.j[e]=t,t;let i,o=this.go(e);return o?(Object.assign((i=new a8).j,o.j),i.jr.push.apply(i.jr,o.jr),i.jd=o.jd,i.t=o.t):i=new a8,t&&(r&&(i.t&&"string"==typeof i.t?a4(t,Object.assign(function(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(i.t,r),n),r):n&&a4(t,n,r)),i.t=t),this.j[e]=i,i}};let a6=(e,t,n,r,i)=>e.ta(t,n,r,i),a7=(e,t,n,r,i)=>e.tr(t,n,r,i),a9=(e,t,n,r,i)=>e.ts(t,n,r,i),le=(e,t,n,r,i)=>e.tt(t,n,r,i),lt="WORD",ln="UWORD",lr="ASCIINUMERICAL",li="ALPHANUMERICAL",lo="LOCALHOST",ls="UTLD",la="SCHEME",ll="SLASH_SCHEME",lu="OPENBRACE",lc="CLOSEBRACE",ld="OPENBRACKET",lh="CLOSEBRACKET",lp="OPENPAREN",lf="CLOSEPAREN",lm="OPENANGLEBRACKET",lg="CLOSEANGLEBRACKET",ly="FULLWIDTHLEFTPAREN",lv="FULLWIDTHRIGHTPAREN",lb="LEFTCORNERBRACKET",lx="RIGHTCORNERBRACKET",l_="LEFTWHITECORNERBRACKET",lw="RIGHTWHITECORNERBRACKET",lk="FULLWIDTHLESSTHAN",lC="FULLWIDTHGREATERTHAN",lE="AMPERSAND",lA="APOSTROPHE",lS="ASTERISK",lT="BACKSLASH",lj="BACKTICK",lN="CARET",lO="COLON",lI="COMMA",lD="DOLLAR",lM="EQUALS",lL="EXCLAMATION",lR="HYPHEN",lP="PERCENT",lF="PIPE",lB="PLUS",l$="POUND",lq="QUERY",lV="QUOTE",lz="FULLWIDTHMIDDLEDOT",lU="SEMI",lH="SLASH",lW="TILDE",lG="UNDERSCORE",lK="EMOJI";var lJ=Object.freeze({__proto__:null,ALPHANUMERICAL:li,AMPERSAND:lE,APOSTROPHE:lA,ASCIINUMERICAL:lr,ASTERISK:lS,AT:"AT",BACKSLASH:lT,BACKTICK:lj,CARET:lN,CLOSEANGLEBRACKET:lg,CLOSEBRACE:lc,CLOSEBRACKET:lh,CLOSEPAREN:lf,COLON:lO,COMMA:lI,DOLLAR:lD,DOT:"DOT",EMOJI:lK,EQUALS:lM,EXCLAMATION:lL,FULLWIDTHGREATERTHAN:lC,FULLWIDTHLEFTPAREN:ly,FULLWIDTHLESSTHAN:lk,FULLWIDTHMIDDLEDOT:lz,FULLWIDTHRIGHTPAREN:lv,HYPHEN:lR,LEFTCORNERBRACKET:lb,LEFTWHITECORNERBRACKET:l_,LOCALHOST:lo,NL:"NL",NUM:"NUM",OPENANGLEBRACKET:lm,OPENBRACE:lu,OPENBRACKET:ld,OPENPAREN:lp,PERCENT:lP,PIPE:lF,PLUS:lB,POUND:l$,QUERY:lq,QUOTE:lV,RIGHTCORNERBRACKET:lx,RIGHTWHITECORNERBRACKET:lw,SCHEME:la,SEMI:lU,SLASH:lH,SLASH_SCHEME:ll,SYM:"SYM",TILDE:lW,TLD:"TLD",UNDERSCORE:lG,UTLD:ls,UWORD:ln,WORD:lt,WS:"WS"});let lQ=/[a-z]/,lY=/\p{L}/u,lX=/\p{Emoji}/u,lZ=/\d/,l0=/\s/,l1=null,l2=null;function l5(e,t){let n=function(e){let t=[],n=e.length,r=0;for(;r<n;){let i,o=e.charCodeAt(r),s=o<55296||o>56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],o=0,s=0;for(;s<r;){let a=e,l=null,u=0,c=null,d=-1,h=-1;for(;s<r&&(l=a.go(n[s]));)(a=l).accepts()?(d=0,h=0,c=a):d>=0&&(d+=n[s].length,h++),u+=n[s].length,o+=n[s].length,s++;o-=d,s-=h,u-=d,i.push({t:c.t,v:t.slice(o-u,o),s:o-u,e:o})}return i}function l3(e,t,n,r,i){let o,s=t.length;for(let n=0;n<s-1;n++){let s=t[n];e.j[s]?o=e.j[s]:((o=new a8(r)).jr=i.slice(),e.j[s]=o),e=o}return(o=new a8(n)).jr=i.slice(),e.j[t[s-1]]=o,o}function l4(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;"0123456789".indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}let l8={defaultProtocol:"http",events:null,format:l7,formatHref:l7,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function l6(e,t=null){let n=Object.assign({},l8);e&&(n=Object.assign(n,e instanceof l6?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}function l7(e){return e}function l9(e,t){this.t="token",this.v=e,this.tk=t}
1643function ue(e,t){class n extends l9{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}l6.prototype={o:l8,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){let r=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=n.t in i?i[n.t]:l8[e])&&r&&(i=i(t,n)):"function"==typeof i&&r&&(i=i(t,n.t,n))),i},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},l9.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"â¦":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=l8.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",t,this),r=e.get("tagName",t,this),i=this.toFormattedString(e),o={},s=e.get("className",t,this),a=e.get("target",t,this),l=e.get("rel",t,this),u=e.getObj("attributes",t,this),c=e.getObj("events",t,this);return o.href=n,s&&(o.class=s),a&&(o.target=a),l&&(o.rel=l),u&&Object.assign(o,u),{tagName:r,attributes:o,content:i,eventListeners:c}}};let ut=ue("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),un=ue("text"),ur=ue("nl"),ui=ue("url",{isLink:!0,toHref(e=l8.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==lo&&e[1].t===lO}}),uo=e=>new a8(e);function us(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}let ua="undefined"!=typeof console&&console&&console.warn||(()=>{}),ul={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function uu(e,t=!1){if(ul.initialized&&ua(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format. 16441. Must only contain digits, lowercase ASCII letters or "-" 16452. Cannot start or end with "-" 16463. "-" cannot repeat`);ul.customSchemes.push([e,t])}function uc(e){return ul.initialized||function(){ul.scanner=function(e=[]){let t={};a8.groups=t;let n=new a8;null==l1&&(l1=l4("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
1646ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==l2&&(l2=l4("ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
1646ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5راÙ
ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5Ù
غرب5Ù
ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2Ù
اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ
3Ù
صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4ÙÙ
راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å
«å¦2å
¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é
åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ
å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å
2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2")),le(n,"'",lA),le(n,"{",lu),le(n,"}",lc),le(n,"[",ld),le(n,"]",lh),le(n,"(",lp),le(n,")",lf),le(n,"<",lm),le(n,">",lg),le(n,"ï¼",ly),le(n,"ï¼",lv),le(n,"ã",lb),le(n,"ã",lx),le(n,"ã",l_),le(n,"ã",lw),le(n,"ï¼",lk),le(n,"ï¼",lC),le(n,"&",lE),le(n,"*",lS),le(n,"@","AT"),le(n,"`",lj),le(n,"^",lN),le(n,":",lO),le(n,",",lI),le(n,"$",lD),le(n,".","DOT"),le(n,"=",lM),le(n,"!",lL),le(n,"-",lR),le(n,"%",lP),le(n,"|",lF),le(n,"+",lB),le(n,"#",l$),le(n,"?",lq),le(n,'"',lV),le(n,"/",lH),le(n,";",lU),le(n,"~",lW),le(n,"_",lG),le(n,"\\",lT),le(n,"ã»",lz);let r=a7(n,lZ,"NUM",{[aY]:!0});a7(r,lZ,r);let i=a7(r,lQ,lr,{[a0]:!0}),o=a7(r,lY,li,{[a1]:!0}),s=a7(n,lQ,lt,{[aX]:!0});a7(s,lZ,i),a7(s,lQ,s),a7(i,lZ,i),a7(i,lQ,i);let a=a7(n,lY,ln,{[aZ]:!0});a7(a,lQ),a7(a,lZ,o),a7(a,lY,a),a7(o,lZ,o),a7(o,lQ),a7(o,lY,o);let l=le(n,"\n","NL",{[a3]:!0}),u=le(n,"\r","WS",{[a3]:!0}),c=a7(n,l0,"WS",{[a3]:!0});le(n,"",c),le(u,"\n",l),le(u,"",c),a7(u,l0,c),le(c,"\r"),le(c,"\n"),a7(c,l0,c),le(c,"",c);let d=a7(n,lX,lK,{[a5]:!0});le(d,"#"),a7(d,lX,d),le(d,"ï¸",d);let h=le(d,"â");le(h,"#"),a7(h,lX,d);let p=[[lQ,s],[lZ,i]],f=[[lQ,null],[lY,a],[lZ,o]];for(let e=0;e<l1.length;e++)l3(n,l1[e],"TLD",lt,p);for(let e=0;e<l2.length;e++)l3(n,l2[e],ls,ln,f);a4("TLD",{tld:!0,ascii:!0},t),a4(ls,{utld:!0,alpha:!0},t),l3(n,"file",la,lt,p),l3(n,"mailto",la,lt,p),l3(n,"http",ll,lt,p),l3(n,"https",ll,lt,p),l3(n,"ftp",ll,lt,p),l3(n,"ftps",ll,lt,p),a4(la,{scheme:!0,ascii:!0},t),a4(ll,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{scheme:!0}:{slashscheme:!0};r.indexOf("-")>=0?i[a2]=!0:lQ.test(r)?lZ.test(r)?i[a0]=!0:i[aX]=!0:i[aY]=!0,a9(n,r,r,i)}return a9(n,"localhost",lo,{ascii:!0}),n.jd=new a8("SYM"),{start:n,tokens:Object.assign({groups:t},lJ)}}(ul.customSchemes);for(let e=0;e<ul.tokenQueue.length;e++)ul.tokenQueue[e][1]({scanner:ul.scanner});ul.parser=function({groups:e}){let t=e.domain.concat([lE,lS,"AT",lT,lj,lN,lD,lM,lR,"NUM",lP,lF,lB,l$,lH,"SYM",lW,lG]),n=[lA,lO,lI,"DOT",lL,lP,lq,lV,lU,lm,lg,lu,lc,lh,ld,lp,lf,ly,lv,lb,lx,l_,lw,lk,lC],r=[lE,lA,lS,lT,lj,lN,lD,lM,lR,lu,lc,lP,lF,lB,l$,lq,lH,"SYM",lW,lG],i=uo(),o=le(i,lW);a6(o,r,o),a6(o,e.domain,o);let s=uo(),a=uo(),l=uo();a6(i,e.domain,s),a6(i,e.scheme,a),a6(i,e.slashscheme,l),a6(s,r,o),a6(s,e.domain,s);let u=le(s,"AT");le(o,"AT",u),le(a,"AT",u),le(l,"AT",u);let c=le(o,"DOT");a6(c,r,o),a6(c,e.domain,o);let d=uo();a6(u,e.domain,d),a6(d,e.domain,d);let h=le(d,"DOT");a6(h,e.domain,d);let p=uo(ut);a6(h,e.tld,p),a6(h,e.utld,p),le(u,lo,p);let f=le(d,lR);le(f,lR,f),a6(f,e.domain,d),a6(p,e.domain,d),le(p,"DOT",h),le(p,lR,f),a6(le(p,lO),e.numeric,ut);let m=le(s,lR),g=le(s,"DOT");le(m,lR,m),a6(m,e.domain,s),a6(g,r,o),a6(g,e.domain,s);let y=uo(ui);a6(g,e.tld,y),a6(g,e.utld,y),a6(y,e.domain,s),a6(y,r,o),le(y,"DOT",g),le(y,lR,m),le(y,"AT",u);let v=le(y,lO),b=uo(ui);a6(v,e.numeric,b);let x=uo(ui),_=uo();a6(x,t,x),a6(x,n,_),a6(_,t,x),a6(_,n,_),le(y,lH,x),le(b,lH,x);let w=le(a,lO),k=le(l,lO),C=le(k,lH),E=le(C,lH);a6(a,e.domain,s),le(a,"DOT",g),le(a,lR,m),a6(l,e.domain,s),le(l,"DOT",g),le(l,lR,m),a6(w,e.domain,x),le(w,lH,x),le(w,lq,x),a6(E,e.domain,x),a6(E,t,x),le(E,lH,x);let A=[[lu,lc],[ld,lh],[lp,lf],[lm,lg],[ly,lv],[lb,lx],[l_,lw],[lk,lC]];for(let e=0;e<A.length;e++){let[r,i]=A[e],o=le(x,r);le(_,r,o),le(o,i,x);let s=uo(ui);a6(o,t,s);let a=uo();a6(o,n),a6(s,t,s),a6(s,n,a),a6(a,t,s),a6(a,n,a),le(s,i,x),le(a,i,x)}return le(i,lo,y),le(i,"NL",ur),{start:i,tokens:lJ}}(ul.scanner.tokens);for(let e=0;e<ul.pluginQueue.length;e++)ul.pluginQueue[e][1]({scanner:ul.scanner,parser:ul.parser});ul.initialized=!0}(),function(e,t,n){let r=n.length,i=0,o=[],s=[];for(;i<r;){let a=e,l=null,u=null,c=0,d=null,h=-1;for(;i<r&&!(l=a.go(n[i].t));)s.push(n[i++]);for(;i<r&&(u=l||a.go(n[i].t));)l=null,(a=u).accepts()?(h=0,d=a):h>=0&&h++,i++,c++;if(h<0)(i-=c)<r&&(s.push(n[i]),i++);else{s.length>0&&(o.push(us(un,t,s)),s=[]),i-=h,c-=h;let e=d.t,r=n.slice(i-c,i);o.push(us(e,t,r))}}return s.length>0&&o.push(us(un,t,s)),o}(ul.parser.start,e,l5(ul.scanner.start,e))}function ud(e,t=null,n=null){if(t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new l6(n),i=uc(e),o=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&o.push(n.toFormattedObject(r))}return o}uc.scan=l5;var uh="[\0- \xa0áá â-\u2029âã]",up=new RegExp(uh),uf=RegExp(`${uh}$`),um=RegExp(uh,"g");function ug(e,t){let n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];
1646return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&n.push(t)}),!e||e.replace(um,"").match(RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var uy=sp.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){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(e=>{if("string"==typeof e)return void uu(e);uu(e.scheme,e.optionalSlashes)})},onDestroy(){a8.groups={},ul.scanner=null,ul.parser=null,ul.tokenQueue=[],ul.pluginQueue=[],ul.customSchemes=[],ul.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!ug(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let 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;let r=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!/^\d{1,3}(\.\d{1,3}){3}$/.test(r)&&!!/\./.test(r)}}),addAttributes(){return{href:{default:null,parseHTML:e=>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(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!t&&!!this.options.isAllowedUri(t,{defaultValidate:e=>!!ug(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!ug(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",oS(this.options.HTMLAttributes,e),0]:["a",oS(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var n,r,i,o;let s=null!=(r=null==(n=e.attrs)?void 0:n.href)?r:"",a=null!=(o=null==(i=e.attrs)?void 0:i.title)?o:"",l=t.renderChildren(e);return a?`[${l}](${s} "${a}")`:`[${l}](${s})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return!!this.options.isAllowedUri(n,{defaultValidate:e=>!!ug(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{let{href:n}=e||{};return(!n||!!this.options.isAllowedUri(n,{defaultValidate:e=>!!ug(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[sG({find:e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options,i=ud(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!ug(e,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t}
1646,type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){var e,t,n;let r=[],{protocols:i,defaultProtocol:o}=this.options;return this.options.autolink&&r.push((e={type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!ug(e,i),protocols:i,defaultProtocol:o}),shouldAutoLink:this.options.shouldAutoLink},new tr({key:new ts("autolink"),appendTransaction:(t,n,r)=>{let i=t.some(e=>e.docChanged)&&!n.doc.eq(r.doc),o=t.some(e=>e.getMeta("preventAutolink"));if(!i||o)return;let{tr:s}=r;if(oP(og(n.doc,[...t])).forEach(({newRange:t})=>{let n,i,o=function(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}(r.doc,t,e=>e.isTextblock);if(o.length>1)n=o[0],i=r.doc.textBetween(n.pos,n.pos+n.node.nodeSize,void 0," ");else if(o.length){let e=r.doc.textBetween(t.from,t.to," "," ");if(!uf.test(e))return;n=o[0],i=r.doc.textBetween(n.pos,t.to,void 0," ")}if(n&&i){let t=i.split(up).filter(Boolean);if(t.length<=0)return!1;let o=t[t.length-1],a=n.pos+i.lastIndexOf(o);if(!o)return!1;let l=uc(o).map(t=>t.toObject(e.defaultProtocol));if(!(1===l.length?l[0].isLink:3===l.length&&!!l[1].isLink&&["()","[]"].includes(l[0].value+l[2].value)))return!1;l.filter(e=>e.isLink).map(e=>({...e,from:a+e.start+1,to:a+e.end+1})).filter(e=>!r.schema.marks.code||!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{oF(t.from,t.to,r.doc).some(t=>t.mark.type===e.type)||s.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),s.steps.length)return s}}))),r.push((t={type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection},new tr({key:new ts("handleClickLink"),props:{handleClick:(e,n,r)=>{var i,o;if(0!==r.button||!e.editable)return!1;let s=null;if(r.target instanceof HTMLAnchorElement)s=r.target;else{let e=r.target;if(!e)return!1;let n=t.editor.view.dom;(s=e.closest("a"))&&!n.contains(s)&&(s=null)}if(!s)return!1;let a=!1;if(t.enableClickSelection&&(a=t.editor.commands.extendMarkRange(t.type.name)),t.openOnClick){let n=oR(e.state,t.type.name),r=null!=(i=s.href)?i:n.href,l=null!=(o=s.target)?o:n.target;r&&(window.open(r,l),a=!0)}return a}}}))),this.options.linkOnPaste&&r.push((n={editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink},new tr({key:new ts("handlePasteLink"),props:{handlePaste:(e,t,r)=>{let{shouldAutoLink:i}=n,{state:o}=e,{selection:s}=o,{empty:a}=s;if(a)return!1;let l="";r.content.forEach(e=>{l+=e.textContent});let u=ud(l,{defaultProtocol:n.defaultProtocol}).find(e=>e.isLink&&e.value===l);return!!l&&!!u&&(void 0===i||!!i(u.value))&&n.editor.commands.setMark(n.type,{href:u.href})}}}))),r}}),uv=Object.defineProperty,ub="textStyle",ux=/^\s*([-+*])\s$/,u_=sW.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",oS(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(ub)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}}
1646,addInputRules(){let e=sL({find:ux,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=sL({find:ux,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(ub),editor:this.editor})),[e]}}),uw=sW.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",oS(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var n;if("list_item"!==e.type)return[];let r=null!=(n=t.parseBlockChildren)?n:t.parseChildren,i=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(e=>"paragraph"===e.type))i=r(e.tokens);else{let n=e.tokens[0];if(n&&"text"===n.type&&n.tokens&&n.tokens.length>0){if(i=[{type:"paragraph",content:t.parseInline(n.tokens)}],e.tokens.length>1){let t=r(e.tokens.slice(1));i.push(...t)}}else i=r(e.tokens)}return 0===i.length&&(i=[{type:"paragraph",content:[]}]),{type:"listItem",content:i}},renderMarkdown:(e,t,n)=>sH(e,t,e=>{var t,n;if("bulletList"===e.parentType)return"- ";if("orderedList"===e.parentType){let r=(null==(n=null==(t=e.meta)?void 0:t.parentAttrs)?void 0:n.start)||1;return`${r+e.index}. `}return"- "},n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});((e,t)=>{for(var n in t)uv(e,n,{get:t[n],enumerable:!0})})({},{findListItemPos:()=>uk,getNextListDepth:()=>uC,handleBackspace:()=>uT,handleDelete:()=>uO,hasListBefore:()=>uE,hasListItemAfter:()=>uI,hasListItemBefore:()=>uA,listItemHasSubList:()=>uS,nextListIsDeeper:()=>uj,nextListIsHigher:()=>uN});var uk=(e,t)=>{let{$from:n}=t.selection,r=iE(e,t.schema),i=n.depth,o=n.pos,s=null;for(;i>0&&null===s;)n.node(i).type===r?s=i:(i-=1,o-=1);return null===s?null:{$pos:t.doc.resolve(o),depth:s}},uC=(e,t)=>{let n=uk(e,t);if(!n)return!1;let[,r]=((e,t,n,r=20)=>{let i=e.doc.resolve(n),o=r,s=null;for(;o>0&&null===s;){let e=i.node(o);(null==e?void 0:e.type.name)===t?s=e:o-=1}return[s,o]})(t,e,n.$pos.pos+4);return r},uE=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),o=e.doc.resolve(i).node();return!!o&&!!n.includes(o.type.name)},uA=(e,t)=>{var n;let{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-2);return 0!==i.index()&&(null==(n=i.nodeBefore)?void 0:n.type.name)===e},uS=(e,t,n)=>{if(!n)return!1;let r=iE(e,t.schema),i=!1;return n.descendants(e=>{e.type===r&&(i=!0)}),i},uT=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!i6(e.state,t)&&uE(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let o=i.at(-1);if(!o)return!1;let s=e.state.doc.resolve(r.start()+o.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},s.end()).joinForward().run()}if(!i6(e.state,t)||!(e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0)&&t.pos===n.pos})(e.state))return!1;let r=uk(t,e.state);if(!r)return!1;let i=e.state.doc.resolve(r.$pos.pos-2).node(r.depth),o=uS(t,e.state,i);return uA(t,e.state)&&!o?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},uj=(e,t)=>{let n=uC(e,t),r=uk(e,t);return!!r&&!!n&&n>r.depth},uN=(e,t)=>{let n=uC(e,t),r=uk(e,t);return!!r&&!!n&&n<r.depth},uO=(e,t)=>{if(!i6(e.state,t)||!((e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=ov(e=>e.type.name===t)(e.selection);if(!n)return!1;let r=e.doc.resolve(n.pos+1);return i.pos+1===r.end()}return!(r.parentOffset<r.parent.nodeSize-2)&&n.pos===r.pos})(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!(!n.empty&&r.sameParent(i))&&(uj(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():uN(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},uI=(e,t)=>{var n;let{$anchor:r}=t.selection,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},uD=sy.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;
1646return this.options.listTypes.forEach(({itemName:n})=>{void 0!==e.state.schema.nodes[n]&&uO(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{void 0!==e.state.schema.nodes[n]&&uO(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{void 0!==e.state.schema.nodes[n]&&uT(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{void 0!==e.state.schema.nodes[n]&&uT(e,n,r)&&(t=!0)}),t}}}}),uM=/^(\s*)(\d+)\.\s+(.*)$/,uL=/^\s/,uR="textStyle",uP=/^(\d+)\.\s$/,uF=sW.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",oS(this.options.HTMLAttributes,n),0]:["ol",oS(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if("list"!==e.type||!e.ordered)return[];let n=e.start||1,r=e.items?function(e,t){return e.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)n.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){let r=t.parseChildren([e]);n.push({type:"paragraph",content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:"listItem",content:n}})}(e.items,t):[];return 1!==n?{type:"orderedList",attrs:{start:n},content:r}:{type:"orderedList",content:r}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{let t=e.match(/^(\s*)(\d+)\.\s+/),n=null==t?void 0:t.index;return void 0!==n?n:-1},tokenize:(e,t,n)=>{var r;let i=e.split("\n"),[o,s]=function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],o=i.match(uM);if(!o)break;let[,s,a,l]=o,u=s.length,c=[l],d=n+1,h=[i],p=!1;for(;d<e.length;){let t=e[d];if(t.match(uM))break;if(""===t.trim())h.push(t),c.push(""),p=!0,d+=1;else if(t.match(uL))h.push(t),c.push(t.slice(u+2)),d+=1;else{if(p)break;h.push(t),c.push(t),d+=1}}t.push({indent:u,number:parseInt(a,10),content:c.join("\n").trim(),contentLines:c,raw:h.join("\n")}),r=d,n=d}return[t,r]}(i);if(0===o.length)return;let a=function e(t,n,r){let i=[],o=0;for(;o<t.length;){let s=t[o];if(s.indent===n){let{paragraphLines:a,blockLines:l}=function(e){let t=[],n=[],r=!1;return e.forEach(e=>{if(r)return void n.push(e);if(""===e.trim()||t.length>0&&function(e){let t=e.trimStart();return/^[-+*]\s+/.test(t)||/^\d+\.\s+/.test(t)||/^>\s?/.test(t)||/^```/.test(t)||/^~~~/.test(t)}(e)){r=!0,n.push(e);return}t.push(e)}),{paragraphLines:t,blockLines:n}}(s.contentLines),u=a.join("\n").trim(),c=[];u&&c.push({type:"paragraph",raw:u,tokens:r.inlineTokens(u)});let d=l.join("\n").trim();if(d){let e=r.blockTokens(d);c.push(...e)}let h=o+1,p=[];for(;h<t.length&&t[h].indent>n;)p.push(t[h]),h+=1;if(p.length>0){let t=Math.min(...p.map(e=>e.indent)),n=e(p,t,r);c.push({type:"list",ordered:!0,start:p[0].number,items:n,raw:p.map(e=>e.raw).join("\n")})}i.push({type:"list_item",raw:s.raw,tokens:c}),o=h}else o+=1}return i}(o,0,n);if(0!==a.length)return{type:"list",ordered:!0,start:(null==(r=o[0])?void 0:r.number)||1,items:a,raw:i.slice(0,s).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(uR)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}}
1646,addInputRules(){let e=sL({find:uP,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=sL({find:uP,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(uR)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),uB=/^\s*(\[([( |x])?\])\s$/,u$=sW.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",oS(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{let 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){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode("taskItem",{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>{var n;let r=(null==(n=e.attrs)?void 0:n.checked)?"x":" ";return sH(e,t,`- [${r}] `)},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement("li"),o=document.createElement("label"),s=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div"),u=e=>{var t,n;a.ariaLabel=(null==(n=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:n.call(t,e,a.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};u(e),o.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",e=>e.preventDefault()),a.addEventListener("change",t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}let{checked:i}=t.target;r.isEditable&&"function"==typeof n&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if("number"!=typeof t)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==r?void 0:r.attrs,checked:i}),!0}).run(),r.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,i)||(a.checked=!a.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,o.append(a,s),i.append(o,l),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let c=new Set(Object.keys(t));return{dom:i,contentDOM:l,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,u(e);let t=oT(e,r.extensionManager.attributes),n=new Set(Object.keys(t)),o=this.options.HTMLAttributes;return c.forEach(e=>{n.has(e)||(e in o?i.setAttribute(e,o[e]):i.removeAttribute(e))}),Object.entries(t).forEach(([e,t])=>{null==t?e in o?i.setAttribute(e,o[e]):i.removeAttribute(e):i.setAttribute(e,t)}),c=n,!0}}}}
1646,addInputRules(){return[sL({find:uB,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),uq=sW.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",oS(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;let n=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==n?n:-1},tokenize(e,t,n){let r=e=>{let t=sU(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);return t?[{type:"taskList",raw:t.raw,items:t.items}]:n.blockTokens(e)},i=sU(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:"taskList",raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});sy.create({name:"listKit",addExtensions(){let e=[];return!1!==this.options.bulletList&&e.push(u_.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(uw.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(uD.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(uF.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(u$.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(uq.configure(this.options.taskList)),e}});var uV=" ",uz=sW.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",oS(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];if(1===n.length&&"image"===n[0].type)return t.parseChildren([n[0]]);let r=t.parseInline(n);return 1===n.length&&"text"===n[0].type&&(n[0].raw===uV||n[0].text===uV||"\xa0"===n[0].raw||"\xa0"===n[0].text)&&1===r.length&&"text"===r[0].type&&(r[0].text===uV||"\xa0"===r[0].text)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,r)},renderMarkdown:(e,t,n)=>{var r,i;if(!e)return"";let o=Array.isArray(e.content)?e.content:[];if(0===o.length){let e=Array.isArray(null==(r=null==n?void 0:n.previousNode)?void 0:r.content)?n.previousNode.content:[];return(null==(i=null==n?void 0:n.previousNode)?void 0:i.type)==="paragraph"&&0===e.length?uV:""}return t.renderChildren(o)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),uU=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,uH=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,uW=sp.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",oS(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}}
1646,addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[sI({find:uU,type:this.type})]},addPasteRules(){return[sG({find:uH,type:this.type})]}}),uG=sW.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),uK=sp.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",oS(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown:(e,t)=>`++${t.renderChildren(e)}++`,markdownTokenizer:{name:"underline",level:"inline",start:e=>e.indexOf("++"),tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:"underline",raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});class uJ{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(n=t.width)?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,n=this.editorView.state.doc.resolve(this.cursorPos),r=!n.parent.inlineContent,i,o=this.editorView.dom,s=o.getBoundingClientRect(),a=s.width/o.offsetWidth,l=s.height/o.offsetHeight;if(r){let e=n.nodeBefore,t=n.nodeAfter;if(e||t){let n=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(n){let r=n.getBoundingClientRect(),o=e?r.bottom:r.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*l;i={left:r.left,right:r.right,top:o-s,bottom:o+s}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let u=this.editorView.dom.offsetParent;if(!this.element&&(this.element=u.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",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),u&&(u!=document.body||"static"!=getComputedStyle(u).position)){let n=u.getBoundingClientRect(),r=n.width/u.offsetWidth,i=n.height/u.offsetHeight;e=n.left-u.scrollLeft*r,t=n.top-u.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/a+"px",this.element.style.top=(i.top-t)/l+"px",this.element.style.width=(i.right-i.left)/a+"px",this.element.style.height=(i.bottom-i.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let 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){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=eM(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class uQ extends eJ{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return uQ.valid(n)?new uQ(n):eJ.near(n)}content(){return x.empty}eq(e){return e instanceof uQ&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new uQ(e.resolve(t.pos))}getBookmark(){return new uY(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0==n){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||uX(e.type))return!0;
1646if(e.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||uX(e.type))return!0;if(e.inlineContent)return!1}}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){r:for(;;){if(!n&&uQ.valid(e))return e;let r=e.pos,i=null;for(let n=e.depth;;n--){let o=e.node(n);if(t>0?e.indexAfter(n)<o.childCount:e.index(n)>0){i=o.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let s=e.doc.resolve(r);if(uQ.valid(s))return s}for(;;){let o=t>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!e1.isSelectable(i)){e=e.doc.resolve(r+i.nodeSize*t),n=!1;continue r}break}i=o,r+=t;let s=e.doc.resolve(r);if(uQ.valid(s))return s}return null}}}uQ.prototype.visible=!1,uQ.findFrom=uQ.findGapCursorFrom,eJ.jsonID("gapcursor",uQ);class uY{constructor(e){this.pos=e}map(e){return new uY(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return uQ.valid(t)?new uQ(t):eJ.near(t)}}function uX(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}let uZ=id({ArrowLeft:u0("horiz",-1),ArrowRight:u0("horiz",1),ArrowUp:u0("vert",-1),ArrowDown:u0("vert",1)});function u0(e,t){let n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,i){let o=e.selection,s=t>0?o.$to:o.$from,a=o.empty;if(o instanceof eZ){if(!i.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=e.doc.resolve(t>0?s.after():s.before())}let l=uQ.findGapCursorFrom(s,t,a);return!!l&&(r&&r(e.tr.setSelection(new uQ(l))),!0)}}function u1(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!uQ.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return!(i&&i.inside>-1&&e1.isSelectable(e.state.doc.nodeAt(i.inside)))&&(e.dispatch(e.state.tr.setSelection(new uQ(r))),!0)}function u2(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof uQ))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=f.empty;for(let e=r.length-1;e>=0;e--)i=f.from(r[e].createAndFill(null,i));let o=e.state.tr.replace(n.pos,n.pos,new x(i,0,0));return o.setSelection(eZ.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function u5(e){if(!(e.selection instanceof uQ))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",rR.create(e.doc,[rD.widget(e.selection.head,t,{key:"gapcursor"})])}var u3=function(){};u3.prototype.append=function(e){return e.length?(e=u3.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},u3.prototype.prepend=function(e){return e.length?u3.from(e).append(this):this},u3.prototype.appendInner=function(e){return new u8(this,e)},u3.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?u3.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},u3.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},u3.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)},u3.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},u3.from=function(e){return e instanceof u3?e:e&&e.length?new u4(e):u3.empty};var u4=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<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)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}(u3);u3.empty=new u4([]);var u8=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;if(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))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(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))return!1},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}(u3);class u6{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let n,r,i,o;if(0==this.eventCount)return null;let s=this.items.length;for(;;s--)if(this.items.get(s-1).selection){--s;break}t&&(r=(n=this.remapping(s,this.items.length)).maps.length);let a=e.tr,l=[],u=[];
1646return this.items.forEach((e,t)=>{if(!e.step){n||(r=(n=this.remapping(s,t+1)).maps.length),r--,u.push(e);return}if(n){u.push(new u7(e.map));let t=e.step.map(n.slice(r)),i;t&&a.maybeStep(t).doc&&(i=a.mapping.maps[a.mapping.maps.length-1],l.push(new u7(i,void 0,void 0,l.length+u.length))),r--,i&&n.appendMap(i,r)}else a.maybeStep(e.step);if(e.selection)return i=n?e.selection.map(n.slice(r)):e.selection,o=new u6(this.items.slice(0,s).append(u.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:a,selection:i}}addTransform(e,t,n,r){var i,o;let s,a=[],l=this.eventCount,u=this.items,c=!r&&u.length?u.get(u.length-1):null;for(let n=0;n<e.steps.length;n++){let i=e.steps[n].invert(e.docs[n]),o=new u7(e.mapping.maps[n],i,t),s;(s=c&&c.merge(o))&&(o=s,n?a.pop():u=u.slice(0,u.length-1)),a.push(o),t&&(l++,t=void 0),r||(c=o)}let d=l-n.depth;return d>ce&&(i=u,o=d,i.forEach((e,t)=>{if(e.selection&&0==o--)return s=t,!1}),u=i.slice(s),l-=d),new u6(u.append(a),l)}remapping(e,t){let n=new eh;return this.items.forEach((t,r)=>{let i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(e){return 0==this.eventCount?this:new u6(this.items.append(e.map(e=>new u7(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},r);let a=t;this.items.forEach(t=>{let r=i.getMirror(--a);if(null==r)return;o=Math.min(o,r);let l=i.maps[r];if(t.step){let o=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(i.slice(a+1,r));u&&s++,n.push(new u7(l,o,u))}else n.push(new u7(l))},r);let l=[];for(let e=t;e<o;e++)l.push(new u7(i.maps[e]));let u=new u6(this.items.slice(0,r).append(l).append(n),s);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],i=0;return this.items.forEach((o,s)=>{if(s>=e)r.push(o),o.selection&&i++;else if(o.step){let e=o.step.map(t.slice(n)),s=e&&e.getMap();if(n--,s&&t.appendMap(s,n),e){let a=o.selection&&o.selection.map(t.slice(n));a&&i++;let l=new u7(s.invert(),e,a),u,c=r.length-1;(u=r.length&&r[c].merge(l))?r[c]=u:r.push(l)}}else o.map&&n--},this.items.length,0),new u6(u3.from(r.reverse()),i)}}u6.empty=new u6(u3.empty,0);class u7{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new u7(t.getMap().invert(),t,this.selection)}}}class u9{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}let ce=20;function ct(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function cn(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),o=t.map(e[r+1],-1);i<=o&&n.push(i,o)}return n}let cr=!1,ci=null;function co(e){let t=e.plugins;if(ci!=t){cr=!1,ci=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){cr=!0;break}}return cr}let cs=new ts("history"),ca=new ts("closeHistory");function cl(e,t){return(n,r)=>{let i=cs.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(r){let o=function(e,t,n){let r=co(t),i=cs.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;let s=o.selection.resolve(o.transform.doc),a=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),l=new u9(n?a:o.remaining,n?o.remaining:a,null,0,-1);return o.transform.setSelection(s).setMeta(cs,{redo:n,historyState:l})}(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}let cu=cl(!1,!0),cc=cl(!0,!0);cl(!1,!1),cl(!0,!1),sy.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){let e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new tr({key:new ts("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;let i=this.options.limit;if(null==i||0===i){e=!0;return}let o=this.storage.characters({node:r.doc});if(o>i){console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let t=r.tr.deleteRange(0,o-i);return e=!0,t}e=!0},filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||0===n||null==n)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;
1646if(r>n&&i>n&&i>r||!e.getMeta("paste"))return!1;let o=e.selection.$head.pos;return e.deleteRange(o-(i-n),o),!(this.storage.characters({node:e.doc})>n)}})]}});var cd=sy.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(e={}){return new tr({view:t=>new uJ(t,e)})}(this.options)]}});sy.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new tr({key:new ts("focus"),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,o=[];if(!n||!r)return rR.create(e,[]);let s=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;s+=1}});let a=0;return e.descendants((e,t)=>!e.isText&&!!(i>=t&&i<=t+e.nodeSize-1)&&((a+=1,"deepest"===this.options.mode&&s-a>0||"shallowest"===this.options.mode&&a>1)?"deepest"===this.options.mode:void o.push(rD.node(t,t+e.nodeSize,{class:this.options.className})))),rR.create(e,o)}}})]}});var ch=sy.create({name:"gapCursor",addProseMirrorPlugins:()=>[new tr({props:{decorations:u5,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&uQ.valid(n)?new uQ(n):null,handleClick:u1,handleKeyDown:uZ,handleDOMEvents:{beforeinput
1646:u2}}})],extendNodeSchema(e){var t;let n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=ok(ob(e,"allowGapCursor",n)))?t:null}}}),cp="placeholder",cf=sy.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:cp,placeholder:"Write something â¦",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){let e=this.options.dataAttribute?`data-${this.options.dataAttribute.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}`:`data-${cp}`;return[new tr({key:new ts("placeholder"),props:{decorations:({doc:t,selection:n})=>{let r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=n,o=[];if(!r)return null;let s=this.editor.isEmpty;return t.descendants((t,n)=>{let r=i>=n&&i<=n+t.nodeSize,a=!t.isLeaf&&oU(t);if(!t.type.isTextblock)return this.options.includeChildren;if((r||!this.options.showOnlyCurrent)&&a){let i=[this.options.emptyNodeClass];s&&i.push(this.options.emptyEditorClass);let a=rD.node(n,n+t.nodeSize,{class:i.join(" "),[e]:"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:t,pos:n,hasAnchor:r}):this.options.placeholder});o.push(a)}return this.options.includeChildren}),rR.create(t,o)}}})]}});function cm({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(null==t?void 0:t.type)===e}sy.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new tr({key:new ts("selection"),props:{decorations:n=>n.selection.empty||e.isFocused||!e.isEditable||oH(n.selection)||e.view.dragging?null:rR.create(n.doc,[rD.inline(n.selection.from,n.selection.to,{class:t.className})])}})]}});var cg=sy.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var e;let t=new ts(this.name),n=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(n).includes(e.name));return[new tr({key:t,appendTransaction:(e,r,i)=>{let{doc:o,tr:s,schema:a}=i,l=t.getState(i),u=o.content.size,c=a.nodes[n];if(!e.some(e=>e.getMeta("skipTrailingNode"))&&l)return s.insert(u,c.create())},state:{init:(e,t)=>!cm({node:t.tr.doc.lastChild,types:r}),apply:(e,t)=>!e.docChanged||e.getMeta("__uniqueIDTransaction")?t:!cm({node:e.doc.lastChild,types:r})}})]}}),cy=sy.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>cu(e,t),redo:()=>({state:e,dispatch:t})=>cc(e,t)}),addProseMirrorPlugins(){return[function(e={}){return new tr({key:cs,state:{init:()=>new u9(u6.empty,u6.empty,null,0,-1),apply:(t,n,r)=>(function(e,t,n,r){let i=n.getMeta(cs),o;if(i)return i.historyState;n.getMeta(ca)&&(e=new u9(e.done,e.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(cs))if(s.getMeta(cs).redo)return new u9(e.done.addTransform(n,void 0,r,co(t)),e.undone,ct(n.mapping.maps),e.prevTime,e.prevComposition);else return new u9(e.done,e.undone.addTransform(n,void 0,r,co(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))if(o=n.getMeta("rebased"))return new u9(e.done.rebased(n,o),e.undone.rebased(n,o),cn(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);else return new u9(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),cn(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let i=n.getMeta("composition"),o=0==e.prevTime||!s&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}(n,e.prevRanges)),a=s?cn(e.prevRanges,n.mapping):ct(n.mapping.maps);return new u9(e.done.addTransform(n,o?t.selection.getBookmark():void 0,r,co(t)),u6.empty,a,n.time,null==i?e.prevComposition:i)}})(n,r,t,e)},config:e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?cu:"historyRedo"==n?cc:null;return!!r&&!!e.editable&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}}),cv=sy.create({name:"starterKit",addExtensions(){var e,t,n,r;let i=[];return!1!==this.options.bold&&i.push(aL.configure(this.options.bold)),!1!==this.options.blockquote&&i.push(aN.configure(this.options.blockquote)),!1!==this.options.bulletList&&i.push(u_.configure(this.options.bulletList)),!1!==this.options.code&&i.push(aF.configure(this.options.code)),!1!==this.options.codeBlock&&i.push(aq.configure(this.options.codeBlock)),!1!==this.options.document&&i.push(aV.configure(this.options.document)),!1!==this.options.dropcursor&&i.push(cd.c
1646onfigure(this.options.dropcursor)),!1!==this.options.gapcursor&&i.push(ch.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&i.push(az.configure(this.options.hardBreak)),!1!==this.options.heading&&i.push(aU.configure(this.options.heading)),!1!==this.options.undoRedo&&i.push(cy.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&i.push(aH.configure(this.options.horizontalRule)),!1!==this.options.italic&&i.push(aQ.configure(this.options.italic)),!1!==this.options.listItem&&i.push(uw.configure(this.options.listItem)),!1!==this.options.listKeymap&&i.push(uD.configure(null==(e=this.options)?void 0:e.listKeymap)),!1!==this.options.link&&i.push(uy.configure(null==(t=this.options)?void 0:t.link)),!1!==this.options.orderedList&&i.push(uF.configure(this.options.orderedList)),!1!==this.options.paragraph&&i.push(uz.configure(this.options.paragraph)),!1!==this.options.strike&&i.push(uW.configure(this.options.strike)),!1!==this.options.text&&i.push(uG.configure(this.options.text)),!1!==this.options.underline&&i.push(uK.configure(null==(n=this.options)?void 0:n.underline)),!1!==this.options.trailingNode&&i.push(cg.configure(null==(r=this.options)?void 0:r.trailingNode)),i}}),cb=sy.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:null}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{let t=e.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign?{style:`text-align: ${e.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>!!this.options.alignments.includes(e)&&this.options.types.map(n=>t.updateAttributes(n,{textAlign:e})).some(e=>e),unsetTextAlign:()=>({commands:e})=>this.options.types.map(t=>e.resetAttributes(t,"textAlign")).some(e=>e),toggleTextAlign:e=>({editor:t,commands:n})=>!!this.options.alignments.includes(e)&&(t.isActive({textAlign:e})?n.unsetTextAlign():n.setTextAlign(e))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}});if("undefined"!=typeof WeakMap){let e=new WeakMap;r=t=>e.get(t),i=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;r=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},i=(n,r)=>(10==t&&(t=0),e[t++]=n,e[t++]=r)}var cx=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,o=r+1,s=i+1;for(let e=1;o<this.width&&this.map[t+e]==n;e++)o++;for(let e=1;s<this.height&&this.map[t+this.width*e]==n;e++)s++;return{left:r,top:i,right:o,bottom:s}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:i,top:o,bottom:s}=this.findCell(e);return"horiz"==t?(n<0?0==r:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?0==o:s==this.height)?null:this.map[r+this.width*(n<0?o-1:s)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:o}=this.findCell(e),{left:s,right:a,top:l,bottom:u}=this.findCell(t);return{left:Math.min(n,s),top:Math.min(i,l),right:Math.max(r,a),bottom:Math.max(o,u)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let o=r*this.width+i,s=this.map[o];!n[s]&&(n[s]=!0,i==e.left&&i&&this.map[o-1]==s||r==e.top&&r&&this.map[o-this.width]==s||t.push(s))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let o=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?o-1:this.map[n]}i=o}}static get(e){return r(e)||i(e,function(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=function(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),o=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(o+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);o+=t.attrs.colspan,t.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,s=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let a=0,l=0;a<n;a++){let u=e.child(a);l++;for(let e=0;;e++){for(;i<r.length&&0!=r[i];)i++;if(e==u.childCount)break;let c=u.child(e),{colspan:d,rowspan:h,colwidth:p}=c.attrs;for(let e=0;e<h;e++){if(e+a>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:l,n:h-e});break}let u=i+e*t;for(let e=0;e<d;e++){0==r[u+e]?r[u+e]=l:(o||(o=[])).push({type:"collision",row:a,pos:l,n:d-e});let n=p&&p[e];if(n){let r=(u+e)%t*2,i=s[r];null==i||i!=n&&1==s[r+1]?(s[r]=n,s[r+1]=1):i==n&&s[r+1]++}}}i+=d,l+=c.nodeSize}let c=(a+1)*t,d=0;for(;i<c;)0==r[i++]&&d++;d&&(o||(o=[])).push({type:"missing",row:a,n:d}),l++}(0===t||0===n)&&(o||(o=[])).push({type:"zero_sized"});let a=new cx(t,n,r,o),l=!1;for(let e=0;!l&&e<s.length;e+=2)null!=s[e]&&s[e+1]<n&&(l=!0);return l&&function(e,t,n){e.problems||(e.problems=[]);let r={};for(let i=0;i<e.map.length;i++){let o=e.map[i];if(r[o])continue;r[o]=!0;let s=n.nodeAt(o);if(!s)throw RangeError(`No cell with offset ${o} found`);let a=null,l=s.attrs;for(let n=0;n<l.colspan;n++){let r=t[(i+n)%e.width*2];null==r||l.colwidth&&l.colwidth[n]==r||((a||(a=function(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}(l)))[n]=r)}a&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}(a,s,e),a}(e))}};function c_(e){let t=e.cached.tableNodeTypes;
1646if(!t)for(let n in t=e.cached.tableNodeTypes={},e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}return t}let cw=new ts("selectingCells");function ck(e){for(let 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 cC(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function cE(e){let 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;let n=ck(t.$head)||function(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function cA(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function cS(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function cT(e,t,n){let r=e.node(-1),i=cx.get(r),o=e.start(-1),s=i.nextCell(e.pos-o,t,n);return null==s?null:e.node(0).resolve(o+s)}function cj(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function cN(e,t,n=1){let r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;e<n;e++)r.colwidth.splice(t,0,0)}return r}var cO=class e extends eJ{constructor(e,t=e){let n=e.node(-1),r=cx.get(n),i=e.start(-1),o=r.rectBetween(e.pos-i,t.pos-i),s=e.node(0),a=r.cellsInRect(o).filter(e=>e!=t.pos-i);a.unshift(t.pos-i);let l=a.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let r=i+e+1;return new eQ(s.resolve(r),s.resolve(r+t.content.size))});super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(t,n){let r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(cA(r)&&cA(i)&&cS(r,i)){let t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,i):t&&this.isColSelection()?e.colSelection(r,i):new e(r,i)}return eZ.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=cx.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},o=[];for(let n=r.top;n<r.bottom;n++){let s=[];for(let o=n*t.width+r.left,a=r.left;a<r.right;a++,o++){let n=t.map[o];if(i[n])continue;i[n]=!0;let a=t.findCell(n),l=e.nodeAt(n);if(!l)throw RangeError(`No cell with offset ${n} found`);let u=r.left-a.left,c=a.right-r.right;if(u>0||c>0){let e=l.attrs;if(u>0&&(e=cj(e,0,u)),c>0&&(e=cj(e,e.colspan-c,c)),a.left<r.left){if(!(l=l.type.createAndFill(e)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else l=l.type.create(e,l.content)}if(a.top<r.top||a.bottom>r.bottom){let e={...l.attrs,rowspan:Math.min(a.bottom,r.bottom)-Math.max(a.top,r.top)};l=a.top<r.top?l.type.createAndFill(e):l.type.create(e,l.content)}s.push(l)}o.push(e.child(n).copy(f.from(s)))}let s=this.isColSelection()&&this.isRowSelection()?e:o;return new x(f.from(s),1,1)}replace(e,t=x.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:s}=r[i],a=e.mapping.slice(n);e.replace(a.map(o.pos),a.map(s.pos),i?x.empty:t)}let i=eJ.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new x(f.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=cx.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);return!(Math.min(e,t)>0)&&Math.max(e+this.$anchorCell.nodeAfter.attrs.rowspan,t+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){let r=t.node(-1),i=cx.get(r),o=t.start(-1),s=i.findCell(t.pos-o),a=i.findCell(n.pos-o),l=t.node(0);return s.top<=a.top?(s.top>0&&(t=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(n=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))):(a.top>0&&(n=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]))),new e(t,n)}isRowSelection(){let e=this.$anchorCell.node(-1),t=cx.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);return!(Math.min(r,i)>0)&&Math.max(r+this.$anchorCell.nodeAfter.attrs.colspan,i+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){let r=t.node(-1),i=cx.get(r),o=t.start(-1),s=i.findCell(t.pos-o),a=i.findCell(n.pos-o),l=t.node(0);return s.left<=a.left?(s.left>0&&(t=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(n=l.resolve(o+i.map[i.width*(a.top+1)-1]))):(a.left>0&&(n=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]))),new e(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new cI(this.$anchorCell.pos,this.$headCell.pos)}};cO.prototype.visible=!1,eJ.jsonID("cell",cO);var cI=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let 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&&cS(t,n)?new cO(t,n):eJ.near(n,1)}};function cD(e){if(!(e.selection instanceof cO))return null;let t=[];return e.selection.forEachCell((e,n)=>{t.push(rD.node(n,n+e.nodeSize,{class:"selectedCell"}))}),rR.create(e.doc,t)}let cM=new ts("fix-tables");function cL(e,t){let n,r=(t,r)=>{"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){let i,o,s=cx.get(t);if(!s.problems)return r;r||(r=e.tr);let a=[];for(let e=0;e<s.height;e++)a.push(0);for(let e=0;e<s.problems.length;e++){let i=s.problems[e];if("collision"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;let o=e.attrs;for(let e=0;e<o.rowspan;e++)a[i.row+e]+=i.n;
1646r.setNodeMarkup(r.mapping.map(n+1+i.pos),null,cj(o,o.colspan-i.n,i.n))}else if("missing"==i.type)a[i.row]+=i.n;else if("overlong_rowspan"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+i.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-i.n})}else if("colwidth mismatch"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+i.pos),null,{...e.attrs,colwidth:i.colwidth})}else if("zero_sized"==i.type){let e=r.mapping.map(n);r.delete(e,e+t.nodeSize)}}for(let e=0;e<a.length;e++)a[e]&&(null==i&&(i=e),o=e);for(let l=0,u=n+1;l<s.height;l++){let n=t.child(l),s=u+n.nodeSize,c=a[l];if(c>0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);let a=[];for(let n=0;n<c;n++){let n=c_(e.schema)[t].createAndFill();n&&a.push(n)}let d=(0==l||i==l-1)&&o==l?u+1:s-1;r.insert(r.mapping.map(d),a)}u=s}return r.setMeta(cM,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&function e(t,n,r,i){let o=t.childCount,s=n.childCount;n:for(let a=0,l=0;a<s;a++){let s=n.child(a);for(let e=l,n=Math.min(o,a+3);e<n;e++)if(t.child(e)==s){l=e+1,r+=s.nodeSize;continue n}i(s,r),l<o&&t.child(l).sameMarkup(s)?e(t.child(l),s,r+1,i):s.nodesBetween(0,s.content.size,i,r+1),r+=s.nodeSize}}(t.doc,e.doc,0,r):e.doc.descendants(r),n}function cR(e){let t=e.selection,n=cE(e),r=n.node(-1),i=n.start(-1),o=cx.get(r);return{...t instanceof cO?o.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function cP(e,{map:t,tableStart:n,table:r},i){let o=i>0?-1:0;(function(e,t,n){let r=c_(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0})(t,r,i+o)&&(o=0==i||i==t.width?null:0);for(let s=0;s<t.height;s++){let a=s*t.width+i;if(i>0&&i<t.width&&t.map[a-1]==t.map[a]){let o=t.map[a],l=r.nodeAt(o);e.setNodeMarkup(e.mapping.map(n+o),null,cN(l.attrs,i-t.colCount(o))),s+=l.attrs.rowspan-1}else{let l=null==o?c_(r.type.schema).cell:r.nodeAt(t.map[a+o]).type,u=t.positionAt(s,i,r);e.insert(e.mapping.map(n+u),l.createAndFill())}}return e}function cF(e,{map:t,tableStart:n,table:r},i){let o=n;for(let e=0;e<i;e++)o+=r.child(e).nodeSize;let s=[],a=i>0?-1:0;(function(e,t,n){var r;let i=c_(t.type.schema).header_cell;for(let o=0;o<e.width;o++)if((null==(r=t.nodeAt(e.map[o+n*e.width]))?void 0:r.type)!=i)return!1;return!0})(t,r,i+a)&&(a=0==i||i==t.height?null:0);for(let o=0,u=t.width*i;o<t.width;o++,u++)if(i>0&&i<t.height&&t.map[u]==t.map[u-t.width]){let i=t.map[u],s=r.nodeAt(i).attrs;e.setNodeMarkup(n+i,null,{...s,rowspan:s.rowspan+1}),o+=s.colspan-1}else{var l;let e=null==a?c_(r.type.schema).cell:null==(l=r.nodeAt(t.map[u+a*t.width]))?void 0:l.type,n=null==e?void 0:e.createAndFill();n&&s.push(n)}return e.insert(o,c_(r.type.schema).row.create(null,s)),e}function cB(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function c$(e,t){let n=e.selection;if(!(n instanceof cO)||n.$anchorCell.pos==n.$headCell.pos)return!1;let r=cR(e),{map:i}=r;if(function({width:e,height:t,map:n},r){let i=r.top*e+r.left,o=i,s=(r.bottom-1)*e+r.left,a=i+(r.right-r.left-1);for(let t=r.top;t<r.bottom;t++){if(r.left>0&&n[o]==n[o-1]||r.right<e&&n[a]==n[a+1])return!0;o+=e,a+=e}for(let o=r.left;o<r.right;o++){if(r.top>0&&n[i]==n[i-e]||r.bottom<t&&n[s]==n[s+e])return!0;i++,s++}return!1}(i,r))return!1;if(t){let n,o,s=e.tr,a={},l=f.empty;for(let e=r.top;e<r.bottom;e++)for(let t=r.left;t<r.right;t++){let u=i.map[e*i.width+t],c=r.table.nodeAt(u);if(!a[u]&&c)if(a[u]=!0,null==n)n=u,o=c;else{cB(c)||(l=l.append(c.content));let e=s.mapping.map(u+r.tableStart);s.delete(e,e+c.nodeSize)}}if(null==n||null==o)return!0;if(s.setNodeMarkup(n+r.tableStart,null,{...cN(o.attrs,o.attrs.colspan,r.right-r.left-o.attrs.colspan),rowspan:r.bottom-r.top}),l.size>0){let e=n+1+o.content.size,t=cB(o)?n+1:e;s.replaceWith(t+r.tableStart,e+r.tableStart,l)}s.setSelection(new cO(s.doc.resolve(n+r.tableStart))),t(s)}return!0}function cq(e,t){var n;let r=c_(e.schema);return(n=({node:e})=>r[e.type.spec.tableRole],(e,t)=>{let r,i,o=e.selection;if(o instanceof cO){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;r=o.$anchorCell.nodeAfter,i=o.$anchorCell.pos}else{var s;if(!(r=function(e){for(let t=e.depth;t>0;t--){let n=e.node(t).type.spec.tableRole;
1646if("cell"===n||"header_cell"===n)return e.node(t)}return null}(o.$from)))return!1;i=null==(s=ck(o.$from))?void 0:s.pos}if(null==r||null==i||1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(t){let s,a=r.attrs,l=[],u=a.colwidth;a.rowspan>1&&(a={...a,rowspan:1}),a.colspan>1&&(a={...a,colspan:1});let c=cR(e),d=e.tr;for(let e=0;e<c.right-c.left;e++)l.push(u?{...a,colwidth:u&&u[e]?[u[e]]:null}:a);for(let e=c.top;e<c.bottom;e++){let t=c.map.positionAt(e,c.left,c.table);e==c.top&&(t+=r.nodeSize);for(let i=c.left,o=0;i<c.right;i++,o++)(i!=c.left||e!=c.top)&&d.insert(s=d.mapping.map(t+c.tableStart,1),n({node:r,row:e,col:i}).createAndFill(l[o]))}d.setNodeMarkup(i,n({node:r,row:c.top,col:c.left}),l[0]),o instanceof cO&&d.setSelection(new cO(d.doc.resolve(o.$anchorCell.pos),s?d.doc.resolve(s):void 0)),t(d)}return!0})(e,t)}function cV(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<r.length;e++){let i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function cz(e,t){if((t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic)return function(t,n){if(!cC(t))return!1;if(n){let r=c_(t.schema),i=cR(t),o=t.tr,s=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),a=s.map(e=>i.table.nodeAt(e));for(let e=0;e<s.length;e++)a[e].type==r.header_cell&&o.setNodeMarkup(i.tableStart+s[e],r.cell,a[e].attrs);if(0===o.steps.length)for(let e=0;e<s.length;e++)o.setNodeMarkup(i.tableStart+s[e],r.header_cell,a[e].attrs);n(o)}return!0};return function(t,n){if(!cC(t))return!1;if(n){let r=c_(t.schema),i=cR(t),o=t.tr,s=cV("row",i,r),a=cV("column",i,r),l=+("column"===e?!!s:"row"===e&&!!a),u="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,c="column"==e?a?r.cell:r.header_cell:"row"==e?s?r.cell:r.header_cell:r.cell;i.map.cellsInRect(u).forEach(e=>{let t=e+i.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,c,n.attrs)}),n(o)}return!0}}cz("row",{useDeprecatedLogic:!0}),cz("column",{useDeprecatedLogic:!0});let cU=cz("cell",{useDeprecatedLogic:!0});function cH(e){return function(t,n){if(!cC(t))return!1;let r=function(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,n=e.before();t>=0;t--){let r=e.node(-1).child(t),i=r.lastChild;if(i)return n-1-i.nodeSize;n-=r.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let n=e.indexAfter(-1),r=e.after();n<t.childCount;n++){let e=t.child(n);if(e.childCount)return r+1;r+=e.nodeSize}}return null}(cE(t),e);if(null==r)return!1;if(n){let e=t.doc.resolve(r);n(t.tr.setSelection(eZ.between(e,e.node(0).resolve(e.pos+e.nodeAfter.nodeSize))).scrollIntoView())}return!0}}function cW(e,t){let n=e.selection;if(!(n instanceof cO))return!1;if(t){let r=e.tr,i=c_(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new x(i,0,0))}),r.docChanged&&t(r)}return!0}function cG(e,t){let n=e.createAndFill();return new eG(n).replace(0,n.content.size,t).doc}function cK(e,t,n,r,i,o,s,a){if(0==s||s==t.height)return!1;let l=!1;for(let u=i;u<o;u++){let i=s*t.width+u,o=t.map[i];if(t.map[i-t.width]==o){l=!0;let i=n.nodeAt(o),{top:c,left:d}=t.findCell(o);e.setNodeMarkup(e.mapping.slice(a).map(o+r),null,{...i.attrs,rowspan:s-c}),e.insert(e.mapping.slice(a).map(t.positionAt(s,d,n)),i.type.createAndFill({...i.attrs,rowspan:c+i.attrs.rowspan-s})),u+=i.attrs.colspan-1}}return l}function cJ(e,t,n,r,i,o,s,a){if(0==s||s==t.width)return!1;let l=!1;for(let u=i;u<o;u++){let i=u*t.width+s,o=t.map[i];if(t.map[i-1]==o){l=!0;let i=n.nodeAt(o),c=t.colCount(o),d=e.mapping.slice(a).map(o+r);e.setNodeMarkup(d,null,cj(i.attrs,s-c,i.attrs.colspan-(s-c))),e.insert(d+i.nodeSize,i.type.createAndFill(cj(i.attrs,0,s-c))),u+=i.attrs.rowspan-1}}return l}function cQ(e,t,n,r,i){let o=n?e.doc.nodeAt(n-1):e.doc;if(!o)throw Error("No table found");let s=cx.get(o),{top:a,left:l}=r,u=l+i.width,c=a+i.height,d=e.tr,h=0;function p(){if(!(o=n?d.doc.nodeAt(n-1):d.doc))throw Error("No table found");s=cx.get(o),h=d.mapping.maps.length}(function(e,t,n,r,i,o,s){let a,l,u=c_(e.doc.type.schema);if(i>t.width)for(let o=0,s=0;o<t.height;o++){let c,d=n.child(o);s+=d.nodeSize;let h=[];c=null==d.lastChild||d.lastChild.type==u.cell?a||(a=u.cell.createAndFill()):l||(l=u.header_cell.createAndFill());for(let e=t.width;e<i;e++)h.push(c);e.insert(e.mapping.slice(0).map(s-1+r),h)}if(o>t.height){let c=[];for(let e=0,r=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&n.nodeAt(t.map[r+e]).type==u.header_cell;c.push(i?l||(l=u.header_cell.createAndFill()):a||(a=u.cell.createAndFill()))}let d=u.row.create(null,f.from(c)),h=[];for(let e=t.height;e<o;e++)h.push(d);e.insert(e.mapping.slice(s).map(r+n.nodeSize-2),h)}return!!(a||l)}
1646)(d,s,o,n,u,c,0)&&p(),cK(d,s,o,n,l,u,a,h)&&p(),cK(d,s,o,n,l,u,c,h)&&p(),cJ(d,s,o,n,a,c,l,h)&&p(),cJ(d,s,o,n,a,c,u,h)&&p();for(let e=a;e<c;e++){let t=s.positionAt(e,l,o),r=s.positionAt(e,u,o);d.replace(d.mapping.slice(h).map(t+n),d.mapping.slice(h).map(r+n),new x(i.rows[e-a],0,0))}p(),d.setSelection(new cO(d.doc.resolve(n+s.positionAt(a,l,o)),d.doc.resolve(n+s.positionAt(c-1,u-1,o)))),t(d)}let cY=id({ArrowLeft:cZ("horiz",-1),ArrowRight:cZ("horiz",1),ArrowUp:cZ("vert",-1),ArrowDown:cZ("vert",1),"Shift-ArrowLeft":c0("horiz",-1),"Shift-ArrowRight":c0("horiz",1),"Shift-ArrowUp":c0("vert",-1),"Shift-ArrowDown":c0("vert",1),Backspace:cW,"Mod-Backspace":cW,Delete:cW,"Mod-Delete":cW});function cX(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function cZ(e,t){return(n,r,i)=>{if(!i)return!1;let o=n.selection;if(o instanceof cO)return cX(n,r,eJ.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;let s=c3(i,e,t);if(null==s)return!1;if("horiz"==e)return cX(n,r,eJ.near(n.doc.resolve(o.head+t),t));{let i,o=n.doc.resolve(s),a=cT(o,e,t);return i=a?eJ.near(a,1):t<0?eJ.near(n.doc.resolve(o.before(-1)),-1):eJ.near(n.doc.resolve(o.after(-1)),1),cX(n,r,i)}}}function c0(e,t){return(n,r,i)=>{let o;if(!i)return!1;let s=n.selection;if(s instanceof cO)o=s;else{let r=c3(i,e,t);if(null==r)return!1;o=new cO(n.doc.resolve(r))}let a=cT(o.$headCell,e,t);return!!a&&cX(n,r,new cO(o.$anchorCell,a))}}function c1(e,t){let n=ck(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new cO(n))),!0)}function c2(e,t,n){if(!cC(e.state))return!1;let r=function(e){if(0===e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;1==t.childCount&&(n>0&&r>0||"table"==t.child(0).type.spec.tableRole);)n--,r--,t=t.child(0).content;let i=t.child(0),o=i.type.spec.tableRole,s=i.type.schema,a=[];if("row"==o)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,o=e?0:Math.max(0,n-1),l=e<t.childCount-1?0:Math.max(0,r-1);(o||l)&&(i=cG(c_(s).row,new x(i,o,l)).content),a.push(i)}else{if("cell"!=o&&"header_cell"!=o)return null;a.push(n||r?cG(c_(s).row,new x(t,n,r)).content:t)}return function(e,t){let n=[];for(let e=0;e<t.length;e++){let r=t[e];for(let t=r.childCount-1;t>=0;t--){let{rowspan:i,colspan:o}=r.child(t).attrs;for(let t=e;t<e+i;t++)n[t]=(n[t]||0)+o}}let r=0;for(let e=0;e<n.length;e++)r=Math.max(r,n[e]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(f.empty),n[i]<r){let o=c_(e).cell.createAndFill(),s=[];for(let e=n[i];e<r;e++)s.push(o);t[i]=t[i].append(f.from(s))}return{height:t.length,width:r,rows:t}}(s,a)}(n),i=e.state.selection;if(i instanceof cO){r||(r={width:1,height:1,rows:[f.from(cG(c_(e.state.schema).cell,n))]});let t=i.$anchorCell.node(-1),o=i.$anchorCell.start(-1),s=cx.get(t).rectBetween(i.$anchorCell.pos-o,i.$headCell.pos-o);return r=function({width:e,height:t,rows:n},r,i){if(e!=r){let t=[],i=[];for(let e=0;e<n.length;e++){let o=n[e],s=[];for(let n=t[e]||0,i=0;n<r;i++){let a=o.child(i%o.childCount);n+a.attrs.colspan>r&&(a=a.type.createChecked(cj(a.attrs,a.attrs.colspan,n+a.attrs.colspan-r),a.content)),s.push(a),n+=a.attrs.colspan;for(let n=1;n<a.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+a.attrs.colspan}i.push(f.from(s))}n=i,e=r}if(t!=i){let e=[];for(let r=0,o=0;r<i;r++,o++){let s=[],a=n[o%t];for(let e=0;e<a.childCount;e++){let t=a.child(e);r+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),s.push(t)}e.push(f.from(s))}n=e,t=i}return{width:e,height:t,rows:n}}(r,s.right-s.left,s.bottom-s.top),cQ(e.state,e.dispatch,o,s,r),!0}if(!r)return!1;{let t=cE(e.state),n=t.start(-1);return cQ(e.state,e.dispatch,n,cx.get(t.node(-1)).findCell(t.pos-n),r),!0}}function c5(e,t){var n;let r;if(0!=t.button||t.ctrlKey||t.metaKey)return;let i=c4(e,t.target);if(t.shiftKey&&e.state.selection instanceof cO)o(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(r=ck(e.state.selection.$anchor))&&(null==(n=c8(e,t))?void 0:n.pos)!=r.pos)o(r,t),t.preventDefault();else if(!i)return;function o(t,n){let r=c8(e,n),i=null==cw.getState(e.state);if(!r||!cS(t,r))if(!i)return;else r=t;let o=new cO(t,r);
1646if(i||!e.state.selection.eq(o)){let n=e.state.tr.setSelection(o);i&&n.setMeta(cw,t.pos),e.dispatch(n)}}function s(){e.root.removeEventListener("mouseup",s),e.root.removeEventListener("dragstart",s),e.root.removeEventListener("mousemove",a),null!=cw.getState(e.state)&&e.dispatch(e.state.tr.setMeta(cw,-1))}function a(n){let r,a=cw.getState(e.state);if(null!=a)r=e.state.doc.resolve(a);else if(c4(e,n.target)!=i&&!(r=c8(e,t)))return s();r&&o(r,n)}e.root.addEventListener("mouseup",s),e.root.addEventListener("dragstart",s),e.root.addEventListener("mousemove",a)}function c3(e,t,n){if(!(e.state.selection instanceof eZ))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))break;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let o=r.before(i),s="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(s)?o:null}}return null}function c4(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function c8(e,t){let n=e.posAtCoords({left:t.clientX,top:t.clientY});if(!n)return null;let{inside:r,pos:i}=n;return r>=0&&ck(e.state.doc.resolve(r))||ck(e.state.doc.resolve(i))}var c6=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),c7(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,c7(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function c7(e,t,n,r,i,o){let s=0,a=!0,l=t.firstChild,u=e.firstChild;if(u){for(let e=0,n=0;e<u.childCount;e++){let{colspan:c,colwidth:d}=u.child(e).attrs;for(let e=0;e<c;e++,n++){let u=i==n?o:d&&d[e],c=u?u+"px":"";if(s+=u||r,u||(a=!1),l)l.style.width!=c&&(l.style.width=c),l=l.nextSibling;else{let e=document.createElement("col");e.style.width=c,t.appendChild(e)}}}for(;l;){var c;let e=l.nextSibling;null==(c=l.parentNode)||c.removeChild(l),l=e}a?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}}let c9=new ts("tableColumnResizing");var de=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let n=t.getMeta(c9);if(n&&null!=n.setHandle)return new e(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new e(this.activeHandle,n.setDragging);if(this.activeHandle>-1&&t.docChanged){let n=t.mapping.map(this.activeHandle,-1);return cA(t.doc.resolve(n))||(n=-1),new e(n,this.dragging)}return this}};function dt(e,t,n,r){let i=e.posAtCoords({left:t.clientX+("right"==n?-r:r),top:t.clientY});if(!i)return -1;let{pos:o}=i,s=ck(e.state.doc.resolve(o));if(!s)return -1;if("right"==n)return s.pos;let a=cx.get(s.node(-1)),l=s.start(-1),u=a.map.indexOf(s.pos-l);return u%a.width==0?-1:l+a.map[u-1]}function dn(e,t,n){let r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function dr(e,t){e.dispatch(e.state.tr.setMeta(c9,{setHandle:t}))}function di(e,t,n,r){let i=e.state.doc.resolve(t),o=i.node(-1),s=i.start(-1),a=cx.get(o).colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1,l=e.domAtPos(i.start(-1)).node;for(;l&&"TABLE"!=l.nodeName;)l=l.parentNode;l&&c7(o,l.firstChild,l,r,a,n)}function ds(e){return"left"===e||"right"===e||"center"===e?e:null}function da(){return{default:null,parseHTML:e=>(function(e){let t=(e.style.textAlign||"").trim().toLowerCase(),n=(e.getAttribute("align")||"").trim().toLowerCase();return ds(t||n)})(e),renderHTML:e=>e.align?{style:`text-align: ${e.align}`}:{}}}var dl=sW.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{var t,n;let r=e.getAttribute("colwidth"),i=r?r.split(",").map(e=>parseInt(e,10)):null;if(!i){let r=null==(t=e.closest("table"))?void 0:t.querySelectorAll("colgroup > col"),i=Array.from((null==(n=e.parentElement)?void 0:n.children)||[]).indexOf(e);if(i&&i>-1&&r&&r[i]){let e=r[i].getAttribute("width");return e?[parseInt(e,10)]:null}}return i}},align:da()}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",oS(this.options.HTMLAttributes,e),0]}}),du=sW.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}},align:da()}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",oS(this.options.HTMLAttributes,e),0]}}),dc=sW.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",oS(this.options.HTMLAttributes,e),0]}});function dd(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function dh(e,t,n,r,i,o){var s;let a=0,l=!0,u=t.firstChild,c=e.firstChild;if(null!==c)for(let e=0,n=0;e<c.childCount;e+=1){let{colspan:s,colwidth:d}=c.child(e).attrs;for(let e=0;e<s;e+=1,n+=1){let s=i===n?o:d&&d[e],c=s?`${s}px`:"";if(a+=s||r,s||(l=!1),u){if(u.style.width!==c){let[e,t]=dd(r,s);
1646u.style.setProperty(e,t)}u=u.nextSibling}else{let e=document.createElement("col"),[n,i]=dd(r,s);e.style.setProperty(n,i),t.appendChild(e)}}}for(;u;){let e=u.nextSibling;null==(s=u.parentNode)||s.removeChild(u),u=e}let d=e.attrs.style&&"string"==typeof e.attrs.style&&/\bwidth\s*:/i.test(e.attrs.style);l&&!d?(n.style.width=`${a}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${a}px`)}var dp=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),e.attrs.style&&(this.table.style.cssText=e.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),dh(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,dh(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){let t=e.target,n=this.dom.contains(t),r=this.contentDOM.contains(t);return!!n&&!r&&("attributes"===e.type||"childList"===e.type||"characterData"===e.type)}};function df(e,t){return t?e.createChecked(null,t):e.createAndFill()}var dm=({editor:e})=>{let{selection:t}=e.state;if(!(t instanceof cO))return!1;let n=0,r=oy(t.ranges[0].$from,e=>"table"===e.type.name);return null==r||r.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(n+=1)}),n===t.ranges.length&&(e.commands.deleteTable(),!0)},dg=function(e,t,n={}){var r;let i=null!=(r=n.cellLineSeparator)?r:"\x1f";if(!e||!e.content||0===e.content.length)return"";let o=[];e.content.forEach(e=>{let n=[];e.content&&e.content.forEach(e=>{var r;let o=((e.content&&Array.isArray(e.content)&&e.content.length>1?e.content.map(e=>t.renderChildren(e)).join(i):e.content?t.renderChildren(e.content):"")||"").replace(/\s+/g," ").trim(),s="tableHeader"===e.type,a=ds(null==(r=e.attrs)?void 0:r.align);n.push({text:o,isHeader:s,align:a})}),o.push(n)});let s=o.reduce((e,t)=>Math.max(e,t.length),0);if(0===s)return"";let a=Array(s).fill(0);o.forEach(e=>{var t;for(let n=0;n<s;n+=1){let r=((null==(t=e[n])?void 0:t.text)||"").length;r>a[n]&&(a[n]=r),a[n]<3&&(a[n]=3)}});let l=(e,t)=>e+" ".repeat(Math.max(0,t-e.length)),u=o[0],c=u.some(e=>e.isHeader),d=Array(s).fill(null);o.forEach(e=>{var t;for(let n=0;n<s;n+=1)!d[n]&&(null==(t=e[n])?void 0:t.align)&&(d[n]=e[n].align)});let h="\n",p=Array(s).fill(0).map((e,t)=>c&&u[t]&&u[t].text||"");return h+=`| ${p.map((e,t)=>l(e,a[t])).join(" | ")} | 1647| ${a.map((e,t)=>{let n=Math.max(3,e),r=d[t];return"left"===r?`:${"-".repeat(n)}`:"right"===r?`${"-".repeat(n)}:`:"center"===r?`:${"-".repeat(n)}:`:"-".repeat(n)}).join(" | ")} | 1648`,(c?o.slice(1):o).forEach(e=>{h+=`| ${Array(s).fill(0).map((t,n)=>l(e[n]&&e[n].text||"",a[n])).join(" | ")} | 1649`}),h},dy=sW.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:dp,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:n,tableWidth:r,tableMinWidth:i}=function(e,t,n,r){let i=0,o=!0,s=[],a=e.firstChild;if(!a)return{};for(let e=0,n=0;e<a.childCount;e+=1){let{colspan:r,colwidth:l}=a.child(e).attrs;for(let e=0;e<r;e+=1,n+=1){let r=void 0===n?void 0:l&&l[e];i+=r||t,r||(o=!1);let[a,u]=dd(t,r);s.push(["col",{style:`${a}: ${u}`}])}}return{colgroup:["colgroup",{},...s],tableWidth:o?`${i}px`:"",tableMinWidth:o?"":`${i}px`}}(e,this.options.cellMinWidth),o=t.style,s=["table",oS(this.options.HTMLAttributes,t,{style:o||(r?`width: ${r}`:`min-width: ${i}`)}),n,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},s]:s},parseMarkdown:(e,t)=>{let n=[],r=Array.isArray(e.align)?e.align:[];if(e.header){let i=[];e.header.forEach((e,n)=>{var o;let s=ds(null!=(o=r[n])?o:e.align);i.push(t.createNode("tableHeader",s?{align:s}:{},[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),n.push(t.createNode("tableRow",{},i))}
1649return e.rows&&e.rows.forEach(e=>{let i=[];e.forEach((e,n)=>{var o;let s=ds(null!=(o=r[n])?o:e.align);i.push(t.createNode("tableCell",s?{align:s}:{},[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),n.push(t.createNode("tableRow",{},i))}),t.createNode("table",void 0,n)},renderMarkdown:(e,t)=>dg(e,t),addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:i,editor:o})=>{let s=function(e,t,n,r,i){let o=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};return Object.keys(e.nodes).forEach(n=>{let r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t}(e),s=[],a=[];for(let e=0;e<n;e+=1){let e=df(o.cell,void 0);if(e&&a.push(e),r){let e=df(o.header_cell,void 0);e&&s.push(e)}}let l=[];for(let e=0;e<t;e+=1)l.push(o.row.createChecked(null,r&&0===e?s:a));return o.table.createChecked(null,l)}(o.schema,e,t,n);if(i){let e=r.selection.from+1;r.replaceSelectionWith(s).scrollIntoView().setSelection(eZ.near(r.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>(function(e,t){if(!cC(e))return!1;if(t){let n=cR(e);t(cP(e.tr,n,n.left))}return!0})(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>(function(e,t){if(!cC(e))return!1;if(t){let n=cR(e);t(cP(e.tr,n,n.right))}return!0})(e,t),deleteColumn:()=>({state:e,dispatch:t})=>(function(e,t){if(!cC(e))return!1;if(t){let n=cR(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let e=n.right-1;!function(e,{map:t,table:n,tableStart:r},i){let o=e.mapping.maps.length;for(let s=0;s<t.height;){let a=s*t.width+i,l=t.map[a],u=n.nodeAt(l),c=u.attrs;if(i>0&&t.map[a-1]==l||i<t.width-1&&t.map[a+1]==l)e.setNodeMarkup(e.mapping.slice(o).map(r+l),null,cj(c,i-t.colCount(l)));else{let t=e.mapping.slice(o).map(r+l);e.delete(t,t+u.nodeSize)}s+=c.rowspan}}(r,n,e),e!=n.left;e--){let e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=cx.get(e)}t(r)}return!0})(e,t),addRowBefore:()=>({state:e,dispatch:t})=>(function(e,t){if(!cC(e))return!1;if(t){let n=cR(e);t(cF(e.tr,n,n.top))}return!0})(e,t),addRowAfter:()=>({state:e,dispatch:t})=>(function(e,t){if(!cC(e))return!1;if(t){let n=cR(e);t(cF(e.tr,n,n.bottom))}return!0})(e,t),deleteRow:()=>({state:e,dispatch:t})=>(function(e,t){if(!cC(e))return!1;if(t){let n=cR(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let e=n.bottom-1;!function(e,{map:t,table:n,tableStart:r},i){let o=0;for(let e=0;e<i;e++)o+=n.child(e).nodeSize;let s=o+n.child(i).nodeSize,a=e.mapping.maps.length;e.delete(o+r,s+r);let l=new Set;for(let o=0,s=i*t.width;o<t.width;o++,s++){let u=t.map[s];if(!l.has(u)){if(l.add(u),i>0&&u==t.map[s-t.width]){let t=n.nodeAt(u).attrs;e.setNodeMarkup(e.mapping.slice(a).map(u+r),null,{...t,rowspan:t.rowspan-1}),o+=t.colspan-1}else if(i<t.height&&u==t.map[s+t.width]){let s=n.nodeAt(u),l=s.attrs,c=s.type.create({...l,rowspan:s.attrs.rowspan-1},s.content),d=t.positionAt(i+1,o,n);e.insert(e.mapping.slice(a).map(r+d),c),o+=l.colspan-1}}}}(r,n,e),e!=n.top;e--){let e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=cx.get(n.table)}t(r)}return!0})(e,t),deleteTable:()=>({state:e,dispatch:t})=>(function(e,t){let n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1})(e,t),mergeCells:()=>({state:e,dispatch:t})=>c$(e,t),splitCell:()=>({state:e,dispatch:t})=>cq(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>cz("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>cz("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>cU(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!c$(e,t)||cq(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>(function(e,t){return function(n,r){if(!cC(n))return!1;let i=cE(n);if(i.nodeAfter.attrs[e]===t)return!1;if(r){let o=n.tr;n.selection instanceof cO?n.selection.forEachCell((n,r)=>{n.attrs[e]!==t&&o.setNodeMarkup(r,null,{...n.attrs,[e]:t})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),r(o)}return!0}})(e,t)(n,r),goToNextCell:()=>({state:e,dispatch:t})=>cH(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>cH(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&cL(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){let n=cO.create(t.doc,e.anchorCell,e.headCell);t.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"
1649Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:dm,"Mod-Backspace":dm,Delete:dm,"Mod-Delete":dm}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[function({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:n=100,View:r=c6,lastColumnResizable:i=!0}={}){let o=new tr({key:c9,state:{init(e,t){var i;let s=null==(i=o.spec)||null==(i=i.props)?void 0:i.nodeViews,a=c_(t.schema).table.name;return r&&s&&(s[a]=(e,t)=>new r(e,n,t)),new de(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=c9.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,n)=>{!function(e,t,n,r){if(!e.editable)return;let i=c9.getState(e.state);if(i&&!i.dragging){let o=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),s=-1;if(o){let{left:r,right:i}=o.getBoundingClientRect();t.clientX-r<=n?s=dt(e,t,"left",n):i-t.clientX<=n&&(s=dt(e,t,"right",n))}if(s!=i.activeHandle){if(!r&&-1!==s){let t=e.state.doc.resolve(s),n=t.node(-1),r=cx.get(n),i=t.start(-1);if(r.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==r.width-1)return}dr(e,s)}}}(t,n,e,i)},mouseleave:e=>{!function(e){if(!e.editable)return;let t=c9.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&dr(e,-1)}(e)},mousedown:(e,r)=>{!function(e,t,n,r){var i;if(!e.editable)return;let o=null!=(i=e.dom.ownerDocument.defaultView)?i:window,s=c9.getState(e.state);if(!s||-1==s.activeHandle||s.dragging)return;let a=e.state.doc.nodeAt(s.activeHandle),l=function(e,t,{colspan:n,colwidth:r}){let i=r&&r[r.length-1];if(i)return i;let o=e.domAtPos(t),s=o.node.childNodes[o.offset].offsetWidth,a=n;if(r)for(let e=0;e<n;e++)r[e]&&(s-=r[e],a--);return s/a}(e,s.activeHandle,a.attrs);function u(t){o.removeEventListener("mouseup",u),o.removeEventListener("mousemove",c);let r=c9.getState(e.state);(null==r?void 0:r.dragging)&&(function(e,t,n){let r=e.state.doc.resolve(t),i=r.node(-1),o=cx.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let e=0;e<o.height;e++){let t=e*o.width+a;if(e&&o.map[t]==o.map[t-o.width])continue;let r=o.map[t],u=i.nodeAt(r).attrs,c=1==u.colspan?0:a-o.colCount(r);if(u.colwidth&&u.colwidth[c]==n)continue;let d=u.colwidth?u.colwidth.slice():Array(u.colspan).fill(0);d[c]=n,l.setNodeMarkup(s+r,null,{...u,colwidth:d})}l.docChanged&&e.dispatch(l)}(e,r.activeHandle,dn(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(c9,{setDragging:null})))}function c(t){if(!t.which)return u(t);let i=c9.getState(e.state);if(i&&i.dragging){let o=dn(i.dragging,t,n);di(e,i.activeHandle,o,r)}}e.dispatch(e.state.tr.setMeta(c9,{setDragging:{startX:t.clientX,startWidth:l}})),di(e,s.activeHandle,l,r),o.addEventListener("mouseup",u),o.addEventListener("mousemove",c),t.preventDefault()}(e,r,t,n)}},decorations:e=>{let t=c9.getState(e);if(t&&t.activeHandle>-1)return function(e,t){let n=[],r=e.doc.resolve(t),i=r.node(-1);if(!i)return rR.empty;let o=cx.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1;for(let t=0;t<o.height;t++){let r=a+t*o.width;if((a==o.width-1||o.map[r]!=o.map[r+1])&&(0==t||o.map[r]!=o.map[r-o.width])){var l;let t=o.map[r],a=s+t+i.nodeAt(t).nodeSize-1,u=document.createElement("div");u.className="column-resize-handle",(null==(l=c9.getState(e))?void 0:l.dragging)&&n.push(rD.node(s+t,s+t+i.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),n.push(rD.widget(a,u))}}return rR.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return o}({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],function({allowTableNodeSelection:e=!1}={}){return new tr({key:cw,state:{init:()=>null,apply(e,t){let n=e.getMeta(cw);if(null!=n)return -1==n?null:n;if(null==t||!e.docChanged)return t;let{deleted:r,pos:i}=e.mapping.mapResult(t);return r?null:i}},props:{decorations:cD,handleDOMEvents:{mousedown:c5},createSelectionBetween:e=>null!=cw.getState(e.state)?e.state.selection:null,handleTripleClick:c1,handleKeyDown:cY,handlePaste:c2},appendTransaction:(t,n,r)=>(function(e,t,n){let r,i,o=(t||e).selection,s=(t||e).doc;if(o instanceof e1&&(i=o.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)r=cO.create(s,o.from);else if("row"==i){let e=s.resolve(o.from+1);r=cO.rowSelection(e,e)}else if(!n){let e=cx.get(o.node),t=o.from+1,n=t+e.map[e.width*e.height-1];r=cO.create(s,t+1,n)}}else o instanceof eZ&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,n++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}(o)?r=eZ.create(s,o.from):o instanceof eZ&&function({$from:e,$to:t}){let n,r;for(let t=e.depth;t>0;t--){let r=e.node(t);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}for(let e=t.depth;e>0;e--){let n=t.node(e);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}return n!==r&&0===t.parentOffset}(o)&&(r=eZ.create(s,o.$from.start(),o.$from.end()));return r&&(t||(t=e.tr)).setSelection(r),t})(r,cL(r,n),e)})}({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:ok(ob(e,"tableRole",t))}}});sy.create({name:"tableKit",addExtensions(){let e=[];return!1!==this.options.table&&e.push(dy.configure(this.options.table)),!1!==this.options.tableCell&&e.push(dl.configure(this.options.tableCell)),!1!==this.options.tableHeader&&e.push(du.configure(this.options.tableHeader)),!1!==this.options.tableRow&&e.push(dc.configure(this.options.tableRow)),e}});var dv=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/;let db=sW.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",oS(this.options.HTMLAttributes,e)]},parseMarkdown:(e,t)=>t.createNode("image",{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{var t,n,r,i,o,s;let a=null!=(n=null==(t=e.attrs)?void 0:t.src)?n:"",l=null!=(i=null==(r=e.attrs)?void 0:r.alt)?i:"",u=null!=(s=null==(o=e.attrs)?void 0:o.title)?s:"";return u?``:``}
1649,addNodeView(){if(!this.options.resize||!this.options.resize.enabled||"undefined"==typeof document)return null;let{directions:e,minWidth:t,minHeight:n,alwaysPreserveAspectRatio:r}=this.options.resize;return({node:i,getPos:o,HTMLAttributes:s,editor:a})=>{let l=document.createElement("img");Object.entries(s).forEach(([e,t])=>{if(null!=t)switch(e){case"width":case"height":break;default:l.setAttribute(e,t)}}),l.src=s.src;let u=new sR({element:l,editor:a,node:i,getPos:o,onResize:(e,t)=>{l.style.width=`${e}px`,l.style.height=`${t}px`},onCommit:(e,t)=>{let n=o();void 0!==n&&this.editor.chain().setNodeSelection(n).updateAttributes(this.name,{width:e,height:t}).run()},onUpdate:(e,t,n)=>e.type===i.type,options:{directions:e,min:{width:t,height:n},preserveAspectRatio:!0===r}}),c=u.dom;return c.style.visibility="hidden",c.style.pointerEvents="none",l.onload=()=>{c.style.visibility="",c.style.pointerEvents=""},u}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[sD({find:dv,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}).extend({addAttributes(){return{...this.parent?.(),href:{default:null,parseHTML:e=>e.closest("a")?.getAttribute("href")||null},target:{default:null,parseHTML:e=>e.closest("a")?.getAttribute("target")||null}}},renderHTML({HTMLAttributes:e}){let{href:t,target:n,...r}=e,i=["img",oS(this.options.HTMLAttributes,r)];return t?["a",n?{href:t,target:n,rel:"noopener noreferrer"}:{href:t},i]:i}}),dx={class:{default:null},id:{default:null},style:{default:null}},d_=["blockquote","bulletList","codeBlock","heading","image","link","listItem","orderedList","paragraph","table","tableCell","tableHeader","tableRow"],dw=sW.create({name:"div",group:"block",content:"block*",defining:!0,addAttributes:()=>dx,parseHTML:()=>[{tag:"div"}],renderHTML:({HTMLAttributes:e})=>["div",oS(e),0]}),dk=sW.create({name:"source",group:"pictureSource",atom:!0,selectable:!1,addAttributes:()=>({media:{default:null},sizes:{default:null},srcset:{default:null},type:{default:null}}),parseHTML:()=>[{tag:"source"}],renderHTML:({HTMLAttributes:e})=>["source",oS(e)]}),dC=sW.create({name:"picture",group:"block",content:"pictureSource* image",defining:!0,addAttributes:()=>dx,parseHTML:()=>[{tag:"picture"}],renderHTML:({HTMLAttributes:e})=>["picture",oS(e),0]}),dE=sp.create({name:"span",addAttributes:()=>dx,parseHTML:()=>[{tag:"span"}],renderHTML:({HTMLAttributes:e})=>["span",oS(e),0]}),dA=sy.create({name:"preservedClassNames",addGlobalAttributes:()=>[{types:d_,attributes:{class:{default:null},id:{default:null}}}]});var dS=n(10969),dT=n(49995),dj=n(14766),dN=n(53337),dO=n(63009);function dI(e){let{active:t,disabled:n,onClick:r,title:i,children:s}=e;return(0,o.jsx)("button",{type:"button",title:i,"aria-label":i,"aria-pressed":t,disabled:n,onMouseDown:e=>e.preventDefault(),onClick:r,className:(0,dT.A)("px-2.5 py-1.5 text-base rounded border border-transparent hover:bg-new-gray-100",t&&"bg-new-gray-200 border-new-gray-300",n&&"opacity-40 cursor-not-allowed hover:bg-transparent"),"data-sentry-component":"MenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:s})}function dD(){return(0,o.jsx)("span",{className:"mx-1 self-stretch w-px bg-new-gray-300","aria-hidden":!0,"data-sentry-component":"Divider","data-sentry-source-file":"TipTapMenuBar.tsx"})}function dM(e){let{label:t,title:n,disabled:r,items:i}=e,s=(0,dS.ZF)();return(0,o.jsxs)(dj.W1,{as:"div",className:"relative","data-sentry-element":"Menu","data-sentry-component":"MenuDropdown","data-sentry-source-file":"TipTapMenuBar.tsx",children:[(0,o.jsxs)(dj.IU,{type:"button",title:n,"aria-label":n,disabled:r,className:(0,dT.A)("flex items-center gap-1 px-2.5 py-1.5 text-base rounded border border-transparent hover:bg-new-gray-100",r&&"opacity-40 cursor-not-allowed hover:bg-transparent"),"data-sentry-element":"HuiMenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:[t,(0,o.jsx)(dN.A,{className:"w-3 h-3","aria-hidden":!0,"data-sentry-element":"ChevronDownIcon","data-sentry-source-file":"TipTapMenuBar.tsx"})]}),(0,o.jsx)(dO.A,{className:"absolute left-0 top-full mt-1 z-50 min-w-[12rem]","data-sentry-element":"StyledMenuItems","data-sentry-source-file":"TipTapMenuBar.tsx",children:i.map((e,t)=>e.divider?(0,o.jsx)("div",{className:"my-1 border-t border-new-gray-200","aria-hidden":!0},t):(0,o.jsx)(dj.Dr,{disabled:e.disabled,children:(0,o.jsx)("button",{type:"button",onClick:()=>e.onClick(),disabled:e.disabled,className:(0,dT.A)("block w-full text-left px-4 py-2 text-sm",e.disabled?"opacity-50 cursor-not-allowed":s.focused),children:e.label})},t))})]})}function dL(){return(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":!0,"data-sentry-element":"svg","data-sentry-component":"AlignLeftIcon","data-sentry-source-file":"TipTapMenuBar.tsx",children:[(0,o.jsx)("line",{x1:"2",y1:"4",x2:"14",y2:"4","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("line",{x1:"2",y1:"8",x2:"10",y2:"8","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("line",{x1:"2",y1:"12",x2:"12",y2:"12","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"})]})}function dR(){return(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":!0,"data-sentry-element":"svg","data-sentry-component":"AlignCenterIcon","data-sentry-source-file":"TipTapMenuBar.tsx",children:[(0,o.jsx)("line",{x1:"2",y1:"4",x2:"14",y2:"4","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("line",{x1:"4",y1:"8",x2:"12",y2:"8","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("line",{x1:"3",y1:"12",x2:"13",y2:"12","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"})]})}function dP(){return(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":!0,"data-sentry-element":"svg","data-sentry-component":"AlignRightIcon","data-sentry-source-file":"TipTapMenuBar.tsx",children:[(0,o.jsx)("line",{x1:"2",y1:"4",x2:"14",y2:"4","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("line",{x1:"6",y1:"8",x2:"14",y2:"8","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("line",{x1:"4",y1:"12",x2:"14",y2:"12","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"})]})}function dF(){return(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":!0,"data-sentry-element":"svg","data-sentry-component":"BulletListIcon","data-sentry-source-file":"TipTapMenuBar.tsx",children:[(0,o.jsx)("circle",{cx:"3",cy:"4",r:"1",fill:"currentColor",stroke:"none","data-sentry-element":"circle","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("circle",{cx:"3",cy:"8",r:"1",fill:"currentColor",stroke:"none","data-sentry-element":"circle","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("circle",{cx:"3",cy:"12",r:"1",fill:"currentColor",stroke:"none","data-sentry-element":"circle","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("line",{x1:"6",y1:"4",x2:"14",y2:"4","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("line",{x1:"6",y1:"8",x2:"14",y2:"8","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("line",{x1:"6",y1:"12",x2:"14",y2:"12","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"})]})}function dB(){return(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,"data-sentry-element":"svg","data-sentry-component":"CodeViewIcon","data-sentry-source-file":"TipTapMenuBar.tsx",children:[(0,o.jsx)("polyline",{points:"5,4 1,8 5,12","data-sentry-element":"polyline","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("polyline",{points:"11,4 15,8 11,12","data-sentry-element":"polyline","data-sentry-source-file":"TipTapMenuBar.tsx"})]})}function d$(){return(0,o.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":!0,"data-sentry-element":"svg","data-sentry-component":"OrderedListIcon","data-sentry-source-file":"TipTapMenuBar.tsx",children:[(0,o.jsx)("text",{x:"1",y:"5.5",fontSize:"4.5",fontFamily:"sans-serif",fontWeight:"700",fill:"currentColor",stroke:"none","data-sentry-element":"text","data-sentry-source-file":"TipTapMenuBar.tsx",children:"1"}),(0,o.jsx)("text",{x:"1",y:"9.75",fontSize:"4.5",fontFamily:"sans-serif",fontWeight:"700",fill:"currentColor",stroke:"none","data-sentry-element":"text","data-sentry-source-file":"TipTapMenuBar.tsx",children:"2"}),(0,o.jsx)("text",{x:"1",y:"14",fontSize:"4.5",fontFamily:"sans-serif",fontWeight:"700",fill:"currentColor",stroke:"none","data-sentry-element":"text","data-sentry-source-file":"TipTapMenuBar.tsx",children:"3"}),(0,o.jsx)("line",{x1:"6",y1:"4",x2:"14",y2:"4","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("line",{x1:"6",y1:"8",x2:"14",y2:"8","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)("line",{x1:"6",y1:"12",x2:"14",y2:"12","data-sentry-element":"line","data-sentry-source-file":"TipTapMenuBar.tsx"})]})}let dq=[{value:"p",label:"Paragraph"},{value:"h1",label:"Heading 1"},{value:"h2",label:"Heading 2"},{value:"h3",label:"Heading 3"}];function dV(e){let{editor:t,featureSet:n,viewMode:r,onToggleViewMode:i}
1649=e;if(!t)return(0,o.jsx)("div",{className:"border-b border-new-gray-200 h-9","aria-hidden":!0});let s="html"===r;return(0,o.jsxs)("div",{className:"flex flex-wrap items-center gap-1 border-b px-[17px] py-2 border-new-gray-200 bg-new-gray-50 text-secondary-900","data-sentry-component":"TipTapMenuBar","data-sentry-source-file":"TipTapMenuBar.tsx",children:[(0,o.jsx)("select",{className:(0,dT.A)("text-base border border-new-gray-300 rounded px-2 py-1 bg-white",s&&"opacity-40 cursor-not-allowed"),value:t.isActive("heading",{level:1})?"h1":t.isActive("heading",{level:2})?"h2":t.isActive("heading",{level:3})?"h3":"p",disabled:s,onChange:e=>(function(e,t){let n=e.chain().focus();if("p"===t)return void n.setParagraph().run();let r=Number(t.slice(1));n.toggleHeading({level:r}).run()})(t,e.target.value),title:"Paragraph format",children:dq.map(e=>(0,o.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,o.jsx)(dD,{"data-sentry-element":"Divider","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)(dI,{title:"Bold",active:t.isActive("bold"),disabled:s,onClick:()=>t.chain().focus().toggleBold().run(),"data-sentry-element":"MenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:(0,o.jsx)("strong",{children:"B"})}),(0,o.jsx)(dI,{title:"Italic",active:t.isActive("italic"),disabled:s,onClick:()=>t.chain().focus().toggleItalic().run(),"data-sentry-element":"MenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:(0,o.jsx)("em",{children:"I"})}),(0,o.jsx)(dI,{title:"Underline",active:t.isActive("underline"),disabled:s,onClick:()=>t.chain().focus().toggleUnderline().run(),"data-sentry-element":"MenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:(0,o.jsx)("span",{className:"underline",children:"U"})}),(0,o.jsx)(dD,{"data-sentry-element":"Divider","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)(dI,{title:"Align left",active:t.isActive({textAlign:"left"}),disabled:s,onClick:()=>t.chain().focus().setTextAlign("left").run(),"data-sentry-element":"MenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:(0,o.jsx)(dL,{"data-sentry-element":"AlignLeftIcon","data-sentry-source-file":"TipTapMenuBar.tsx"})}),(0,o.jsx)(dI,{title:"Align center",active:t.isActive({textAlign:"center"}),disabled:s,onClick:()=>t.chain().focus().setTextAlign("center").run(),"data-sentry-element":"MenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:(0,o.jsx)(dR,{"data-sentry-element":"AlignCenterIcon","data-sentry-source-file":"TipTapMenuBar.tsx"})}),(0,o.jsx)(dI,{title:"Align right",active:t.isActive({textAlign:"right"}),disabled:s,onClick:()=>t.chain().focus().setTextAlign("right").run(),"data-sentry-element":"MenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:(0,o.jsx)(dP,{"data-sentry-element":"AlignRightIcon","data-sentry-source-file":"TipTapMenuBar.tsx"})}),(0,o.jsx)(dD,{"data-sentry-element":"Divider","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)(dI,{title:"Numbered list",active:t.isActive("orderedList"),disabled:s,onClick:()=>t.chain().focus().toggleOrderedList().run(),"data-sentry-element":"MenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:(0,o.jsx)(d$,{"data-sentry-element":"OrderedListIcon","data-sentry-source-file":"TipTapMenuBar.tsx"})}),(0,o.jsx)(dI,{title:"Bulleted list",active:t.isActive("bulletList"),disabled:s,onClick:()=>t.chain().focus().toggleBulletList().run(),"data-sentry-element":"MenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:(0,o.jsx)(dF,{"data-sentry-element":"BulletListIcon","data-sentry-source-file":"TipTapMenuBar.tsx"})}),(0,o.jsx)(dD,{"data-sentry-element":"Divider","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)(dI,{title:"Insert link",active:t.isActive("link")||t.isActive("image")&&!!t.getAttributes("image").href,disabled:s,onClick:()=>(function(e){if(e.isActive("image")){let t=e.getAttributes("image").href||"",n=window.prompt("Link URL",t);if(null===n)return;e.chain().focus().updateAttributes("image",{href:n||null,target:n?"_blank":null}).run();return}let t=e.getAttributes("link").href||"",n=window.prompt("Link URL",t);if(null!==n){if(""===n)return void e.chain().focus().extendMarkRange("link").unsetLink().run();e.chain().focus().extendMarkRange("link").setLink({href:n}).run()}})(t),"data-sentry-element":"MenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:"\uD83D\uDD17"}),"web"===n&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(dD,{}),(0,o.jsx)(dM,{title:"Table actions",label:"Table",disabled:s,items:[{label:"Insert table",onClick:()=>t.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run()},{label:"Toggle header row",disabled:!t.can().toggleHeaderRow(),onClick:()=>t.chain().focus().toggleHeaderRow().run()},{divider:!0},{label:"Add row before",disabled:!t.can().addRowBefore(),onClick:()=>t.chain().focus().addRowBefore().run()},{label:"Add row after",disabled:!t.can().addRowAfter(),onClick:()=>t.chain().focus().addRowAfter().run()},{label:"Delete row",disabled:!t.can().deleteRow(),onClick:()=>t.chain().focus().deleteRow().run()},{divider:!0},{label:"Add column before",disabled:!t.can().addColumnBefore(),onClick:()=>t.chain().focus().addColumnBefore().run()},{label:"Add column after",disabled:!t.can().addColumnAfter(),onClick:()=>t.chain().focus().addColumnAfter().run()},{label:"Delete column",disabled:!t.can().deleteColumn(),onClick:()=>t.chain().focus().deleteColumn().run()},{divider:!0},{label:"Merge cells",disabled:!t.can().mergeCells(),onClick:()=>t.chain().focus().mergeCells().run()},{label:"Split cell",disabled:!t.can().splitCell(),onClick:()=>t.chain().focus().splitCell().run()},{divider:!0},{label:"Delete table",disabled:!t.can().deleteTable(),onClick:()=>t.chain().focus().deleteTable().run()}]})]}),(0,o.jsx)(dD,{"data-sentry-element":"Divider","data-sentry-source-file":"TipTapMenuBar.tsx"}),(0,o.jsx)(dI,{title:"Clear formatting",disabled:s,onClick:()=>t.chain().focus().unsetAllMarks().clearNodes().run(),"data-sentry-element":"MenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:"Tx"}),(0,o.jsx)("span",{className:"ml-auto"}),(0,o.jsx)(dI,{title:s?"Switch to visual editor":"Edit raw HTML",active:s,onClick:i,"data-sentry-element":"MenuButton","data-sentry-source-file":"TipTapMenuBar.tsx",children:(0,o.jsx)(dB,{"data-sentry-element":"CodeViewIcon","data-sentry-source-file":"TipTapMenuBar.tsx"})})]})}let dz=["paragraph","heading"];
1649function dU(e){let{control:t,name:n,rules:r,inputRef:i,onDragEnter:l,onInitialized:d,featureSet:p="email",preserveMarkup:f="web"===p}=e,{field:m}=(0,a.as)({control:t,name:n,rules:r}),g=(0,s.useRef)(m.onChange),y=(0,s.useRef)(m.onBlur),v=(0,s.useRef)(!1),[b,x]=(0,s.useState)("wysiwyg");(0,s.useEffect)(()=>{g.current=m.onChange,y.current=m.onBlur});let _="web"===p,w=function(e={},t=[]){let n=(0,s.useRef)(e);n.current=e;let[r]=(0,s.useState)(()=>new aw(n)),i=(0,h.useSyncExternalStore)(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,s.useDebugValue)(i),(0,s.useEffect)(r.onRender(t)),!function(e){var t;let[n]=(0,s.useState)(()=>new ab(e.editor)),r=(0,ap.useSyncExternalStoreWithSelector)(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:ad);av(()=>n.watch(e.editor),[e.editor,n]),(0,s.useDebugValue)(r)}({editor:i,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),i}({extensions:[cv.configure({heading:{levels:[1,2,3]},link:{openOnClick:!1}}),cb.configure({types:dz}),cf.configure({placeholder:"Edit this text..."}),db.configure({allowBase64:!0}),..._?[dy.configure({resizable:!0}),dc,du,dl]:[],...f?[dw,dC,dk,dE,dA]:[]],content:m.value||"",immediatelyRender:!1,shouldRerenderOnTransaction:!0,onCreate:({editor:e})=>{v.current||(v.current=!0,d?.(e))},onUpdate:({editor:e})=>{g.current(e.getHTML())},onBlur:()=>{y.current()},editorProps:{attributes:{class:"tiptap-content max-h-[600px] overflow-y-auto p-3 outline-none"},handleDOMEvents:{click:(e,t)=>(t.target?.closest("a")&&t.preventDefault(),!1)},transformPastedHTML(e){if("undefined"==typeof document)return e;let t=document.createElement("div");return t.innerHTML=e,(0,c.bS)(t),t.innerHTML}}});return(0,s.useEffect)(()=>{if(!w)return;let e=m.value||"";e!==w.getHTML()&&w.commands.setContent(e,{emitUpdate:!1})},[m.value,w]),(0,o.jsxs)("div",{className:"tiptap-wrapper border border-new-gray-300 rounded-[10px] bg-white text-secondary-900 overflow-hidden",suppressHydrationWarning:!0,ref:i,onDragEnter:l,"data-sentry-component":"TextEditorTipTap","data-sentry-source-file":"TextEditorTipTap.tsx",children:[(0,o.jsx)(dV,{editor:w,featureSet:p,viewMode:b,onToggleViewMode:function(){if("wysiwyg"===b&&w){let e=u().html(w.getHTML(),{indent_size:2});e!==m.value&&g.current(e)}x(e=>"wysiwyg"===e?"html":"wysiwyg")},"data-sentry-element":"TipTapMenuBar","data-sentry-source-file":"TextEditorTipTap.tsx"}),"html"===b?(0,o.jsx)("textarea",{className:"block w-full p-3 outline-none font-mono text-sm resize-y min-h-[12rem] max-h-[600px] bg-white text-secondary-900",value:m.value||"",onChange:e=>g.current(e.target.value),onBlur:()=>y.current(),spellCheck:!1}):(0,o.jsx)(ay,{editor:w})]})}function dH(e){let{editorType:t="wysiwyg",onEditorInitialized:n,className:r,placeholder:i,rows:l,style:u,featureSet:d="email",...h}=e,p=(0,s.useRef)(null),{field:f}=(0,a.as)({control:e.control,name:e.name,rules:e.rules}),m=(0,s.useRef)(null);if("textarea"===t){let t={className:r,placeholder:i,rows:l,style:u,ref:function(t){m.current=t,e.inputRef?.(t),t&&n?.({insertHtmlAtCursor:e=>{setTimeout(()=>{m.current?(0,c.Ux)(m.current,e):console.warn("TextEditor: textAreaRef is not set")},500)}})},onDragEnter:e.onDragEnter,name:e.name,value:f.value,onChange:f.onChange,onBlur:f.onBlur};return(0,o.jsx)("textarea",{...t})}return(0,o.jsx)(dU,{...h,onInitialized:function(e){p.current=e,n?.({insertHtmlAtCursor:t=>{e.chain().focus().insertContent(t).run()}})},featureSet:d,"data-sentry-element":"TextEditorTipTap","data-sentry-component":"TextEditor","data-sentry-source-file":"TextEditor.tsx"})}},40087:(e,t,n)=>{e.exports=n(19031)["__core-js_shared__"]},40634:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsxs)("svg",{width:"1718",height:"319",viewBox:"0 0 1718 319",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:n,className:t,title:"GroupFlow Logo",...{},"data-sentry-element":"svg","data-sentry-component":"GroupFlowWideLogo","data-sentry-source-file":"GroupFlowWideLogo.tsx",children:[(0,r.jsx)("path",{d:"M570.55 242.19C552.57 261.62 529.74 271.33 502.05 271.33C475.65 271.33 453.18 262.05 434.63 243.49C416.07 224.93 406.79 202.46 406.79 176.07C406.79 149.83 416.07 127.43 434.63 108.87C453.18 90.3201 475.65 81.04 502.05 81.04C528.29 81.04 550.69 90.3201 569.25 108.87C569.97 109.6 570.62 110.25 571.2 110.83L559.46 122.14C558.88 121.56 558.3 120.98 557.72 120.4C542.35 105.03 523.79 97.3501 502.05 97.3501C480.15 97.3501 461.52 105.03 446.15 120.4C430.78 135.77 423.1 154.33 423.1 176.07C423.1 197.97 430.78 216.6 446.15 231.97C461.52 247.33 480.15 255.02 502.05 255.02C522.2 255.02 539.6 248.42 554.24 235.23V184.34H499V168.03H570.55V242.19ZM615.57 165.63V265.89H599.26V124.53H615.57V138.67C629.2 125.62 645.51 119.1 664.5 119.1V135.41C649.42 135.41 636.59
1649140.7 626.01 151.28C621.66 155.63 618.18 160.42 615.57 165.63ZM824.35 195.21C824.35 216.23 816.92 234.18 802.05 249.04C787.19 263.9 769.25 271.33 748.23 271.33C727.21 271.33 709.27 263.9 694.41 249.04C679.54 234.18 672.11 216.23 672.11 195.21C672.11 174.19 679.54 156.25 694.41 141.39C709.27 126.53 727.21 119.1 748.23 119.1C769.25 119.1 787.19 126.53 802.05 141.39C816.92 156.25 824.35 174.19 824.35 195.21ZM748.23 135.41C731.7 135.41 717.6 141.24 705.93 152.91C694.26 164.58 688.42 178.69 688.42 195.21C688.42 211.74 694.26 225.84 705.93 237.51C717.6 249.18 731.7 255.02 748.23 255.02C764.76 255.02 778.86 249.18 790.53 237.51C802.2 225.84 808.04 211.74 808.04 195.21C808.04 178.69 802.2 164.58 790.53 152.91C778.86 141.24 764.76 135.41 748.23 135.41ZM962.45 224.79V124.53H978.76V265.89H962.45V251.76C948.82 264.81 932.51 271.33 913.52 271.33C893.94 271.33 877.27 264.44 863.49 250.67C849.72 236.89 842.83 220.22 842.83 200.65V124.53H859.14V200.65C859.14 215.73 864.44 228.56 875.02 239.14C885.6 249.73 898.44 255.02 913.52 255.02C928.59 255.02 941.42 249.73 952.01 239.14C956.36 234.79 959.84 230.01 962.45 224.79ZM1029.65 220.66C1032.55 226.75 1036.61 232.4 1041.83 237.62C1053.43 249.22 1067.49 255.02 1084.02 255.02C1100.55 255.02 1114.65 249.18 1126.32 237.51C1137.99 225.84 1143.82 211.74 1143.82 195.21C1143.82 178.69 1137.99 164.58 1126.32 152.91C1114.65 141.24 1100.55 135.41 1084.02 135.41C1067.49 135.41 1053.43 141.28 1041.83 153.02C1036.61 158.1 1032.55 163.68 1029.65 169.77V220.66ZM1029.65 303.95H1013.34V124.53H1029.65V141.93C1044.87 126.71 1062.99 119.1 1084.02 119.1C1105.04 119.1 1122.98 126.53 1137.84 141.39C1152.7 156.25 1160.13 174.19 1160.13 195.21C1160.13 216.23 1152.7 234.18 1137.84 249.04C1122.98 263.9 1105.04 271.33 1084.02 271.33C1062.99 271.33 1044.87 263.72 1029.65 248.49V303.95ZM1200.59 265.89H1184.28V86.4702H1293.02V102.79H1200.59V168.03H1271.27V184.34H1200.59V265.89ZM1327.81 86.4702V265.89H1311.5V86.4702H1327.81ZM1503.97 195.21C1503.97 216.23 1496.54 234.18 1481.68 249.04C1466.82 263.9 1448.88 271.33 1427.86 271.33C1406.83 271.33 1388.89 263.9 1374.03 249.04C1359.17 234.18 1351.74 216.23 1351.74 195.21C1351.74 174.19 1359.17 156.25 1374.03 141.39C1388.89 126.53 1406.83 119.1 1427.86 119.1C1448.88 119.1 1466.82 126.53 1481.68 141.39C1496.54 156.25 1503.97 174.19 1503.97 195.21ZM1427.86 135.41C1411.33 135.41 1397.23 141.24 1385.56 152.91C1373.89 164.58 1368.05 178.69 1368.05 195.21C1368.05 211.74 1373.89 225.84 1385.56 237.51C1397.23 249.18 1411.33 255.02 1427.86 255.02C1444.39 255.02 1458.48 249.18 1470.15 237.51C1481.83 225.84 1487.66 211.74 1487.66 195.21C1487.66 178.69 1481.83 164.58 1470.15 152.91C1458.48 141.24 1444.39 135.41 1427.86 135.41ZM1612.5 156.07L1572.7 265.89H1558.78L1507.45 124.53H1525.07L1565.95 238.71L1606.41 124.53H1618.59L1659.47 238.71L1699.92 124.53H1717.54L1666.21 265.89H1652.29L1612.5 156.07Z","data-sentry-element":"path","data-sentry-source-file":"GroupFlowWideLogo.tsx"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M159.05 0C71.21 0 0 71.21 0 159.04C0 211.8 25.69 258.54 65.23 287.47L80.63 287.57C112.53 287.62 156.52 274.58 152.99 234.82C152.51 229.45 151 224.63 148.24 220.19C136.15 205.35 119.09 208.06 103.69 216.13C103.75 218.4 103.57 220.72 103.09 223.02C99.85 238.69 84.52 248.76 68.85 245.52C55.74 242.81 29.5 221.03 20.64 210.9C42.62 205.99 60.53 185.71 80.59 188.78C89.54 190.15 96.6 195.91 100.46 203.5C106.69 200.6 113.11 198.48 119.47 197.51C109.02 191.66 98.08 186.01 90.08 179.38C74.81 166.73 65.64 146.67 63.66 126.07C51.2 123.69 40.99 113.5 40.43 100.36C39.56 80.0901 61.67 64.5002 68.95 43.1802C78.05 53.0902 96.84 81.5401 98.11 94.8801C99.47 109.21 90.14 122.1 76.65 125.64C78.5 142.55 86.07 159.23 98.35 169.41C104.74 174.71 112.24 179.04 119.86 183.25C117.93 176.23 117.57 168.75 119.2 161.05C109.1 153.63 104.25 140.28 109.16 128.25C116.82 109.46 143.42 104.52 158.93 88.1802C163.07 100.98 168.28 134.68 163.87 147.32C159.11 160.96 145.2 168.78 131.42 166.31C129.96 177.19 133.9 187.19 140.74 195.34C146.28 199.04 151.34 203.13 155.46 208.05C157.25 199.78 160.14 191.75 164.34 183.76C166.41 179.48 168.55 175.92 170.77 172.96C176.75 163.87 183.47 155.44 189.25 146.15C199.45 129.75 202.57 115.07 199.71 95.8201L199.42 93.8801C185.34 96.2201 171.35 87.8501 167.02 73.8301C163.08 61.0401 169.51 27.5502 174.11 14.9102C189.01 31.8002 215.41 37.71 222.39 56.76C226.78 68.73 221.73 81.63 211.76 88.76L212.52 93.9202C215.84 116.21 212.08 133.98 200.25 153C199.02 154.98 197.74 156.92 196.43 158.84C210.32 157.76 225.4 161.86 240.46 153.12C235.3 145.96 233.45 136.65 236.71 127.86C243.76 108.83 270.18 103.01 285.14 86.1802C289.7 98.8402 296.01 132.35 292.02 145.13C287.24 160.4 271 168.92 255.72 164.15C253.96 163.6 252.27 162.88 250.68 162.04C241.83 168.29 232.25 171.39 220.72 171.81C212.4 172.12 201.82 170.45 193.95 172.19C188.48 173.4 184.41 176.57 181.21 180.62C179.49 183.29 177.84 186.01 176.32 188.82C170.57 199.44 167.57 210.03 166.51 221.3C179.29 209.8 199.95 206.88 218.07 211.83C219.7 203.16 225.15 195.41 233.74 191.7C252.37 183.66 274.83 198.76 297.34 197.95C291.32 209.99 271.44 237.69 259.44 243.63C245.1 250.73 227.72 244.86 220.62 230.52C219.84 228.93 219.21 227.29 218.73 225.63C198.62 218.31 170.35 223.06 167.44 246.45C174.78 277.06 212.05 287.84 240.86 287.69L252.6 287.66C292.29 258.75 318.09 211.91 318.09 159.04C318.09 71.21 246.88 0 159.05 0ZM86.16 300.44C95.41 305.21 105.18 309.11 115.38 312.02L119.34 309.43C129.58 302.74 137.7 293.5 143.55 282.94C127.52 294.63 105.58 299.72 86.16 300.44ZM132.53 315.88C141.16 317.32
1649150.01 318.09 159.05 318.09C168.86 318.09 178.46 317.19 187.78 315.49C175.41 305.53 166.19 292.22 160.4 277.51C154.53 292.41 145.14 305.87 132.53 315.88ZM204.57 311.47C214.12 308.62 223.29 304.9 232 300.4C212.51 299.23 192.06 293.79 176.79 282.1C182.68 293.01 190.95 302.56 201.45 309.43L204.57 311.47ZM277.4 109.51C269.33 114.77 252.41 123.36 249.05 132.43C246.05 140.53 251.81 149.14 259.65 151.59C267.99 154.2 276.85 149.54 279.46 141.2C281.25 135.47 279.68 121.65 277.4 109.51ZM44.8 215.45C53.32 210.95 69.04 200.32 78.6 201.79C87.13 203.09 91.87 212.31 90.21 220.35C88.44 228.91 80.07 234.4 71.52 232.63C65.63 231.42 54.3 223.34 44.8 215.45ZM70.84 67.6902C65.44 75.6702 53.16 90.14 53.58 99.8C53.94 108.43 62.59 114.14 70.77 113.36C79.46 112.54 85.84 104.82 85.01 96.1201C84.44 90.1401 77.65 78.0002 70.84 67.6902ZM230.72 217.19L230.87 216.91L230.73 216.83C230.88 211.37 233.64 206.08 238.96 203.78C247.83 199.95 265.73 206.27 275.11 208.46C267.91 218.5 258.99 229.17 253.61 231.84C245.78 235.71 236.29 232.51 232.42 224.68C231.27 222.36 230.71 219.76 230.72 217.19ZM150.43 111.24C142.19 116.24 124.99 124.27 121.34 133.22C118.08 141.22 123.55 150.01 131.31 152.72C139.56 155.6 148.57 151.24 151.44 142.99C153.43 137.32 152.31 123.45 150.43 111.24ZM181.77 38.26C189.82 43.56 206.71 52.21 210.04 61.28C213.01 69.39 207.22 77.9902 199.37 80.4102C191.02 82.9802 182.17 78.3002 179.6 69.9502C177.83 64.2102 179.44 50.39 181.77 38.26Z","data-sentry-element":"path","data-sentry-source-file":"GroupFlowWideLogo.tsx"})]})}},40715:(e,t,n)=>{"use strict";n.d(t,{BF:()=>c,Ic:()=>l,Qy:()=>o,hu:()=>a,p$:()=>i,r_:()=>u});var r=n(73382),i=function(e){return e.Standalone="standalone",e.Member="member",e}({});let o=["/","/join","/events/public","/members/pages/resources"],s="/members/pages/";function a(e){return e===r.g6.Embedded?"member":"standalone"}function l(e,t){if("member"===t){if(!e.startsWith(s))return`Member page URL must start with ${s}`;if(e===s)return`Member page URL must include a path after ${s}`}else if(e.startsWith("/members/pages"))return"Standalone page URL cannot start with /members/pages"}function u(e){return e&&"/"!==e?`${e.replace(/\/$/,"")}-copy`:"/copy"}function c(e){return e?`${e} (Copy)`:"Untitled Page (Copy)"}},40783:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16338)),o=r(n(90524)),s=r(n(31288)),a=r(n(94510));function l(e){return" "===e||"\n"===e||" "===e||"\f"===e||"\r"===e}function u(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function c(e,t,n){var r=e.toLowerCase();return e===r?function(e,i){i===r?e._state=t:(e._state=n,e._index--)}:function(i,o){o===r||o===e?i._state=t:(i._state=n,i._index--)}}function d(e,t){var n=e.toLowerCase();return function(r,i){i===n||i===e?r._state=t:(r._state=3,r._index--)}}var h=c("C",24,16),p=c("D",25,16),f=c("A",26,16),m=c("T",27,16),g=c("A",28,16),y=d("R",35),v=d("I",36),b=d("P",37),x=d("T",38),_=c("R",40,1),w=c("I",41,1),k=c("P",42,1),C=c("T",43,1),E=d("Y",45),A=d("L",46),S=d("E",47),T=c("Y",49,1),j=c("L",50,1),N=c("E",51,1),O=d("I",54),I=d("T",55),D=d("L",56),M=d("E",57),L=c("I",58,1),R=c("T",59,1),P=c("L",60,1),F=c("E",61,1),B=c("#",63,64),$=c("X",66,65);t.default=function(){function e(e,t){var n;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=t,this.xmlMode=!!(null==e?void 0:e.xmlMode),this.decodeEntities=null==(n=null==e?void 0:e.decodeEntities)||n}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},e.prototype.write=function(e){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=e,this.parse()},e.prototype.end=function(e){this.ended&&this.cbs.onerror(Error(".end() after done!")),e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},e.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},e.prototype.stateText=function(e){"<"===e?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&"&"===e&&(1===this.special||4===this.special)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},e.prototype.isTagStartChar=function(e){return u(e)||this.xmlMode&&!l(e)&&"/"!==e&&">"!==e},e.prototype.stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===e||1!==this.special||l(e)?this._state=1:"!"===e?(this._state=15,this.sectionStart=this._index+1):"?"===e?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(e)?(this._state=this.xmlMode||"s"!==e&&"S"!==e?this.xmlMode||"t"!==e&&"T"!==e?3:52:32,this.sectionStart=this._index):this._state=1},e.prototype.stateInTagName=function(e){("/"===e||">"===e||l(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){l(e)||(">"===e?this._state=1:1!==this.special?4!==this.special&&("s"===e||"S"===e)?this._state=33:4===this.special&&("t"===e||"T"===e)?this._state=53:(this._state=1,this._index--):(this.isTagStartChar(e)?this._state=6:this._state=20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(">"===e||l(e))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},e.prototype.stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){">"===e?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===e?this._state=4:l(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){">"===e?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):!l(e)&&(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||l(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},e.prototype.stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this.cbs.onattribend(void 0),this._state=8,this._index--):l(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this.sectionStart=this._index+1):"'"===e?(this._state=13,this.sectionStart=this._index+1):!l(e)&&(this._state=14,this.sectionStart=this._index,this._index--)},e.prototype.handleInAttributeValue=function(e,t){e===t?(this.emitToken("onattribdata"),this.cbs.onattribend(t),this._state=8):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")},e.prototype.stateInAttributeValueNoQuotes=function(e){l(e)||">"===e?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeDeclaration=function(e){this._state="["===e?23:"-"===e?18:16},e.prototype.stateInDeclaration=function(e){">"===e&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){">"===e&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){"-"===e?(this._state=19,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInComment=function(e){"-"===e&&(this._state=21)},e.prototype.stateInSpecialComment=function(e){">"===e&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateAfterComment1=function(e){"-"===e?this._state=22:this._state=19},e.prototype.stateAfterComment2=function(e){">"===e?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype.stateBeforeCdata6=function(e){"["===e?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype.stateInCdata=function(e){"]"===e&&(this._state=30)},e.prototype.stateAfterCdata1=function(e){"]"===e?this._state=31:this._state=29},e.prototype.stateAfterCdata2=function(e){">"===e?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==e&&(this._state=29)},e.prototype.stateBeforeSpecialS=function(e){"c"===e||"C"===e?this._state=34:"t"===e||"T"===e?this._state=44:(this._state=3,this._index--)},e.prototype.stateBeforeSpecialSEnd=function(e){2===this.special&&("c"===e||"C"===e)?this._state=39:3===this.special&&("t"===e||"T"===e)?this._state=48:this._state=1},e.prototype.stateBeforeSpecialLast=function(e,t){("/"===e||">"===e||l(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||l(e)?(this.special=1,this._state=6,this.sectionStart=this._index-t,this._index--):this._state=1},e.prototype.parseFixedEntity=function(e){if(void 0===e&&(e=this.xmlMode?a.default:o.default),this.sectionStart+1<this._index){var t=this.buffer.substring(this.sectionStart+1,this._index);Object.prototype.hasOwnProperty.call(e,t)&&(this.emitPartial(e[t]),this.sectionStart=this._index+1)}},e.prototype.parseLegacyEntity=function(){for(var e=this.sectionStart+1,t=Math.min(this._index-e,6);t>=2;){var n=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(s.default,n)){this.emitPartial(s.default[n]),this.sectionStart+=t+1;return}t--}},e.prototype.stateInNamedEntity=function(e){";"===e?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1<this._index&&!this.xmlMode&&this.parseLegacyEntity(),this._state=this.baseState):(e<"0"||e>"9")&&!u(e)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==e&&this.parseFixedEntity(s.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},e.prototype.decodeNumericEntity=function(e,t,n){var r=this.sectionStart+e;if(r!==this._index){var o=parseInt(this.buffer.substring(r,this._index),t);this.emitPartial(i.default(o)),this.sectionStart=n?this._index+1:this._index}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){";"===e?this.decodeNumericEntity(2,10,!0):(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},e.prototype.stateInHexEntity=function(e){";"===e?this.decodeNumericEntity(3,16,!0):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},e.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},e.prototype.parse=function(){for(;this._index<this.buffer.length&&this.running;){var e=this.buffer.charAt(this._index);1===this._state?this.stateText(e):12===this._state?this.stateInAttributeValueDoubleQuotes(e):9===this._state?this.stateInAttributeName(e):19===this._state?this.stateInComment(e):20===this._state?this.stateInSpecialComment(e):8===this._state?this.stateBeforeAttributeName(e):3===this._state?this.stateInTagName(e):6===this._state?this.stateInClosingTagName(e):2===this._state?this.stateBeforeTagName(e):10===this._state?this.stateAfterAttributeName(e):13===this._state?this.stateInAttributeValueSingleQuotes(e):11===this._state?this.stateBeforeAttributeValue(e):5===this._state?this.stateBeforeClosingTagName(e):7===this._state?this.stateAfterClosingTagName(e):32===this._state?this.stateBeforeSpecialS(e):21===this._state?this.stateAfterComment1(e):14===this._state?this.stateInAttributeValueNoQuotes(e):4===this._state?this.stateInSelfClosingTag(e):16===this._state?this.stateInDeclaration(e):15===this._state?this.stateBeforeDeclaration(e):22===this._state?this.stateAfterComment2(e):18===this._state?this.stateBeforeComment(e):33===this._state?this.stateBeforeSpecialSEnd(e):53===this._state?L(this,e):39===this._state?_(this,e):40===this._state?w(this,e):41===this._state?k(this,e):34===this._state?y(this,e):35===this._state?v(this,e):36===this._state?b(this,e):37===this._state?x(this,e):38===this._state?this.stateBeforeSpecialLast(e,2):42===this._state?C(this,e):43===this._state?this.stateAfterSpecialLast(e,6):44===this._state?E(this,e):29===this._state?this.stateInCdata(e):45===this._state?A(this,e):46===this._state?S(this,e):47===this._state?this.stateBeforeSpecialLast(e,3):48===this._state?T(this,e):49===this._state?j(this,e):50===this._state?N(this,e):51===this._state?this.stateAfterSpecialLast(e,5):52===this._state?O(this,e):54===this._state?I(this,e):55===this._state?D(this,e):56===this._state?M(this,e):57===this._state?this.stateBeforeSpecialLast(e,4):58===this._state?R(this,e):59===this._state?P(this,e):60===this._state?F(this,e):61===this._state?this.stateAfterSpecialLast(e,5):17===this._state?this.stateInProcessingInstruction(e):64===this._state?this.stateInNamedEntity(e):23===this._state?h(this,e):62===this._state?B(this,e):24===this._state?p(this,e):25===this._state?f(this,e):30===this._state?this.stateAfterCdata1(e):31===this._state?this.stateAfterCdata2(e):26===this._state?m(this,e):27===this._state?g(this,e):28===this._state?this.stateBeforeCdata6(e):66===this._state?this.stateInHexEntity(e):65===this._state?this.stateInNumericEntity(e):63===this._state?$(this,e):this.cbs.onerror
1649(Error("unknown _state"),this._state),this._index++}this.cleanup()},e.prototype.finish=function(){this.sectionStart<this._index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.substr(this.sectionStart);29===this._state||30===this._state||31===this._state?this.cbs.oncdata(e):19===this._state||21===this._state||22===this._state?this.cbs.oncomment(e):64!==this._state||this.xmlMode?65!==this._state||this.xmlMode?66!==this._state||this.xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this.cbs.ontext(e):(this.decodeNumericEntity(3,16,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.decodeNumericEntity(2,10,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.parseLegacyEntity(),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData()))},e.prototype.getSection=function(){return this.buffer.substring(this.sectionStart,this._index)},e.prototype.emitToken=function(e){this.cbs[e](this.getSection()),this.sectionStart=-1},e.prototype.emitPartial=function(e){1!==this.baseState?this.cbs.onattribdata(e):this.cbs.ontext(e)},e}()},41114:(e,t,n)=>{"use strict";n.d(t,{O:()=>o,j:()=>i});var r=n(14232);function i({children:e,freeze:t}){let n=o(t,e);return r.createElement(r.Fragment,null,n)}function o(e,t){let[n,i]=(0,r.useState)(t);return e||n===t||i(t),e?n:t}},41116:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&e.__esModule?e:{default:e}}(n(47514)).default,e.exports=t.default},41430:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(78950),o=n(54587),s=n.n(o);function a(e){let{isOpen:t,onClose:n,src:o}=e;return(0,r.jsx)(i.A,{isOpen:t,onClose:n,"data-sentry-element":"SimpleModal","data-sentry-component":"ImageDetailModal","data-sentry-source-file":"ImageDetailModal.tsx",children:(0,r.jsxs)("div",{className:"relative w-fit m-4",children:[(0,r.jsx)("div",{style:{backgroundImage:"url(https://mp1md-pub.s3.amazonaws.com/groupflow/images/checkerboard.png)",backgroundSize:"10px"},className:"absolute inset-0 background-repeat opacity-20"}),(0,r.jsx)(s(),{src:o,alt:"image detail",className:"relative w-auto h-auto",width:0,height:0,sizes:"(max-width: 768px) 100vw, 80vw","data-sentry-element":"Image","data-sentry-source-file":"ImageDetailModal.tsx"})]})})}var l=n(14232);function u(e){let{id:t,imageRef:n,src:i}=e,[o,u]=(0,l.useState)(!1);return i?(0,r.jsxs)("div",{"data-sentry-component":"ImageFieldPreview","data-sentry-source-file":"ImageFieldPreview.tsx",children:[(0,r.jsxs)("button",{onClick:()=>u(!0),className:"relative",type:"button",children:[(0,r.jsx)("div",{style:{backgroundImage:"url(https://mp1md-pub.s3.amazonaws.com/groupflow/images/checkerboard.png)",backgroundSize:"10px"},className:"absolute inset-0 background-repeat opacity-10"}),(0,r.jsx)(s(),{src:i,className:"relative h-12 w-auto",ref:n,id:t,alt:"Image preview",width:200,height:200,sizes:"200px","data-sentry-element":"Image","data-sentry-source-file":"ImageFieldPreview.tsx"})]}),(0,r.jsx)(a,{isOpen:o,onClose:()=>u(!1),src:i,"data-sentry-element":"ImageDetailModal","data-sentry-source-file":"ImageFieldPreview.tsx"})]}):null}},41492:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(5811),o=n(69080);let s=(0,i.PA)(function(e){return(0,r.jsx)(o.A,{...e,"data-sentry-element":"BaseNavigation","data-sentry-component":"Navigation","data-sentry-source-file":"Navigation.tsx"})})},41591:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(49995),o=n(48230),s=n.n(o);function a(e){let{className:t,href:n,label:o,parentTag:a}=e;return(0,r.jsxs)(s(),{href:n||"/",className:(0,i.A)(a,"Button",t),role:"button","data-sentry-element":"Link","data-sentry-component":"Button","data-sentry-source-file":"Button.tsx",children:[(0,r.jsx)("span",{className:"pre-content"}),o,(0,r.jsx)("span",{className:"post-content"})]})}},41612:(e,t,n)=>{"use strict";n.d(t,{Ac:()=>s,Ci:()=>l,FX:()=>p,mK:()=>a,oE:()=>f,v6:()=>h});var r=n(14232),i=n(77133),o=n(99289),s=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(s||{}),a=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(a||{});function l(){let e,t,n=(e=(0,r.useRef)([]),t=(0,r.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),(...n)=>{if(!n.every(e=>null==e))return e.current=n,t});return(0,r.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:s=!0,name:a,mergeRefs:l}){l=null!=l?l:c;let h=d(t,e);if(s)return u(h,n,r,a,l);let p=null!=i?i:0;if(2&p){let{static:e=!1,...t}=h;if(e)return u(t,n,r,a,l)}if(1&p){let{unmount:e=!0,...t}=h;return(0,o.Y)(+!e,{0:()=>null,1:()=>u({...t,hidden:!0,style:{display:"none"}},n,r,a,l)})}return u(h,n,r,a,l)})({mergeRefs:n,...e}),[n])}function u(e,t={},n,o,s){let{as:a=n,children:l,refName:c="ref",...h}=m(e,["unmount","static"]),p=void 0!==e.ref?{[c]:e.ref}:{},g="function"==typeof l?l(t):l;"className"in h&&h.className&&"function"==typeof h.className&&(h.className=h.className(t)),h["aria-labelledby"]&&h["aria-labelledby"]===h.id&&(h["aria-labelledby"]=void 0);let y={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(y["data-headlessui-state"]=n.join(" "),n))y[`data-${e}`]=""}if(a===r.Fragment&&(Object.keys(f(h)).length>0||Object.keys(f(y)).length>0))if(!(0,r.isValidElement)(g)||Array.isArray(g)&&g.length>1){if(Object.keys(f(h)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f(h)).concat(Object.keys(f(y))).map(e=>` - ${e}`).join(` 1650`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(` 1651`)].join(` 1652`))}else{var v;let e=g.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>(0,i.x)(t(...e),h.className):(0,i.x)(t,h.className),o=d(g.props,f(m(h,["ref"])));for(let e in y)e in o&&delete y[e];return(0,r.cloneElement)(g,Object.assign({},o,y,p,{ref:s((v=g,r.version.split(".")[0]>="19"?v.props.ref:v.ref),p.ref)},n?{className:n}:{}))}return(0,r.createElement)(a,Object.assign({},m(h,["ref"]),a!==r.Fragment&&p,a!==r.Fragment&&y),g)}function c(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function d(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){for(let i of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;i(t,...r)}}});return t}function h(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){for(let r of n[e])null==r||r(...t)}});return t}function p(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function f(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function m(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},41632:(e,t,n)=>{"use strict";n.d(t,{F:()=>o});var r=n(14232),i=n(64671);function o(e,t){let n=(0,r.useRef)([]),o=(0,i._)(e);(0,r.useEffect)(()=>{let e=[...n.current];for(let[r,i]of t.entries())if(n.current[r]!==i){let r=o(t,e);return n.current=t,r}},[o,...t])}}
1652,41704:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e,i=e.otherProps||{};return(0,r.jsxs)("svg",{width:"216",height:"216",viewBox:"0 0 216 216",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,style:n,...i,"data-sentry-element":"svg","data-sentry-component":"CrossIcon","data-sentry-source-file":"CrossIcon.tsx",children:[(0,r.jsx)("path",{d:"M192.893 0L0 192.893V216H23.107L216 23.107V0H192.893Z","data-sentry-element":"path","data-sentry-source-file":"CrossIcon.tsx"}),(0,r.jsx)("path",{d:"M0 23.107L192.893 216H216V192.893L23.107 0H0L0 23.107Z","data-sentry-element":"path","data-sentry-source-file":"CrossIcon.tsx"})]})}},41946:(e,t,n)=>{var r=n(71266);e.exports=function(e,t){return r(e,t)}},42034:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(58446),i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(r),o=Object.freeze({__proto__:null}),s=Object.freeze({__proto__:null});let a=[["ââ","â "],["ââ"," "]],l=[["â â","â "],["ââ"," "]],u=[["ââ","â "],["ââ"," "]];var c=Object.freeze({__proto__:null,treeify:e=>"â½\n"+function e(t,n=l){var r;return r=n,t.map(t=>(function(t){switch(t.type){case"terminal":{let e=t.valueContainer;return`â #${e.index} ${JSON.stringify(e.specificity)} ${e.value}`}case"tagName":return`â» Tag name 1653${e(t.variants,u)}`;case"attrValue":return`⣠Attr value: ${t.name} 1654${e(t.matchers,u)}`;case"attrPresence":return`⨠Attr presence: ${t.name} 1655${e(t.cont)}`;case"pushElement":return`â Push element: ${t.combinator} 1656${e(t.cont,a)}`;case"popElement":return`â Pop element 1657${e(t.cont,a)}`;case"variant":return`â = ${t.value} 1658${e(t.cont)}`;case"matcher":return`â ${t.matcher} "${t.value}"${t.modifier||""} 1659${e(t.cont)}`}})(t)).map((e,t,{length:n})=>(function(e,t,n=!0){let r=e[+!!n];return r[0]+t.split("\n").join("\n"+r[1])})(r,e,t===n-1)).join("\n")}(e,a)});class d{constructor(e){this.branches=h(function(e){let t=e.length,n=Array(t);for(let o=0;o<t;o++){var r;let[t,s]=e[o],a=(function e(t){let n=[];t.list.forEach(t=>{switch(t.type){case"class":n.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:t.specificity,type:"attrValue",value:t.name});break;case"id":n.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:t.specificity,type:"attrValue",value:t.name});break;case"combinator":e(t.left),n.push(t);break;case"universal":break;default:n.push(t)}}),t.list=n}(r=i.parse1(t)),i.normalize(r),r);n[o]={ast:a,terminal:{type:"terminal",valueContainer:{index:o,value:s,specificity:a.specificity}}}}return n}(e))}build(e){return e(this.branches)}}function h(e){let t=[];for(;e.length;){let n=y(e,e=>!0,p),{matches:r,nonmatches:i,empty:o}=function(e,t){let n=[],r=[],i=[];for(let o of e){let e=o.ast.list;e.length?(e.some(e=>p(e)===t)?n:r).push(o):i.push(o)}return{matches:n,nonmatches:r,empty:i}}(e,n);e=i,r.length&&t.push(function(e,t){if("tag"===e)return{type:"tagName",variants:Object.entries(m(t,e=>"tag"===e.type,e=>e.name)).map(([e,t])=>({type:"variant",value:e,cont:h(t.items)}))};if(e.startsWith("attrValue "))return function(e,t){let n=m(t,t=>"attrValue"===t.type&&t.name===e,e=>`${e.matcher} ${e.modifier||""} ${e.value}`),r=[];for(let e of Object.values(n)){let t=e.oneSimpleSelector,n=function(e){if("i"===e.modifier){let t=e.value.toLowerCase();switch(e.matcher){case"=":return e=>t===e.toLowerCase();case"~=":return e=>e.toLowerCase().split(/[ \t]+/).includes(t);case"^=":return e=>e.toLowerCase().startsWith(t);case"$=":return e=>e.toLowerCase().endsWith(t);case"*=":return e=>e.toLowerCase().includes(t);case"|=":return e=>{let n=e.toLowerCase();return t===n||n.startsWith(t)&&"-"===n[t.length]}}}else{let t=e.value;switch(e.matcher){case"=":return e=>t===e;case"~=":return e=>e.split(/[ \t]+/).includes(t);case"^=":return e=>e.startsWith(t);case"$=":return e=>e.endsWith(t);case"*=":return e=>e.includes(t);case"|=":return e=>t===e||e.startsWith(t)&&"-"===e[t.length]}}}(t),i=h(e.items);r.push({type:"matcher",matcher:t.matcher,modifier:t.modifier,value:t.value,predicate:n,cont:i})}return{type:"attrValue",name:e,matchers:r}}(e.substring(10),t);
1659if(e.startsWith("attrPresence "))return function(e,t){for(let n of t)g(n,t=>"attrPresence"===t.type&&t.name===e);return{type:"attrPresence",name:e,cont:h(t)}}(e.substring(13),t);if("combinator >"===e)return f(">",t);if("combinator +"===e)return f("+",t);throw Error(`Unsupported selector kind: ${e}`)}(n,r)),o.length&&t.push(...function(e){let t=[];for(let n of e){let e=n.terminal;if("terminal"===e.type)t.push(e);else{let{matches:n,rest:r}=function(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return{matches:n,rest:r}}(e.cont,e=>"terminal"===e.type);n.forEach(e=>t.push(e)),r.length&&(e.cont=r,t.push(e))}}return t}(o))}return t}function p(e){switch(e.type){case"attrPresence":return`attrPresence ${e.name}`;case"attrValue":return`attrValue ${e.name}`;case"combinator":return`combinator ${e.combinator}`;default:return e.type}}function f(e,t){let n=m(t,t=>"combinator"===t.type&&t.combinator===e,e=>i.serialize(e.left)),r=[];for(let e of Object.values(n)){let t=h(e.items),n=e.oneSimpleSelector.left;r.push({ast:n,terminal:{type:"popElement",cont:t}})}return{type:"pushElement",combinator:e,cont:h(r)}}function m(e,t,n){let r={};for(;e.length;){let i=y(e,t,n),o=e=>t(e)&&n(e)===i,{matches:s,rest:a}=function(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return{matches:n,rest:r}}(e,e=>e.ast.list.some(o)),l=null;for(let e of s){let t=g(e,o);l||(l=t)}if(null==l)throw Error("No simple selector is found.");r[i]={oneSimpleSelector:l,items:s},e=a}return r}function g(e,t){let n=e.ast.list,r=Array(n.length),i=-1;for(let e=n.length;e-- >0;)t(n[e])&&(r[e]=!0,i=e);if(-1==i)throw Error("Couldn't find the required simple selector.");let o=n[i];return e.ast.list=n.filter((e,t)=>!r[t]),o}function y(e,t,n){let r={};for(let i of e){let e={};for(let r of i.ast.list.filter(t))e[n(r)]=!0;for(let t of Object.keys(e))r[t]?r[t]++:r[t]=1}let i="",o=0;for(let e of Object.entries(r))e[1]>o&&(i=e[0],o=e[1]);return i}class v{constructor(e){this.f=e}pickAll(e){return this.f(e)}pick1(e,t=!1){let n=this.f(e),r=n.length;if(0===r)return null;if(1===r)return n[0].value;let i=t?b:x,o=n[0];for(let e=1;e<r;e++){let t=n[e];i(o,t)&&(o=t)}return o.value}}function b(e,t){let n=r.compareSpecificity(t.specificity,e.specificity);return n>0||0===n&&t.index<e.index}function x(e,t){let n=r.compareSpecificity(t.specificity,e.specificity);return n>0||0===n&&t.index>e.index}t.Ast=o,t.DecisionTree=d,t.Picker=v,t.Treeify=c,t.Types=s},42383:(e,t,n)=>{"use strict";n.d(t,{rA:()=>E.A,x3:()=>a,J3:()=>c,o7:()=>d.A,RK:()=>h.A,Kw:()=>p.A,vF:()=>f,vZ:()=>y,LB:()=>m,zp:()=>v.A,fh:()=>b.A,s$:()=>x,F0:()=>w,z6:()=>k.A,Dk:()=>C.A,fC:()=>A.A,fs:()=>S.A,ks:()=>T.A,pl:()=>j.p});var r=n(37876),i=n(14232),o=n(8153),s=n(28035);function a(e){let t,{afterEachOption:n,disabled:a,other:l,options:u,register:c}=e;if(!u)throw Error("No options set in fieldProps");let d={};return c?(t=c.name,d={...d,register:c}):e.name&&(t=e.name,d={...d,name:t}),(0,r.jsxs)(r.Fragment,{children:[u.map((e,t)=>(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(o.A,{disabled:a,...d,required:e.required,value:e.value,label:e.label}),n&&n(e.value),l&&t===l.index&&(0,r.jsx)(s.A,{label:l.content,className:"my-2"})]},`${e.value}-${t}`)),function(){if(1!==u.length)return null;let{register:e,...t}=d;return(0,r.jsx)("input",{type:"checkbox",className:"hidden",...e,...t,"data-sentry-component":"hiddenField","data-sentry-source-file":"CheckBoxGroup.tsx"})}()]})}var l=n(49995),u=n(10969);function c(e){let{children:t,className:n,spacing:i}=e,o="min-h-8 md:min-h-[2.5rem]";return"small"===i&&(o="min-h-[1rem]"),(0,r.jsx)("label",{className:(0,l.A)("inline-block","w-[12rem]","min-w-[12rem]",u.Ay.labelText,"mr-2",n,o),style:e.style,"data-sentry-component":"ColumnLabel","data-sentry-source-file":"ColumnLabel.tsx",children:t})}var d=n(89331),h=n(64028),p=n(87585);function f(e){let{type:t,children:n}=e,i=`${"block"===t?"block":"inline-block"} ${e.className||""}`;return(0,r.jsx)("div",{className:i,"data-sentry-component":"FieldColumn","data-sentry-source-file":"FieldColumn.tsx",children:n})}function m(e){let{children:t}=e,n=`border border-solid border-gray rounded p-4 ${e.className||""}`;return(0,r.jsx)("fieldset",{className:n,"data-sentry-component":"Fieldset","data-sentry-source-file":"Fieldset.tsx",children:t})}n(31896);var g=n(10993);function y(e){let{children:t,id:n,label:i,className:o,sortable:s,"data-ui-role":a,"data-ui-id":u}=e,c=t,d="boolean"==typeof e.expanded;
1659if(d){let n=(0,l.A)(e.expanded?"block":"hidden",e.innerClassName);c=(0,r.jsx)("div",{className:n,children:t})}let h=i;return d&&(h=(0,r.jsxs)("div",{className:"flex gap-4",children:[i,(0,r.jsx)(g.A,{expanded:e.expanded??!1,onChange:t=>e.onCollapseOrExpand&&e.onCollapseOrExpand(t)})]})),(0,r.jsxs)("fieldset",{className:`border rounded-md p-2 px-4 ${o||""}`,id:n,"data-ui-component":"FieldSet2","data-ui-role":a,"data-ui-id":u,...s,"data-sentry-component":"FieldSet2","data-sentry-source-file":"FieldSet2.tsx",children:[(0,r.jsx)("legend",{className:"font-bold mb-2 px-2",children:h}),c]})}var v=n(79560),b=n(22488);function x(e){return(0,r.jsx)("legend",{className:`px-2 text-gray-dark ${e?.className}`,"data-sentry-component":"Legend","data-sentry-source-file":"Legend.tsx",children:e.children})}var _=n(72569);function w(e){let{textInputWidthClass:t="w-full",size:n}=e,i=(0,_.Eh)();return(0,r.jsxs)("div",{className:(0,l.A)("relative",e.className),"data-sentry-component":"MoneyInput","data-sentry-source-file":"MoneyInput.tsx",children:[(0,r.jsx)(T.A,{type:"number",register:e.register,min:e.min,step:e.step,widthClass:t,className:"pl-10",size:n,style:{paddingLeft:"2rem"},disabled:e.disabled,"data-sentry-element":"TextInput","data-sentry-source-file":"MoneyInput.tsx"}),(0,r.jsx)("div",{className:(0,l.A)("flex flex-col justify-center absolute top-0 h-full px-4 font-medium",(0,u.pn)(i)),children:(0,r.jsx)("div",{children:"$"})})]})}var k=n(53816);n(9783);var C=n(10688),E=n(45600),A=n(32678),S=n(16200),T=n(61745),j=n(34405)},42404:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=n(2836),o=r(n(2687)),s=n(65883);function a(e,t){return(0,o.default)(e,t)}t.getOuterHTML=a,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map(function(e){return a(e,t)}).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===s.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},42461:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5"}))})},43371:(e,t,n)=>{"use strict";n.d(t,{$P:()=>o,CS:()=>p,DT:()=>h,Fb:()=>a,Iy:()=>y,LR:()=>u,OT:()=>_,Qv:()=>x,RY:()=>s,Uw:()=>w,YR:()=>l,ZI:()=>k,ZS:()=>v,gX:()=>b,hX:()=>C,jI:()=>g,oM:()=>d,sk:()=>c,th:()=>f,vF:()=>m,zB:()=>E});var r=n(54595),i=n(43982);let o=[{name:"groupAnnouncements",label:"Group-wide announcements",memberStatuses:["ACTIVE","INACTIVE","NON_MEMBER"],category:"Communications"},{name:"memberMessages",label:"Notification of a new chat message to you",memberStatuses:["ACTIVE","INACTIVE"],category:"Communications"},{name:"forumMessages",label:"Forum: Notification of new messages in forum topics you're following",memberStatuses:["ACTIVE","INACTIVE"],category:"Communications"},{name:"eventAnnouncements",label:"Events: New event announcements",memberStatuses:["ACTIVE","INACTIVE","NON_MEMBER"],category:"Events"},{name:"eventReminders",label:"Events: Weekly 'Last chance' reminder of upcoming events",memberStatuses:["ACTIVE","INACTIVE","NON_MEMBER"],category:"Events"},{name:"rsvpConfirmed",label:"Events: Registration confirmation receipt",memberStatuses:["ACTIVE","INACTIVE","NON_MEMBER"],category:"Events"},{name:"eventComments",label:"Events: Notification of new messages from an event's discussion thread, for an event you are going to",memberStatuses:["ACTIVE"],category:"Events"},{name:"rsvpReminders",label:"Events: Reminder of an event tomorrow you have RSVPd 'yes' or 'maybe' to",memberStatuses:["ACTIVE","INACTIVE","NON_MEMBER"],category:"Events"},{name:"newRsvps",label:"Events: Hosts only: Notification of new RSVPs to an event you're hosting",memberStatuses:["ACTIVE"],category:"Events"},{name:"duesReminders",label:"Dues: Upcoming dues payment reminders or past due reminders",memberStatuses:["ACTIVE","INACTIVE"],category:"Membership"}];function s(e){let{profile:t,...n}=e;return{...n,intro:t?.intro??"",location:t?.location??"",photo:t?.photo??null,pronouns:t?.pronounItems?.map(e=>e.label)??[]}}function a(e){let{profile:t,...n}=e;return{...n,intro:"",location:"",name:"",title:"",photo:null,pronouns:[],...t}}let l=[{value:"content",label:"Content Management"},{value:"elections",label:"Elections"},{value:"events",label:"Events"},{value:"finances",label:"Finances"},{value:"forum",label:"Forum Moderation"},{value:"group_announcements",label:"Group Announcements"},{value:"members",label:"Members Management"},{value:"super",label:"Superuser"}],u=[{value:r._4.intro,label:"Introduction",description:"A short bio or self-introduction shown on the member's profile.",purpose:r.D5.profile},{value:r._4.location,label:"Location",description:"The member's location, such as city and State.",purpose:r.D5.profile},{value:r._4.meetup,label:"Meetup Question",description:"The question used for the group's Meetup event integration.",purpose:r.D5.profile},{value:r._4.name,label:"Display Name",description:"The name shown everywhere the member appears in GroupFlow â the Member Directory, Event Attendee List, and Admin Members & Users list. Attendees give this name when checking in, so it must match their attendee record. You can encourage or require members to use their full name, an alias, or their first name plus last initial. It's required and can't be deleted, hidden, disabled, or unlinked.",purpose:r.D5.profile},{value:r._4.photo,label:"Primary Photo",description:"The member's primary profile photo. It's used across the system, so it can't be deleted, hidden, disabled, or unlinked.",purpose:r.D5.profile},{value:r._4.phone_number,label:"Phone",description:"The member's contact phone number.",purpose:r.D5.profile},{value:r._4.pronouns,label:"Pronouns",description:"The pronouns the member goes by.",purpose:r.D5.profile}];function c(e){if(!e)return null;let t=u.find(t=>t.value===e);return t?.label??null}function d(e){if(!e)return null;let t=u.find(t=>t.value===e);return t?.description??null}function h(e){return e?.status==="ACTIVE"}var p=function(e){return e.Discord="DISCORD",e}({}),f=function(e){return e.NAME="name",e.RECENTLY_CREATED="recently-created",e}({});let m=[{defaultLabel:"Account Status",name:"status",options:[{label:"Active Member",value:"ACTIVE",filterParams:{status:{eq:"ACTIVE"}}},{label:"Trial Member",value:"TRIAL",params:{trialStatus:"TRIAL"}},{label:"Full Member",value:"PERMANENT",params:{trialStatus:"PERMANENT"}},{label:"Inactive Member",value:"INACTIVE",filterParams:{status:{eq:"INACTIVE"}}},{label:"Banned",value:"BANNED",filterParams:{status:{eq:"BANNED"}}},{label:"Non-Member",value:"NON_MEMBER",filterParams:{status:{eq:"NON_MEMBER"}}}],allowReset:!0},{defaultLabel:"Dues",name:"dues",options:[{label:"Dues Exempt",value:"dues-exempt",filterParams:{duesExempt:{eq:!0}}},{label:"Non-Exempt",value:"non-exempt",filterParams:{duesExempt:{eq:!1}}}],allowReset:!0},{defaultLabel:"Role",name:"role",options:l.map(e=>({...e,params:{role:e.value}})),allowReset:!0}
1659,{defaultLabel:"Sort: Recently Created",name:"sort",options:[{label:"Name",value:"name",filterParams:{}},{label:"Recently Created",value:"recently-created",filterParams:{}}]}],g=[{value:"NON_MEMBER",label:"Non-member"},{value:"INACTIVE",label:"Inactive Member"},{value:"ACTIVE",label:"Active Member"},{value:"BANNED",label:"Banned"}];function y(e,t){let n=new Date;n.setHours(0,0,0,0);let r=n.getTime(),o=e??t??null,s=null;return"string"==typeof o&&(s=(0,i._U)(o)),!!s&&s.getTime()<r}var v=function(e){return e.DEVELOPER="DEVELOPER",e.EXTERNAL="EXTERNAL",e.PARTICIPANT="PARTICIPANT",e.TEAM="TEAM",e}({});function b(e){let{active:t,banned:n,roles:r,teamSlugs:i,...o}=e,s=function(e){let t=[];for(let n in e)e[n]&&(t=[...t,n]);return t}(r),a={...o};if(s&&(a={...a,roles:s}),i){let e=Object.entries(i).filter(([e,t])=>t).map(([e])=>e);a={...a,teamSlugs:e}}return a}function x(e){return{...e,email:e.email||"",receivesEmails:e.emailsEnabled,isActive:"ACTIVE"===e.status,profile:e.profile?{...e.profile,name:e.name,title:e.title,memberId:e.id,pronouns:e.profile.pronounItems?.map(e=>e.label)||[]}:null}}function _(e){return{id:e.id,name:e.name,title:e.title,photo:e.profile.photo,pronouns:e.profile.pronounItems.map(e=>e.label)}}function w(e){var t;return{id:e.id,name:e.name,title:e.title,intro:e.profile.intro,location:"",joinedGroupOn:null,photo:(t=e.profile.photo)?{id:t.id,url:t.url,thumbUrl:t.thumbUrl,regularInfo:t.info,thumbInfo:t.thumbInfo}:null,pronouns:e.profile.pronounItems.map(e=>e.label)}}function k(e){return{email:"",emailsEnabled:!0,joinedGroupOn:new Date,leftGroupOn:null,receivesEmails:!0,isActive:!0,...e,profile:{answers:[],location:"",memberId:"",name:e.name,title:e.title,pronouns:e.profile.pronounItems.map(e=>e.label),...e.profile}}}function C(e){var t;return{id:e.id,name:e.name,title:e.title,profile:(t=e.profile)?{intro:t.intro,photo:function(e){if(!e)return null;let{info:t,thumbInfo:n,...r}=e;return{...r,info:t||{width:0,height:0},thumbInfo:n||{width:0,height:0}}}(t.photo),pronounItems:(t.pronounItems||[]).map(e=>({label:e.label}))}:{intro:"",photo:null,pronounItems:[]}}}function E(e){return"NON_MEMBER"===e.status&&!!e.hasActiveApplication}},43428:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var r=n(54945),i=n(99468),o=n(95392),s=n(7075);function a(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-(7*(n<1)+n-1)),t.setUTCHours(0,0,0,0),t}function l(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var s=a(r),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=a(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}var u={};function c(e,t){(0,i.A)(1,arguments);var n,r,a,l,c,d,h,p,f=(0,s.A)(null!=(n=null!=(r=null!=(a=null!=(l=null==t?void 0:t.weekStartsOn)?l:null==t||null==(c=t.locale)||null==(d=c.options)?void 0:d.weekStartsOn)?a:u.weekStartsOn)?r:null==(h=u.locale)||null==(p=h.options)?void 0:p.weekStartsOn)?n:0);if(!(f>=0&&f<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,o.A)(e),g=m.getUTCDay();return m.setUTCDate(m.getUTCDate()-(7*(g<f)+g-f)),m.setUTCHours(0,0,0,0),m}function d(e,t){(0,i.A)(1,arguments);var n,r,a,l,d,h,p,f,m=(0,o.A)(e),g=m.getUTCFullYear(),y=(0,s.A)(null!=(n=null!=(r=null!=(a=null!=(l=null==t?void 0:t.firstWeekContainsDate)?l:null==t||null==(d=t.locale)||null==(h=d.options)?void 0:h.firstWeekContainsDate)?a:u.firstWeekContainsDate)?r:null==(p=u.locale)||null==(f=p.options)?void 0:f.firstWeekContainsDate)?n:1);if(!(y>=1&&y<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(g+1,0,y),v.setUTCHours(0,0,0,0);var b=c(v,t),x=new Date(0);x.setUTCFullYear(g,0,y),x.setUTCHours(0,0,0,0);var _=c(x,t);return m.getTime()>=b.getTime()?g+1:m.getTime()>=_.getTime()?g:g-1}function h(e,t){for(var n=Math.abs(e).toString();n.length<t;)n="0"+n;return(e<0?"-":"")+n}let p={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return h("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):h(n+1,2)},d:function(e,t){return h(e.getUTCDate(),t.length)},h:function(e,t){return h(e.getUTCHours()%12||12,t.length)},H:function(e,t){return h(e.getUTCHours(),t.length)},m:function(e,t){return h(e.getUTCMinutes(),t.length)},s:function(e,t){return h(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return h(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}};var f={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+h(o,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+h(Math.abs(e)/60,2):y(e,t)}function y(e,t){var n=Math.abs(e);return(e>0?"-":"+")+h(Math.floor(n/60),2)+(t||"")+h(n%60,2)}let v={G:function(e,t,n){var r=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,r){var i=d(e,r),o=i>0?i:1-i;return"YY"===t?h(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):h(o,t.length)},R:function(e,t){return h(l(e),t.length)},u:function(e,t){return h(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return h(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return h(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return h(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=function(e,t){(0,i.A)(1,arguments);var n=(0,o.A)(e);return Math.round((c(n,t).getTime()-(function(e,t){(0,i.A)(1,arguments);var n,r,o,a,l,h,p,f,m=(0,s.A)(null!=(n=null!=(r=null!=(o=null!=(a=null==t?void 0:t.firstWeekContainsDate)?a:null==t||null==(l=t.locale)||null==(h=l.options)?void 0:h.firstWeekContainsDate)?o:u.f
1659irstWeekContainsDate)?r:null==(p=u.locale)||null==(f=p.options)?void 0:f.firstWeekContainsDate)?n:1),g=d(e,t),y=new Date(0);return y.setUTCFullYear(g,0,m),y.setUTCHours(0,0,0,0),c(y,t)})(n,t).getTime())/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):h(a,t.length)},I:function(e,t,n){var r=function(e){(0,i.A)(1,arguments);var t=(0,o.A)(e);return Math.round((a(t).getTime()-(function(e){(0,i.A)(1,arguments);var t=l(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),a(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):h(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){var r=function(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):h(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return h(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return h(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return h(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?f.noon:0===i?f.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?f.evening:i>=12?f.afternoon:i>=4?f.morning:f.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):h(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):h(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return g(i);case"XXXX":case"XX":return y(i);default:return y(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return g(i);case"xxxx":case"xx":return y(i);default:return y(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(i,":");default:return"GMT"+y(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(i,":");default:return"GMT"+y(i,":")}},t:function(e,t,n,r){return h(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return h((r._originalDate||e).getTime(),t.length)}};var b=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},x=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};let _={p:x,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return b(e,t);
1659switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",b(i,t)).replace("{{time}}",x(o,t))}};var w=["D","DD"],k=["YY","YYYY"];function C(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").
1659concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var E={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function A(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var S={date:A({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:A({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:A({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},T={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function j(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,a=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function N(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;var a=s[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(l,function(e){return e.test(a)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(l,function(e){return e.test(a)});return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(a.length)}}}let O={code:"en-US",formatDistance:function(e,t,n){var r,i=E[e];if(r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)if(n.comparison&&n.comparison>0)return"in "+r;else return r+" ago";return r},formatLong:S,formatRelative:function(e,t,n,r){return T[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:j({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:j({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:j({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:j({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:j({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:s=n.valueCallback?n.valueCallback(s):s,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:N({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:N({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:N({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:N({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:N({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var I=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M=/^'([^]*?)'?$/,L=/''/g,R=/[a-zA-Z]/;function P(e,t,n){(0,i.A)(2,arguments);
1659var a,l,c,d,h,p,f,m,g,y,b,x,E,A,S,T,j,N,P,F=String(t),B=null!=(l=null!=(c=null==n?void 0:n.locale)?c:u.locale)?l:O,$=(0,s.A)(null!=(d=null!=(h=null!=(p=null!=(f=null==n?void 0:n.firstWeekContainsDate)?f:null==n||null==(m=n.locale)||null==(g=m.options)?void 0:g.firstWeekContainsDate)?p:u.firstWeekContainsDate)?h:null==(y=u.locale)||null==(b=y.options)?void 0:b.firstWeekContainsDate)?d:1);if(!($>=1&&$<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=(0,s.A)(null!=(x=null!=(E=null!=(A=null!=(S=null==n?void 0:n.weekStartsOn)?S:null==n||null==(T=n.locale)||null==(j=T.options)?void 0:j.weekStartsOn)?A:u.weekStartsOn)?E:null==(N=u.locale)||null==(P=N.options)?void 0:P.weekStartsOn)?x:0);if(!(q>=0&&q<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw RangeError("locale must contain localize property");if(!B.formatLong)throw RangeError("locale must contain formatLong property");var V=(0,o.A)(e);if(!function(e){return(0,i.A)(1,arguments),(!!function(e){return(0,i.A)(1,arguments),e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,o.A)(e)))}(V))throw RangeError("Invalid time value");var z=((a=new Date(Date.UTC(V.getFullYear(),V.getMonth(),V.getDate(),V.getHours(),V.getMinutes(),V.getSeconds(),V.getMilliseconds()))).setUTCFullYear(V.getFullYear()),V.getTime()-a.getTime()),U=function(e,t){return(0,i.A)(2,arguments),function(e,t){return(0,i.A)(2,arguments),new Date((0,o.A)(e).getTime()+(0,s.A)(t))}(e,-(0,s.A)(t))}(V,z),H={firstWeekContainsDate:$,weekStartsOn:q,locale:B,_originalDate:V};return F.match(D).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,_[t])(e,B.formatLong):e}).join("").match(I).map(function(r){if("''"===r)return"'";var i,o,s=r[0];if("'"===s){return(o=(i=r).match(M))?o[1].replace(L,"'"):i}var a=v[s];if(a)return null!=n&&n.useAdditionalWeekYearTokens||-1===k.indexOf(r)||C(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||-1===w.indexOf(r)||C(r,t,String(e)),a(U,r,B.localize,H);if(s.match(R))throw RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return r}).join("")}},43622:(e,t,n)=>{var r=n(46141),i=n(49318);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},43966:(e,t,n)=>{"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}
1659),n(76720),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43982:(e,t,n)=>{"use strict";n.d(t,{Ac:()=>l,DP:()=>g,Ds:()=>u,Mg:()=>m,YI:()=>d,Yq:()=>h,_U:()=>a,fF:()=>c,fU:()=>f,r6:()=>p});var r=n(37876);n(80229);var i=n(21993),o=n(43428),s=n(95024);function a(e){if(!e)return null;let t=e.match(/^(\d+)-(\d+)-(\d+)$/);if(t){let e=parseInt(t[1]);return new Date(e,parseInt(t[2])-1,parseInt(t[3]),0,0,0)}return new Date(e)}function l(e){let t=e.match(/^(\d{4})-(\d{2})/);if(!t)throw Error(`Bad format for month: ${e}`);return[parseInt(t[1]),parseInt(t[2])]}function u(e,t){let[n,r]=l(e),i=n,o=r+t;o<1?(o=12,i=n-1):o>12&&(o=1,i=n+1);let s=`${o}`.padStart(2,"0");return`${i}-${s}`}function c(e){let t=(new Date().valueOf()-e.valueOf())/1e3;if(t>=0){if(t<10)return"just now";let e=d(t);return`${e} ago`}{if(10>-t)return"just now";let e=d(-t);return`in ${e}`}}function d(e){let t=(e=Math.round(e))/60,n=t/60,r=n/24,i=r/7,o=r/365.25,s=12*o;if(o>=1){let e=(o=Math.round(o))>1?"years":"year";return`${o} ${e}`}if(s>=1){let e=(s=Math.round(s))>1?"months":"month";return`${s} ${e}`}if(i>=1){let e=(i=Math.round(i))>1?"weeks":"week";return`${i} ${e}`}if(r>=1){let e=(r=Math.round(r))>1?"days":"day";return`${r} ${e}`}if(n>=1){let e=(n=Math.round(n))>1?"hours":"hour";return`${n} ${e}`}else if(t>=1){let e=(t=Math.round(t))>1?"minutes":"minute";return`${t} ${e}`}else{if(!(e>=0))return"now";let t=e>1?"seconds":"second";return`${e} ${t}`}}function h(e,t){return(t=t||i.i$,"string"==typeof e&&(e.match(/\d{2}:\d{2}:\d{2}$/)&&(e+="Z"),e=a(e)),e)?e&&(0,o.A)(e,t):null}function p(e){return(0,r.jsx)(s.A,{dateTime:e,"data-sentry-element":"DayDateTimeOffset","data-sentry-component":"formatDateTime","data-sentry-source-file":"date.tsx"})}function f(e){return h(e,i.DC)}function m(e){let t=new Date;t.setHours(0),t.setMinutes(0),t.setSeconds(0);let n=new Date,o=new Date(n.valueOf()-5184e5),s=new Date(n.valueOf()-31536e6);return e.valueOf()>=t.valueOf()?f(e):e.valueOf()>=o.valueOf()?h(e,`EEEE ${i.DC}`):e.valueOf()>=s.valueOf()?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{className:"mr-2",children:[" ",h(e,i.kg)]})," ",h(e,i.DC)]}):h(e,`${i.i$} ${i.DC}`)}function g({date:e,time:t}){let n=new Date(e),[r,i]=t.split(":");return n.setHours(parseInt(r)),n.setMinutes(parseInt(i)),n.setSeconds(0),n}},44046:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(37876),i=n(22960),o=n(86637),s=n(14232),a=n(78248),l=n(55494),u=n(13220),c=n(85819),d=n(44650),h=n(43371),p=n(27185),f=n(33881),m=n(95494),g=n(80903);function y(e){let{canManageMembers:t,conversationId:n,participants:i,onMembersChanged:o}
1659=e,y=(0,u.bH)(),v=(0,u.wS)(),[b,x]=(0,s.useState)(""),[_,w]=(0,s.useState)([]),[k]=(0,a._)(l.VW),[C,E]=(0,c.X)(d.ot),A=(0,s.useRef)(null),S=i.map(e=>e.id),T=(0,s.useCallback)(async e=>{if(!y)return;let t=[...S];v&&t.push(v);let n={search:e,limit:20,skipMemberIds:t.length>0?t:void 0},r=await k({variables:n});!r.error&&r.data?w(r.data.listMembers2.results.map(h.hX)):w([])},[y,S.join(","),v,k]);async function j(e){await C({variables:{id:n,input:{addMemberIds:[e]}}},"updateNamedConversation"),x(""),w([]),o()}async function N(e){await C({variables:{id:n,input:{removeMemberIds:[e]}}},"updateNamedConversation"),o()}return(0,s.useEffect)(()=>{t&&T("")},[t]),(0,r.jsxs)("div",{className:"flex flex-col gap-4 px-4 md:px-0","data-sentry-component":"ConversationMembersSelector","data-sentry-source-file":"ConversationMembersSelector.tsx",children:[(0,r.jsx)("h2",{className:"text-lg font-bold",children:"Members"}),(0,r.jsx)(f.A,{mutationInfo:E,"data-sentry-element":"AshMutationErrors","data-sentry-source-file":"ConversationMembersSelector.tsx"}),t&&(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Add a member"}),(0,r.jsx)(p.A,{value:b,onChange:function(e){let t=e.target.value;x(t),T(t)},onFocus:()=>T(b),members:_,onAdd:e=>j(e.id),inputRef:A})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"text-sm font-medium text-gray-500",children:[i.length," ",1===i.length?"member":"members"]}),i.map(e=>(0,r.jsxs)("div",{className:"flex items-center py-2 border-b",children:[(0,r.jsx)(g.L7,{name:e.name,photoUrl:e.photo?.url,photoSize:40,className:"mr-3 shrink-0"}),(0,r.jsxs)("div",{className:"flex-grow min-w-0",children:[(0,r.jsxs)("div",{className:"font-medium",children:[e.name,e.id===v&&(0,r.jsx)("span",{className:"text-sm text-gray-400 ml-1",children:"(you)"})]}),e.title&&(0,r.jsx)("div",{className:"text-sm text-gray-500",children:e.title})]}),t&&e.id!==v&&(0,r.jsx)("button",{type:"button",onClick:()=>N(e.id),className:"text-gray-400 hover:text-red-500 p-1 shrink-0",children:(0,r.jsx)(m.A,{className:"size-5"})})]},e.id)),0===i.length&&(0,r.jsx)("p",{className:"text-gray-500 text-sm",children:"No members yet. Use the search above to add members."})]})]})}var v=n(78950),b=n(39114);function x(e){let{chatMessagingReturn:t}=e,{channelStore:n,chatUIState:s,conversationId:a,enableNotifications:l,isEnabling:u,isManagingMembers:c,isSilenced:d,isSilencing:h,messages:p,messagesLoading:f,newRecipientMembers:m,onArchiveChannel:g,onCloseConversation:x,onConversationRenamed:_,onLeaveChannel:w,onMembersChanged:k,onMessagesVisibilityChange:C,onSubmit:E,silenceNotifications:A,toggleManageMembers:S,userStore:T}=t,j=T.user?.id,N=a&&n.conversations&&n.conversations.find(e=>e.id===a)||null,O=N?.conversationStyle===i.H.NAMED,I=(0,b.hN)(T.user,"forum"),D=O&&I;return(0,r.jsxs)(r.Fragment,{children:[[i.q9.NEW,i.q9.EXISTING].includes(s)&&(0,r.jsx)(o.A,{channelStore:n,canManageChannel:D,className:"flex-1",conversationId:a,messagesLoading:f,newRecipients:m,messages:p,onSubmit:E,currentMemberId:j,onArchiveChannel:g,onClose:x,onConversationRenamed:_,onMessagesVisibilityChange:C,onManageMembers:S,onLeaveChannel:w,enableNotifications:l,isEnabling:u,isSilenced:d,isSilencing:h,silenceNotifications:A}),(0,r.jsx)(v.A,{isOpen:c,onClose:S,"data-sentry-element":"SimpleModal","data-sentry-source-file":"MessagingColumn.tsx",children:a&&(0,r.jsx)(y,{canManageMembers:O&&I,conversationId:a,participants:N?.participants||[],onMembersChanged:k})})]})}},44302:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(13220),o=n(73382),s=n(5811),a=n(77328),l=n.n(a);let u=(0,s.PA)(function(e){let{title:t}=e,{pageTitle:n}=function(){let e=(0,i.Jc)();return{pageTitle:t=>(0,o.W)(t,e)}}();return t?(0,r.jsx)(l(),{"data-sentry-element":"Head","data-sentry-component":"WindowTitle","data-sentry-source-file":"WindowTitle.tsx",children:(0,r.jsx)("title",{children:n(t)})}):null})},44467:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);
1659(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(65883),s=n(84941);i(n(84941),t);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===o.ElementType.Text)t?n.data=(n.data+e).replace(a," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var r=new s.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment){this.lastNode.data+=e;return}var t=new s.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},44537:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(!n.length)return void t.preventDefault();var i=void 0,o=t.shiftKey,s=n[0],a=n[n.length-1],l=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===l){if(!o)return;i=a}if(a!==l||o||(i=s),s===l&&o&&(i=a),i){t.preventDefault(),i.focus();return}var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var c=n.indexOf(l);if(c>-1&&(c+=o?-1:1),void 0===(i=n[c])){t.preventDefault(),(i=o?a:s).focus();return}t.preventDefault(),i.focus()}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(77289));e.exports=t.default},44538:(e,t,n)=>{"use strict";var r=n(97108),i=Array.prototype.concat,o=Array.prototype.slice,s=e.exports=function(e){for(var t=[],n=0,s=e.length;n<s;n++){var a=e[n];r(a)?t=i.call(t,o.call(a)):t.push(a)}return t};s.wrap=function(e){return function(){return e(s(arguments))}}},44577:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},44650:(e,t,n)=>{"use strict";n.d(t,{Ld:()=>h,bB:()=>s,bv:()=>a,cm:()=>f,ef:()=>i,hB:()=>u,jE:()=>p,lg:()=>d,ot:()=>c,tj:()=>l,vu:()=>o});var r=n(86191);let i=(0,r.J1)` 1660 query ListMessages( 1661 $limit: Int 1662 $offset: Int 1663 $conversationId: String! 1664 $sort: [Message2SortInput] 1665 $filter: Message2FilterInput 1666 ) { 1667 listMessages( 1668 limit: $limit 1669 offset: $offset 1670 conversationId: $conversationId 1671 sort: $sort 1672 filter: $filter 1673 ) { 1674 count 1675 hasNextPage 1676 results { 1677 actorType 1678 body 1679 conversationId 1680 id 1681 insertedAt 1682 isDeleted 1683 likedBySelf
1684 likesCount 1685 parentId 1686 readBySelf 1687 sender { 1688 id 1689 name 1690 profile { 1691 photo { 1692 url 1693 } 1694 } 1695 title 1696 } 1697 attachments { 1698 id 1699 url 1700 info { 1701 width 1702 height 1703 } 1704 thumbUrl 1705 thumbInfo { 1706 width 1707 height 1708 } 1709 } 1710 } 1711 } 1712 } 1713`,o=(0,r.J1)` 1714 query GetMessage($id: ID!) { 1715 getMessage(id: $id) { 1716 id 1717 likesCount 1718 likes(sort: [{ field: INSERTED_AT, order: ASC }]) { 1719 id 1720 likedBy { 1721 id 1722 name 1723 title 1724 profile { 1725 photo { 1726 url 1727 } 1728 } 1729 } 1730 } 1731 } 1732 } 1733`,s=(0,r.J1)` 1734 mutation SilenceConversationNotifications( 1735 $id: ID! 1736 $input: SilenceConversationNotificationsInput! 1737 ) { 1738 silenceConversationNotifications(id: $id, input: $input) { 1739 result { 1740 id 1741 selfParticipant { 1742 id 1743 silenceUntil 1744 unreadMessagesCount 1745 } 1746 } 1747 errors { 1748 code 1749 fields 1750 message 1751 shortMessage 1752 vars 1753 } 1754 } 1755 } 1756`,a=(0,r.J1)` 1757 mutation SilenceConversationNotifications( 1758 $id: ID! 1759 $input: SilenceConversationNotificationsInput! 1760 ) { 1761 silenceConversationNotifications(id: $id, input: $input) { 1762 result { 1763 id 1764 } 1765 errors { 1766 code 1767 fields 1768 message 1769 shortMessage 1770 vars 1771 } 1772 } 1773 } 1774`,l=(0,r.J1)` 1775 mutation EnableConversationNotifications($id: ID!) { 1776 enableConversationNotifications(id: $id) { 1777 result { 1778 id 1779 selfParticipant { 1780 id 1781 silenceUntil 1782 unreadMessagesCount 1783 } 1784 } 1785 errors { 1786 code 1787 fields 1788 message 1789 shortMessage 1790 vars 1791 } 1792 } 1793 } 1794`,u=(0,r.J1)` 1795 mutation CreateNamedConversation($input: CreateNamedConversationInput!) { 1796 createNamedConversation(input: $input) { 1797 result { 1798 id 1799 name 1800 conversationStyle 1801 purpose 1802 } 1803 errors { 1804 code 1805 fields 1806 message 1807 shortMessage 1808 vars 1809 } 1810 } 1811 } 1812`,c=(0,r.J1)` 1813 mutation UpdateNamedConversation( 1814 $id: ID! 1815 $input: UpdateNamedConversationInput! 1816 ) { 1817 updateNamedConversation(id: $id, input: $input) { 1818 result { 1819 id 1820 name 1821 conversationStyle 1822 } 1823 errors { 1824 code 1825 fields 1826 message 1827 shortMessage 1828 vars 1829 } 1830 } 1831 } 1832`,d=(0,r.J1)` 1833 mutation ArchiveConversation($id: ID!) { 1834 archiveConversation(id: $id) { 1835 result { 1836 id 1837 archivedAt 1838 } 1839 errors { 1840 code 1841 fields 1842 message 1843 shortMessage 1844 vars 1845 } 1846 } 1847 } 1848`,h=(0,r.J1)` 1849 mutation SubscribeToConversation($id: ID!) { 1850 subscribeToConversation(id: $id) { 1851 result { 1852 id 1853 selfParticipant { 1854 id 1855 status 1856 silenceUntil 1857 } 1858 } 1859 errors { 1860 code 1861 fields 1862 message 1863 shortMessage 1864 vars 1865 } 1866 } 1867 } 1868`,p=(0,r.J1)` 1869 mutation UnsubscribeFromConversation($id: ID!) { 1870 unsubscribeFromConversation(id: $id) { 1871 result { 1872 id 1873 selfParticipant { 1874 id 1875 status 1876 silenceUntil 1877 } 1878 } 1879 errors { 1880 code 1881 fields 1882 message 1883 shortMessage 1884 vars 1885 } 1886 } 1887 } 1888`,f=(0,r.J1)` 1889 mutation LeaveConversation($id: ID!) { 1890 leaveConversation(id: $id) { 1891 result { 1892 id 1893 } 1894 errors { 1895 code 1896 fields 1897 message 1898 shortMessage 1899 vars 1900 } 1901 } 1902 } 1903`},44884:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(14232),i=n(62307);function o(...e){return(0,r.useMemo)(()=>(0,i.T)(...e),[...e])}},45241:(e,t,n)=>{"use strict";n.d(t,{oz:()=>B,fu:()=>L,wb:()=>R,Kp:()=>F,T2:()=>P});var r=n(56788),i=n(36607),o=n(14232),s=n(26437),a=n(64671),l=n(47737),u=n(29842),c=n(22529),d=n(29203),h=n(36572),p=n(47980);function f({onFocus:e}){let[t,n]=(0,o.useState)(!0),r=(0,h.a)();return t?o.createElement(p.j,{as:"button",type:"button",features:p.u.Focusable,onFocus:t=>{t.preventDefault();let i,o=50;i=requestAnimationFrame(function t(){if(o--<=0){i&&cancelAnimationFrame(i);return}if(e()){if(cancelAnimationFrame(i),!r.current)return;n(!1);return}i=requestAnimationFrame(t)})}}):null}var m=n(7784),g=n(99289),y=n(82030),v=n(62307),b=n(41612);let x=o.createContext(null);function _({children:e}
1903){let t=o.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let i=null!=(n=r.get(t))?n:0;return r.set(t,i+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return o.createElement(x.Provider,{value:t},e)}function w(e){let t=o.useContext(x);if(!t)throw Error("You must wrap your component in a <StableCollection>");let n=o.useId(),[r,i]=t.current.get(e,n);return o.useEffect(()=>i,[]),r}var k=n(33890),C=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(C||{}),E=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(E||{}),A=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(A||{});let S={0(e,t){var n;let r=(0,m.wl)(e.tabs,e=>e.current),i=(0,m.wl)(e.panels,e=>e.current),o=r.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),s={...e,tabs:r,panels:i};if(t.index<0||t.index>r.length-1){let n=(0,g.Y)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,g.Y)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===o.length)return s;let i=(0,g.Y)(n,{0:()=>r.indexOf(o[0]),1:()=>r.indexOf(o[o.length-1])});return{...s,selectedIndex:-1===i?e.selectedIndex:i}}let a=r.slice(0,t.index),l=[...r.slice(t.index),...a].find(e=>o.includes(e));if(!l)return s;let u=null!=(n=r.indexOf(l))?n:e.selectedIndex;return -1===u&&(u=e.selectedIndex),{...s,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],r=(0,m.wl)([...e.tabs,t.tab],e=>e.current),i=e.selectedIndex;return e.info.current.isControlled||-1===(i=r.indexOf(n))&&(i=e.selectedIndex),{...e,tabs:r,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,m.wl)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},T=(0,o.createContext)(null);function j(e){let t=(0,o.useContext)(T);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,j),t}return t}T.displayName="TabsDataContext";let N=(0,o.createContext)(null);function O(e){let t=(0,o.useContext)(N);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,O),t}return t}function I(e,t){return(0,g.Y)(t.type,S,e,t)}N.displayName="TabsActionsContext";let D=b.Ac.RenderStrategy|b.Ac.Static,M=(0,b.FX)(function(e,t){var n,u;let h=(0,o.useId)(),{id:p=`headlessui-tabs-tab-${h}`,disabled:f=!1,autoFocus:x=!1,..._}=e,{orientation:C,activation:E,selectedIndex:A,tabs:S,panels:T}=j("Tab"),N=O("Tab"),I=j("Tab"),[D,M]=(0,o.useState)(null),L=(0,o.useRef)(null),R=(0,d.P)(L,t,M);(0,l.s)(()=>N.registerTab(L),[N,L]);let P=w("tabs"),F=S.indexOf(L);-1===F&&(F=P);let B=F===A,$=(0,a._)(e=>{var t;let n=e();if(n===m.Me.Success&&"auto"===E){let e=null==(t=(0,v.T)(L))?void 0:t.activeElement,n=I.tabs.findIndex(t=>t.current===e);-1!==n&&N.change(n)}return n}),q=(0,a._)(e=>{let t=S.map(e=>e.current).filter(Boolean);if(e.key===k.D.Space||e.key===k.D.Enter){e.preventDefault(),e.stopPropagation(),N.change(F);return}switch(e.key){case k.D.Home:case k.D.PageUp:return e.preventDefault(),e.stopPropagation(),$(()=>(0,m.CU)(t,m.BD.First));case k.D.End:case k.D.PageDown:return e.preventDefault(),e.stopPropagation(),$(()=>(0,m.CU)(t,m.BD.Last))}if($(()=>(0,g.Y)(C,{vertical:()=>e.key===k.D.ArrowUp?(0,m.CU)(t,m.BD.Previous|m.BD.WrapAround):e.key===k.D.ArrowDown?(0,m.CU)(t,m.BD.Next|m.BD.WrapAround):m.Me.Error,horizontal:()=>e.key===k.D.ArrowLeft?(0,m.CU)(t,m.BD.Previous|m.BD.WrapAround):e.key===k.D.ArrowRight?(0,m.CU)(t,m.BD.Next|m.BD.WrapAround):m.Me.Error}))===m.Me.Success)return e.preventDefault()}),V=(0,o.useRef)(!1),z=(0,a._)(()=>{var e;V.current||(V.current=!0,null==(e=L.current)||e.focus({preventScroll:!0}),N.change(F),(0,y._)(()=>{V.current=!1}))}),U=(0,a._)(e=>{e.preventDefault()}),{isFocusVisible:H,focusProps:W}=(0,r.o)({autoFocus:x}),{isHovered:G,hoverProps:K}=(0,i.M)({isDisabled:f}),{pressed:J,pressProps:Q}=(0,s.Z)({disabled:f}),Y=(0,o.useMemo)(()=>({selected:B,hover:G,active:J,focus:H,autofocus:x,disabled:f}),[B,G,H,J,x,f]),X=(0,b.v6)({ref:R,onKeyDown:q,onMouseDown:U,onClick:z,id:p,role:"tab",type:(0,c.c)(e,D),"aria-controls":null==(u=null==(n=T[F])?void 0:n.current)?void 0:u.id,"aria-selected":B,tabIndex:B?0:-1,disabled:f||void 0,autoFocus:x},W,K,Q);return(0,b.Ci)()({ourProps:X,theirProps:_,slot:Y,defaultTag:"button",name:"Tabs.Tab"})}),L=(0,b.FX)(function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:i=!1,onChange:s,selectedIndex:c=null,...h}=e,p=r?"vertical":"horizontal",g=i?"manual":"auto",y=null!==c,v=(0,u.Y)({isControlled:y}),x=(0,d.P)(t),[w,k]=(0,o.useReducer)(I,{info:v,selectedIndex:null!=c?c:n,tabs:[],panels:[]}),C=(0,o.useMemo)(()=>({selectedIndex:w.selectedIndex}),[w.selectedIndex]),E=(0,u.Y)(s||(()=>{})),A=(0,u.Y)(w.tabs),S=(0,o.useMemo)(()=>({orientation:p,activation:g,...w}),[p,g,w]),j=(0,a._)(e=>(k({type:1,tab:e}),()=>k({type:2,tab:e}))),O=(0,a._)(e=>(k({type:3,panel:e}),()=>k({type:4,panel:e}))),D=(0,a._)(e=>{M.current!==e&&E.current(e),y||k({type:0,index:e})}),M=(0,u.Y)(y?e.selectedIndex:w.selectedIndex),L=(0,o.useMemo)(()=>({registerTab:j,registerPanel:O,change:D}),[]);(0,l.s)(()=>{k({type:0,index:null!=c?c:n})},[c]),(0,l.s)(()=>
1903{if(void 0===M.current||w.tabs.length<=0)return;let e=(0,m.wl)(w.tabs,e=>e.current);e.some((e,t)=>w.tabs[t]!==e)&&D(e.indexOf(w.tabs[M.current]))});let R=(0,b.Ci)();return o.createElement(_,null,o.createElement(N.Provider,{value:L},o.createElement(T.Provider,{value:S},S.tabs.length<=0&&o.createElement(f,{onFocus:()=>{var e,t;for(let n of A.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),R({ourProps:{ref:x},theirProps:h,slot:C,defaultTag:"div",name:"Tabs"}))))}),R=(0,b.FX)(function(e,t){let{orientation:n,selectedIndex:r}=j("Tab.List"),i=(0,d.P)(t),s=(0,o.useMemo)(()=>({selectedIndex:r}),[r]);return(0,b.Ci)()({ourProps:{ref:i,role:"tablist","aria-orientation":n},theirProps:e,slot:s,defaultTag:"div",name:"Tabs.List"})}),P=(0,b.FX)(function(e,t){let{selectedIndex:n}=j("Tab.Panels"),r=(0,d.P)(t),i=(0,o.useMemo)(()=>({selectedIndex:n}),[n]);return(0,b.Ci)()({ourProps:{ref:r},theirProps:e,slot:i,defaultTag:"div",name:"Tabs.Panels"})}),F=(0,b.FX)(function(e,t){var n,i,s,a;let u=(0,o.useId)(),{id:c=`headlessui-tabs-panel-${u}`,tabIndex:h=0,...f}=e,{selectedIndex:m,tabs:g,panels:y}=j("Tab.Panel"),v=O("Tab.Panel"),x=(0,o.useRef)(null),_=(0,d.P)(x,t);(0,l.s)(()=>v.registerPanel(x),[v,x]);let k=w("panels"),C=y.indexOf(x);-1===C&&(C=k);let E=C===m,{isFocusVisible:A,focusProps:S}=(0,r.o)(),T=(0,o.useMemo)(()=>({selected:E,focus:A}),[E,A]),N=(0,b.v6)({ref:_,id:c,role:"tabpanel","aria-labelledby":null==(i=null==(n=g[C])?void 0:n.current)?void 0:i.id,tabIndex:E?h:-1},S),I=(0,b.Ci)();return E||null!=(s=f.unmount)&&!s||null!=(a=f.static)&&a?I({ourProps:N,theirProps:f,slot:T,defaultTag:"div",features:D,visible:E,name:"Tabs.Panel"}):o.createElement(p.j,{"aria-hidden":"true",...N})}),B=Object.assign(M,{Group:L,List:R,Panels:P,Panel:F})},45261:(e,t,n)=>{var r=n(36187);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},45384:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"32px",height:"32px",style:n,className:t,title:"House icon",...{},"data-sentry-element":"svg","data-sentry-component":"HouseIcon","data-sentry-source-file":"HouseIcon.tsx",children:(0,r.jsx)("path",{d:"M 16 2.6386719 L 2.3222656 15.265625 L 3.6777344 16.734375 L 5 15.513672 L 5 28 L 27 28 L 27 15.513672 L 28.322266 16.734375 L 29.677734 15.265625 L 23.974609 10 L 24 10 L 24 6 L 22 6 L 22 8.1777344 L 16 2.6386719 z M 16 5.3613281 L 25 13.667969 L 25 26 L 7 26 L 7 13.667969 L 16 5.3613281 z M 9 17 L 9 18 L 9 24 L 15 24 L 15 17 L 9 17 z M 17 17 L 17 18 L 17 24 L 23 24 L 23 17 L 17 17 z M 11 19 L 13 19 L 13 22 L 11 22 L 11 19 z M 19 19 L 21 19 L 21 22 L 19 22 L 19 19 z","data-sentry-element":"path","data-sentry-source-file":"HouseIcon.tsx"})})}},45460:(e,t,n)=>{"use strict";n.d(t,{p:()=>f,A:()=>p});var r=n(37876),i=n(72954),o=n(47952),s=n(65416),a=n(5811),l=n(26478),u=n(49995),c=n(73382);let d=({buttonClass:e,children:t,className:n,imageAs:i,imageItem:o,imageUri:s,index:a,heading:d,description:h,buttonLabel:p,buttonUrl:f,order:m})=>(0,r.jsxs)("div",{className:(0,u.A)("MarketingCard",m,a%2==1?"odd":"even",n),"data-sentry-component":"MarketingCard","data-sentry-source-file":"MarketingCard.tsx",children:[(0,r.jsx)("div",{className:"ImageColumn",children:(0,r.jsxs)("div",{className:"ImageWrapper relative",children:[(0,r.jsx)("div",{className:"ImageOverlay absolute inset-0",children:"\xa0"}),"background"===i?(0,r.jsx)("div",{className:"CardImage",style:{backgroundImage:`url(${s})`},children:"\xa0"}):(0,r.jsx)("img",{src:s,className:"CardImage",alt:(0,c.NM)(o,d?`image for ${d}`:"user generated image")})]})}),(0,r.jsxs)("div",{className:"TextColumn CardTextContent",children:[(0,r.jsx)("div",{className:"CardHeading",children:d}),(0,r.jsx)("div",{className:"CardBodyText CardText",children:t||h}),f&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"ButtonWrapper",children:(0,r.jsx)(l.A,{label:p,href:f,className:e})})})]})]});var h=n(80229);let p=(0,a.PA)(({buttonClass:e,className:t,imageAs:n,parentTag:a,postsItem:l,postSlug:u})=>{let{getPostListBySlug:p}=(0,s.j6)();return!l&&u&&(l=p(u)),(0,r.jsx)(i.A,{className:(0,h.Wd)(a,"MarketingCards",t),editById:l?{id:l?.id}:void 0,editBySlug:u&&!l?{slug:u,type:c.nz.PostList}:void 0,"data-sentry-element":"EditableSection","data-sentry-component":"MarketingCards","data-sentry-source-file":"MarketingCards.tsx",children:l?.children?.map((t,i)=>{let s=t.children?.find(c._F),a=(0,c.kA)(t);
1903return(0,r.jsx)(d,{className:t.slug?`slug-${t.slug}`:void 0,index:i,buttonClass:e,imageItem:a,imageUri:a?.photo?.url||"",heading:t.title,buttonLabel:s?.label,buttonUrl:(0,c.iY)(s)||"",order:i%2==1?"flex-row-reverse":"flex-row",imageAs:n,children:(0,r.jsx)(o.A,{content:t.content})},t.id)})})}),f=[{key:"postSlug",type:"string"}]},45600:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(37876),i=n(49995),o=n(48230),s=n.n(o),a=n(54587),l=n.n(a);n(14232);var u=n(63853),c=n(73e3),d=n(21684),h=n(10969),p=n(72569);let f=e=>{e.preventDefault(),e.stopPropagation()},m=function(e){let t,{href:n,id:o,loading:a,children:m,leftIcon:g,savingLabel:y,size:v="medium"}=e,b=(0,p.jz)(e.themeArea),{disabled:x}=e,_=e.type||"button",w=(0,u.YQ)(e.onClick||(()=>void 0),1e3,{leading:!0}),k=e.colorClass;a?(x=!0,t=y||"Loadingâ¦"):t=m;let C="",E="";x&&(C="saturate-50",E="cursor-not-allowed");let A=e.bgColorClass,S=(0,i.A)(A,"",k);S=S||h.Ay.actionButtonColor;let T=(0,i.A)("SubmitButton Button inline-flex flex-row gap-2 items-center justify-center transition","min-w-32",S,C,"font-semibold",e.paddingClass||"py-2.5 px-4.5","rounded-[var(--group-button-radius)]","shadow",e.className,E),j=null;a?j=(0,r.jsx)(d.A,{className:"h-5 w-5 mr-2"}):e.withGroupFlow&&(j=(0,r.jsx)(l(),{src:"https://mp1md-pub.s3.amazonaws.com/groupflow/images/icon-white.svg",alt:"GroupFlow",className:"w-6 h-6",width:24,height:24}));let N=(0,r.jsxs)(r.Fragment,{children:[j,t]});return"admin"===b?(0,r.jsx)(c.A,{bgColorClass:e.bgColorClass,className:e.className,disabled:e.disabled,download:e.download,id:o,inputRef:e.inputRef,leftIcon:g,loading:e.loading,onClick:e.onClick,paddingXClass:e.paddingClass,rel:e.rel,target:e.target,type:e.type,withGroupFlow:e.withGroupFlow,href:n,"data-id":e["data-id"],"data-testid":e["data-testid"],"data-ui-component":e["data-ui-component"],"data-ui-id":e["data-ui-id"],size:v,children:a?y??"Loadingâ¦":m}):n?(0,r.jsx)(s(),{download:e.download,href:n,id:o,className:T,onClick:function(e){x&&(e.preventDefault(),e.stopPropagation())},target:e.target,rel:e.rel,role:"button","data-id":e["data-id"],"data-testid":e["data-testid"],"data-ui-component":e["data-ui-component"],"data-ui-id":e["data-ui-id"],children:N}):(0,r.jsx)("button",{type:_,id:o,className:T,onClick:a?f:w,disabled:x,ref:e.inputRef,"data-id":e["data-id"],"data-testid":e["data-testid"],"data-ui-component":e["data-ui-component"],"data-ui-id":e["data-ui-id"],children:N})}},45705:(e,t,n)=>{var r=n(36187);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},45712:(e,t,n)=>{"use strict";e.exports=n(58214)},45933:(e,t,n)=>{"use strict";n.d(t,{S:()=>u});var r=n(14232);class i extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}var o=n(70553),s=n(47737),a=n(73378);let l=new i(()=>(0,o.y)(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}}));function u(e,t){let n=l.get(t),i=(0,r.useId)(),o=(0,a.P)(n);if((0,s.s)(()=>{if(e)return n.dispatch("ADD",i),()=>n.dispatch("REMOVE",i)},[n,e]),!e)return!1;let u=o.indexOf(i),c=o.length;return -1===u&&(u=c,c+=1),u===c-1}},46141:(e,t,n)=>{var r=n(19850),i=n(98506),o=n(98825),s=n(82675),a=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,d=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:a).test(s(e))}},46338:(e,t,n)=>{"use strict";n.d(t,{Au:()=>s,CN:()=>B,CQ:()=>M,Gr:()=>b,Hm:()=>w,TL:()=>v,YE:()=>N,_3:()=>O,b2:()=>q,f6:()=>L,iV:()=>j,iW:()=>y,ku:()=>T,l9:()=>D,qF:()=>I,sI:()=>x,sc:()=>_,xY:()=>$,yV:()=>F});var r=n(94674),i=n(24447),o=n(86191);let s=["arrayValue","id","meta","otherValue","questionId","visible"],a=` 1904 active 1905 camelizedComponent 1906 id 1907 linkToId 1908 memberVisible 1909 ordinal 1910 purpose 1911 sectionId 1912 slug 1913 specialField 1914`,l="[{ field: ORDINAL, order: ASC }, { field: ID, order: ASC }]",u=` 1915 active 1916 id 1917 memberVisible 1918 name 1919 ordinal 1920 purpose 1921 slug 1922 questions(sort: ${l}) { 1923 ${a} 1924 } 1925`,c=` 1926 query AdminListSectionsForEdit( 1927 $filter: FormSection2FilterInput 1928 $questionFilter: Question2FilterInput 1929 ) { 1930 adminListSections( 1931 filter: $filter 1932 sort: [{ field: ORDINAL, order: ASC }, { field: ID, order: ASC }] 1933 limit: 500 1934 ) { 1935 results { 1936 active 1937 id 1938 memberVisible 1939 name 1940 ordinal 1941 purpose 1942 slug 1943 questions(filter: $questionFilter, sort: ${l}) { 1944 ${a} 1945 } 1946 } 1947 } 1948 } 1949`,d=` 1950 query AdminListQuestions($purpose: FormPurpose!, $active: Boolean) { 1951 adminListQuestions(purpose: $purpose, active: $active) { 1952 ${a} 1953 } 1954 } 1955`,h=` 1956 mutation CreateFormSection($input: CreateFormSectionInput) { 1957 createFormSection(input: $input) { 1958 result { 1959 ${u} 1960 } 1961 errors { 1962 code 1963 message 1964 } 1965 } 1966 } 1967`,p=` 1968 mutation UpdateFormSection($id: ID!, $input: UpdateFormSectionInput) { 1969 updateFormSection(id: $id, input: $input) { 1970 result { 1971 ${u} 1972 } 1973 errors { 1974 code 1975 message 1976 } 1977 } 1978 } 1979`,f=` 1980 mutation DestroyFormSection($id: ID!) { 1981 destroyFormSection(id: $id) { 1982 result { 1983 id 1984 } 1985 errors { 1986 code 1987 message 1988 } 1989 } 1990 } 1991`,m=` 1992 mutation ReorderFormSections($input: ReorderFormSectionsInput!) { 1993 reorderFormSections(input: $input) { 1994 ${u} 1995 } 1996 } 1997`,g=["active","id","linkToId","memberVisible","ordinal","sectionId","slug","tags"];async function y(e,t){let n={...t?.active!==void 0&&{active:{eq:t.active}},...t?.memberVisible!==void 0&&{memberVisible:{eq:t.memberVisible}}};return k(e,"AdminListSectionsForEdit",c,{filter:{...n,...t?.purpose&&{purpose:{eq:E(t.purpose)}}},questionFilter:n},"adminListSections",e=>e.results.map(A))}async function v(e,t){return k(e,"AdminListQuestions",d,{...t,purpose:E(t.purpose)},"adminListQuestions",e=>e.map(S))}async function b(e,t){let{id:n,...r}=t,i=function(e){let{active:t,contactAction:n,emailDestinationSelection:r,memberVisible:i,name:o,ordinal:s,purpose:a,questions:l,sendToMemberId:u,sendToTeam:c}=e;return{active:t,memberVisible:i,name:o,ordinal:s,sendToMemberId:u,...void 0!==a&&{purpose:E(a)},...void 0!==n&&{contactAction:E(n)},...void 0!==r&&{emailDestinationSelection:E(r)},...void 0!==c&&{sendToTeam:E(c)},...void 0!==l&&{questions:l.map(C)}}}(r),o=e=>A(e.result);return n?k(e,"UpdateFormSection",p,{id:n,input:i},"updateFormSection",o):k(e,"CreateFormSection",h,{input:i},"createFormSection",o)}async function x(e,{sectionParams:t,ordinals:n}){let r=await b(e,t);if(r.error)return r;let{purpose:i}=t,o=await w(e,{purpose:i,ordinals:n});return o.error?o:r}async function _(e,t){return k(e,"DestroyFormSection",f,t,"destroyFormSection",e=>e.result)}function w(e,t){return k(e,"ReorderFormSections",m,{input:{...t,purpose:E(t.purpose)}},"reorderFormSections",e=>e.map(A))}async function k(e,t,n,o,s,a){let l=await (0,i.Mn)(e,t,n,o),u=await l.json(),c=u.data?.[s]?.errors;return Array.isArray(c)&&c.length>0?{code:c[0].code,error:!0,message:c[0].message,serverError:!1,requestErrors:c.map(e=>({title:e.message,code:e.code}))}:(0,r.U3)(l,u,s,a)}function C(e){let t=g.filter(t=>t in e).reduce((t,n)=>({...t,[n]:e[n]}),{}),n="string"==typeof t.id&&/^\d+$/.test(t.id);return{...t,id:n?t.id:void 0,..."linkToId"in t&&{linkToId:t.linkToId||null},..."sectionId"in t&&{sectionId:t.sectionId||null},..."component"in e&&{component:JSON.stringify(e.component)},..."specialField"in e&&{specialField:E(e.specialField)}}}function E(e){return e?e.toUpperCase():null}function A(e){return{...e,purpose:e.purpose.toLowerCase(),questions:(e.questions??[]).map(S)}}function S(e){let{camelizedComponent:t,...n}=e;return{...n,component:JSON.parse(t),purpose:e.purpose?.toLowerCase()??null,specialField:e.specialField?.toLowerCase()??null}}async function T(e,t){let n=encodeURIComponent(JSON.stringify(t||{})),i=e.baseUrl+`/question_items?json=${n}`,o=await (0,r.YO)(i,{headers:(0,r.co)(e),method:"GET"});return(0,r.rl)(o)}async function j(e){let t=(0,r.yz)(e),n=await (0,r.YO)(t+"/forms.json",{});return{error:!1,data:await n.json(),pagination:{}}}function N(e){return{...e,meta:e.meta?JSON.parse(e.meta):{}}}function O(e){return{...e,meta:e.meta?JSON.stringify(e.meta):null}}let I=(0,o.J1)` 1998 query AdminListSections( 1999 $filter: FormSection2FilterInput 2000 $sort: [FormSection2SortInput!] 2001 ) { 2002 adminListSections(filter: $filter, sort: $sort) { 2003 results { 2004 active 2005 id 2006 memberVisible 2007 name 2008 ordinal 2009 purpose 2010 questions(sort: [{ field: ORDINAL, order: ASC }]) { 2011 active 2012 component { 2013 field 2014 label { 2015 value 2016 } 2017 text { 2018 text 2019 } 2020 } 2021 id 2022 memberVisible 2023 ordinal 2024 sectionId 2025 slug 2026 specialField 2027 tags 2028 } 2029 slug 2030 } 2031 count 2032 hasNextPage 2033 } 2034 } 2035`,D=(0,o.J1)`
2036 mutation ExportForms($input: ExportFormsInput!) { 2037 exportForms(input: $input) 2038 } 2039`,M=(0,o.J1)` 2040 mutation ImportForms($input: ImportFormsInput!) { 2041 importForms(input: $input) 2042 } 2043`,L=` 2044 active 2045 camelizedComponent 2046 id 2047 memberVisible 2048 ordinal 2049 purpose 2050 sectionId 2051 slug 2052 specialField 2053`,R=` 2054 id 2055 name 2056 purpose 2057 questions { 2058 id 2059 ordinal 2060 active 2061 specialField 2062 camelizedComponent 2063 } 2064`,P=` 2065 id 2066 name 2067 purpose 2068 contactAction 2069 emailDestinationSelection 2070 sendToTeam 2071 sendToMemberId 2072 sendToMember { 2073 id 2074 name 2075 title 2076 profile { 2077 photo { 2078 url 2079 } 2080 pronounItems { 2081 label 2082 } 2083 } 2084 } 2085 questions { 2086 id 2087 ordinal 2088 active 2089 specialField 2090 camelizedComponent 2091 } 2092`,F=(0,o.J1)` 2093 query GetFormSection($id: ID!) { 2094 getFormSection(id: $id) { 2095 ${R} 2096 } 2097 } 2098`,B=(0,o.J1)` 2099 query GetFormSection($id: ID!) { 2100 getFormSection(id: $id) { 2101 ${P} 2102 } 2103 } 2104`,$=(0,o.J1)` 2105 mutation SubmitContactForm($input: SubmitContactFormInput!) { 2106 submitContactForm(input: $input) 2107 } 2108`,q=(0,o.J1)` 2109 query CaptchaChallenge { 2110 captchaChallenge 2111 } 2112`},46378:(e,t,n)=>{"use strict";n.d(t,{q:()=>q,A:()=>$});var r=n(37876),i=n(14232),o=n(72954),s=n(42383),a=n(47952),l=n(30503),u=n(41591),c=n(49995),d=n(10969),h=n(73382);let p=({buttonClass:e,children:t,className:n,imageAs:i,imageItem:o,imageUri:s,index:a,heading:l,description:p,buttonLabel:f,buttonUrl:m,order:g})=>(0,r.jsxs)("div",{className:(0,c.A)("MarketingCard",g,a%2==1?"odd":"even",n),"data-sentry-component":"MarketingCard","data-sentry-source-file":"MarketingCard.tsx",children:[(0,r.jsx)("div",{className:"ImageColumn",children:(0,r.jsxs)("div",{className:"ImageWrapper relative",children:[(0,r.jsx)("div",{className:"ImageOverlay absolute inset-0",children:"\xa0"}),s?"background"===i?(0,r.jsx)("div",{className:"CardImage",style:{backgroundImage:`url(${s})`},children:"\xa0"}):(0,r.jsx)("img",{src:s,className:"CardImage",alt:(0,h.NM)(o,l?`image for ${l}`:"user generated image"),"data-sentry-component":"renderImage","data-sentry-source-file":"MarketingCard.tsx"}):null]})}),(0,r.jsxs)("div",{className:"TextColumn",children:[(0,r.jsx)("h2",{className:"CardHeading",children:l}),(0,r.jsx)("div",{className:"CardBodyText",children:t||p}),m&&(0,r.jsx)("div",{className:"ButtonWrapper",children:(0,r.jsx)(u.A,{label:f,href:m,className:(0,c.A)(e,d.Ay.actionButtonColor)})})]})]});var f=n(5811),m=n(38537);let g=(0,f.PA)(function(e){let{itemClass:t,postsItem:n}=e,i=(0,m.uV)();if(!n)return(0,r.jsx)(r.Fragment,{});let u=(0,h.Ql)(n,i),c=(0,h.aG)(u??n);function d(e){return e.children?.find(h._F)}return(0,r.jsx)(r.Fragment,{children:u?.children?.map((e,n)=>{let u=(0,h.Ql)(e,i);if(!u)throw Error(`Failed to resolve post ${e.id}`);return(0,r.jsx)(o.A,{editById:{id:u.id},children:c===h.w$.Alternating?function(e,t){let n=d(e),i=(0,h.kA)(e);return(0,r.jsx)(p,{className:e.slug?`slug-${e.slug}`:void 0,index:t,imageItem:i,imageUri:i?.photo?.url||"",heading:e.title,buttonLabel:n?.label,buttonUrl:(0,h.iY)(n)||"",order:t%2==1?"flex-row-reverse":"flex-row","data-sentry-element":"MarketingCard","data-sentry-component":"alternatingCard","data-sentry-source-file":"PostsContent.tsx",children:(0,r.jsx)(a.A,{content:e.content,"data-sentry-element":"MarkdownContent","data-sentry-source-file":"PostsContent.tsx"})})}(u,n):function(e){let n=d(e),i=(0,h.kA)(e);return(0,r.jsxs)(l.A,{photoItem:i,title:e.title,addedClasses:t,"data-sentry-element":"PostCard","data-sentry-component":"uniformCard","data-sentry-source-file":"PostsContent.tsx",children:[(0,r.jsx)(a.A,{content:e.content,className:"pb-4","data-sentry-element":"MarkdownContent","data-sentry-source-file":"PostsContent.tsx"}),(0,r.jsx)("div",{className:"flex justify-center mt-6",children:n&&(0,r.jsx)(s.rA,{href:(0,h.iY)(n)||"'",children:n.label})})]},e.id)}(u)},u.id)})})});var y=n(24809),v=n(54442),b=n(12089),x=n(88129),_=n(33881),w=n(81002),k=n(62086),C=n(47027),E=n(32752),A=n(82037),S=n(85819),T=n(6195),j=n(80229),N=n(99410),O=n(72569),I=n(70544),D=n(63945),M=n(266);function L(e,t){var n;return e.title||e.internalName||((n=e.purpose)?n.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):"")||`Untitled ${t}`}let R=(0,f.PA)(function(e){let{childName:t,childType:n,help:o,showThumbnails:a}=e,l=(0,O.Eh)(),u=(0,d.CI)(l),p=(0,m.MM)(),f=(0,m.uV)(),{cursor:g,contentItem:R,refresh:P}=(0,I.f)(),[F]=(0,S.X)(T.Wv),[B]=(0,S.X)(T.bQ),[$,q]=(0,i.useState)(),[V,z]=(0,i.useState)(null),[U,H]=(0,i.useState)(!1),[W,G]=(0,S.X)(T.xu),{listRef:K,dragProps:J,getItemClass:Q,getGripSortable:Y}=(0,N.A)({onReorder:ei}),X=[...R?.children??[]].sort((e,t)=>
2112e.order-t.order);function Z(){let e=g?.path??[];return R?[...e,(0,h.bN)(R)]:e}function ee(e){q(void 0),p?.open(e.id,{path:Z()})}async function et(){V&&(q(void 0),(await B({variables:{id:V.id}},"destroyContentItem2")).hasError?q({type:"error",message:`Failed to delete the ${t}`}):(z(null),P(),q({type:"success",message:`Deleted the ${t}`})))}async function en(e){q(void 0),H(!0);try{if((await W({variables:{input:{sourceId:e.id}}},"cloneChildContentItem")).hasError)return;await P(),q({type:"success",message:`Cloned the ${t}`})}catch{return}finally{H(!1)}}async function er(e){let n=e.status===h.Hi.Published?h.Hi.Draft:h.Hi.Published;q(void 0),H(!0);try{if((await F({variables:{input:{items:[{id:e.id,status:n}]}}},"bulkUpdateContentItems2")).hasError)return void q({type:"error",message:`Failed to update the ${t}`});await P(),q({type:"success",message:n===h.Hi.Published?`Published the ${t}`:`Unpublished the ${t}`})}finally{H(!1)}}async function ei(e){q(void 0),(await F({variables:{input:{items:e.map((e,t)=>({id:e,order:t}))}}},"bulkUpdateContentItems2")).hasError?q({type:"error",message:"Failed to reorder the list"}):(P(),q({type:"success",message:"Reordered the list"}))}return R?(0,r.jsxs)("div",{style:{maxWidth:"500px"},className:"mx-auto","data-sentry-component":"ChildListEdit","data-sentry-source-file":"ChildListEdit.tsx",children:[(0,r.jsx)(C.A,{backgroundType:O.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"ChildListEdit.tsx",children:o}),(0,r.jsx)(w.A,{mutationResult:$,className:"my-4","data-sentry-element":"SaveResult","data-sentry-source-file":"ChildListEdit.tsx"}),(0,r.jsx)(_.A,{mutationInfo:G,className:"my-4","data-sentry-element":"AshMutationErrors","data-sentry-source-file":"ChildListEdit.tsx"}),(0,r.jsx)("div",{ref:K,className:"space-y-2 mt-4",children:X.map(e=>{let n=a?function(e){let t=f.contentItems?.filter(t=>t.parentId===e.id),n=(0,h.rR)(t);return n?.photo?.thumbUrl||n?.photo?.url||void 0}(e):void 0,i=(0,j.xv)((0,j.G9)(e.content||""),80).trim();return(0,r.jsxs)("div",{id:e.id,"data-sort-item":!0,"data-sort-item-id":e.id,...J,className:(0,c.A)("flex gap-3 px-3 border rounded-lg",u.cardLineColor,Q(e.id)),children:[(0,r.jsx)("div",{...Y(e.id),"data-sort-item-id":e.id,className:(0,c.A)("flex items-center py-3 cursor-move touch-none",u.cardMutedTextColor,u.cardTextHoverColor),title:"Drag to reorder",children:(0,r.jsx)(k.A,{className:"w-4 h-4 fill-current"})}),a&&(n?(0,r.jsx)("img",{src:n,alt:"",className:"w-12 h-12 rounded object-cover flex-none self-center my-3"}):(0,r.jsx)("div",{className:(0,c.A)("w-12 h-12 rounded flex-none self-center my-3",u.cardTintedBackgroundColor)})),(0,r.jsxs)("button",{type:"button",onClick:()=>ee(e),className:"flex flex-col justify-center flex-1 min-w-0 py-3 text-left",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,r.jsx)("div",{className:"font-medium truncate",children:L(e,t)}),e.status!==h.Hi.Published&&(0,r.jsx)(M.A,{})]}),i&&(0,r.jsx)("div",{className:(0,c.A)("text-sm truncate",u.cardMutedTextColor),children:i})]}),(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-2 py-3",children:[(0,r.jsx)(A.tA,{disabled:U,onClick:()=>ee(e),children:"Detail"}),(0,r.jsx)(E.A,{ariaLabel:`Actions for ${L(e,t)}`,items:function(e){let n=e.status===h.Hi.Published;return[{label:n?`Unpublish ${t}`:`Publish ${t}`,icon:n?y.A:v.A,handleClick:()=>er(e),disabled:U},{label:`Clone ${t}`,icon:b.A,handleClick:()=>en(e),disabled:U},{label:`Delete ${t}`,icon:x.A,handleClick:()=>z(e),danger:!0,disabled:U}]}(e)})]})]},e.id)})}),(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsxs)(s.rA,{onClick:function(){R&&(q(void 0),p?.openNew({parentId:R.id,type:n},{path:Z()}))},"data-sentry-element":"ActionButton","data-sentry-source-file":"ChildListEdit.tsx",children:["Add ",t]})}),(0,r.jsx)(D.A,{deleting:!!V,onClose:()=>z(null),onDelete:et,prompt:V?`Delete "${L(V,t)}"? This cannot be undone.`:void 0,"data-sentry-element":"ConfirmDelete","data-sentry-source-file":"ChildListEdit.tsx"})]}):null});var P=n(13220),F=n(39114);let B=(0,f.PA)(function(e){let{className:t,leadingContent:n}=e,i=e.contentItem||e.postsItem,s=(0,m.uV)(),a=!!s.contentItems,l=(0,h.Ql)(i,s),u=(0,P.IG)(),c=(0,F.hN)(u,"content"),d=!!l&&(0,h.aG)(l)===h.w$.Alternating,p=(0,j.Wd)("MarketingCards marketing-cards-v2",l?.id&&`content-item-${l.id}`,t);return l?.children?.length?d?(0,r.jsxs)(r.Fragment,{children:[n,(0,r.jsx)("section",{className:p,children:(0,r.jsx)(g,{postsItem:l,itemClass:e.itemClass})})]}):(0,r.jsxs)("div",{className:"w-full","data-sentry-component":"PostContainer","data-sentry-source-file":"PostContainer.tsx",children:[n,(0,r.jsx)(g,{postsItem:l,itemClass:e.itemClass,"data-sentry-element":"PostsContent","data-sentry-source-file":"PostContainer.tsx"})]}):d?(0,r.jsxs)(r.Fragment,{children:[n,(0,r.jsx)(o.A,{as:"section",className:p,hasContent:!1,editById:{id:l.id},children:null})]}):(0,r.jsxs)("div",{className:"w-full",children:[n,(0,r.jsx)(o.A,{editBySlug:e.editBySlug,editById:l?.id?{id:l.id}:void 0,hasContent:!1,children:c&&a&&(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"font-bold",children:"No posts found"})," To add content posts to this page, press the Edit button in the lower-right corner of the page."]})})]})}),$=B,q={type:h.nz.PostList,component:B,editComponent:function(){let{contentItem:e}=(0,I.f)(),t=(0,h.aG)(e??{})===h.w$.Alternating;return(0,r.jsx)(R,{childName:"Post",childType:h.nz.Post,showThumbnails:t,help:"Each post has an image, a heading, a block of text and an optional button. Drag a post by its handle to change the order.","data-sentry-element":"ChildListEdit","data-sentry-component":"PostListEdit","data-sentry-source-file":"PostListEdit.tsx"})},editLabel:"Posts",wrapWithEditable:!1}}
2112,46449:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);function i(e){let[t,n]=(0,r.useState)(!1),[i,o]=(0,r.useState)(void 0),s=e.data?.listEvents?.results,a=!!e.data?.listEvents?.hasNextPage;return{error:i,events:s,hasNextPage:a,loadingMore:t,loadMore:function(){if(t||!a)return;let r=s?.length??0;n(!0),o(void 0),e.fetchMore({variables:{offset:r},updateQuery:(e,{fetchMoreResult:t})=>{let n=t?.listEvents,i=e.listEvents?.results??[];return n&&i.length===r?{...e,listEvents:{...n,results:[...i,...n.results]}}:e}}).catch(o).finally(()=>n(!1))}}}},46725:(e,t)=>{var n;!function(){!function(){"use strict";var e=[function(e,t,n){var r=n(1).Beautifier,i=n(5).Options;e.exports=function(e,t){return new r(e,t).beautify()},e.exports.defaultOptions=function(){return new i}},function(e,t,n){var r=n(2).Output,i=n(3).Token,o=n(4),s=n(5).Options,a=n(7).Tokenizer,l=n(7).line_starters,u=n(7).positionable_operators,c=n(7).TOKEN;function d(e,t){return -1!==t.indexOf(e)}function h(e,t){return e&&e.type===c.RESERVED&&e.text===t}function p(e,t){return e&&e.type===c.RESERVED&&d(e.text,t)}var f=["case","return","do","if","throw","else","await","break","continue","async"],m=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].replace(/-/g,"_")]=e[n];return t}(["before-newline","after-newline","preserve-newline"]),g=[m.before_newline,m.preserve_newline],y="BlockStatement",v="Statement",b="ObjectLiteral",x="ArrayLiteral",_="ForInitializer",w="Conditional",k="Expression";function C(e,t){t.multiline_frame||t.mode===_||t.mode===w||e.remove_indent(t.start_line_index)}function E(e){return d(e,[k,_,w])}function A(e,t){t=t||{},this._source_text=e||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new s(t)}A.prototype.create_flags=function(e,t){var n=0;return e&&(n=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>n&&(n=e.line_indent_level)),{mode:t,parent:e,last_token:e?e.last_token:new i(c.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:n,alignment:0,line_indent_level:e?e.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},A.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new r(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(y);var n=new a(e,this._options);return this._tokens=n.tokenize(),e},A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._reset(this._source_text),t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&o.lineBreak.test(e||"")&&(t=e.match(o.lineBreak)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return this._output.get_code(t)},A.prototype.handle_token=function(e,t){e.type===c.START_EXPR?this.handle_start_expr(e):e.type===c.END_EXPR?this.handle_end_expr(e):e.type===c.START_BLOCK?this.handle_start_block(e):e.type===c.END_BLOCK?this.handle_end_block(e):e.type===c.WORD||e.type===c.RESERVED?this.handle_word(e):e.type===c.SEMICOLON?this.handle_semicolon(e):e.type===c.STRING?this.handle_string(e):e.type===c.EQUALS?this.handle_equals(e):e.type===c.OPERATOR?this.handle_operator(e):e.type===c.COMMA?this.handle_comma(e):e.type===c.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===c.COMMENT?this.handle_comment(e,t):e.type===c.DOT?this.handle_dot(e):e.type===c.EOF?this.handle_eof(e):(e.type,c.UNKNOWN,this.handle_unknown(e,t))},A.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,r=this._options.keep_array_indentation&&this._flags.mode===x;if(e.comments_before)for(var i=e.comments_before.next();i;)this.handle_whitespace_and_comments(i,t),this.handle_token(i,t),i=e.comments_before.next();if(r)for(var o=0;o<n;o+=1)this.print_newline(o>0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var s=1;s<n;s+=1)this.print_newline(!0,t)}};var S=["async","break","continue","return","throw","yield"];A.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var n=this._options.preserve_newlines&&e.newlines||t;if(d(this._flags.last_token.text,u)||d(e.text,u)){var r=d(this._flags.last_token.text,u)&&d(this._options.operator_position,g)||d(e.text,u);n=n&&r}if(n)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(p(this._flags.last_token,S))return;this._output.set_wrap_point()}}},A.prototype.print_newline=function(e,t){if(!t&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==c.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var n=this._tokens.peek();this._flags.mode===v&&!(this._flags.if_block&&h(n,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},A.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&("["===e.text||this._flags.mode===x)?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},A.prototype.print_token=function(e){if(this._output.raw)return void this._output.add_raw_token(e);if(this._options.comma_first&&e.previous&&e.previous.type===c.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}
vendor: 8,963 bytes, line 2112
2112,A.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},A.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},A.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},A.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===v&&C(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},A.prototype.start_of_object_property=function(){return this._flags.parent.mode===b&&this._flags.mode===v&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||p(this._flags.last_token,["get","set"]))},A.prototype.start_of_statement=function(e){return!!(p(this._flags.last_token,["var","let","const"])&&e.type===c.WORD||h(this._flags.last_token,"do")||(this._flags.parent.mode!==b||this._flags.mode!==v)&&p(this._flags.last_token,S)&&!e.newlines||h(this._flags.last_token,"else")&&!(h(e,"if")&&!e.comments_before)||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===_||this._previous_flags.mode===w)||this._flags.last_token.type===c.WORD&&this._flags.mode===y&&!this._flags.in_case&&"--"!==e.text&&"++"!==e.text&&"function"!==this._last_last_text&&e.type!==c.WORD&&e.type!==c.RESERVED||this._flags.mode===b&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||p(this._flags.last_token,["get","set"])))&&(this.set_mode(v),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,p(e,["do","for","if","while"])),!0)},A.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=k;if("["===e.text){if(this._flags.last_token.type===c.WORD||")"===this._flags.last_token.text){p(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}t=x,this._flags.mode!==x||"["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline(),d(this._flags.last_token.type,[c.START_EXPR,c.END_EXPR,c.WORD,c.OPERATOR,c.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===c.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=_):d(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=w):d(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(d(this._flags.last_token.text,l)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var r=this._tokens.peek(-4);p(n,["async","function"])||"*"===n.text&&p(r,["async","function"])?this._output.space_before_token=!0:this._flags.mode===b?("{"===n.text||","===n.text||"*"===n.text&&("{"===r.text||","===r.text))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===c.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(d(this._last_last_text,["function","yield"])||this._flags.mode===b&&d(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===c.START_BLOCK?this.print_newline():(this._flags.last_token.type===c.END_EXPR||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.END_BLOCK||"."===this._flags.last_token.text||this._flags.last_token.type===c.COMMA)&&this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},A.prototype.handle_end_expr=function(e){for(;this._flags.mode===v;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&this._flags.mode===x&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==c.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(e),this.restore_mode(),C(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===w&&(this._previous_flags.mode=k,this._flags.do_block=!1,this._flags.do_while=!1)},A.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(y),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(y):n&&(d(n.text,[":",","])&&d(t.type,[c.STRING,c.WORD,c.RESERVED])||d(t.text,["get","set","..."])&&d(n.type,[c.WORD,c.RESERVED]))?d(this._last_last_text,["class","interface"])&&!d(n.text,[":",","])?this.set_mode(y):this.set_mode(b):this._flags.last_token.type===c.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(y):d(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||p(this._flags.last_token,["return","throw","import","default"])?this.set_mode(b):this.set_mode(y),this._flags.last_token&&p(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var r=!t.comments_before&&"}"===t.text,i=r&&"function"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var o=0,s=null;this._flags.inline_frame=!0;do if(o+=1,(s=this._tokens.peek(o-1)).newlines){this._flags.inline_frame=!1;break}while(s.type!==c.EOF&&(s.type!==c.END_BLOCK||s.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(i||this._flags.last_token.type===c.EQUALS||p(this._flags.last_token,f)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(this._previous_flags.mode===x&&(this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.COMMA)&&((this._flags.last_token.type===c.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==c.OPERATOR&&this._flags.last_token.type!==c.START_EXPR&&(d(this._flags.last_token.type,[c.START_BLOCK,c.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),r||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},A.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===v;)this.restore_mode();var t=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(this._flags.mode===x&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)},A.prototype.handle_word=function(e){if(e.type===c.RESERVED&&(d(e.text,["set","get"])&&this._flags.mode!==b||"import"===e.text&&d(this._tokens.peek().text,["(","."])||d(e.text,["as","from"])&&!this._flags.import_block?e.type=c.WORD:this._flags.mode===b&&":"===this._tokens.peek().text&&(e.type=c.WORD)),this.start_of_statement
2112(e)?p(this._flags.last_token,["var","let","const"])&&e.type===c.WORD&&(this._flags.declaration_statement=!0):e.newlines&&!E(this._flags.mode)&&(this._flags.last_token.type!==c.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text)&&this._flags.last_token.type!==c.EQUALS&&(this._options.preserve_newlines||!p(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(e),this.print_newline()):this.handle_whitespace_and_comments(e),this._flags.do_block&&!this._flags.do_while)if(h(e,"while")){this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&h(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===v;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&p(e,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(e),this._flags.in_case=!0;return}if(this._flags.last_token.type!==c.COMMA&&this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.EQUALS&&this._flags.last_token.type!==c.OPERATOR||this.start_of_object_property()||d(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===b||this.allow_wrap_or_preserved_newline(e),h(e,"function")){((d(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(d(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===c.OPERATOR))&&!this._output.just_added_blankline()&&!e.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD)?p(this._flags.last_token,["get","set","new","export"])||p(this._flags.last_token,S)||h(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===c.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:!this._flags.multiline_frame&&(E(this._flags.mode)||this._flags.mode===x)||this.print_newline(),this.print_token(e),this._flags.last_word=e.text;return}var t="NONE";(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?t="SPACE":p(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?t="NEWLINE":(t="SPACE",this._output.space_before_token=!0):t="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===y?t="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&E(this._flags.mode)?t="SPACE":this._flags.last_token.type===c.STRING?t="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||"*"===this._flags.last_token.text&&(d(this._last_last_text,["function","yield"])||this._flags.mode===b&&d(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===c.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,t="NEWLINE"),p(e,l)&&")"!==this._flags.last_token.text&&(t=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),p(e,["else","catch","finally"]))?(this._flags.last_token.type!==c.END_BLOCK||this._previous_flags.mode!==y||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===t?p(this._flags.last_token,f)||"declare"===this._flags.last_token.text&&p(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==c.END_EXPR?this._flags.last_token.type===c.START_EXPR&&p(e,["var","let","const"])||":"===this._flags.last_token.text||(h(e,"if")&&h(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):p(e,l)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&this._flags.mode===x&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===t&&(this._output.space_before_token=!0),e.previous&&(e.previous.type===c.WORD||e.previous.type===c.RESERVED)&&(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===c.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&h(e,"from")&&(this._flags.import_block=!1))},A.prototype.handle_semicolon=function(e){this.start_of_statement
2112(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();this._flags.mode===v&&!(this._flags.if_block&&h(t,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},A.prototype.handle_string=function(e){e.text.startsWith("`")&&0===e.newlines&&""===e.whitespace_before&&(")"===e.previous.text||this._flags.last_token.type===c.WORD)||(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):e.text.startsWith("`")&&this._flags.last_token.type===c.END_EXPR&&("]"===e.previous.text||")"===e.previous.text)&&0===e.newlines?this._output.space_before_token=!0:this.print_newline())),this.print_token(e)},A.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},A.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(E(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===b||this._flags.mode===v&&this._flags.parent.mode===b?(this._flags.mode===v&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},A.prototype.handle_operator=function(e){var t="*"===e.text&&(p(this._flags.last_token,["function","yield"])||d(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),n=d(e.text,["-","+"])&&(d(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||d(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!t),"*"===e.text&&this._flags.last_token.type===c.DOT||"::"===e.text||d(e.text,["-","+"])&&this.start_of_object_property())return void this.print_token(e);if(this._flags.last_token.type===c.OPERATOR&&d(this._options.operator_position,g)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case){this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==c.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var r=!0,i=!0,o=!1;if(":"===e.text?0===this._flags.ternary_depth?r=!1:(this._flags.ternary_depth-=1,o=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&d(e.text,u)){var s=":"===e.text,a=s&&o,h=s&&!o;switch(this._options.operator_position){case m.before_newline:this._output.space_before_token=!h,this.print_token(e),(!s||a)&&this.allow_wrap_or_preserved_newline(e),this._output.space_before_token=!0;return;case m.after_newline:this._output.space_before_token=!0,!s||a?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),this._output.space_before_token=!0;return;case m.preserve_newline:h||this.allow_wrap_or_preserved_newline(e),r=!(this._output.just_added_newline()||h),this._output.space_before_token=r,this.print_token(e),this._output.space_before_token=!0;return}}if(t){this.allow_wrap_or_preserved_newline(e),r=!1;var b=this._tokens.peek();i=b&&d(b.type,[c.WORD,c.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),r=this._flags.last_token.type===c.START_BLOCK,i=!1;else if(d(e.text,["--","++","!","~"])||n){if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR)&&this.allow_wrap_or_preserved_newline(e),r=!1,i=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var x=p(this._flags.last_token,f)&&e.newlines;x&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(x,!0)}";"===this._flags.last_token.text&&E(this._flags.mode)&&(r=!0),this._flags.last_token.type===c.RESERVED?r=!0:this._flags.last_token.type===c.END_EXPR?r="]"!==this._flags.last_token.text||"--"!==e.text&&"++"!==e.text:this._flags.last_token.type===c.OPERATOR&&(r=d(e.text,["--","-","++","+"])&&d(this._flags.last_token.text,["--","-","++","+"]),d(e.text,["+","-"])&&d(this._flags.last_token.text,["--","++"])&&(i=!0)),(this._flags.mode!==y||this._flags.inline_frame)&&this._flags.mode!==v||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||r,this.print_token(e),this._output.space_before_token=i},A.prototype.handle_block_comment=function(e,t){if(this._output.raw){this._output.add_raw_token(e),e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw);return}if(e.directives){this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(o.newline.test(e.text)||e.newlines)this.print_block_commment(e,t);else{this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0;return}},A.prototype.print_block_commment=function(e,t){var n,r=function(e){e=e.replace(o.allLineBreaks,"\n");for(var t=[],n=e.indexOf("\n");-1!==n;)t.push(e.substring(0,n)),n=(e=e.substring(n+1)).indexOf("\n");return e.length&&t.push(e),t}(e.text),i=!1,s=!1,a=e.whitespace_before,l=a.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(r[0]),this.print_newline(!1,t),r.length>1){for(i=function(e,t){for(var n=0;n<e.length;n++)if("*"!==e[n].trim().charAt(0))return!1;return!0}(r=r.slice(1),0),s=function(e,t){for(var n,r=0,i=e.length;r<i;r++)if((n=e[r])&&0!==n.indexOf(t))return!1;return!0}(r,a),i&&(this._flags.alignment=1),n=0;n<r.length;n++)i?(this.print_token_line_indentation(e),this._output.add_token(r[n].replace(/^\s+/g,""))):s&&r[n]?(this.print_token_line_indentation(e),this._output.add_token(r[n].substring(l))):(this._output.current_line.set_indent(-1),this._output.add_token(r[n])),this.print_newline(!1,t);this._flags.alignment=0}},A.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)}
vendor: 4,172 bytes, line 2112
2112,A.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),p(this._flags.last_token,f)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,")"===this._flags.last_token.text&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(e)},A.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},A.prototype.handle_eof=function(e){for(;this._flags.mode===v;)this.restore_mode();this.handle_whitespace_and_comments(e)},e.exports.Beautifier=A},function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function r(e,r){this.__indent_cache=new n(e,r),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";
2112return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count)+this.__items.join(""),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return e<0&&(e=0,n=""),t=(t||0)+e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=Array(t+1).join(this.__indent_string)),e&&(n+=Array(e+1).join(" ")),this.__cache.push(n)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(e,t){return(e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1)?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},r.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,n){for(var r=this.__lines.length-2;r>=0;){var i=this.__lines[r];if(i.is_empty())break;if(0!==i.item(0).indexOf(e)&&i.item(-1)!==n){this.__lines.splice(r+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=r},function(e){e.exports.Token=function(e,t,n,r){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},function(e,t){var n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r
vendor: 4,860 bytes, line 2112
2112="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\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\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\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\\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-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\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-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\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\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\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-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\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",
2112i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",s="(?:"+o+"|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+r+"])";t.identifier=RegExp(s+("(?:"+o+"|["+n+r+i)+"])*","g"),t.identifierStart=new RegExp(s),t.identifierMatch=RegExp("(?:"+o+"|["+n+r+i+"])+"),t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=RegExp("\r\n|"+t.newline.source),t.allLineBreaks=RegExp(t.lineBreak.source,"g")},function(e,t,n){var r=n(6).Options,i=["before-newline","after-newline","preserve-newline"];function o(e){r.call(this,e,"js");var t=this.raw_options.brace_style||null;"expand-strict"===t?this.raw_options.brace_style="expand":"collapse-preserve-inline"===t?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var o=0;o<n.length;o++)"preserve-inline"===n[o]?this.brace_preserve_inline=!0:this.brace_style=n[o];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",i),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}o.prototype=new r,e.exports.Options=o},function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs"," "===this.indent_char),this.indent_with_tabs&&(this.indent_char=" ",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","
2112none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,i={};for(n in e=r(e))n!==t&&(i[n]=e[n]);if(t&&e[t])for(n in e[t])i[n]=e[t][n];return i}function r(e){var t,n={};for(t in e)n[t.replace(/-/g,"_")]=e[t];return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(r=n.concat()):"string"==typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";
2112return"string"==typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/," ")),r},t.prototype._get_number=function(e,t){var n=this.raw_options[e];isNaN(t=parseInt(t,10))&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},t.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.length)throw Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(e){return -1===t.indexOf(e)})},e.exports.Options=t,e.exports.normalizeOpts=r,e.exports.mergeOpts=n},function(e,t,n){var r,i=n(8).InputScanner,o=n(9).Tokenizer,s=n(9).TOKEN,a=n(13).Directives,l=n(4),u=n(12).Pattern,c=n(14).TemplatablePattern;function d(e,t){return -1!==t.indexOf(e)}var h={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:s.START,RAW:s.RAW,EOF:s.EOF},p=new a(/\/\*/,/\*\//),f=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,m=/[0-9]/,g=/[^\d\.]/,y=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |",v=new RegExp(y=(y="\\?\\.(?!\\d) "+(y=y.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|")),b="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),x=RegExp("^(?:"+b.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]).join("|")+")$"),_=function(e,t){o.call(this,e,t),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new u(this._input),r=new c(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.starting_with(l.identifier).matching(l.identifierMatch),number:n.matching(f),punct:n.matching(v),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(/<!--/),html_comment_end:n.matching(/-->/),include:n.starting_with(/#include/).until_after(l.lineBreak),shebang:n.starting_with(/#!/).until_after(l.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:r.until(/['\\\n\r\u2028\u2029]/),double_quote:r.until(/["\\\n\r\u2028\u2029]/),template_text:r.until(/[`\\$]/),template_expression:r.until(/[`}\\]/)}};_.prototype=new o,_.prototype._is_comment=function(e){return e.type===h.COMMENT||e.type===h.BLOCK_COMMENT||e.type===h.UNKNOWN},_.prototype._is_opening=function(e){return e.type===h.START_BLOCK||e.type===h.START_EXPR},_.prototype._is_closing=function(e,t){return(e.type===h.END_BLOCK||e.type===h.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},_.prototype._reset=function(){r=!1},_.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(h.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(r))||this._read_string(r))||this._read_pair(r,this._input.peek(1)))||this._read_word(e))||this._read_singles(r))||this._read_comment(r))||this._read_regexp(r,e))||this._read_xml(r,e))||this._read_punctuation())||this._create_token(h.UNKNOWN,this._input.next())},_.prototype._read_word=function(e){var t;if(""!==(t=this.__patterns.identifier.read()))return(t=t.replace(l.allLineBreaks,"\n"),e.type!==h.DOT&&(e.type!==h.RESERVED||"set"!==e.text&&"get"!==e.text)&&x.test(t))?("in"===t||"of"===t)&&(e.type===h.WORD||e.type===h.STRING)?this._create_token(h.OPERATOR,t):this._create_token(h.RESERVED,t):this._create_token(h.WORD,t);
vendor: 16,384 bytes, line 2112
2112if(""!==(t=this.__patterns.number.read()))return this._create_token(h.WORD,t)},_.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(h.START_EXPR,e):")"===e||"]"===e?t=this._create_token(h.END_EXPR,e):"{"===e?t=this._create_token(h.START_BLOCK,e):"}"===e?t=this._create_token(h.END_BLOCK,e):";"===e?t=this._create_token(h.SEMICOLON,e):"."===e&&g.test(this._input.peek(1))?t=this._create_token(h.DOT,e):","===e&&(t=this._create_token(h.COMMA,e)),t&&this._input.next(),t},_.prototype._read_pair=function(e,t){var n=null;return"#"===e&&"{"===t&&(n=this._create_token(h.START_BLOCK,e+t)),n&&(this._input.next(),this._input.next()),n},_.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)if("="===e)return this._create_token(h.EQUALS,e);else if("?."===e)return this._create_token(h.DOT,e);else return this._create_token(h.OPERATOR,e)},_.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read())||(t=this.__patterns.include.read()))return this._create_token(h.UNKNOWN,t.trim()+"\n");e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(m)){do n+=e=this._input.next();while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(h.WORD,n)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(l.newline);)t+=this._input.next();return r=!0,this._create_token(h.COMMENT,t)}}else if(r&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return r=!1,this._create_token(h.COMMENT,t);return null},_.prototype._read_comment=function(e){var t=null;if("/"===e){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var r=p.get_directives(n);r&&"start"===r.ignore&&(n+=p.readIgnored(this._input)),n=n.replace(l.allLineBreaks,"\n"),(t=this._create_token(h.BLOCK_COMMENT,n)).directives=r}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),t=this._create_token(h.COMMENT,n))}return t},_.prototype._read_string=function(e){if("`"===e||"'"===e||'"'===e){var t=this._input.next();return this.has_char_escapes=!1,"`"===e?t+=this._read_string_recursive("`",!0,"${"):t+=this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=function(e){for(var t="",n=0,r=new i(e),o=null;r.hasNext();)if((o=r.match(/([\s]|[^\\]|\\\\)+/g))&&(t+=o[0]),"\\"===r.peek()){if(r.next(),"x"===r.peek())o=r.match(/x([0-9A-Fa-f]{2})/g);else if("u"===r.peek())(o=r.match(/u([0-9A-Fa-f]{4})/g))||(o=r.match(/u\{([0-9A-Fa-f]+)\}/g));else{t+="\\",r.hasNext()&&(t+=r.next());continue}if(!o||(n=parseInt(o[1],16))>126&&n<=255&&0===o[0].indexOf("x"))return e;n>=0&&n<32||n>1114111?t+="\\"+o[0]:34===n||39===n||92===n?t+="\\"+String.fromCharCode(n):t+=String.fromCharCode(n)}return t}(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(l.allLineBreaks,"\n"),this._create_token(h.STRING,t)}return null},_.prototype._allow_regexp_or_xml=function(e){return e.type===h.RESERVED&&d(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===h.END_EXPR&&")"===e.text&&e.opened.previous.type===h.RESERVED&&d(e.opened.previous.text,["if","while","for"])||d(e.type,[h.COMMENT,h.START_EXPR,h.START_BLOCK,h.START,h.END_BLOCK,h.OPERATOR,h.EQUALS,h.EOF,h.SEMICOLON,h.COMMA])},_.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var n=this._input.next(),r=!1,i=!1;this._input.hasNext()&&(r||i||this._input.peek()!==e)&&!this._input.testChar(l.newline);)n+=this._input.peek(),r?r=!1:(r="\\"===this._input.peek(),"["===this._input.peek()?i=!0:"]"===this._input.peek()&&(i=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(l.identifier)),this._create_token(h.STRING,n)}return null},_.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var n="",r=this.__patterns.xml.read_match();if(r){for(var i=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),o=0===i.indexOf("{"),s=0;r;){var a=!!r[1],u=r[2];if(!(r[r.length-1]||"![CDATA["===u.slice(0,8))&&(u===i||o&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(a?--s:++s),n+=r[0],s<=0)break;r=this.__patterns.xml.read_match()}return r||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(l.allLineBreaks,"\n"),this._create_token(h.STRING,n)}}return null},_.prototype._read_string_recursive=function(e,t,n){"'"===e?i=this.__patterns.single_quote:'"'===e?i=this.__patterns.double_quote:"`"===e?i=this.__patterns.template_text:"}"===e&&(i=this.__patterns.template_expression);for(var r,i,o=i.read(),s="";this._input.hasNext();){if((s=this._input.next())===e||!t&&l.newline.test(s)){this._input.back();break}"\\"===s&&this._input.hasNext()?("x"===(r=this._input.peek())||"u"===r?this.has_char_escapes=!0:"\r"===r&&"\n"===this._input.peek(1)&&this._input.next(),s+=this._input.next()):n&&("${"===n&&"$"===s&&"{"===this._input.peek()&&(s+=this._input.next()),n===s&&("`"===e?s+=this._read_string_recursive("}",t,"`"):s+=this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(s+=this._input.next()))),s+=i.read(),o+=s}return o},e.exports.Tokenizer=_,e.exports.TOKEN=h,e.exports.positionable_operators=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" ").slice(),e.exports.line_starters=b.slice()},function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return(e=(e||0)+this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var r=e.exec(this.__input);return r&&!(t&&e.sticky)&&r.index!==n&&(r=null),r},n.prototype.test=function(e,t){return(t=(t||0)+this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var r,i="";return e&&(r=this.match(e))&&(i+=r[0]),t&&(r||!e)&&(i+=this.readUntil(t,n)),i},n.prototype.readUntil=function(e,t){var n="",r=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(r=i.index,t&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var r=null,i="g";return n&&t&&(i="y"),"string"==typeof e&&""!==e?r=new RegExp(e,i):e&&(r=new RegExp(e.source,i)),r},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var r=n(8).InputScanner,i=n(3).Token,o=n(10).TokenStream,s=n(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new r(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)};l.prototype.tokenize=function(){this._input.restart(),this.__tokens=new o,this._reset();for(var e,t=new i(a.START,""),n=null,r=[],s=new o;t.type!==a.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)s.add(e),e=this._get_next_token(t,n);s.isEmpty()||(e.comments_before=s,s=new o),e.parent=n,this._is_opening(e)?(r.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=r.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new i(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=a},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},t.prototype.peek=function(e){var t=null;return(e=(e||0)+this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},t.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=t},function(e,t,n){var r=n(12).Pattern;function i(e,t){r.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}i.prototype=new r,i.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},i.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},i.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,r=[],i=e.exec(t);i;)r.push(t.substring(n,i.index)),n=i.index+i[0].length,i=e.exec(t);return n<t.length?r.push(t.substring(n,t.length)):r.push(""),r},e.exports.WhitespacePattern=i},function(e){function t(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}t.prototype.read=function(){var e=this._input.read(this._starting_pattern);return(!this._starting_pattern||e)&&(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},e.exports.Pattern=t},function(e){function t(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},function(e,t,n){var r=n(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function o(e,t){r.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new r(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}o.prototype=new r,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},o.prototype.read_options=function(e){var t=this._create();for(var n in i)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},o.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},o.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},o.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},o.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),!this._disabled.django&&(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),!this._disabled.
2112smarty&&this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=o}],t={};r=function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}(0)}();var r,i=r;void 0===(n=(function(){return{js_beautify:i}}).apply(t,[]))||(e.exports=n)}()},47027:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(49995),o=n(72569),s=n(23955);function a(e){let{backgroundType:t,children:n,className:a,as:l="span"}=e,u=(0,o.Eh)(),c=e.textColor;return void 0===c&&(c=u===s.L.ADMIN?"text-gray-darker":t===o.Sh.PRIMARY_CARD?"text-[var(--group-primary-card-text-muted-color)]":"text-[var(--group-page-background-text-color-muted)]"),(0,r.jsx)(l,{className:(0,i.A)(a,c),"data-sentry-element":"Component","data-sentry-component":"HelpText","data-sentry-source-file":"HelpText.tsx",children:n})}},47129:(e,t,n)=>{var r=n(66521);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=+(n.size!=i),this}},47514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 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=n(14232),s=f(o),a=f(n(98477)),l=f(n(95062)),u=f(n(51856)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(20184)),d=n(36078),h=f(d),p=n(7235);function f(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var g=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",v=d.canUseDOM&&void 0!==a.default.createPortal,b=function(e){return document.createElement(e)},x=function(){return v?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer},_=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,n,i,o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=i=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),i.removePortal=function(){v||a.default.unmountComponentAtNode(i.node);var e=(0,i.props.parentSelector)();e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=x()(i,s.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},m(i,n)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),i(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(v||(this.node=b("div")),this.node.className=this.props.portalClassName,(0,this.props.parentSelector)().appendChild(this.node),v||this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:(0,e.parentSelector)(),nextParent:(0,this.props.parentSelector)()}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,i=r.isOpen,o=r.portalClassName;e.portalClassName!==o&&(this.node.className=o);var s=n.prevParent,a=n.nextParent;a!==s&&(s.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||i)&&(v||this.renderPortal(this.props))}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&v?(!this.node&&v&&(this.node=b("div")),x()(s.default.createElement(u.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(o.Component);_.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base
2112:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(h.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(h.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},_.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},_.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(_),t.default=_},47518:(e,t,n)=>{"use strict";n.d(t,{OC:()=>i,yo:()=>o});var r=n(7743);function i(e){var t,n;let i=Number.MAX_SAFE_INTEGER,o=null,s=-1;for(let t=0;t<e.length;++t){let a=e[t],l=function(e){let t=0;for(;t<e.length&&(0,r.i0)(e.charCodeAt(t));)++t;return t}(a);l!==a.length&&(o=null!=(n=o)?n:t,s=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=o)?t:0,s+1)}function o(e,t){let n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||(0,r.i0)(e.charCodeAt(0))),a=n.endsWith('\\"""'),l=e.endsWith('"')&&!a,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!o||e.length>70||c||s||a),h="",p=o&&(0,r.i0)(e.charCodeAt(0));return(d&&!p||s)&&(h+="\n"),h+=n,(d||c)&&(h+="\n"),'"""'+h+'"""'}},47737:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(14232),i=n(73915);let o=(e,t)=>{i._.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},47952:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(37876),i=n(49995),o=n(73382),s=n(14232),a=n(75938);let l=(0,s.memo)(function(e){let{content:t,linksInNewTab:n}=e,{className:l}=e;l=(0,i.A)(l,"external-content");let{onExternalContentLoad:u}=function(){let e=(0,s.useRef)(!1);return{onExternalContentLoad:function(t){e.current||(e.current=!0,(0,o.WE)(t))}}}();function c(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/&/g,"&")}function d(e){return new DOMParser().parseFromString(e,"text/html").documentElement.textContent||""}return a.xI.use({extensions:[{name:"link",renderer(e){let t=d(e.href),r=d(e.text);return`<a href="${c(t)}" class="a"${n?' target="_blank" rel="noopener noreferrer"':""}>${c(r)}</a>`}}]}),(0,r.jsx)("span",{className:l,dangerouslySetInnerHTML:{__html:(0,a.xI)(t??"")},ref:function(e){e&&u(e)},"data-sentry-component":"MarkdownContent","data-sentry-source-file":"MarkdownContent.tsx"})})},47980:(e,t,n)=>{"use strict";n.d(t,{j:()=>o,u:()=>i});var r=n(41612),i=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(i||{});let o=(0,r.FX)(function(e,t){var n;let{features:i=1,...o}=e,s={ref:t,"aria-hidden":(2&i)==2||(null!=(n=o["aria-hidden"])?n:void 0),hidden:(4&i)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&i)==4&&(2&i)!=2&&{display:"none"}}};return(0,r.Ci)()({ourProps:s,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})})}
2112,47983:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(49995),o=n(21993),s=n(43982);function a({date:e,textClassName:t,textColorClass:n}){return n=n??"text-gray-dark",t=t??(0,i.A)("text-xs",n),(0,r.jsx)("span",{className:t,"data-sentry-component":"TimezoneOffset","data-sentry-source-file":"TiimezoneOffset.tsx",children:(0,s.Yq)(e,o.sF)})}},48014:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(37876),i=n(5811),o=n(13220),s=n(38537),a=n(42383);let l=(0,i.PA)(function(e){let{introText:t}=e,n=(0,s.rq)();return(0,o.IG)()||!n?null:(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)("div",{children:t}),(0,r.jsx)(a.rA,{onClick:()=>n.open(),"data-sentry-element":"ActionButton","data-sentry-source-file":"LoginButton.tsx",children:"Log in now"})]})})},48160:(e,t,n)=>{"use strict";n.d(t,{B:()=>r,X:()=>i});var r=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(r||{});function i(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===i&&(i=n.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:throw Error("Unexpected object: "+e)}}},48230:(e,t,n)=>{e.exports=n(6334)},48303:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(37876),i=n(24295),o=n(50834),s=n(48230),a=n.n(s),l=n(23955),u=n(72569),c=n(49995);function d(e){let{member:t,photoSize:n}=e,s=(0,u.jz)(e.themeArea),d=e.asLink??!0,{profile:h,name:p,title:f}=t,{photo:m,pronounItems:g}=h||{},y="small"===n?"pr-2":"pr-4",v="hover:text-gf-green-dark";s===l.L.MEMBERS&&(v="hover:text-[var(--group-accent-darker)]");let b=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:`${y} shrink`,children:(0,r.jsx)(i.g,{url:m?.url,size:n})}),(0,r.jsxs)("div",{className:"flex-grow",children:[(0,r.jsxs)("div",{children:[p," ",g&&g.length>0?(0,r.jsx)(o.A,{pronouns:g.map(e=>e.label)}):null]}),(0,r.jsx)("div",{children:f})]})]});return d?(0,r.jsx)(a(),{href:`/members/${t.id}`,className:(0,c.A)("flex items-center",v),"data-sentry-element":"Link","data-sentry-component":"MemberMiniCard","data-sentry-source-file":"MemberMiniCard.tsx",children:b}):(0,r.jsx)("div",{className:"flex items-center",children:b})}},48774:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(14232),i=n(64671);function o(e,t,n){let[o,s]=(0,r.useState)(n),a=void 0!==e,l=(0,r.useRef)(a),u=(0,r.useRef)(!1),c=(0,r.useRef)(!1);return!a||l.current||u.current?a||!l.current||c.current||(c.current=!0,l.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(u.current=!0,l.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:o,(0,i._)(e=>(a||s(e),null==t?void 0:t(e)))]}},48872:(e,t,n)=>{var r=n(22225),i=n(94806),o=n(69750);e.exports=function(e){return r(e,o,i)}},48894:(e,t,n)=>{var r=n(85590),i=n(28654),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable;e.exports=r(function(){return arguments}())?r:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")}},49067:(e,t)=>{var n;!function(){!function(){"use strict";var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function r(e,r){this.__indent_cache=new n(e,r),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)}
2112,t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count)+this.__items.join(""),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return e<0&&(e=0,n=""),t=(t||0)+e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=Array(t+1).join(this.__indent_string)),e&&(n+=Array(e+1).join(" ")),this.__cache.push(n)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(e,t){return(e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1)?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},r.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,n){for(var r=this.__lines.length-2;r>=0;){var i=this.__lines[r];if(i.is_empty())break;if(0!==i.item(0).indexOf(e)&&i.item(-1)!==n){this.__lines.splice(r+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=r},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs"," "===this.indent_char),this.indent_with_tabs&&(this.indent_char=" ",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","
2112none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,i={};for(n in e=r(e))n!==t&&(i[n]=e[n]);if(t&&e[t])for(n in e[t])i[n]=e[t][n];return i}function r(e){var t,n={};for(t in e)n[t.replace(/-/g,"_")]=e[t];return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(r=n.concat()):"string"==typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return"string"==typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/," ")),r},t.prototype._get_number=function(e,t){var n=this.raw_options[e];isNaN(t=parseInt(t,10))&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},t.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.length)throw Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(e){return -1===t.indexOf(e)})},e.exports.Options=t,e.exports.normalizeOpts=r,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return(e=(e||0)+this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var r=e.exec(this.__input);return r&&!(t&&e.sticky)&&r.index!==n&&(r=null),r},n.prototype.test=function(e,t){return(t=(t||0)+this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var r,i="";return e&&(r=this.match(e))&&(i+=r[0]),t&&(r||!e)&&(i+=this.readUntil(t,n)),i},n.prototype.readUntil=function(e,t){var n="",r=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(r=i.index,t&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var r=null,i="g";return n&&t&&(i="y"),"string"==typeof e&&""!==e?r=new RegExp(e,i):e&&(r=new RegExp(e.source,i)),r},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var r=n(16).Beautifier,i=n(17).Options;e.exports=function(e,t){return new r(e,t).beautify()},e.exports.defaultOptions=function(){return new i}},function(e,t,n){var r=n(17).Options,i=n(2).Output,o=n(8).InputScanner,s=new(n(13)).Directives(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=/\s/,c=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,h=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function p(e,t){this._source_text=e||"",this._options=new r(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}p.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},p.prototype.eatWhitespace=function(e){for(var t=u.test(this._input.peek()),n=0;u.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},p.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;
vendor: 6,953 bytes, line 2112
2112if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)break;t++,n=this._input.peek(t)}return!1},p.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},p.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},p.prototype.indent=function(){this._indentLevel++},p.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e,t,n=this._source_text,r=this._options.eol;"auto"===r&&(r="\n",n&&a.test(n||"")&&(r=n.match(a)[0]));var p=(n=n.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new i(this._options,p),this._input=new o(n),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var f=0,m=!1,g=!1,y=!1,v=!1,b=!1,x=this._ch,_=!1;;)if(e=""!==this._input.read(c),t=x,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),x=this._ch,this._ch)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var w=this._input.read(d),k=s.get_directives(w);k&&"start"===k.ignore&&(w+=s.readIgnored(this._input)),this.print_string(w),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(h)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(e),this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s+$/,""),this.print_string(C),this._output.space_before_token=!0),0===f&&-1!==C.indexOf(":")&&(g=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(e),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var E=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);E.match(/[ :]$/)&&(E=this.eatString(": ").replace(/\s+$/,""),this.print_string(E),this._output.space_before_token=!0),0===f&&-1!==E.indexOf(":")?(g=!0,this.indent()):E in this.NESTED_AT_RULE?(this._nestedLevel+=1,E in this.CONDITIONAL_GROUP_RULE&&(y=!0)):0!==f||g||(v=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(e),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)g&&(g=!1,this.outdent()),v=!1,y?(y=!1,m=this._indentLevel>=this._nestedLevel):m=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===t?this._output.space_before_token=!1:","!==t&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===t&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var A=0;A<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;A++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[A])){_=!0;break}!m&&!y||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||v||0!==f?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var S='"'===t||"'"===t;this.preserveSingleSpace(S||e),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)_=!1,0===f?(g&&(this.outdent(),g=!1),v=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),f++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),f&&(f--,this.outdent()));else{var T=!1;this._input.lookBack("with")&&(T=!0),this.preserveSingleSpace(e||T),this.print_string(this._ch),g&&"$"===t&&this._options.selector_separator_newline?(this._output.add_new_line(),b=!0):(this.eatWhitespace(),f++,this.indent())}else if(")"===this._ch)f&&(f--,this.outdent()),b&&";"===this._input.peek()&&this._options.selector_separator_newline&&(b=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!g||b)&&0===f&&!v?this._output.add_new_line():this._output.space_before_token=!0;else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==f)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(e),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),u.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var j='"'===t||"'"===t;this.preserveSingleSpace(j||e),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&_&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&u.test(this._ch)&&(this._ch=""));else break;return this._output.get_code(r)},e.exports.Beautifier=p},function(e,t,n){var r=n(6).Options;function i(e){r.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var i=0;i<n.length;i++)"expand"!==n[i]?this.brace_style="collapse":this.brace_style=n[i]}i.prototype=new r,e.exports.Options=i}],t={};r=function n(r){var i=t[r];
2112if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}(15)}();var r,i=r;void 0===(n=(function(){return{css_beautify:i}}).apply(t,[]))||(e.exports=n)}()},49318:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},49995:(e,t,n)=>{"use strict";function r(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{$:()=>r,A:()=>i});let i=r},50015:(e,t,n)=>{"use strict";n.d(t,{km:()=>c,o_:()=>d,zm:()=>u});var r=n(37876),i=n(24117),o=n(71498),s=n(13310);let a="h-[18px] w-[18px] fill-current";function l(e){let{children:t,icon:n}=e;return(0,r.jsxs)("span",{className:"flex items-center gap-1","data-sentry-component":"TabLabel","data-sentry-source-file":"TabLabel.tsx",children:[n,(0,r.jsx)("span",{children:t})]})}function u({children:e}){return(0,r.jsx)(l,{icon:(0,r.jsx)(s.A,{className:`${a} p-px`}),"data-sentry-element":"TabLabel","data-sentry-component":"AddTabLabel","data-sentry-source-file":"TabLabel.tsx",children:e})}function c({children:e}){return(0,r.jsx)(l,{icon:(0,r.jsx)(i.A,{className:a}),"data-sentry-element":"TabLabel","data-sentry-component":"EditTabLabel","data-sentry-source-file":"TabLabel.tsx",children:e})}function d({children:e}){return(0,r.jsx)(l,{icon:(0,r.jsx)(o.A,{className:a}),"data-sentry-element":"TabLabel","data-sentry-component":"ListTabLabel","data-sentry-source-file":"TabLabel.tsx",children:e})}},50224:(e,t,n)=>{e.exports=n(43622)(Object,"create")},50834:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(37876),i=n(49995);function o(e){let{pronouns:t,className:n}=e,o=e.textClass||"text-sm",s=void 0===e.withParens||e.withParens;if(!t||0===t.length)return null;let a=t.join(", ");return(0,r.jsx)("span",{className:(0,i.A)(o,n),"data-sentry-component":"Pronouns","data-sentry-source-file":"Pronouns.tsx",children:s?(0,r.jsxs)(r.Fragment,{children:["(",a,")"]}):a})}},50892:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(14232),i=n(29842);function o(e,t,n,o){let s=(0,i.Y)(n);(0,r.useEffect)(()=>{if(e)return window.addEventListener(t,n,o),()=>window.removeEventListener(t,n,o);function n(e){s.current(e)}},[e,t,o])}},51856:(e,t,n)=>{"use strict";Object.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"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=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}}(),s=n(14232),a=g(n(95062)),l=m(n(36893)),u=g(n(44537)),c=m(n(20184)),d=m(n(14270)),h=n(36078),p=g(h),f=g(n(79020));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(365);var y={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,b=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,i=e.htmlOpenClassName,o=e.bodyOpenClassName,s=e.parentSelector,a=s&&s().ownerDocument||document;o&&d.remove(a.body,o),i&&d.remove(a.getElementsByTagName("html")[0],i),r&&v>0&&0==(v-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),f.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){("Tab"===e.code||9===e.keyCode)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&("Escape"===e.code||27===e.ke
2112yCode)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r=(void 0===t?"undefined":i(t))==="object"?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(t,[{key:"c
2112omponentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName,o=e.parentSelector,s=o&&o().ownerDocument||document;i&&d.add(s.body,i),r&&d.add(s.getElementsByTagName("html")[0],r),n&&(v+=1,c.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,o=e.defaultStyles,s=e.children,a=n?{}:o.content,l=i?{}:o.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,s);return this.props.overlayElement(u,d)}}]),t}(s.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(p.default),a.default.instanceOf(h.SafeHTMLCollection),a.default.instanceOf(h.SafeNodeList),a.default.arrayOf(a.default.instanceOf(p.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=b,e.exports=t.default},52095:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(14232),o=n(41430),s=n(88427),a=n(13055),l=n(94829);function u(e){let{form:t,idName:n,name:u}=e,{setValue:c,watch:d}=t,h=`${u}-image`,[p,f]=(0,i.useState)(null);return(0,r.jsxs)("div",{className:"flex flex-col gap-y-4 my-2","data-sentry-component":"ImageField","data-sentry-source-file":"ImageField.tsx",children:[(0,r.jsx)(o.A,{src:d(u),id:h,"data-sentry-element":"ImageFieldPreview","data-sentry-source-file":"ImageField.tsx"}),(0,r.jsx)(s.A,{imageUploaded2:function(e){c(u,e.url),n&&c(n,e.id)},name:u,imagePurpose:"GENERIC_IMAGE",fileBroadTypes:[a.RG.RASTER,a.RG.VECTOR,a.RG.FAVICON],onError:e=>f(e),"data-sentry-element":"FileUpload","data-sentry-source-file":"ImageField.tsx"}),p&&(0,r.jsx)(l.A,{type:"warning",onClose:()=>f(null),children:p})]})}},52226:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class r{constructor(e){this.message=e}}},52228:(e,t,n)=>{e.exports=n(94879)},52742:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},52795:(e,t)=>{"use strict";function n(e){var t;let{config:n,src:r,width:i,quality:o}=e,s=o||(null==(t=n.qualities)?void 0:t.reduce((e,t)=>
2112Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return n.path+"?url="+encodeURIComponent(r)+"&w="+i+"&q="+s+(r.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},53257:(e,t,n)=>{"use strict";n.d(t,{Bp:()=>r,F8:()=>c,Fv:()=>p,MA:()=>h,RM:()=>m,Vb:()=>u,Wm:()=>d,Zq:()=>o,kZ:()=>i,kb:()=>a,lB:()=>f,pS:()=>l});var r=function(e){return e.PRIMARY="primary",e.SECONDARY="secondary",e.FOOTER="footer",e.SIDEBAR="sidebar",e}({}),i=function(e){return e.GENERIC="GENERIC",e.SPECIAL="SPECIAL",e}({}),o=function(e){return e.ACCOUNT="ACCOUNT",e.LOGIN="LOGIN",e.JOIN="JOIN",e.MEMBERS_HOME="MEMBERS_HOME",e}({});let s="/join",a=[{uri:"/login",type:"LOGIN"},{uri:s,type:"JOIN"},{uri:"/members/home",type:"MEMBERS_HOME"},{uri:"/members/account",type:"ACCOUNT"}],l=a.map(e=>e.uri),u="members-primary-nav";var c=function(e){return e.Apply="Apply",e.Dues="Dues",e.None="None",e}({});function d(e){return"NON_MEMBER"===e?"Apply":"ACTIVE"===e||"INACTIVE"===e?"Dues":"None"}function h({isLoggedIn:e,items:t,purpose:n,splitLinksType:r}){return e&&("primary"===n||"sidebar"===n)&&"GENERIC"!==r&&!t.some(e=>"ACCOUNT"===e.specialType)}function p(e,t,n){return e.filter(e=>!e.settings||f(e,t,n))}function f({settings:e,uri:t},n,r){let{isLoggedInVisible:i,isLoggedOutVisible:o,role:a}=e||{};r=r&&[...r];let l=!1;if(a?"developer"===a?l=r?.includes("developer")??!1:r&&(r.includes("super")||r.includes(a))&&(l=!0):l=!0,!l)return!1;let u=t===s?!!n&&"NON_MEMBER"!==n:!!n;if(t&&t.startsWith("/members")){if("ACTIVE"===n)return i;else if("INACTIVE"===n&&(!t||t.startsWith("/members/dues")||t.startsWith("/members/subscriptions")||t.startsWith("/members/account")||t.startsWith("/members/profile")))return!0;else if("NON_MEMBER"===n&&(!t||t.startsWith("/members/subscriptions")||t.startsWith("/members/profile")||t.startsWith("/members/account")))return!0;else if("BANNED"===n&&(!t||t.startsWith("/members/account")))return!0}else if(u&&i)return!0;else if(!u&&o)return!0;return!1}function m(e,t,n){if("admin"===e){if(n)return"text-secondary-900 hover:bg-gf-green-lighter"}else if(n)return"text-[var(--group-primary-card-text-color)] hover:bg-[var(--group-primary-card-background-tintend-color)]";else if("primary"===t)return"text-[var(--group-nav-menu-text-color)] hover:text-[var(--group-nav-menu-text-hover-color)]"}},53337:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))})},53441:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},i=e.split(";"),o=(t||{}).decode||n,s=0;s<i.length;s++){var a=i[s],l=a.indexOf("=");if(!(l<0)){var u=a.substring(0,l).trim();if(void 0==r[u]){var c=a.substring(l+1,a.length).trim();'"'===c[0]&&(c=c.slice(1,-1)),r[u]=function(e,t){try{return t(e)}catch(t){return e}}(c,o)}}}return r},t.serialize=function(e,t,n){var o=n||{},s=o.encode||r;if("function"!=typeof s)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var a=s(t);if(a&&!i.test(a))throw TypeError("argument val is invalid");var l=e+"="+a;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(o.domain){if(!i.test(o.domain))throw TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw TypeError("option expires is invali
2112d");l+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(l+="; HttpOnly"),o.secure&&(l+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l};var n=decodeURIComponent,r=encodeURIComponent,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},53512:(e,t,n)=>{var r=n(50224);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},53816:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(14232),o=n(28035),s=n(9783);function a(e){let{afterEachOption:t,currentValue:n,idPrefix:a,inputRef:l,itemClassName:u,onChange:c,onClick:d,other:h,radios:p,...f}=e;return f={...f,...l?{ref:l}:{}},(0,r.jsx)(r.Fragment,{children:p.map((l,p)=>{let{...m}=f;if(void 0!==n){let e=l.value===n;m={...m,checked:e}}return c&&(m={...m,onChange:()=>c(l.value)}),d&&(m={...m,onClick:()=>d(l.value)}),(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(s.A,{...m,required:l.required,disabled:l.disabled,idPrefix:a,value:l.value,label:l.label,className:u}),t&&t(l.value),!e.disabled&&h&&p===h.index&&(0,r.jsx)(o.A,{label:h.content,className:"my-2"})]},p)})})}},53955:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(17314),o=n(48230),s=n.n(o);function a({href:e,onClick:t,className:n,label:o}){let a,l=(0,r.jsx)("span",{className:"block rounded-full bg-white w-10 h-10 min-w-10 min-y-10 flex justify-center items-center border hover:border-secondary-300 text-secondary-500 hover:text-secondary-800 cursor-pointer",children:(0,r.jsx)(i.A,{className:"w-6 h-6"})});return(a=e?(0,r.jsx)(s(),{href:e,className:n,children:l}):(0,r.jsx)("button",{onClick:t,className:n,children:l}),o)?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[a,(0,r.jsx)("span",{children:o})]}):a}},54316:(e,t,n)=>{e.exports=n(43622)(n(19031),"Promise")},54442:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))})},54587:(e,t,n)=>{e.exports=n(59447)},54595:(e,t,n)=>{"use strict";n.d(t,{Lf:()=>m,PO:()=>x,LJ:()=>h,XH:()=>p,D5:()=>d,_4:()=>f,N8:()=>j,qG:()=>U,Dk:()=>E,vi:()=>F,hx:()=>P,MG:()=>v,Uq:()=>b,yQ:()=>D,NH:()=>M,JO:()=>z,FJ:()=>y,BR:()=>L,mp:()=>V,dJ:()=>g,Ws:()=>N,Qs:()=>A,D3:()=>C,ky:()=>T,jU:()=>k,LY:()=>O,oi:()=>I,Im:()=>R,yV:()=>S,ej:()=>q});var r=n(37876),i=n(14232),o=n(85081),s=n(42383);function a(e){let{fieldRow:t,hookForm:{register:n},questionId:i}=e,o=t?.label;return(0,r.jsxs)(s.fh,{className:"flex gap-4 items-center","data-sentry-element":"FormRow","data-sentry-component":"DynamicOtherTextField","data-sentry-source-file":"DynamicOtherTextField.tsx",children:[(0,r.jsx)(s.J3,{style:{width:"6em",minWidth:"6em",maxWidth:"6em"},className:"flex-grow","data-sentry-element":"ColumnLabel","data-sentry-source-file":"DynamicOtherTextField.tsx",children:o?.value||"Other"}),(0,r.jsx)(s.ks,{register:n&&n(`answers.${i}.otherValue`),"data-sentry-element":"TextInput","data-sentry-source-file":"DynamicOtherTextField.tsx"})]})}var l=n(25240),u=n(28035),c=n(63686),d=function(e){return e.application="application",e.profile="profile",e.rsvp="rsvp",e.contact_form="contact_form",e}({}),h=function(e){return e.application="application",e.profile="profile",e}({}),p=function(e){return e.application="APPLICATION",e.profile="PROFILE",e}({}),f=function(e){return e.name="name",e.intro="intro",e.location="location",e.meetup="meetup",e.photo="photo",e.phone_number="phone_number",e.pronouns="pronouns",e.email="email",e.message="message",e}({}),m=function(e){return e.Email="email",e}({});function g(e){if(!e)return null;if("string"==typeof e)try{return JSON.parse(e)}catch{return null}return e}function y(e){return k(e)?.alwaysEnabledAndVisible===!0}function v(e){return k(e)?.deletable!==!1}function b(e){return!e.specialField}let x=254,_=/^[^@\s]+@[^@\s]+\.[^@\s]+$/,w=[{specialField:"name",alwaysRequired:!0,deletable:!1,alwaysEnabledAndVisible:!0},{specialField:"photo",deletable:!1,alwaysEnabledAndVisible:!0},{specialField:"email",fixedFieldType:"TextField",alwaysRequired:!0,fixedMaxLength:254,deletable:!1,alwaysEnabledAndVisible:!0,validate:e=>!e||_.test(e)||"Please enter a valid email address"}];function k(e){let t=e.specialField;return w.find(e=>e.specialField===t)}function C(e){return!!k(e)?.alwaysRequired}function E(){return{tagName:"FieldRow",id:(0,o.A)(),field:{tagName:"TextField",id:(0,o.A)(),defaultValue:null,required:!1},label:{tagName:"RowLabel",value:""},text:null}}function A(e){let t=e.component;return t.label?.value||null}function S(e,t,n,r){let o=(0,i.useRef)(e);o.current=e;let s=(0,i.useRef)(n);s.current=n,(0,i.useEffect)(()=>{var e,n,i,a;t&&r&&s.current&&(e=o.current,n=t,i=s.current,a=r,T(e,n&&n.reduce((e,t)=>
2112i.filter(e=>e.sectionId===t.id).concat(e),[]),a))},[t,r])}function T(e,t,n){let r=function(e,t){if(e&&t){let n={};return e.forEach(e=>{let r=t.find(t=>t.questionId===e.id);if(e.component.field){let t=["CheckBoxGroup","OrderedSet"].includes(e.component.field.tagName),i=r?.arrayValue&&r.arrayValue[0],o=t?r?.arrayValue||[]:i,s=r?.otherValue||null;n={...n,[e.id]:{value:o,otherValue:s,otherChecked:!!s,meta:r?.meta||{},visible:r?.visible??!1}}}}),n}}(t,n);r&&t?.forEach(t=>{let n=r[t.id];n&&(e.setValue(`answers.${t.id}.value`,n.value),e.setValue(`answers.${t.id}.otherValue`,n.otherValue),e.setValue(`answers.${t.id}.otherChecked`,n.otherChecked),e.setValue(`answers.${t.id}.meta`,n.meta||{}),e.setValue(`answers.${t.id}.visible`,n.visible||!1))})}function j(e,t){let n=(t||[]).map(e=>{let{id:t,...n}=e;return{...n,visible:e.visible??!0}});if(e&&n){let t={};return e.forEach(e=>{let r=n.find(t=>t.questionId===e.id);if(e.component.field){let n=["CheckBoxGroup","OrderedSet"].includes(e.component.field.tagName),i=r?.arrayValue&&r.arrayValue[0],o=n?r?.arrayValue||[]:i,s=r?.otherValue||null,a=`q_${e.id}`;t={...t,[a]:{value:o,otherValue:s,otherChecked:!!s,meta:r?.meta||{},visible:r?.visible||!1}}}}),t}}function N(e,t){return`answers.${2===t?`q_${e}`:e}.value`}function O(e){let t=D(e);return e.answers&&(t={...t,answers:function(e){let t=e||{};return Object.keys(e).filter(e=>"0"!==e&&"_"!==e).map(e=>{let n=t[e],r={questionId:e};if(n){let{meta:e,value:t,otherValue:i,otherChecked:o,visible:s}=n,a=L(t);r={...r,arrayValue:a},e&&(r="string"==typeof e?{...r,meta:JSON.parse(e)}:{...r,meta:e}),void 0!==s&&(s="true"===s||!0===s,r={...r,visible:s}),r={...r,otherValue:o?i:null}}return r})}(e.answers)}),t}function I(e){return e.answers&&(e={...e,answers:function(e){let t=e||{};return Object.keys(e).map(e=>e.split("_")[1]).map(e=>{let n=t[`q_${e}`],r={questionId:e};if(n){let{meta:e,value:t,otherValue:i,otherChecked:o,visible:s}=n,a=L(t);r={...r,arrayValue:a},e&&(r={...r,meta:JSON.stringify(e)}),void 0!==s&&(s="true"===s||!0===s,r={...r,visible:s}),r={...r,otherValue:o?i:null}}return r})}(e.answers)}),e}function D(e){return Object.entries(e).filter(([e,t])=>!e.startsWith("_")).reduce((e,[t,n])=>({...e,[t]:n}),{})}function M(e){let t=e||{};return Object.keys(e).filter(e=>"0"!==e&&"_"!==e).map(e=>{let n=t[e],r={questionId:e};if(n){let e,{meta:t,value:i,otherValue:o,otherChecked:s,visible:a}=n;e=(e=Array.isArray(i)?i:[i||null]).filter(e=>null!=e),r={...r,arrayValue:e},t&&(r={...r,meta:t}),void 0!==a&&(a="true"===a||!0===a,r={...r,visible:a}),r={...r,otherValue:s?o:null}}return r})}function L(e){return(Array.isArray(e)?e:[e]).map(e=>"string"==typeof e?e.trim():null).filter(e=>e)}function R(e){let t,{fieldRow:n,hookForm:o,questionId:s}=e,l=n.field,u=l.items.map(e=>({value:e.id,label:e.label,required:e.required})),c=l.items.find(e=>"other"===e.special),d=c&&l.other,h=P(e),p=h?.register,f=p?.name,m=(0,i.useRef)([]),g=[];o&&(g=o.watch(f)||[]),(0,i.useEffect)(()=>{if(c&&f&&o){let e=g.includes(c.id);o.setValue(`answers.${s}.otherChecked`,e)}},[!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}(g,m.current)]),m.current=g;if(o&&o.watch(`answers.${s}.otherChecked`)&&c){let n={...e,fieldRow:d,hookForm:o};t={index:l.items.indexOf(c),content:(0,r.jsx)(a,{...n})}}return{options:u,cbOther:t,register:p}}function P(e){let{disableRequired:t,fieldRow:n,hookForm:r,questionId:i,component:o,specialField:s,themeArea:a,version:l,...u}=e,{field:c}=n;if(!c)return null;let d=F({...e,disableRequired:t,version:l}),h=c.id;return{...u,register:d,id:h}}function F(e){let{fieldRow:{field:t},hookForm:n,questionId:r,specialField:i,version:o}=e,s=n?.register;if(!s)return;let a=N(r,o),l={};t.items&&(l={itemRequired:e=>(function(e,t){if(!1===e)return!1;let n=t.items;return!n||0===n.filter(e=>e.required).map(e=>e.id).filter(t=>!e.includes(t)).length})(e,t)});let u=k({specialField:i});u?.validate&&(l={[a]:u.validate});let c=q(t),d=!e.disabled&&!e.disableRequired&&t.required;return d&&B.includes(t.tagName)&&(l={...l,required:$}),s(a,{required:d,validate:l,...c})}let B=["TextArea","TextField"];function $(e){return L(e).length>0}function q(e){let t={};return e.maxLength&&(t={...t,maxLength:e.maxLength}),t}
2112function V(e,t){let{component:n,hookForm:i,questionId:o}=e;if(!i)return null;let{formState:{errors:s},watch:a}=i;if(!s||0===Object.keys(s).length)return null;let d=n?.items;if(!d||!d.find(e=>e.required&&e.id===t)||!(0,l.A)(s,`answers.${o}.value`))return null;let h=a(`answers.${o}.value`);if(!(h&&h.includes(t)))return(0,r.jsx)(u.A,{label:(0,r.jsx)(c.A,{message:"required"}),"data-sentry-element":"FieldOptionLayout","data-sentry-component":"optionError","data-sentry-source-file":"forms.tsx"})}function z(e,t,n){let r,i;if(!e)return{sections:[],questions:[]};let o="profile"===t?"profile":"signup",s=e[o].sections,a=e[o].questions;n?.admin?(r=s.filter(e=>e.active),i=a.filter(e=>e.active)):(r=s.filter(e=>e.memberVisible&&e.active),i=a.filter(e=>e.memberVisible&&e.active));let l=r.map(e=>e.id),u=i.filter(e=>l.includes(e.sectionId??""));return{sections:r=r.map(e=>{let t=u.filter(t=>t.sectionId===e.id);return{...e,questions:t}}),questions:u}}function U(e){return{...e,questions:e.questions.map(H),purpose:e.purpose.toLowerCase()}}function H(e){var t,n;return{...e,component:{...t=e.component,field:Object.keys(n=t.field).reduce((e,t)=>{let r=t.replace(/_([a-z])/g,(e,t)=>t.toUpperCase());return{...e,[r]:n[t]}},{}),tagName:"FieldRow"},specialField:e.specialField?.toLowerCase()??null,purpose:e.purpose?.toLowerCase()??null}}},54945:(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})(e)}n.d(t,{A:()=>r})},55494:(e,t,n)=>{"use strict";n.d(t,{$x:()=>S,DO:()=>M,GA:()=>h,JE:()=>w,Md:()=>k,OP:()=>f,Oh:()=>_,Pf:()=>l,RG:()=>v,RQ:()=>N,Te:()=>j,UQ:()=>y,VW:()=>x,YB:()=>d,ZZ:()=>D,a2:()=>O,c6:()=>L,cn:()=>T,fj:()=>g,il:()=>c,ir:()=>I,jw:()=>E,k:()=>p,rF:()=>C,t5:()=>u,ts:()=>b});var r=n(86191),i=n(43982),o=n(46338),s=n(24447),a=n(97574);o.Au.join(", "),a.aL.join(",");let l=(0,r.J1)` 2113 mutation ConnectExternalAccount($input: ConnectExternalAccountInput!) { 2114 connectExternalAccount(input: $input) { 2115 result { 2116 id 2117 externalId 2118 } 2119 ${s.VE} 2120 } 2121 } 2122`,u=(0,r.J1)` 2123 mutation DisconnectExternalAccount($provider: ExternalAccountProvider!) { 2124 disconnectExternalAccount(provider: $provider) { 2125 result { 2126 id 2127 externalId 2128 } 2129 ${s.VE} 2130 } 2131 } 2132`;function c(e){let{election:t,dues:n}=e;return{...e,election:function(e){if(!e)return e;let{openedAt:t,closedAt:n,votedAt:r}=e;return{...e,openedAt:(0,i._U)(t),closedAt:(0,i._U)(n),votedAt:(0,i._U)(r)}}(t),dues:function(e){if(!e)return e;let{membershipEndsOn:t,trialEndsOn:n}=e;return{...e,membershipEndsOn:(0,i._U)(t),trialEndsOn:(0,i._U)(n)}}(n)}}let d=(0,r.J1)` 2133 query GetMemberNotices { 2134 getMemberNotices { 2135 dues { 2136 autoRenews 2137 membershipEndsOn 2138 trialEndsOn 2139 duesExempt 2140 } 2141 election { 2142 id 2143 openedAt 2144 closedAt 2145 votedAt 2146 } 2147 answers { 2148 id 2149 completed 2150 visible 2151 } 2152 } 2153 } 2154`,h=(0,r.J1)` 2155 query GetMemberToken($id: String!) { 2156 getMemberToken(id: $id) 2157 } 2158`,p=(0,r.J1)` 2159 query GetChatRecipient($id: ID!) { 2160 getMember2(id: $id) { 2161 id 2162 name 2163 title 2164 profile { 2165 photo { 2166 contentType 2167 id 2168 thumbUrl 2169 url 2170 } 2171 pronounItems { 2172 label 2173 } 2174 } 2175 } 2176 } 2177`,f=10,m=` 2178 autoRenews 2179 duesExempt 2180 email 2181 emailsEnabled 2182 emailsPausedUntil 2183 duesVariant { 2184 amount 2185 id 2186 isDefault 2187 isDisabled 2188 name 2189 position 2190 membershipPlan { 2191 disabledAt 2192 id 2193 isDefault 2194 isLifetime 2195 name 2196 ordinal 2197 term 2198 text 2199 } 2200 } 2201 pointsBalance 2202 points(sort: { field: INSERTED_AT, order: DESC }, limit: ${f}) { 2203 amount 2204 author { 2205 id 2206 name 2207 } 2208 pointType 2209 id 2210 insertedAt 2211 note 2212 } 2213 id 2214 joinedGroupOn 2215 leftGroupOn 2216 meetupMemberId 2217 membershipEndsOn 2218 membershipStartsOn 2219 memberTags { 2220 id 2221 tag { 2222 id 2223 tagGroupId 2224 value 2225 } 2226 } 2227 memberType 2228 name 2229 notes(sort: { field: INSERTED_AT, order: DESC }) { 2230 author { 2231 id 2232 name 2233 } 2234 body 2235 id 2236 insertedAt 2237 } 2238 phoneNumber 2239 profile { 2240 answers { 2241 arrayValue 2242 id 2243 meta 2244 otherValue 2245 questionId 2246 visible 2247 } 2248 id 2249 location
2250 photo { 2251 id 2252 url 2253 thumbUrl 2254 } 2255 pronounItems { 2256 label 2257 other 2258 } 2259 } 2260 roles 2261 signups(sort: { field: APPLIED_AT, order: DESC }, limit: 1) { 2262 id 2263 joinedAt 2264 approvedOrDeclinedAt 2265 appliedAt 2266 } 2267 source 2268 status 2269 teamMemberships { 2270 id 2271 teamSlug 2272 team { 2273 slug 2274 name 2275 } 2276 } 2277 title 2278 trial 2279 trialEndsOn 2280`,g=` 2281 id 2282 joinedGroupOn 2283 memberType 2284 name 2285 profile { 2286 id 2287 location 2288 photo { 2289 id 2290 url 2291 thumbUrl 2292 } 2293 pronounItems { 2294 label 2295 other 2296 } 2297 } 2298 status 2299 title 2300`,y=(0,r.J1)` 2301 mutation BulkTagActions($input: BulkTagActionsInput!) { 2302 bulkTagActions(input: $input) { 2303 result { 2304 success 2305 count 2306 } 2307 ${s.VE} 2308 } 2309 } 2310`,v=(0,r.J1)` 2311 query AdminListMembers2( 2312 $filter: Member2FilterInput 2313 $sort: [Member2SortInput] 2314 $role: String 2315 $savedReportId: String 2316 $search: String 2317 $tagIds: [String!] 2318 $tagIdsNot: Boolean 2319 $duesVariantIds: [String!] 2320 $withoutDuesVariants: Boolean 2321 $duesVariantIdsNot: Boolean 2322 $trialStatus: TrialStatusEnum 2323 ) { 2324 adminListMembers2( 2325 filter: $filter 2326 sort: $sort 2327 role: $role 2328 savedReportId: $savedReportId 2329 search: $search 2330 tagIds: $tagIds 2331 tagIdsNot: $tagIdsNot 2332 duesVariantIds: $duesVariantIds 2333 withoutDuesVariants: $withoutDuesVariants 2334 duesVariantIdsNot: $duesVariantIdsNot 2335 trialStatus: $trialStatus 2336 ) { 2337 duesExempt 2338 email 2339 id 2340 joinedGroupOn 2341 memberTags { 2342 id 2343 tag { 2344 id 2345 tagGroupId 2346 value 2347 } 2348 } 2349 memberType 2350 name 2351 profile { 2352 id 2353 location 2354 photo { 2355 id 2356 url 2357 thumbUrl 2358 } 2359 pronounItems { 2360 label 2361 other 2362 } 2363 } 2364 roles 2365 signups(sort: [{ field: APPLIED_AT, order: DESC }], limit: 1) { 2366 id 2367 insertedAt 2368 submittedAt 2369 } 2370 source 2371 status 2372 title 2373 trial 2374 } 2375 } 2376`,b=` 2377 id 2378 joinedGroupOn 2379 memberTags { 2380 id 2381 tag { 2382 id 2383 tagGroupId 2384 value 2385 } 2386 } 2387 memberType 2388 name 2389 profile { 2390 id 2391 location 2392 intro 2393 photo { 2394 ${a.S5} 2395 } 2396 pronounItems { 2397 label 2398 other 2399 } 2400 } 2401 status 2402 title 2403 trial 2404`,x=(0,r.J1)` 2405 query ListMembers2( 2406 $filter: Member2FilterInput 2407 $sort: [Member2SortInput] 2408 $search: String 2409 $offset: Int 2410 $limit: Int 2411 $tagIds: [String!] 2412 $skipMemberIds: [String!] 2413 $questionItems: [Member2QuestionItemsInput!], 2414 $skipGoingAttendeesEventId: String 2415 ) { 2416 listMembers2( 2417 filter: $filter 2418 sort: $sort 2419 search: $search 2420 offset: $offset 2421 limit: $limit 2422 tagIds: $tagIds 2423 skipMemberIds: $skipMemberIds 2424 questionItems: $questionItems 2425 skipGoingAttendeesEventId: $skipGoingAttendeesEventId 2426 ) { 2427 results { 2428 ${b} 2429 } 2430 count 2431 hasNextPage 2432 } 2433 } 2434`,_=(0,r.J1)` 2435 query AdminGetMember($id: ID!) { 2436 adminGetMember(id: $id) { 2437 ${m} 2438 } 2439 } 2440`,w=(0,r.J1)` 2441 mutation CreateMember($input: CreateMember2Input!) { 2442 createMember2(input: $input) { 2443 result { 2444 ${m} 2445 } 2446 ${s.VE} 2447 } 2448 } 2449`;(0,r.J1)` 2450 mutation UpdateMember($id: ID!, $input: UpdateMember2Input!) { 2451 updateMember2(id: $id, input: $input) { 2452 result { 2453 ${m} 2454 } 2455 ${s.VE} 2456 } 2457 } 2458`;let k=(0,r.J1)` 2459 query GetMember2($id: ID!) { 2460 getMember2(id: $id) { 2461 id 2462 joinedGroupOn 2463 memberTags { 2464 tag { 2465 id 2466 tagGroupId 2467 value 2468 } 2469 } 2470 memberType 2471 name 2472 profile { 2473 answers(filter: { visible: { eq: true } }) { 2474 arrayValue 2475 id 2476 meta 2477 otherValue 2478 questionId 2479 visible 2480 } 2481 id 2482 intro 2483 location 2484 photo { 2485 id 2486 url 2487 thumbUrl 2488 } 2489 pronounItems { 2490 label 2491 other 2492 } 2493 } 2494 status 2495 title 2496 } 2497 } 2498`,C=(0,r.J1)` 2499 mutation CreateMemberPoint($input: CreateMemberPointInput!) { 2500 createMemberPoint(input: $input) { 2501 result { 2502 amount 2503 author { 2504 id 2505 name 2506 } 2507 pointType 2508 id 2509 insertedAt 2510 member { 2511 id
2512 pointsBalance 2513 } 2514 note 2515 } 2516 ${s.VE} 2517 } 2518 } 2519`,E=(0,r.J1)` 2520 mutation UpdateMember2($id: ID!, $input: UpdateMember2Input) { 2521 updateMember2(id: $id, input: $input) { 2522 result { 2523 ${m} 2524 } 2525 ${s.VE} 2526 } 2527 } 2528`,A=` 2529 accountConfirmed 2530 autoRenews 2531 pointsBalance 2532 points(sort: { field: INSERTED_AT, order: DESC }, limit: ${f}) { 2533 amount 2534 author { 2535 id 2536 name 2537 } 2538 pointType 2539 id 2540 insertedAt 2541 note 2542 } 2543 duesExempt 2544 duesPaidAmount 2545 duesPaidOn 2546 duesVariantId 2547 email 2548 emailConfirmedAt 2549 emailsEnabled 2550 externalAccounts { 2551 id 2552 provider 2553 externalId 2554 } 2555 hasActiveApplication 2556 id 2557 joinedGroupOn 2558 membershipEndsOn 2559 memberTags { 2560 tag { 2561 id 2562 tagGroupId 2563 value 2564 } 2565 } 2566 memberType 2567 name 2568 passwordSet 2569 phoneNumber 2570 profile { 2571 answers { 2572 arrayValue 2573 id 2574 meta 2575 otherValue 2576 questionId 2577 visible 2578 } 2579 id 2580 intro 2581 location 2582 photo { 2583 id 2584 info { width height } 2585 url 2586 thumbInfo { width height } 2587 thumbUrl 2588 } 2589 pronounItems { 2590 label 2591 other 2592 } 2593 } 2594 roles 2595 status 2596 title 2597 trialEndsOn 2598 unconfirmedEmail 2599`,S=(0,r.J1)` 2600 query GetSelfMember { 2601 getSelfMember { 2602 ${A} 2603 } 2604 } 2605`,T=(0,r.J1)` 2606 mutation UpdateAccount($input: UpdateAccountInput) { 2607 updateAccount(input: $input) { 2608 result { 2609 ${A} 2610 } 2611 ${s.VE} 2612 } 2613 } 2614`,j=(0,r.J1)`
2615 mutation ConfirmEmailWithToken($input: ConfirmEmailWithTokenInput!) { 2616 confirmEmailWithToken(input: $input) 2617 } 2618`;function N(e){var t;if(e.profile){let t=e.profile.answers.map(e=>({...e,meta:e.meta?JSON.parse(e.meta):{}}));t=t||[],e={...e,profile:{...e.profile,answers:t}}}return e.duesVariant&&(e={...e,duesVariant:{...e.duesVariant,membershipPlan:(t=e.duesVariant.membershipPlan)?{...t,disabledAt:(0,i._U)(t.disabledAt)}:t}}),{...e,emailsPausedUntil:(0,i._U)(e.emailsPausedUntil),joinedGroupOn:(0,i._U)(e.joinedGroupOn),leftGroupOn:(0,i._U)(e.leftGroupOn),membershipStartsOn:(0,i._U)(e.membershipStartsOn),membershipEndsOn:(0,i._U)(e.membershipEndsOn)}}let O=(0,r.J1)` 2619 mutation SignupWithAuth2($input: SignupWithAuth2Input!) { 2620 signupWithAuth2(input: $input) 2621 } 2622`,I=(0,r.J1)` 2623 mutation VerifyMemberAuthCode2($input: VerifyMemberAuthCode2Input!) { 2624 verifyMemberAuthCode2(input: $input) { 2625 result { 2626 accessToken 2627 member { 2628 accountConfirmed 2629 email 2630 emailOptInAnswer 2631 id 2632 name 2633 status 2634 } 2635 } 2636 ${s.VE} 2637 } 2638 } 2639`,D=(0,r.J1)` 2640 mutation ConfirmPasswordToken2($input: ConfirmPasswordToken2Input!) { 2641 confirmPasswordToken2(input: $input) 2642 } 2643`,M=(0,r.J1)` 2644 mutation ConfirmAccount($input: ConfirmAccountInput) { 2645 confirmAccount(input: $input) { 2646 result { 2647 id 2648 } 2649 ${s.VE} 2650 } 2651 } 2652`,L=(0,r.J1)` 2653 mutation DeleteAccount($input: DeleteAccountInput) { 2654 deleteAccount(input: $input) { 2655 result { 2656 id 2657 status 2658 } 2659 ${s.VE} 2660 } 2661 } 2662`;(0,r.J1)` 2663 mutation AdminUpdateProfile($id: ID!, $input: AdminUpdateProfileInput!) { 2664 adminUpdateProfile(id: $id, input: $input) { 2665 result { 2666 answers { 2667 arrayValue 2668 id 2669 meta 2670 otherValue 2671 questionId 2672 visible 2673 } 2674 id 2675 intro 2676 location 2677 } 2678 ${s.VE} 2679 } 2680 } 2681`},56508:(e,t,n)=>{n(79151),e.exports=self.fetch.bind(self)},56750:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"}))})},56751:(e,t,n)=>{var r=n(63592),i=n(48894),o=n(93007),s=n(4756),a=n(68373),l=n(82731),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&s(e),h=!n&&!c&&!d&&l(e),p=n||c||d||h,f=p?r(e.length,String):[],m=f.length;for(var g in e)(t||u.call(e,g))&&!(p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m)))&&f.push(g);return f}}
2681,56788:(e,t,n)=>{"use strict";function r(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null==(t=window.navigator.userAgentData)?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function i(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function o(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{o:()=>M});let s=o(function(){return i(/^Mac/i)}),a=o(function(){return i(/^iPhone/i)}),l=o(function(){return i(/^iPad/i)||s()&&navigator.maxTouchPoints>1}),u=o(function(){return a()||l()});o(function(){return s()||u()}),o(function(){return r(/AppleWebKit/i)&&!c()});let c=o(function(){return r(/Chrome/i)}),d=o(function(){return r(/Android/i)});o(function(){return r(/Firefox/i)});let h=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},p=e=>e&&"window"in e&&e.window===e?e:h(e).defaultView||window;var f=n(14232);let m=null,g=new Set,y=new Map,v=!1,b=!1,x={Tab:!0,Escape:!0};function _(e,t){for(let n of g)n(e,t)}function w(e){v=!0,e.metaKey||!s()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(m="keyboard",_("keyboard",e))}
2681function k(e){m="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(v=!0,_("pointer",e))}function C(e){(0===e.mozInputSource&&e.isTrusted||(d()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(v=!0,m="virtual")}function E(e){e.target!==window&&e.target!==document&&(v||b||(m="virtual",_("virtual",e)),v=!1,b=!1)}function A(){v=!1,b=!0}function S(e){if("undefined"==typeof window||y.get(p(e)))return;let t=p(e),n=h(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){v=!0,r.apply(this,arguments)},n.addEventListener("keydown",w,!0),n.addEventListener("keyup",w,!0),n.addEventListener("click",C,!0),t.addEventListener("focus",E,!0),t.addEventListener("blur",A,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",k,!0),n.addEventListener("pointermove",k,!0),n.addEventListener("pointerup",k,!0)):(n.addEventListener("mousedown",k,!0),n.addEventListener("mousemove",k,!0),n.addEventListener("mouseup",k,!0)),t.addEventListener("beforeunload",()=>{T(e)},{once:!0}),y.set(t,{focus:r})}let T=(e,t)=>{let n=p(e),r=h(e);t&&r.removeEventListener("DOMContentLoaded",t),y.has(n)&&(n.HTMLElement.prototype.focus=y.get(n).focus,r.removeEventListener("keydown",w,!0),r.removeEventListener("keyup",w,!0),r.removeEventListener("click",C,!0),n.removeEventListener("focus",E,!0),n.removeEventListener("blur",A,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",k,!0),r.removeEventListener("pointermove",k,!0),r.removeEventListener("pointerup",k,!0)):(r.removeEventListener("mousedown",k,!0),r.removeEventListener("mousemove",k,!0),r.removeEventListener("mouseup",k,!0)),y.delete(n))};function j(){return"pointer"!==m}"undefined"!=typeof document&&function(e){let t,n=h(void 0);"loading"!==n.readyState?S(void 0):(t=()=>{S(e)},n.addEventListener("DOMContentLoaded",t)),()=>T(e,t)}();let N=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),O="undefined"!=typeof document?f.useLayoutEffect:()=>{};class I{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function D(e){let t=(0,f.useRef)({isFocused:!1,observer:null});O(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=function(e){let t=(0,f.useRef)(null);return O(()=>{t.current=e},[e]),(0,f.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}(t=>{null==e||e(t)});return(0,f.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(new I("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null==(e=t.current.observer)||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function M(e={}){var t;let{autoFocus:n=!1,isTextInput:r,within:i}=e,o=(0,f.useRef)({isFocused:!1,isFocusVisible:n||j()}),[s,a]=(0,f.useState)(!1),[l,u]=(0,f.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),c=(0,f.useCallback)(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,f.useCallback)(e=>{o.current.isFocused=e,a(e),c()},[c]);t={isTextInput:r},S(),(0,f.useEffect)(()=>
2681{let e=(e,n)=>{(function(e,t,n){var r;let i="undefined"!=typeof window?p(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?p(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s="undefined"!=typeof window?p(null==n?void 0:n.target).HTMLElement:HTMLElement,a="undefined"!=typeof window?p(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!N.has(null==n||null==(r=n.target)?void 0:r.type)||(null==n?void 0:n.target)instanceof o||(null==n?void 0:n.target)instanceof s&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof a&&!x[n.key])})(!!(null==t?void 0:t.isTextInput),e,n)&&(e=>{o.current.isFocusVisible=e,c()})(j())};return g.add(e),()=>{g.delete(e)}},[]);let{focusProps:m}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,o=(0,f.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),s=D(o),a=(0,f.useCallback)(e=>{let t=h(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),i&&i(!0),s(e))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}({isDisabled:i,onFocusChange:d}),{focusWithinProps:y}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=(0,f.useRef)({isFocusWithin:!1}),s=(0,f.useCallback)(e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(e),i&&i(!1))},[n,i,o]),a=D(s),l=(0,f.useCallback)(e=>{o.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,a(e))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}({isDisabled:!i,onFocusWithinChange:d});return{isFocused:s,isFocusVisible:l,focusProps:i?y:m}}},56959:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(37876),i=n(54587),o=n.n(i),s=n(14232),a=n(78950);function l({attachments:e}){let[t,n]=(0,s.useState)(null);if(!e||0===e.length)return null;let i=1===e.length;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:i?"mt-1":"mt-1 grid grid-cols-2 gap-1",children:e.map((e,t)=>
2681{let s=e.thumbInfo?.width||150,a=s/(e.thumbInfo?.height||150),l=i?Math.min(s,300):120;return(0,r.jsx)("button",{onClick:()=>{n(t)},className:"block rounded overflow-hidden cursor-pointer hover:opacity-90 transition-opacity",type:"button",children:(0,r.jsx)(o(),{src:e.thumbUrl||e.url,alt:"Attached image",width:l,height:l/a,className:"object-cover w-full",style:{maxWidth:i?"300px":"120px",height:"auto"}})},e.id)})}),null!==t&&(0,r.jsx)(a.A,{isOpen:!0,onClose:function(){n(null)},children:(0,r.jsx)("div",{className:"flex items-center justify-center p-4",children:(0,r.jsx)(o(),{src:e[t].url,alt:"Attached image",width:e[t].info?.width||800,height:e[t].info?.height||600,className:"max-w-full max-h-[80vh] object-contain"})})})]})}},57166:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z"}))})},57560:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(37876),i=n(94829);function o(e){return(0,r.jsx)(i.A,{type:"warning","data-testid":"flash-warning",className:e.className,"data-sentry-element":"Flash","data-sentry-component":"FlashWarning","data-sentry-source-file":"FlashWarning.tsx",children:e.children})}},57616:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(37876),i=n(14232),o=n(42383),s=n(54595),a=n(47952),l=n(85081),u=n(80903),c=n(98409),d=n(13220);function h(e){let t,{disabled:n,hookForm:i,questionId:o}=e;if(i){let{watch:e}=i,n=e(`answers.${o}`),r=n?.meta;t=r?.url}let s=(0,d.bH)();async function a({photoId:e,photoUrl:t}){if(i){let{setValue:n,watch:r}=i,s={...r(`answers.${o}`)||{},value:e,meta:{url:t}};n(`answers.${o}`,s)}}return(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2","data-sentry-component":"DynamicPhotoField","data-sentry-source-file":"DynamicPhotoField.tsx",children:[t&&(0,r.jsx)(u.L7,{photoUrl:t,photoSize:180}),(0,r.jsx)(c.A,{jwt:s,onUpload:a,disabled:n||!i,themeArea:e.themeArea,"data-sentry-element":"PhotoUpload","data-sentry-source-file":"DynamicPhotoField.tsx"})]})}var p=n(79344),f=n(85767),m=n(92782);function g(e){let{disabled:t,questionId:n}=e,a=e.hookForm,{options:l,cbOther:u}=(0,s.Im)(e),c=a?.watch&&a.watch(`answers.${n}`),d=`_OrderedSet-${n}`,h=a?.watch&&a.watch(d)||[],[p,g]=(0,i.useState)([]),v=(0,m.A)({name:"sections",onDrop:function(e){a&&(g(e.map(e=>l.find(t=>t.value===e))),a.setValue(`answers.${n}.value`,e))}});(0,i.useEffect)(()=>{if(Array.isArray(h?.value)&&a){let e=h.value,t=p.map(e=>e.value),r=[...t.filter(t=>e.includes(t)),...e.filter(e=>!t.includes(e))];g(r.map(e=>l.find(t=>t.value===e))),a.setValue(`answers.${n}.value`,r)}},[h?.value]);let b=!!a&&!!c?.value;return(0,i.useEffect)(()=>{if(Array.isArray(c?.value)&&a){let e=c.value.map(e=>l.find(t=>t.value===e)),t=e.map(e=>e.value);a.setValue(`answers.${n}.value`,t),a.setValue(`${d}.value`,t),g(e)}},[b]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"flex flex-col gap-4 justify-between items-stretch",children:[(0,r.jsx)("div",{className:"grow border rounded px-2 py-1",children:(0,r.jsx)(o.x3,{afterEachOption:t=>(0,s.mp)(e,t),options:l,other:u,register:a&&a.register(`${d}.value`),disabled:t,"data-sentry-element":"CheckBoxGroup","data-sentry-source-file":"DynamicOrderedSet.tsx"})}),(0,r.jsx)("div",{className:"text-black flex items-center justify-center",style:{height:"40px"},children:(0,r.jsx)(f.A,{className:"fill-current text-gray rotate-90",style:{width:"30px"},"data-sentry-element":"ArrowIcon","data-sentry-source-file":"DynamicOrderedSet.tsx"})}),(0,r.jsxs)("div",{className:"grow border rounded px-2 py-1 flex flex-col gap-1 items-stretch",children:[p.map((e,t)=>(0,r.jsx)(y,{option:e,index:t,useSortable:v},e.value)),0===p.length?(0,r.jsx)("div",{className:"text-center",children:"(none selected)"}):null]})]})})}function y({option:e,index:t,useSortable:n}){let{sortable:i,getItemClass:o}=n,s=o(e.value);return(0,r.jsxs)("div",{className:`border rounded flex justify-start ${s}`,...i,id:e.value,"data-sentry-component":"SetItem","data-sentry-source-file":"DynamicOrderedSet.tsx",children:[(0,r.jsx)(p.A,{"data-sentry-element":"GripCol","data-sentry-source-file":"DynamicOrderedSet.tsx"}),t+1,". ",e.label]})}var v=n(8153),b=n(16710);function x(e){let t=e.component,n=(0,s.hx)(e);if(!t)return(0,r.jsx)(r.Fragment,{});if("TextField"===t.tagName){let t=e.specialField===s._4.email;return(0,r.jsx)(o.ks,{...n,type:t?"email":"text",autoComplete:t?"email":void 0})}return"TextArea"===t.tagName?(0,r.jsx)(o.fs,{...n,rows:6}):"SingleCheckBox"===t.tagName?(0,r.jsx)(_,{...e}):"RadioGroup"===t.tagName?(0,r.jsx)(k,{...e}):"Select"===t.tagName?(0,r.jsx)(C,{...e}):"CheckBoxGroup"===t.tagName?(0,r.jsx)(w,{...e}):"OrderedSet"===t.tagName?(0,r.jsx)(g,{...e}):"PhotoField"===t.tagName?(0,r.jsx)(h,{...e}):(console.warn("Unknown field type:",t),(0,r.jsx)(r.Fragment,{}))}function _(e){let{fieldRow:t}=e,n=t.field,i=(0,l.A)(),{labelValue:o,tagName:a,...u}=n,c={...u,tagName:"SingleCheckBox"},d={...t,field:c};e={...e,fieldRow:d};let h=(0,s.vi)(e);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(v.A,{label:n.labelValue,id:i,register:h,"data-sentry-element":"CheckboxWithLabel","data-sentry-source-file":"DynamicField.tsx"})})}function w(e){let{disabled:t}=e,{options:n,cbOther:i,register:a}=(0,s.Im)(e);return(0,r.jsx)(o.x3,{afterEachOption:t=>(0,s.mp)(e,t),options:n,other:i,register:a,disabled:t,"data-sentry-element":"CheckBoxGroup","data-sentry-component":"DynamicCheckBoxGroup","data-sentry-source-file":"DynamicField.tsx"})}function k(e){let{disabled:t}=e,{options:n,cbOther:i,register:a}=(0,s.Im)(e);
2681return(0,r.jsx)(o.z6,{afterEachOption:t=>(0,s.mp)(e,t),radios:n,other:i,register:a,disabled:t,"data-sentry-element":"RadioGroup","data-sentry-component":"DynamicRadioGroup","data-sentry-source-file":"DynamicField.tsx"})}function C(e){let{disabled:t}=e,{options:n,register:i}=(0,s.Im)(e),o=[{id:"",label:"-- Select --",value:""},...n];return(0,r.jsx)(b.A,{options:o,register:i,disabled:t,"data-sentry-element":"Select","data-sentry-component":"DynamicSelect","data-sentry-source-file":"DynamicField.tsx"})}var E=n(31341);function A(e){let{disabled:t,disableRequired:n,fieldRow:i,hookForm:o,question:s,themeArea:a,version:u=1}=e,c={disabled:t,disableRequired:n,fieldRow:i,hookForm:o,questionId:s.id||`#new-${(0,l.A)()}`,specialField:s.specialField,version:u};if(null==i)throw Error("fieldRow is empty");if("FieldRow"!==i.tagName)throw Error("Given component is not a FieldRow");let d=[i.label,i.text,i.field].filter(e=>e);return(0,r.jsx)(r.Fragment,{children:d.map((e,t)=>{let n={...c,fieldRow:i,component:e,themeArea:a};return(0,r.jsx)(S,{dynaProps:n,fieldRow:i},t)})})}function S(e){let{dynaProps:t,fieldRow:n}=e,{component:i,questionId:s}=t;if("RowLabel"===i.tagName){let e=n.field?.required?(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(E.A,{})]}):null;return(0,r.jsxs)(o.Dk,{id:`question.${s}`,title:`question:${s}`,children:[i.value,e]})}return"TextItem"===i.tagName?(0,r.jsx)("div",{className:"TextItem mb-2",children:(0,r.jsx)(a.A,{content:i.text,linksInNewTab:!0})}):(0,r.jsx)(T,{...t})}function T(e){let{hookForm:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{...e,"data-sentry-element":"DynamicField","data-sentry-source-file":"DynamicFormRowContents.tsx"}),t&&(0,r.jsx)(j,{...e})]})}function j(e){let{component:t,questionId:n,hookForm:i,version:a}=e,l=(0,s.ej)(t);if(!i)return(0,r.jsx)(r.Fragment,{});{let{formState:e}=i,u=e.errors,c=(0,s.Ws)(n,a);return(0,r.jsx)("div",{children:(0,r.jsx)(o.Kw,{name:c,errors:u,hookForm:i,field:t,validationConstrains:l,messages:{required:"Please complete this field"}})})}}},58103:(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 s=i.apply(null,n);s&&e.push(s)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=(function(){return i}).apply(t,[]))||(e.exports=n)}()},58127:(e,t,n)=>{"use strict";function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{Fr:()=>i,un:()=>r})},58214:(e,t,n)=>{"use strict";var r=n(14232),i=n(38806),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,a=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var p=s(e,(d=u(function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(s=e,t):(s=e,a=n)}var s,a,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],d[1]);return l(function(){h.hasValue=!0,h.value=p},[p]),c(p),p}},58287:(e,t,n)=>{"use strict";function r(e,t){if(!e)throw Error(t)}n.d(t,{U:()=>r})},58321:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var i=r(n(40783)),o=new Set(["input","option","optgroup","select","button","datalist","textarea"]),s=new Set(["p"]),a={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:s,h1:s,h2:s,h3:s,h4:s,h5:s,h6:s,select:o,input
2681:o,output:o,button:o,datalist:o,textarea:o,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:s,article:s,aside:s,blockquote:s,details:s,div:s,dl:s,fieldset:s,figcaption:s,figure:s,footer:s,form:s,header:s,hr:s,main:s,nav:s,ol:s,pre:s,section:s,table:s,ul:s,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},l=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),u=new Set(["math","svg"]),c=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),d=/\s|\//;t.Parser=function(){function e(e,t){var n,r,o,s,a;void 0===t&&(t={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=t,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!=(n=t.lowerCaseTags)?n:!t.xmlMode,this.lowerCaseAttributeNames=null!=(r=t.lowerCaseAttributeNames)?r:!t.xmlMode,this.tokenizer=new(null!=(o=t.Tokenizer)?o:i.default)(this.options,this),null==(a=(s=this.cbs).onparserinit)||a.call(s,this)}return e.prototype.updatePosition=function(e){null===this.endIndex?this.tokenizer.sectionStart<=e?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},e.prototype.ontext=function(e){var t,n;this.updatePosition(1),this.endIndex--,null==(n=(t=this.cbs).ontext)||n.call(t,e)},e.prototype.onopentagname=function(e){var t,n;if(this.lowerCaseTagNames&&(e=e.toLowerCase()),this.tagname=e,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(a,e))for(var r=void 0;this.stack.length>0&&a[e].has(r=this.stack[this.stack.length-1]);)this.onclosetag(r);(this.options.xmlMode||!l.has(e))&&(this.stack.push(e),u.has(e)?this.foreignContext.push(!0):c.has(e)&&this.foreignContext.push(!1)),null==(n=(t=this.cbs).onopentagname)||n.call(t,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.onopentagend=function(){var e,t;this.updatePosition(1),this.attribs&&(null==(t=(e=this.cbs).onopentag)||t.call(e,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&l.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},e.prototype.onclosetag=function(e){if(this.updatePosition(1),this.lowerCaseTagNames&&(e=e.toLowerCase()),(u.has(e)||c.has(e))&&this.foreignContext.pop(),this.stack.length&&(this.options.xmlMode||!l.has(e))){var t=this.stack.lastIndexOf(e);if(-1!==t)if(this.cbs.onclosetag)for(t=this.stack.length-t;t--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=t;else"p"!==e||this.options.xmlMode||(this.onopentagname(e),this.closeCurrentTag())}else this.options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this.closeCurrentTag())},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},e.prototype.closeCurrentTag=function(){var e,t,n=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===n&&(null==(t=(e=this.cbs).onclosetag)||t.call(e,n),this.stack.pop())},e.prototype.onattribname=function(e){this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,n;null==(n=(t=this.cbs).onattribute)||n.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(d),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}},e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}},e.prototype.oncomment=function(e){var t,n,r,i;this.updatePosition(4),null==(n=(t=this.cbs).oncomment)||n.call(t,e),null==(i=(r=this.cbs).oncommentend)||i.call(r)},e.prototype.oncdata=function(e){var t,n,r,i,o,s;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null==(n=(t=this.cbs).oncdatastart)||n.call(t),null==(i=(r=this.cbs).ontext)||i.call(r,e),null==(s=(o=this.cbs).oncdataen
2681d)||s.call(o)):this.oncomment("[CDATA["+e+"]]")},e.prototype.onerror=function(e){var t,n;null==(n=(t=this.cbs).onerror)||n.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n]));null==(t=(e=this.cbs).onend)||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null==(t=(e=this.cbs).onreset)||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null==(r=(n=this.cbs).onparserinit)||r.call(n,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}()},58446:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(87559);function i(e){return e[0]}let o=(function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)})(n(11663)).compile({ws:{match:/[ \t\r\n\f]+/,lineBreaks:!0},idn:{match:/[a-zA-Z_-][a-zA-Z0-9_-]*/},hashToken:{match:/#[a-zA-Z0-9_-]+/,value:e=>e.slice(1)},str1:{match:/'(?:\\['\\]|[^\n'\\])*'/,value:e=>e.slice(1,-1)},str2:{match:/"(?:\\["\\]|[^\n"\\])*"/,value:e=>e.slice(1,-1)},asterisk:"*",fullstop:".",comma:",",lbr:"[",rbr:"]",eq:"=",gt:">",vbar:"|",plus:"+",tilde:"~",caret:"^",dollar:"$"});function s(e){return e[0].value}function a(e){return e[1]}function l([e,t,n],[r,i,o]){return[e+r,t+i,n+o]}let u={Lexer:o,ParserRules:[{name:"main",symbols:["_","listSelector","_"],postprocess:a},{name:"mainNoList",symbols:["_","complexSelector","_"],postprocess:a},{name:"listSelector",symbols:["complexSelector"],postprocess:([e])=>({type:"list",list:[e]})},{name:"listSelector",symbols:["listSelector","_",o.has("comma")?{type:"comma"}:comma,"_","complexSelector"],postprocess:([e,,,,t])=>({type:"list",list:[...e.list,t]})},{name:"complexSelector",symbols:["compoundSelector"],postprocess:i},{name:"complexSelector",symbols:["complexSelector","__","compoundSelector"],postprocess:([e,,t])=>({type:"compound",list:[...t.list,{type:"combinator",combinator:" ",left:e,specificity:e.specificity}],specificity:l(e.specificity,t.specificity)})},{name:"complexSelector",symbols:["complexSelector","_","combinator","_","compoundSelector"],postprocess:([e,,t,,n])=>({type:"compound",list:[...n.list,{type:"combinator",combinator:t,left:e,specificity:e.specificity}],specificity:l(e.specificity,n.specificity)})},{name:"combinator",symbols:[o.has("gt")?{type:"gt"}:gt],postprocess:()=>">"},{name:"combinator",symbols:[o.has("plus")?{type:"plus"}:plus],postprocess:()=>"+"},{name:"combinator",symbols:[o.has("tilde")?{type:"tilde"}:tilde],postprocess:()=>"~"},{name:"combinator",symbols:[o.has("vbar")?{type:"vbar"}:vbar,o.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>"||"},{name:"compoundSelector",symbols:["typeSelector"],postprocess:([e])=>({type:"compound",list:[e],specificity:e.specificity})},{name:"compoundSelector",symbols:["subclassSelector"],postprocess:([e])=>({type:"compound",list:[e],specificity:e.specificity})},{name:"compoundSelector",symbols:["compoundSelector","subclassSelector"],postprocess:([e,t])=>({type:"compound",list:[...e.list,t],specificity:l(e.specificity,t.specificity)})},{name:"subclassSelector",symbols:["idSelector"],postprocess:i},{name:"subclassSelector",symbols:["classSelector"],postprocess:i},{name:"subclassSelector",symbols:["attrSelector"],postprocess:i},{name:"attrSelector",symbols:["attrPresenceSelector"],postprocess:i},{name:"attrSelector",symbols:["attrValueSelector"],postprocess:i},{name:"typeSelector",symbols:["tagSelector"],postprocess:i},{name:"typeSelector",symbols:["uniSelector"],postprocess:i},{name:"attrPresenceSelector",symbols:[o.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_",o.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,e])=>({type:"attrPresence",name:e.name,namespace:e.namespace,specificity:[0,1,0]})},{name:"attrValueSelector",symbols:[o.has("lbr")?{type:"lbr"}:lbr,"_","wqname","_","attrMatcher","_","attrValue","_",o.has("rbr")?{type:"rbr"}:rbr],postprocess:([,,e,,t,,n])=>({type:"attrValue",name:e.name,namespace:e.namespace,matcher:t,value:n.value,modifier:n.modifier,specificity:[0,1,0]})},{name:"attrMatcher",symbols:[o.has("eq")?{type:"eq"}:eq],postprocess:()=>"="},{name:"attrMatcher",symbols:[o.has("tilde")?{type:"tilde"}:tilde,o.has("eq")?{type:"eq"}:eq],postprocess:()=>"~="},{name:"attrMatcher",symbols:[o.has("vbar")?{type:"vbar"}:vbar,o.has("eq")?{type:"eq"}:eq],postprocess:()=>"|="},{name:"attrMatcher",symbols:[o.has("caret")?{type:"caret"}:caret,o.has("eq")?{type:"eq"}:eq],postprocess:()=>"^="},{name:"attrMatcher",symbols:[o.has("dollar")?{type:"dollar"}:dollar,o.has("eq")?{type:"eq"}:eq],postprocess:()=>"$="},{name:"attrMatcher",symbols:[o.has("asterisk")?{type:"asterisk"}:asterisk,o.has("eq")?{type:"eq"}:eq],postprocess:()=>"*="},{name:"attrValue",symbols:["str"],postprocess:([e])=>({value:e,modifier:null})},{name:"attrValue",symbols:["idn"],postprocess:([e])=>({value:e,modifier:null})},{name:"attrValue",symbols:["str","_","attrModifier"],postprocess:([e,,t])=>({value:e,modifier:t})},{name:"attrValue",symbols:["idn","__","attrModifier"],postprocess:([e,,t])=>({value:e,modifier:t})},{name:"attrModifier",symbols:[{literal:"i"}],postprocess:()=>"i"},{name:"attrModifier",symbols:[{literal:"I"}],postprocess:()=>"i"},{name:"attrModifier",symbols:[{literal:"s"}],postprocess:()=>"s"},{name:"attrModifier",symbols:[{literal:"S"}],postprocess:()=>"s"},{name:"idSelector",symbols:[o.has("hashToken")?{type:"hashToken"}:hashToken],postprocess:([{value:e}])=>({type:"id",name:e,specificity:[1,0,0]})},{name:"classSelector",symbols:[o.has("fullstop")?{type:"fullstop"}:fullstop,"idn"],postprocess:([,e])=>({type:"class",name:e,specificity:[0,1,0]})},{name:"tagSelector",symbols:["wqname"],postprocess:([e])=>({type:"tag",name:e.name,namespace:e.namespace,specificity:[0,0,1]})},{name:"uniSelector",symbols:[o.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:()=>({type:"universal",namespace:null,specificity:[0,0,0]})},{name:"uniSelector",symbols:["ns",o.has("asterisk")?{type:"asterisk"}:asterisk],postprocess:([e])=>({type:"universal",namespace:e,specificity:[0,0,0]})},{name:"wqname",symbols:["idn"],postprocess:([e])=>({name:e,namespace:null})},{name:"wqname",symbols:["ns","idn"],postprocess:([e,t])=>({name:t,namespace:e})},{name:"ns",symbols:[o.has("vbar")?{type:"vbar"}:vbar],postprocess:()=>""},{name:"ns",symbols:["idn",o.has("vbar")?{type:"vbar"}:vbar],postprocess:i},{name:"str",symbols:[o.has("str1")?{type:"str1"}:str1],postprocess:s},{name:"str",symbols:[o.has("str2")?{type:"str2"}:str2],postprocess:s},{name:"idn",symbols:[o.has("idn")?{type:"idn"}:idn],postprocess:s},{name:"_$ebnf$1",symbols:[o.has("ws")?{type:"ws"}:ws],postprocess:i},{name:"_$ebnf$1",symbols:[],postprocess:()=>null},{name:"_",symbols:["_$ebnf$1"],postprocess:()=>null},{name:"__",symbols:[o.has("ws")?{type:"ws"}:ws],postprocess:()=>null}],ParserStart:"main"};var c=Object.freeze({__proto__:null});let d={...u,ParserStart:"mainNoList"};function h(e,t){let n=new r.Parser(r.Grammar.fromCompiled(e));if(n.feed(t),0===n.results.length)throw Error("Failed to parse - input string might be incomplete.");return n.results[0]}function p(e){if(!e.type)throw Error("This is not an AST node.");switch(e.type){case"universal":return f(e.namespace)+"*";case"tag":return f(e.namespace)+e.name;case"class":return"."+e.name;case"id":return"#"+e.name;case"attrPresence":return`[${f(e.namespace)}${e.name}]`;case"attrValue":var t;return`[${f(e.namespace)}${e.name}${e.matcher}${-1===(t=e.value).indexOf('"')?`"${t}"`:-1===t.indexOf("'")?`'${t}'`:`"${t.replace('"','\\"')}"`}${e.modifier?e.modifier:""}]`;
2681case"combinator":return p(e.left)+e.combinator;case"compound":return e.list.reduce((e,t)=>"combinator"===t.type?p(t)+e:e+p(t),"");case"list":return e.list.map(p).join(",")}}function f(e){return e||""===e?e+"|":""}function m(e){switch(e.type){case"universal":case"tag":return[1];case"id":return[2];case"class":return[3,e.name];case"attrPresence":return[4,p(e)];case"attrValue":return[5,p(e)];case"combinator":return[15,p(e)]}}function g(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw Error("Arguments must be arrays.");let n=e.length<t.length?e.length:t.length;for(let r=0;r<n;r++)if(e[r]!==t[r])return e[r]<t[r]?-1:1;return e.length-t.length}t.Ast=c,t.compareSelectors=function(e,t){return g(e.specificity,t.specificity)},t.compareSpecificity=function(e,t){return g(e,t)},t.normalize=function e(t){if(!t.type)throw Error("This is not an AST node.");switch(t.type){case"compound":t.list.forEach(e),t.list.sort((e,t)=>g(m(e),m(t)));break;case"combinator":e(t.left);break;case"list":t.list.forEach(e),t.list.sort((e,t)=>p(e)<p(t)?-1:1)}return t},t.parse=function(e){return h(u,e)},t.parse1=function(e){return h(d,e)},t.serialize=p},58528:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},58585:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(28035),o=n(31341);function s(e){let t,{register:n,required:s,label:a}=e;if(n){e={...e,...n};let{name:r}=n;r&&(t=r)}else t=e.name;let l=["CheckboxWithLabel",t,"true"].filter(e=>e).join("-");return(0,r.jsx)(i.A,{field:(0,r.jsx)("input",{type:"checkbox",...e,id:l}),label:(0,r.jsxs)("label",{htmlFor:l,children:[a,s?(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(o.A,{})]}):null]}),"data-sentry-element":"FieldOptionLayout","data-sentry-component":"CheckboxWithLabel2","data-sentry-source-file":"CheckBoxWithLabel2.tsx"})}},58873:(e,t,n)=>{"use strict";n.d(t,{X:()=>a,l:()=>s});var r=n(35885),i=n(8345),o=n(21993);function s(){let{jwtStore:e}=(0,r.U)();return e?.memberJwt||null}function a(){let e=(0,i.A)([o.x5])[2];return()=>e(o.x5,{path:"/"})}},59059:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},59447:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return a}});let r=n(72687),i=n(61925),o=n(14741),s=r._(n(52795));function a(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=o.Image},59884:(e,t,n)=>{"use strict";n.d(t,{CL:()=>h,PC:()=>c});var r=n(14232),i=n(98477),o=n(83660),s=n(85858),a=n(41612),l=n(47980);let u=(0,r.createContext)(null);function c(e){let[t,n]=(0,r.useState)(null);return r.createElement(u.Provider,{value:{target:t}},e.children,r.createElement(l.j,{features:l.u.Hidden,ref:n}))}function d({children:e}){let t=(0,r.useContext)(u);if(!t)return r.createElement(r.Fragment,null,e);let{target:n}=t;return n?(0,i.createPortal)(r.createElement(r.Fragment,null,e),n):null}function h({data:e,form:t,disabled:n,onReset:i,overrides:u}){let[c,h]=(0,r.useState)(null),f=(0,o.L)();return(0,r.useEffect)(()=>{if(i&&c)return f.addEventListener(c,"reset",i)},[c,t,i]),r.createElement(d,null,r.createElement(p,{setForm:h,formId:t}),(0,s.h)(e).map(([e,i])=>r.createElement(l.j,{features:l.u.Hidden,...(0,a.oE)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:i,...u})})))}function p({setForm:e,formId:t}){return(0,r.useEffect)(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:r.createElement(l.j,{features:l.u.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}},60530:(e,t,n)=>{"use strict";n.d(t,{M:()=>W,A:()=>U});var r=n(37876),i=n(73382),o=n(37483),s=n(49995);let a=[i.nz.Text,i.nz.PublicEventsList,i.nz.TwoColumns],l=[i.nz.TwoColumns],u=function(e){let{c
2681ontentItem:t}=e,n=l.includes(t.type)?void 0:(0,i.nF)(t.styles),u=a.includes(t.type)?"px-4 md:px-4":void 0;return(0,r.jsx)(o.A,{contentItem:t,className:(0,s.A)(n,u),"data-sentry-element":"ContentItem","data-sentry-component":"PageMainChild","data-sentry-source-file":"PageMainChild.tsx"})};var c=n(64628),d=n(6884),h=n(14232),p=n(88992),f=n(42383),m=n(99410),g=n(24809),y=n(54442),v=n(12089),b=n(88129),x=n(82037),_=n(33881),w=n(63945),k=n(34728),C=n(19857),E=n(77052),A=n(47027),S=n(10969),T=n(72569);let j=[{value:i.Kz.None,label:"None"},{value:i.Kz.Small,label:"Small"},{value:i.Kz.Medium,label:"Medium"},{value:i.Kz.Large,label:"Large"}];function N(e){let{legend:t,name:n,onChange:o,value:a}=e,l=(0,S.CI)((0,T.Eh)());return(0,r.jsxs)("fieldset",{"data-sentry-component":"SpacingField","data-sentry-source-file":"SpacingField.tsx",children:[(0,r.jsx)("legend",{className:"font-medium mb-2",children:t}),(0,r.jsx)("div",{className:"flex flex-col gap-2",children:j.map(e=>(0,r.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer",children:[(0,r.jsx)("input",{type:"radio",name:n,value:e.value,checked:a===e.value,onChange:()=>o(e.value)}),(0,r.jsx)("span",{className:"w-24",children:e.label}),(0,r.jsx)("span",{className:(0,s.A)("text-sm",l.cardMutedTextColor),children:i.YX[e.value]})]},e.value))})]})}let O=[{value:i.kY.PageBackground,label:"Page background"},{value:i.kY.PageText,label:"Page text"},{value:i.kY.Accent,label:"Accent"},{value:i.kY.Button,label:"Button"}
2681];function I(e){let{onChange:t,value:n}=e;return(0,r.jsxs)("div",{className:"space-y-6","data-sentry-component":"OverlayField","data-sentry-source-file":"OverlayField.tsx",children:[(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("legend",{className:"font-medium mb-2",children:"Overlay color"}),(0,r.jsx)("div",{className:"flex flex-col gap-2",children:O.map(e=>(0,r.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer",children:[(0,r.jsx)("input",{type:"radio",name:"overlay-color",value:e.value,checked:n.color===e.value,onChange:()=>t({...n,color:e.value})}),(0,r.jsx)("span",{className:"w-5 h-5 rounded border border-[var(--group-primary-card-border-color)]",style:{backgroundColor:i.Ao[e.value]}}),(0,r.jsx)("span",{children:e.label})]},e.value))})]}),(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("legend",{className:"font-medium mb-2",children:"Overlay strength"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-4",children:i.Fg.map(e=>(0,r.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,r.jsx)("input",{type:"radio",name:"overlay-alpha",value:e,checked:n.alpha===e,onChange:()=>t({...n,alpha:e})}),(0,r.jsxs)("span",{children:[Math.round(100*Number(e)),"%"]})]},e))})]})]})}var D=n(52095),M=n(87782),L=n(38537),R=n(70544),P=n(85819),F=n(6195),B=n(5811),$=n(31695),q=n(99082),V=function(e){return e.Elements="elements",e.Spacing="spacing",e.Background="background",e}(V||{});let z=(0,B.PA)(function(e){let t=(0,L.MM)(),{cursor:n,refresh:o}=(0,R.f)(),[s,a]=(0,P.X)(F.xu),[l,u]=(0,h.useState)(!1),[c,S]=(0,h.useState)(null),j=(0,h.useRef)("elements"),[O,B]=(0,h.useState)("elements"),V=(0,p.mN)({defaultValues:{spaceAbove:i.Kz.Medium,spaceBelow:i.Kz.Medium,children:[],backgroundImageUrl:"",backgroundImageId:"",hasOverlay:!1,overlay:(0,i.J0)([])}}),z=(0,$.X)({form:V,formToParams:function(e){if("spacing"===j.current){let t=(0,i.PM)(U?.styles??[],{above:e.spaceAbove,below:e.spaceBelow});return{type:i.nz.Main,styles:t}}return"background"===j.current?{type:i.nz.Main,children:[...function(e){let t={type:i.nz.Main,...e};return(0,d.uk)(t).map((e,t)=>(0,M.W9)(e,t).params)}(U),...function(e,t){let n={type:i.nz.Main,...t},r=(0,d.Ke)(n,i.iU.BackgroundImage),o=(0,d.Ke)(n,i.iU.Overlay);return[...e.backgroundImageId?[{...r?{id:r.id}:{},type:i.nz.Image,purpose:i.iU.BackgroundImage,photoId:e.backgroundImageId}]:[],...e.hasOverlay?[{...o?{id:o.id}:{},type:i.nz.Overlay,purpose:i.iU.Overlay,styles:(0,i.vR)(o?.styles??[],e.overlay)}]:[]]}(e,U)]}:{type:i.nz.Main,children:[...e.children.map(e=>e.params),...function(e){let t={type:i.nz.Main,...e};return[i.iU.BackgroundImage,i.iU.Overlay].flatMap(e=>{let n=(0,d.Ke)(t,e);return n?[{id:n.id,type:n.type,purpose:e}]:[]})}(U)]}},populateForm:function(e){let t=(0,d.uk)(e).map(M.W9),n=(0,d.Ke)(e,i.iU.BackgroundImage),r=(0,d.Ke)(e,i.iU.Overlay),o=(0,i.No)(e.styles);V.reset({spaceAbove:o.above,spaceBelow:o.below,children:t,backgroundImageUrl:n?.photo?.url||"",backgroundImageId:n?.photoId||"",hasOverlay:!!r,overlay:(0,i.J0)(r?.styles??[])})},onClose:e.onClose}),{contentItem:U,handleSubmit:H,loading:W,save:G}=z;function K(e){j.current=e,B(e)}function J(){return K("elements"),G()}function Q(e){return t=>(K(e),H(t))}let Y=(0,M.UT)(i.nz.Main,(0,i.dW)(n?.path,U)),X=(0,m.A)({onReorder:function(e){V.setValue("children",(0,M.Hp)(V.watch("children"),e),{shouldDirty:!0})},onInsert:function(e,t){let n=Y.find(t=>t.key===e);n&&eo(n,t)}}),{isDirty:Z}=V.formState,ee=l||W;async function et(e){let t=V.watch("children").findIndex(t=>t.id===e.id);if(-1===t||Z&&!await J())return null;let n=V.watch("children")[t];return!n||n.id.startsWith(M.xh)?null:n}async function en(e){if(!t||!U)return;let r=await et(e);r&&t.open(r.id,{path:[...n?.path??[],(0,i.bN)(U)]})}async function er(e){let t=await et(e);if(t){u(!0);try{let e=await s({variables:{input:{sourceId:t.id}}},"cloneChildContentItem");if(e.hasError||!e.data)return;(function(e,t){let n=(0,M.WH)(V.watch("children"),e.id,(0,M.W9)(t,0));n&&V.setValue("children",n,{shouldDirty:!0})})(t,e.data),await o()}catch{return}finally{u(!1)}}}async function ei(e){let t=(0,M.HF)(e)?i.Hi.Draft:i.Hi.Published,n=V.watch("children"),r=n.map(n=>n.id===e.id?{...n,params:{...n.params,status:t}}:n);V.setValue("children",r,{shouldDirty:!0}),await J()||V.setValue("children",n,{shouldDirty:!0})}function eo(e,t){if(ee)return;let n=V.watch("children"),r=(0,M.zj)(e,i.nz.Main,n);V.setValue("children",(0,M.RU)(n,r,t),{shouldDirty:!0})}function es(e){eo(e,V.watch("children").length)}function ea(e){let t=(0,M.HF)(e);return[{label:t?"Unpublish element":"Publish element",icon:t?g.A:y.A,handleClick:()=>ei(e),disabled:ee},{label:"Clone element",icon:v.A,handleClick:()=>er(e),disabled:ee},{label:"Delete element",icon:b.A,handleClick:()=>{S(e)},danger:!0,disabled:ee}]}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-4 mb-6",children:[(0,r.jsx)(k.A,{title:"Spacing","data-sentry-element":"EditorOptionsSection","data-sentry-source-file":"PageMainEdit.tsx",children:(0,r.jsxs)("form",{onSubmit:Q("spacing"),className:"space-y-6","data-sentry-component":"renderSpacing","data-sentry-source-file":"PageMainEdit.tsx",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(A.A,{backgroundType:T.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"PageMainEdit.tsx",children:"Set the space above and below the main section's content."}),(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsx)(N,{legend:"Space above",name:"space-above",value:V.watch("spaceAbove"),onChange:e=>V.setValue("spaceAbove",e,{shouldDirty:!0}),"data-sentry-element":"SpacingField","data-sentry-source-file":"PageMainEdit.tsx"}),(0,r.jsx)(N,{legend:"Space below",name:"space-below",value:V.watch("spaceBelow"),onChange:e=>V.setValue("spaceBelow",e,{shouldDirty:!0}),"data-sentry-element":"SpacingField","data-sentry-source-file":"PageMainEdit.tsx"})]})]}),"spacing"===O&&(0,r.jsx)(q.D,{usingContentEdit:z,successMessage:"Spacing saved"}),(0,r.jsx)("div",{className:"flex justify-end pt-4 border-t",children:(0,r.jsx)(f.rA,{type:"submit",className:"px-6","data-sentry-element":"ActionButton","data-sentry-source-file":"PageMainEdit.tsx",children:"Save Spacing"})})]})}
2681),(0,r.jsx)(k.A,{title:"Background","data-sentry-element":"EditorOptionsSection","data-sentry-source-file":"PageMainEdit.tsx",children:(0,r.jsxs)("form",{onSubmit:Q("background"),className:"space-y-6","data-sentry-component":"renderBackground","data-sentry-source-file":"PageMainEdit.tsx",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-medium mb-3",children:"Background image"}),(0,r.jsx)(A.A,{backgroundType:T.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"PageMainEdit.tsx",children:"An image drawn behind the main section's content, across its full width."}),(0,r.jsx)(D.A,{form:V,name:"backgroundImageUrl",idName:"backgroundImageId","data-sentry-element":"ImageField","data-sentry-source-file":"PageMainEdit.tsx"}),V.watch("backgroundImageId")&&(0,r.jsx)(x.tA,{onClick:function(){V.setValue("backgroundImageUrl","",{shouldDirty:!0}),V.setValue("backgroundImageId","",{shouldDirty:!0})},children:"Remove background image"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-medium mb-3",children:"Overlay"}),(0,r.jsx)(A.A,{backgroundType:T.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"PageMainEdit.tsx",children:"A tint of one of the group's colors, drawn over the background image and under the content."}),(0,r.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer mb-4",children:[(0,r.jsx)("input",{type:"checkbox",name:"has-overlay",checked:V.watch("hasOverlay"),onChange:e=>V.setValue("hasOverlay",e.target.checked,{shouldDirty:!0})}),(0,r.jsx)("span",{children:"Tint the background"})]}),V.watch("hasOverlay")&&(0,r.jsx)(I,{value:V.watch("overlay"),onChange:e=>V.setValue("overlay",e,{shouldDirty:!0})})]}),"background"===O&&(0,r.jsx)(q.D,{usingContentEdit:z,successMessage:"Background saved"}),(0,r.jsx)("div",{className:"flex justify-end pt-4 border-t",children:(0,r.jsx)(f.rA,{type:"submit",className:"px-6",disabled:ee,"data-sentry-element":"ActionButton","data-sentry-source-file":"PageMainEdit.tsx",children:"Save Backgroun
2681d"})})]})})]}),(()=>{let e=V.watch("children");return(0,r.jsxs)("form",{onSubmit:Q("elements"),className:"space-y-6","data-sentry-component":"renderElements","data-sentry-source-file":"PageMainEdit.tsx",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-medium mb-3",children:"Main Section Elements"}),(0,r.jsx)(E.A,{busy:ee,elements:e,emptyMessage:"No elements added yet. Add elements from the library below.",listId:"child-elements-list",menuItems:ea,onOpen:en,sortable:X,"data-sentry-element":"ElementList","data-sentry-source-file":"PageMainEdit.tsx"})]}),(0,r.jsx)(C.A,{busy:ee,elements:Y,help:"Tap an element to add it to the end of the main section, or drag it by the + into the list above.",onAdd:es,sortable:X,"data-sentry-element":"ElementLibrary","data-sentry-source-file":"PageMainEdit.tsx"}),(0,r.jsx)(_.A,{mutationInfo:a,"data-sentry-element":"AshMutationErrors","data-sentry-source-file":"PageMainEdit.tsx"}),"elements"===O&&(0,r.jsx)(q.D,{usingContentEdit:z,successMessage:"Main section details saved"}),(0,r.jsx)("div",{className:"flex justify-end pt-4 border-t",children:(0,r.jsx)(f.rA,{type:"submit",className:"px-6",disabled:ee,"data-sentry-element":"ActionButton","data-sentry-source-file":"PageMainEdit.tsx",children:"Save Elements"})})]})})(),(0,r.jsx)(w.A,{deleting:!!c,onClose:()=>S(null),onDelete:function(){if(!c)return;let e=(0,M.Nz)(V.watch("children"),c.id);V.setValue("children",e,{shouldDirty:!0}),S(null)},prompt:`Are you sure you want to remove "${c?.name}" from the main section?`,"data-sentry-element":"ConfirmDelete","data-sentry-source-file":"PageMainEdit.tsx"})]})});function U(e){let{contentItem:t}=e,n=(0,i.bm)((0,i.No)(t.styles)),o=(0,d.Ke)(t,i.iU.BackgroundImage),a=(0,d.Ke)(t,i.iU.Overlay);return(0,r.jsxs)("main",{className:(0,s.A)("content-item-main relative",S.Ay.mainColors,t?.id&&`content-item-${t.id}`),"data-sentry-component":"PageMain","data-sentry-source-file":"PageMain.tsx",children:[o?.photo?.url&&(0,r.jsx)("div",{"aria-hidden":!0,className:"container-background absolute inset-0",style:(0,i.D0)(o)}),a&&(0,r.jsx)(H,{overlay:a}),(0,r.jsx)("div",{style:n,className:"container-content main-inner relative pt-[var(--space-above)] pb-[var(--space-below)]",children:(0,r.jsx)(c.Ay,{contentItem:t,"data-sentry-element":"ContentPathProvider","data-sentry-source-file":"PageMain.tsx",children:(0,d.uk)(t).map(e=>(0,r.jsx)(u,{contentItem:e},e.id))})})]})}function H(e){let{color:t,alpha:n}=(0,i.J0)(e.overlay.styles);return(0,r.jsx)("div",{"aria-hidden":!0,className:"container-overlay absolute inset-0 bg-[var(--overlay-color)]",style:{"--overlay-color":i.Ao[t],opacity:n},"data-sentry-component":"ContainerOverlay","data-sentry-source-file":"PageMain.tsx"})}let W={wrapWithEditable:!1,component:U,type:i.nz.Main,editComponent:z,editLabel:"Main Section",containerOpts:{as:"main"}}},60711:(e,t,n)=>{"use strict";n.d(t,{$C:()=>s,Kj:()=>u,LC:()=>a,cP:()=>o,f3:()=>l});var r=n(15584),i=n.n(r);function o(e){return .2126*e[0]+.7152*e[1]+.0722*e[2]<140}function s(e){return[(e=e.replace("#","")).slice(0,2),e.slice(2,4),e.slice(4,6)].map(e=>Number(`0x${e}`))}function a(e,t){let n=e.red(),r=e.green(),o=e.blue();function s(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}let a=s(n/255),l=s(r/255),u=s(o/255),c=.2126*a+.7152*l+.0722*u,d=c>0?t/c:0;function h(e){return Math.max(0,Math.min(1,e))}let p=h(a*d),f=h(l*d),m=h(u*d);function g(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055}let y=h(g(p)),v=h(g(f)),b=h(g(m));return i()({r:Math.round(255*y),g:Math.round(255*v),b:Math.round(255*b),alpha:e.alpha()})}function l(e,t){let n=a(t,.5),r=e.isDark()?.3:.15;return e.mix(n,r)}function u(e,t){let n=a(t,.5),r=e.isDark()?.8:.4;return e.mix(n,r)}},61388:(e,t,n)=>{let r=n(94410),i=["I","X","C","M"],o=["V","L","D"],s=(e,t,n)=>[...t];e.exports={get:function(e,t){for(let n of t){if(!e)return;e=e[n]}return e},limitedDepthRecursive:function e(t,n,r=()=>void 0){if(void 0===t){let e=function(...t){return n(e,...t)};return e}return t>=0?function(...i){return n(e(t-1,n,r),...i)}:r},mergeDuplicatesPreferLast:function(e,t){let n=new Map;for(let i=e.length;i-- >0;){let o=e[i],a=t(o);n.set(a,n.has(a)?r(o,n.get(a),{arrayMerge:s}):o)}return[...n.values()].reverse()},numberToLetterSequence:function(e,t="a",n=26){let r=[];do r.push((e-=1)%n),e=e/n|0;while(e>0);let i=t.charCodeAt(0);return r.reverse().map(e=>String.fromCharCode(i+e)).join("")},numberToRoman:function(e){return[...e+""].map(e=>+e).reverse().map((e,t)=>e%5<4?(e<5?"":o[t])+i[t].repeat(e%5):i[t]+(e<5?o[t]:i[t+1])).reverse().join("")},splitClassesAndIds:function(e){let t=[],n=[];for(let r of e)r.startsWith(".")?t.push(r.substring(1)):r.startsWith("#")&&n.push(r.substring(1));return{classes:t,ids:n}},trimCharacter:function(e,t){let n=0,r=e.length;for(;n<r&&e[n]===t;)++n;for(;r>n&&e[r-1]===t;)--r;return n>0||r<e.length?e.substring(n,r):e}}},61745:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(49995),o=n(10969),s=n(72569);let a=n(14232).forwardRef((e,t)=>
2681{let{autoFocus:n,inputRef:a,className:l,register:u,size:c="medium",themeArea:d,type:h,value:p,widthClass:f="w-full",...m}=e,g=(0,s.jz)(d);u&&(m={...m,...u}),void 0!==p&&(m={...m,value:p||""}),void 0!==a?m={...m,ref:a}:t&&(m={...m,ref:t});let y=(0,o.SJ)(g);return"small"===c&&(y=y.replace("form-component","")+" rounded-lg w-full p-2"),(0,r.jsx)("input",{autoFocus:n,className:(0,i.A)(y,f,l),type:h||"text",...m})})},61925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),n(88912);let r=n(16806),i=n(50946),o=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var n,l;let u,c,d,{src:h,sizes:p,unoptimized:f=!1,priority:m=!1,loading:g,className:y,quality:v,width:b,height:x,fill:_=!1,style:w,overrideSrc:k,onLoad:C,onLoadingComplete:E,placeholder:A="empty",blurDataURL:S,fetchPriority:T,decoding:j="async",layout:N,objectFit:O,objectPosition:I,lazyBoundary:D,lazyRoot:M,...L}=e,{imgConf:R,showAltText:P,blurComplete:F,defaultLoader:B}=t,$=R||i.imageConfigDefault;if("allSizes"in $)u=$;else{let e=[...$.deviceSizes,...$.imageSizes].sort((e,t)=>e-t),t=$.deviceSizes.sort((e,t)=>e-t),r=null==(n=$.qualities)?void 0:n.sort((e,t)=>e-t);u={...$,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===B)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let q=L.loader||B;delete L.loader,delete L.srcSet;let V="__next_img_default"in q;if(V){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=q;q=t=>{let{config:n,...r}=t;return e(r)}}if(N){"fill"===N&&(_=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[N];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[N];t&&!p&&(p=t)}let z="",U=a(b),H=a(x);if((l=h)&&"object"==typeof l&&(s(l)||void 0!==l.src)){let e=s(h)?h.default:h;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(c=e.blurWidth,d=e.blurHeight,S=S||e.blurDataURL,z=e.src,!_)if(U||H){if(U&&!H){let t=U/e.width;H=Math.round(e.height*t)}else if(!U&&H){let t=H/e.height;U=Math.round(e.width*t)}}else U=e.width,H=e.height}let W=!m&&("lazy"===g||void 0===g);(!(h="string"==typeof h?h:z)||h.startsWith("data:")||h.startsWith("blob:"))&&(f=!0,W=!1),u.unoptimized&&(f=!0),V&&!u.dangerouslyAllowSVG&&h.split("?",1)[0].endsWith(".svg")&&(f=!0);let G=a(v),K=Object.assign(_?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:I}:{},P?{}:{color:"transparent"},w),J=F||"empty"===A?null:"blur"===A?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:U,heightInt:H,blurWidth:c,blurHeight:d,blurDataURL:S||"",objectFit:K.objectFit})+'")':'url("'+A+'")',Q=o.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,Y=J?{backgroundSize:Q,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:J}:{},X=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:s,loader:a}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,s),c=l.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:l.map((e,r)=>a({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:a({config:t,src:n,quality:o,width:l[c]})}}({config:u,src:h,unoptimized:f,width:U,quality:G,sizes:p,loader:q});return{props:{...L,loading:W?"lazy":g,fetchPriority:T,width:U,height:H,decoding:j,className:y,style:{...K,...Y},sizes:X.sizes,srcSet:X.srcSet,src:k||X.src},meta:{unoptimized:f,priority:m,placeholder:A,fill:_}}}},62083:function(e,t,n){"use strict";var r,i,o=this&&this.__importDefault||function(e){return e&&e.__esMo
2681dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var s=c(o(n(94510)).default),a=d(s);t.encodeXML=g(s);var l=c(o(n(90524)).default),u=d(l);function c(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function d(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];1===o.length?t.push("\\"+o):n.push(o)}t.sort();for(var s=0;s<t.length-1;s++){for(var a=s;a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1);)a+=1;var l=1+a-s;l<3||t.splice(s,l,t[s]+"-"+t[a])}return n.unshift("["+t.join("")+"]"),RegExp(n.join("|"),"g")}r=l,i=u,t.encodeHTML=function(e){return e.replace(i,function(e){return r[e]}).replace(h,f)},t.encodeNonAsciiHTML=g(l);var h=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,p=null!=String.prototype.codePointAt?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function f(e){return"&#x"+(e.length>1?p(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}var m=RegExp(a.source+"|"+h.source,"g");function g(e){return function(t){return t.replace(m,function(t){return e[t]||f(t)})}}t.escape=function(e){return e.replace(m,f)},t.escapeUTF8=function(e){return e.replace(a,f)}},62086:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"48px",height:"48px",style:n,className:t,title:"Grip handle",...{},"data-sentry-element":"svg","data-sentry-component":"GripIcon","data-sentry-source-file":"GripIcon.tsx",children:(0,r.jsx)("path",{d:"M 14.5 4 C 12.585045 4 11 5.5850452 11 7.5 L 11 12.5 C 11 14.414955 12.585045 16 14.5 16 L 19.5 16 C 21.414955 16 23 14.414955 23 12.5 L 23 7.5 C 23 5.5850452 21.414955 4 19.5 4 L 14.5 4 z M 28.5 4 C 26.585045 4 25 5.5850452 25 7.5 L 25 12.5 C 25 14.414955 26.585045 16 28.5 16 L 33.5 16 C 35.414955 16 37 14.414955 37 12.5 L 37 7.5 C 37 5.5850452 35.414955 4 33.5 4 L 28.5 4 z M 14.5 7 L 19.5 7 C 19.795045 7 20 7.2049548 20 7.5 L 20 12.5 C 20 12.795045 19.795045 13 19.5 13 L 14.5 13 C 14.204955 13 14 12.795045 14 12.5 L 14 7.5 C 14 7.2049548 14.204955 7 14.5 7 z M 28.5 7 L 33.5 7 C 33.795045 7 34 7.2049548 34 7.5 L 34 12.5 C 34 12.795045 33.795045 13 33.5 13 L 28.5 13 C 28.204955 13 28 12.795045 28 12.5 L 28 7.5 C 28 7.2049548 28.204955 7 28.5 7 z M 14.5 18 C 12.585045 18 11 19.585045 11 21.5 L 11 26.5 C 11 28.414955 12.585045 30 14.5 30 L 19.5 30 C 21.414955 30 23 28.414955 23 26.5 L 23 21.5 C 23 19.585045 21.414955 18 19.5 18 L 14.5 18 z M 28.5 18 C 26.585045 18 25 19.585045 25 21.5 L 25 26.5 C 25 28.414955 26.585045 30 28.5 30 L 33.5 30 C 35.414955 30 37 28.414955 37 26.5 L 37 21.5 C 37 19.585045 35.414955 18 33.5 18 L 28.5 18 z M 14.5 21 L 19.5 21 C 19.795045 21 20 21.204955 20 21.5 L 20 26.5 C 20 26.795045 19.795045 27 19.5 27 L 14.5 27 C 14.204955 27 14 26.795045 14 26.5 L 14 21.5 C 14 21.204955 14.204955 21 14.5 21 z M 28.5 21 L 33.5 21 C 33.795045 21 34 21.204955 34 21.5 L 34 26.5 C 34 26.795045 33.795045 27 33.5 27 L 28.5 27 C 28.204955 27 28 26.795045 28 26.5 L 28 21.5 C 28 21.204955 28.204955 21 28.5 21 z M 14.5 32 C 12.585045 32 11 33.585045 11 35.5 L 11 40.5 C 11 42.414955 12.585045 44 14.5 44 L 19.5 44 C 21.414955 44 23 42.414955 23 40.5 L 23 35.5 C 23 33.585045 21.414955 32 19.5 32 L 14.5 32 z M 28.5 32 C 26.585045 32 25 33.585045 25 35.5 L 25 40.5 C 25 42.414955 26.585045 44 28.5 44 L 33.5 44 C 35.414955 44 37 42.414955 37 40.5 L 37 35.5 C 37 33.585045 35.414955 32 33.5 32 L 28.5 32 z M 14.5 35 L 19.5 35 C 19.795045 35 20 35.204955 20 35.5 L 20 40.5 C 20 40.795045 19.795045 41 19.5 41 L 14.5 41 C 14.204955 41 14 40.795045 14 40.5 L 14 35.5 C 14 35.204955 14.204955 35 14.5 35 z M 28.5 35 L 33.5 35 C 33.795045 35 34 35.204955 34 35.5 L 34 40.5 C 34 40.795045 33.795045 41 33.5 41 L 28.5 41 C 28.204955 41 28 40.795045 28 40.5 L 28 35.5 C 28 35.204955 28.204955 35 28.5 35 z","data-sentry-element":"path","data-sentry-source-file":"GripIcon.tsx"})})}},62195:(e,t,n)=>{"use strict";n.d(t,{w:()=>b,J:()=>x});var r=n(69460),i=n(67544),o=n(19618),s=n(28429),a=n(98143),l=n(45460),u=n(37876),c=n(49995),d=n(72954),h=n(65416),p=n(73382),f=n(5811),m=n(17261);let g=(0,f.PA)(function(e){let{className:t,postSlug:n}=e,{getPostListBySlug:r}=(0,h.j6)(),i=n?r(n):void 0;return(0,u.jsx)(d.A,{editById:i?{id:i?.id,webComponentName:"SocialLinks"}:void 0,editBySlug:n&&!i?{slug:n,type:p.nz.Post,webComponentName:"SocialLinks"}
2681:void 0,className:(0,c.A)(t,"social-links-content"),componentType:"ul","data-sentry-element":"EditableSection","data-sentry-component":"SocialLinks","data-sentry-source-file":"SocialLinks.tsx",children:(0,u.jsx)(m.A,{postSlug:n,"data-sentry-element":"InnerSocialLinks","data-sentry-source-file":"SocialLinks.tsx"})})});var y=n(85016),v=n(80016);let b=[{name:"Button",component:r.$n},{name:"ContentItem",component:r.Pd,attributes:y.q},{name:"ContentSnippet",component:r.Vl,attributes:i.aG,contentSchema:i.Wk},{name:"GroupCopyright",component:r.nf},{name:"GroupFlowTag",component:r.Oc},{name:"Hero",component:r.lq,attributes:o.pH,contentSchema:o.Jd},{name:"Image",component:r._V,attributes:s.WX,contentSchema:s._1},{name:"Link",component:r.N_},{name:"Logo",component:r.gu,attributes:a._l},{name:"MarketingCards",component:r.O7,attributes:l.p},{name:"MembersHeader",component:r.Xn},{name:"Navigation",component:r.Vx},{name:"PageContent",component:r.TK},{name:"PageContentSimplified",component:r.v7,attributes:v.p},{name:"PageQuote",component:r.Wv},{name:"PrimaryNavigation",component:r.pP},{name:"SocialLinks",component:g,attributes:[{key:"postSlug",type:"string"}],contentSchema:{isParentEditable:!1,items:[{purpose:"instagram",title:"Instagram Link",type:"text"},{purpose:"facebook",title:"Facebook Link",type:"text"},{purpose:"bluesky",title:"Bluesky Link",type:"text"},{purpose:"discord",title:"Discord Link",type:"text"},{purpose:"x-twitter",title:"X-Twitter Link",type:"text"},{purpose:"fetlife",title:"FetLife Link",type:"text"}]}},{name:"WelcomeBackPopUp",component:r.M6}];function x(){return{presets:b.reduce((e,t)=>({...e,[t.name]:t.component}),{})}}},62212:()=>{},62307:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(73915);function i(e){return r._.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},62584:(e,t,n)=>{"use strict";n.d(t,{k:()=>i,w:()=>o});var r=n(94674);let i=async(e,t)=>{let n=t.timestamp||new Date().toISOString();t={...t,timestamp:n};let i=e.baseUrl+"/interactions";try{await (0,r.YO)(i,{headers:(0,r.co)(e),method:"POST",body:JSON.stringify(t),keepalive:!0})}catch(e){}},o=async(e,t)=>{let n={type:"funnel",...t,timestamp:new Date().toISOString()},i=e.baseUrl+"/interactions";try{await (0,r.YO)(i,{headers:(0,r.co)(e),method:"POST",body:JSON.stringify(n),keepalive:!0})}catch(e){}}},62757:(e,t,n)=>{"use strict";n.d(t,{$t:()=>a,$u:()=>b,EW:()=>v,F2:()=>y,Go:()=>p,O_:()=>f,Pg:()=>u,RS:()=>i,WZ:()=>_,YE:()=>g,YF:()=>l,cX:()=>h,gR:()=>o,jo:()=>x,nr:()=>c,tZ:()=>m,uo:()=>s});var r=n(84974);function i(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function o(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function s(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function a(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function l(e){return 0===e.mozInputSource&&!!e.isTrusted||(d()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function u(e){return!a().includes("jsdom/")&&(!d()&&0===e.width&&0===e.height||d()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function c(){return/apple/i.test(navigator.vendor)}function d(){let e=/android/i;return e.test(s())||e.test(a())}function h(){return s().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function p(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function f(e){return"nativeEvent"in e}function m(e){return e.matches("html,body")}function g(e){return(null==e?void 0:e.ownerDocument)||document}function y(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function v(e){return"composedPath"in e?e.composedPath()[0]:e.target}function b(e){return(0,r.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function x(e){e.preventDefault(),e.stopPropagation()}function _(e){return!!e&&"combobox"===e.getAttribute("role")&&b(e)}},63009:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(14766),o=n(49995),s=n(10969);function a({className:e,...t}){let n=(0,s.Qe)();return(0,r.jsx)(i.c,{className:(0,o.A)(n,"data-[closed]:scale-95 data-[closed]:opacity-0 data-[enter]:duration-100 data-[enter]:ease-out data-[leave]:duration-75 data-[leave]:ease-in",e),...t,"data-sentry-element":"MenuItems","data-sentry-component":"StyledMenuItems","data-sentry-source-file":"StyledMenuItems.tsx"})}},63334:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(37876),i=n(72569),o=n(49995),s=n(10969);function a(e){let{className:t,style:n}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"48px",height:"48px",className:t,style:n,title:"Green light",...{},"data-sentry-element":"svg","data-sentry-component":"GreenCircleIcon","data-sentry-source-file":"GreenCircleIcon.tsx",children:[(0,r.jsxs)("defs",{"data-sentry-element":"defs","data-sentry-source-file":"GreenCircleIcon.tsx",children:[(0,r.jsxs)("linearGradient",{id:"3jXOdEohtKfkAeVV9N72va",x1:"-792",x2:"-792",y1:"6",y2:"42",gradientTransform:"translate(816)",gradientUnits:"userSpaceOnUse","data-sentry-element":"linearGradient","data-sentry-source-file":"GreenCircleIcon.tsx",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#87eb78","data-sentry-element":"stop","data-sentry-source-file":"GreenCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#29d112","data-sentry-element":"stop","data-sentry-source-file":"GreenCircleIcon.tsx"})]}),(0,r.jsxs)("radialGradient",{id:"3jXOdEohtKfkAeVV9N72vb",cx:"-792",cy:"24",r:"18",gradientTransform:"translate(816)",gradientUnits:"userSpaceOnUse","data-sentry-element":"radialGradient","data-sentry-source-file":"GreenCircleIcon.tsx",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#7beb6c",stopOpacity:"0","data-sentry-element":"stop","data-sentry-source-file":"GreenCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".4",stopColor:"#7aea6b",stopOpacity:".01","data-sentry-element":"stop","data-sentry-source-file":"GreenCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".544",stopColor:"#76e867",stopOpacity:".048","data-sentry-element":"stop","data-sentry-source-file":"GreenCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".647",stopColor:"#70e560",stopOpacity:".114","data-sentry-element":"stop","data-sentry-source-file":"GreenCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".73",stopColor:"#67df56",stopOpacity:".209","data-sentry-element":"stop","data-sentry-source-file":"GreenCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".801",stopColor:"#5ad84a",stopOpacity:".332","data-sentry-element":"stop","data-sentry-source-file":"GreenCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".864",stopColor:"#4cd03a",stopOpacity:".484","data-sentry-element":"stop","data-sentry-source-file":"GreenCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".921",stopColor:"#3ac628",stopOpacity:".665","data-sentry-element":"stop","data-sentry-source-file":"GreenCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".972",stopColor:"#26ba13",stopOpacity:".868","data-sentry-element":"stop","data-sentry-source-file":"GreenCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#19b305","data-sentry-element":"stop","data-sentry-source-file":"GreenCircleIcon.tsx"})]})]}),(0,r.jsx)("circle",{cx:"24",cy:"24",r:"18",fill:"url(#3jXOdEohtKfkAeVV9N72va)","data-sentry-element":"circle","data-sentry-source-file":"GreenCircleIcon.tsx"}),(0,r.jsx)("circle",{cx:"24",cy:"24",r:"18",fill:"url(#3jXOdEohtKfkAeVV9N72vb)","data-sentry-element":"circle","data-sentry-source-file":"GreenCircleIcon.tsx"})]})}function l(e){let{className:t,style:n}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"48px",height:"48px",className:t,style:n,title:"Yellow light",...{},"data-sentry-element":"svg","data-sentry-component":"YellowCircleIcon","data-sentry-source-file":"YellowCircleIcon.tsx",children:[(0,r.jsxs)("defs",{"data-sentry-element":"defs","data-sentry-source-file":"YellowCircleIcon.tsx",children:[(0,r.jsxs)("linearGradient",{id:"BTODxJqb_kNzKWyYy_kOFa",x1:"-792",x2:"-792",y1:"6",y2:"42",gradientTransform:"translate(816)",gradientUnits:"userSpaceOnUse","data-sentry-element":"linearGradient","data-sentry-source-file":"YellowCircleIcon.tsx",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#fff082","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#e5cd14","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"})]}),(0,r.jsxs)("radialGradient",{id:"BTODxJqb_kNzKWyYy_kOFb",cx:"-792",cy:"24",r:"18",gradientTransform:"translate(816)",gradientUnits:"userSpaceOnUse","data-sentry-element":"radialGradient","data-sentry-source-file":"YellowCircleIcon.tsx",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#ffef75",stopOpacity:"0","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".392",stopColor:"#feee74",stopOpacity:".009","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".533",stopColor:"#fdec70",stopOpacity:".044","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".633",stopColor:"#f9e96a",stopOpacity:".103","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".715",stopColor:"#f4e360",stopOpacity:".188","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".784",stopColor:"#eedc54",stopOpacity:".299","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".846",stopColor:"#e7d445",stopOpacity:".435","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".902",stopColor:"#ddca33",stopOpacity:".598","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".952",stopColor:"#d3bf1e",stopOpacity:".781","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:".997",stopColor:"#c8b207",stopOpacity:".987","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#c7b106","data-sentry-element":"stop","data-sentry-source-file":"YellowCircleIcon.tsx"})]})]}),(0,r.jsx)("circle",{cx:"24",cy:"24",r:"18",fill:"url(#BTODxJqb_kNzKWyYy_kOFa)","data-sentry-element":"circle","data-sentry-source-file":"YellowCircleIcon.tsx"}),(0,r.jsx)("circle",{cx:"24",cy:"24",r:"18",fill:"url(#BTODxJqb_kNzKWyYy_kOFb)","data-sentry-element":"circle","data-sentry-source-file":"YellowCircleIcon.tsx"})]})}var u=n(73382);let c={width:"18px",height:"18px"};function d(e){let t=(0,s.CI)((0,i.Eh)()),n=(0,o.A)("fill-current",t.cardMutedTextColor),{contentItem:d}=e,h=d.status===u.Hi.Published;return(0,r.jsx)("div",{title:h?"Published":"Draft",style:{cursor:"help"},"data-sentry-component":"StatusIcon","data-sentry-source-file":"StatusIcon.tsx",children:(0,r.jsx)(h?a:l,{className:n,style:c,"data-sentry-element":"Cmp","data-sentry-source-file":"StatusIcon.tsx"})})}},63592:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},63686:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,message:n}=e;return(0,r.jsx)("span",{className:`text-spp-red ${t||""}`,"data-sentry-component":"SimpleFieldError","data-sentry-source-file":"SimpleFieldError.tsx",children:n||"Error"})}},63700:(e,t,n)=>{var r=n(64451),i=n(75082),o=n(79364),s=n(28375),a=n(19887),l=n(44577),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var f=1&r;if(p||(p=l),e.size!=t.size&&!f)break;var m=h.get(e);if(m)return m==t;r|=2,h.set(e,t);var g=s(p(e),p(t),r,u,d,h);return h.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},63853:(e,t,n)=>{"use strict";n.d(t,{YQ:()=>i,d7:()=>a});var r=n(14232);function i(e,t,n){var i=this,o=(0,r.useRef)(null),s=(0,r.useRef)(0),a=(0,r.useRef)(null),l=(0,r.useRef)([]),u=(0,r.useRef)(),c=(0,r.useRef)(),d=(0,r.useRef)(e),h=(0,r.useRef)(!0);(0,r.useEffect)(function(){d.current=e},[e]);var p=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var f=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,y=g?Math.max(+n.maxWait||0,t):null;return(0,r.useEffect)(function(){return h.current=!0,function(){h.current=!1}},[]),(0,r.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,s.current=e,c.current=d.current.apply(n,t)},n=function(e,t){p&&cancelAnimationFrame(a.current),a.current=p?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!h.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||g&&e-s.current>=y},v=function(t){return a.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var i=Date.now();if(r(i))return v(i);if(h.current){var a=t-(i-o.current);n(e,g?Math.min(a,y-(i-s.current)):a)}},x=function(){var d=Date.now(),p=r(d);if(l.current=[].slice.call(arguments),u.current=i,o.current=d,p){if(!a.current&&h.current)return s.current=o.current,n(b,t),f?e(o.current):c.current;if(g)return n(b,t),e(o.current)}return a.current||n(b,t),c.current};return x.cancel=function(){a.current&&(p?cancelAnimationFrame(a.current):clearTimeout(a.current)),s.current=0,l.current=o.current=u.current=a.current=null},x.isPending=function(){return!!a.current},x.flush=function(){return a.current?v(Date.now()):c.current},x},[f,g,t,y,m,p])}function o(e,t){return e===t}function s(e){return"function"==typeof e?function(){return e}:e}function a(e,t,n){var a,l,u=n&&n.equalityFn||o,c=(l=(a=(0,r.useState)(s(e)))[1],[a[0],(0,r.useCallback)(function(e){return l(s(e))},[])]),d=c[0],h=c[1],p=i((0,r.useCallback)(function(e){return h(e)},[h]),t,n),f=(0,r.useRef)(e);return u(f.current,e)||(p(e),f.current=e),[d,p]}},63945:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(37876),i=n(82037),o=n(78950),s=n(70274),a=n(87232),l=n(33881),u=n(32290),c=n(13220),d=n(72569);function h(e){let{deleting:t,deletionResponse:n,mutationInfo:h,onClose:p,onDelete:f,prompt:m}=e,g=(0,d.jz)(e.themeArea),y=(0,c.LV)();return(0,r.jsx)(u.M.Provider,{value:{...y,siteArea:g},"data-sentry-element":"LayoutContext.Provider","data-sentry-component":"ConfirmDelete","data-sentry-source-file":"ConfirmDelete.tsx",children:(0,r.jsxs)(o.A,{isOpen:!!t,onClose:p,"data-sentry-element":"SimpleModal","data-sentry-source-file":"ConfirmDelete.tsx",children:[(0,r.jsx)(a.A,{title:"Delete Item","data-sentry-element":"ModalHeading","data-sentry-source-file":"ConfirmDelete.tsx"}),(0,r.jsx)("p",{className:"p",children:m||"Are you sure you want to delete this item?"}),(0,r.jsx)(s.A,{error:n,"data-sentry-element":"ApiErrors","data-sentry-source-file":"ConfirmDelete.tsx"}),(0,r.jsx)(l.A,{mutationInfo:h,"data-sentry-element":"AshMutationErrors","data-sentry-source-file":"ConfirmDelete.tsx"}),(0,r.jsxs)("div",{className:"flex gap-4 justify-between mt-8",children:[(0,r.jsx)(i.tA,{onClick:p,"data-sentry-element":"SecondaryButton","data-sentry-source-file":"ConfirmDelete.tsx",children:"Cancel"}),(0,r.jsx)(i.et,{onClick:f,loading:h?.loading,withIcon:!0,"data-sentry-element":"DeleteButton","data-sentry-source-file":"ConfirmDelete.tsx",children:e.deleteLabel||"Delete"})]})]})})}},64028:(e
2681,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(37876),i=n(42383),o=n(10969),s=n(78950);function a(e){let{children:t,isOpen:n}=e,i=o.Ay.modalStyle;return i={...i,content:{...i.content}},(0,r.jsx)(s.A,{isOpen:n||!1,modalStyle:i,onClose:e.onClose,className:"gf-customer gf-area-members max-w-sm","data-sentry-element":"SimpleModal","data-sentry-component":"FieldModalBasics","data-sentry-source-file":"FieldModalBasics.tsx",children:t})}function l(e){let{className:t,fieldEditing:n,label:i,name:o}=e,{setCurrentFieldName:s}=n;return(0,r.jsx)("button",{className:`a ${t||""}`,onClick:()=>s(o),"data-sentry-component":"FieldEditButton","data-sentry-source-file":"FieldEditButton.tsx",children:i||"edit"})}function u(e){let{children:t,fieldEditing:n,label:i,name:o}=e,{currentFieldName:s,setCurrentFieldName:u}=n;return(0,r.jsxs)(r.Fragment,{children:[e.button||(0,r.jsx)(l,{fieldEditing:n,name:o,label:i}),(0,r.jsx)(a,{isOpen:s===o,onClose:()=>u(null),"data-sentry-element":"FieldModalBasics","data-sentry-source-file":"EditButtonWithModal.tsx",children:t})]})}var c=n(73502);function d(e){let{children:t,errorMessages:n,hookForm:o,label:s,name:a}=e,l=e.errors||o?.formState?.errors;return(0,r.jsxs)(i.fh,{"data-sentry-element":"FormRow","data-sentry-component":"FieldEditRow","data-sentry-source-file":"FieldEditRow.tsx",children:[s&&(0,r.jsx)(i.Dk,{children:s}),t,(0,r.jsx)(i.Kw,{errors:l,name:a,messages:n,"data-sentry-element":"ErrorMessage","data-sentry-source-file":"FieldEditRow.tsx"})]})}var h=n(34405),p=n(14232);function f(e){let{autoFocus:t,errorMessages:n,initialValue:o,label:s,name:a,onSubmit:l}=e,u={[a]:o};e.initialValues&&(u={...u,...e.initialValues});let f=(0,h.x)({hookFormProps:{mode:"all",defaultValues:{[a]:""}},initialValues:u,onSubmit:l}),{hookForm:m}=f,{register:g}=m,y={register:g(a,e.registerProps)};return(0,p.useEffect)(()=>{t&&m.setFocus(a)},[t]),(0,r.jsx)(c.A,{usingHookForm:f,"data-sentry-element":"BasicForm","data-sentry-component":"SingleFieldForm","data-sentry-source-file":"SingleFieldForm.tsx",children:(0,r.jsx)(d,{label:s,name:a,hookForm:m,errorMessages:n,"data-sentry-element":"FieldEditRow","data-sentry-source-file":"SingleFieldForm.tsx",children:e.renderInput&&e.renderInput(y,m)||(0,r.jsx)(i.ks,{...y})})})}function m(e){let{autoFocus:t,button:n,buttonLabel:o,fieldEditing:s,name:a}=e,l=e.label||e.name,c=e.displayValue||e.value;return"function"==typeof c&&(c=c(e.value)),(0,r.jsxs)(i.o7,{label:l,fieldColumnProps:{className:"overflow-auto"},className:"flex flex-wrap","data-sentry-element":"ColumnStyleFieldRow","data-sentry-component":"EditableFieldRow","data-sentry-source-file":"EditableFieldRow.tsx",children:[c,(0,r.jsx)("div",{children:(0,r.jsx)(u,{button:n,name:a,label:o,fieldEditing:s,"data-sentry-element":"EditButtonWithModal","data-sentry-source-file":"EditableFieldRow.tsx",children:e.children||(0,r.jsx)(f,{autoFocus:t,errorMessages:e.errorMessages,name:a,label:l,initialValue:e.value,initialValues:e.initialValues,onSubmit:function(e){return s.handleSubmit&&s.handleSubmit(e)},registerProps:e.registerProps,renderInput:e.renderInput})})})]})}},64177:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var r=n(4902),i=n(14232),o=n(18877),s=n(20996),a=n(37510),l=n(83070),u=n(67994);function c(e,t){var n=(0,u.m)(null==t?void 0:t.client);(0,a.D$)(e,a.KG.Mutation);var c=(0,i.useState)({called:!1,loading:!1,client:n}),d=c[0],h=c[1],p=(0,i.useRef)({result:d,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Object.assign(p.current,{client:n,options:t,mutation:e});var f=(0,i.useCallback)(function(e){void 0===e&&(e={});var t=p.current,n=t.options,i=t.mutation,a=(0,r.Cl)((0,r.Cl)({},n),{mutation:i}),u=e.client||p.current.client;p.current.result.loading||a.ignoreResults||!p.current.isMounted||h(p.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:u});var c=++p.current.mutationId,d=(0,o.l)(a,e);return u.mutate(d).then(function(t){var n,r=t.data,i=t.errors,o=i&&i.length>0?new l.K4({graphQLErrors:i}):void 0;if(c===p.current.mutationId&&!d.ignoreResults){var a={called:!0,loading:!1,data:r,error:o,client:u};p.current.isMounted&&!(0,s.L)(p.current.result,a)&&h(p.current.result=a)}var f=e.onCompleted||(null==(n=p.current.options)?void 0:n.onCompleted);return null==f||f(t.data,d),t}).catch(function(t){if(c===p.current.mutationId&&p.current.isMounted){var n,r={loading:!1,error:t,data:void 0,called:!0,client:u};(0,s.L)(p.current.result,r)||h(p.current.result=r)}var i=e.onError||(null==(n=p.current.options)?void 0:n.onError);if(i)return i(t,d),{data:void 0,errors:t};throw t})},[]),m=(0,i.useCallback)(function(){p.current.isMounted&&h({called:!1,loading:!1,client:n})},[]);return(0,i.useEffect)(function(){return p.current.isMounted=!0,function(){p.current.isMounted=!1}},[]),[f,(0,r.Cl)({reset:m},d)]}},64451:(e,t,n)=>{e.exports=n(19031).Symbol},64558:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"}))})}
2681,64599:(e,t,n)=>{"use strict";function r(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}n.d(t,{l:()=>r})},64628:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,Uy:()=>a});var r=n(37876),i=n(14232),o=n(73382);let s=(0,i.createContext)([]);function a(){return(0,i.useContext)(s)}function l(e){let{children:t,contentItem:n}=e,l=a(),u=(0,i.useMemo)(()=>n?[...l,(0,o.bN)(n)]:l,[n,l]);return(0,r.jsx)(s.Provider,{value:u,"data-sentry-element":"ContentPathContext.Provider","data-sentry-component":"ContentPathProvider","data-sentry-source-file":"ContentPathContext.tsx",children:t})}},64671:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=n(14232),i=n(29842);let o=function(e){let t=(0,i.Y)(e);return r.useCallback((...e)=>t.current(...e),[t])}},65416:(e,t,n)=>{"use strict";n.d(t,{Mm:()=>u,j6:()=>a});var r=n(73382),i=n(14232),o=n(38537);function s(e){console.warn("Failed to load navigation data:",e)}let a=()=>{let e=(0,o.uV)();return(0,i.useEffect)(()=>{e.navItems||e.loadNavigationData()?.catch(s),e.contentItems||e.getContentItems().catch(s)},[e.contentItems]),{getPostListBySlug:t=>(function(e,t){var n,r;let i=(n=e,r=t,r.contentItems?.find(e=>e.slug===n));return i&&l(i,t)})(t,e),getPostListById:t=>(function(e,t){var n,r;let i=(n=e,r=t,r.contentItems?.find(e=>e.id===n));return i&&l(i,t)})(t,e),dataLoaded:!!e.contentItems}};function l(e,t){let n=t.contentItems||void 0,i=t.navItems||void 0;return e&&n&&i&&(0,r.aD)(e,n,i)}let u=()=>{let e=(0,o.uV)();return(0,i.useEffect)(()=>{e.navItems||e.loadNavigationData()?.catch(s)},[]),{getNavMenu:t=>{if(!e.navItems)return;let n=e?.navItems?.find(e=>e.slug===t);if(n)return(0,r.PO)(n,e.navItems)},getNavMenuById:t=>{if(!e.navItems)return;let n=e?.navItems?.find(e=>e.id===t);if(n)return(0,r.PO)(n,e.navItems)}}}},65589:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(n(42404),t),i(n(8739),t),i(n(1454),t),i(n(5199),t),i(n(23264),t),i(n(74727),t),i(n(14692),t);var o=n(2836);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})},65761:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n,...i}=e;return(0,r.jsx)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,className:t,...i,"data-sentry-element":"svg","data-sentry-component":"MessageIcon","data-sentry-source-file":"MessageIcon.tsx",children:(0,r.jsx)("path",{d:"M5.16667 5.16667H11.8333M5.16667 8.5H10.1667M6 12.6667H3.5C2.83696 12.6667 2.20107 12.4033 1.73223 11.9344C1.26339 11.4656 1 10.8297 1 10.1667V3.5C1 2.83696 1.26339 2.20107 1.73223 1.73223C2.20107 1.26339 2.83696 1 3.5 1H13.5C14.163 1 14.7989 1.26339 15.2678 1.73223C15.7366 2.20107 16 2.83696 16 3.5V10.1667C16 10.8297 15.7366 11.4656 15.2678 11.9344C14.7989 12.4033 14.163 12.6667 13.5 12.6667H11L8.5 15.1667L6 12.6667Z",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","data-sentry-element":"path","data-sentry-source-file":"MessageIcon.tsx"})})}},65883:(e,t)=>
2681{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},66409:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var r=n(14232);function i(e){return[e.screenX,e.screenY]}function o(){let e=(0,r.useRef)([-1,-1]);return{wasMoved(t){let n=i(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=i(t)}}}},66434:(e,t,n)=>{"use strict";var r;function i(e){return!!e&&e<7}n.d(t,{b:()=>i,p:()=>r}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}))},66521:(e,t,n)=>{var r=n(78598);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},66535:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(14232),i=n(47737);function o(e,t){let n=(0,r.useRef)({left:0,top:0});if((0,i.s)(()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)},[e,t]),null==t||!e||t===document.activeElement)return!1;let o=t.getBoundingClientRect();return o.top!==n.current.top||o.left!==n.current.left}},66783:e=>{e.exports=function(e){return this.__data__.has(e)}},67274:(e,t,n)=>{let r=n(98311),i=n(9955),o={};Object.keys(r).forEach(e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});let t=i(e);Object.keys(t).forEach(n=>{let r=t[n];o[e][n]=function(e){let t=function(...t){let n=t[0];if(null==n)return n;n.length>1&&(t=n);let r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][n].raw=function(e){let t=function(...t){let n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})}),e.exports=o},67544:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,Wk:()=>d,aG:()=>c});var r=n(37876),i=n(49995),o=n(47952),s=n(72954),a=n(65416),l=n(73382);let u=(0,n(5811).PA)(e=>{let{className:t,contentSlug:n}=e,{getPostListBySlug:u}=(0,a.j6)(),c=n?u(n):void 0;return(0,r.jsx)(s.A,{className:(0,i.A)("ContentSnippet EditableSection",t),editById:c?{id:c?.id,webComponentName:"ContentSnippet"}:void 0,editBySlug:n&&!c?{slug:n,type:l.nz.Post,webComponentName:"ContentSnippet"}:void 0,"data-sentry-element":"EditableSection","data-sentry-component":"ContentSnippet","data-sentry-source-file":"ContentSnippet.tsx",children:function(){if(!c?.content)return(0,r.jsx)("div",{children:"Edit this text"});let e=(0,l.xs)(c);return"HTML"===e?(0,r.jsx)("div",{className:"inner",dangerouslySetInnerHTML:{__html:c.content}}):"MARKDOWN"===e?(0,r.jsx)(o.A,{content:c.content}):void 0}()})}),c=[{key:"className",type:"string"},{key:"contentSlug",type:"string"}],d={isParentEditable:!0,type:"text",fieldSize:"large",title:"Text content"}},67874:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",fill:"currentColor",className:t,style:n,"aria-label":"Help","data-sentry-element":"svg","data-sentry-component":"QuestionMarkCircle","data-sentry-source-file":"QuestionMarkCircle.tsx",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2","data-sentry-element":"circle","data-sentry-source-file":"QuestionMarkCircle.tsx"}),(0,r.jsx)("path",{d:"M9.5 9a2.5 2.5 0 0 1 5 0c0 1.5-1.5 2-2 3",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none","data-sentry-element":"path","data-sentry-source-file":"QuestionMarkCircle.tsx"}),(0,r.jsx)("circle",{cx:"12",cy:"16.5",r:"1",fill:"currentColor","data-sentry-element":"circle","data-sentry-source-file":"QuestionMarkCircle.tsx"})]})}},67994:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(75093),i=n(14232),o=n(94852);function s(e){var t=(0,i.useContext)((0,o.l)()),n=e||t.client;return __DEV__?(0,r.V1)(!!n,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):(0,r.V1)(!!n,32),n}}
2681,68329:(e,t,n)=>{var r=n(50224);e.exports=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},68373:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?0x1fffffffffffff:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},68547:e=>{"use strict";e.exports=function(){}},68720:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))})},69080:(e,t,n)=>{"use strict";n.d(t,{A:()=>z});var r=n(37876),i=n(5811),o=n(48230),s=n.n(o),a=n(65416),l=n(13220);let u=[{text:"About Us",url:"/about"},{text:"Public Events",url:"/events/public"},{text:"Resources",url:"/resources"},{text:"Join Us",url:"/join"}];var c=n(72954),d=n(73382),h=n(53257),p=n(14232),f=n(25268),m=n(39114),g=n(81684),y=n(6736);let v=p.forwardRef(function({title:e,titleId:t,...n},r){return p.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?p.createElement("title",{id:t},e):null,p.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 013 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 00-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 01-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 003 15h-.75M15 10.5a3 3 0 11-6 0 3 3 0 016 0zm3 0h.008v.008H18V10.5zm-12 0h.008v.008H6V10.5z"}))});var b=n(1324),x=n(20475),_=n(34296),w=n(57166),k=n(64558),C=n(14766),E=n(9370),A=n(63009),S=n(38537),T=n(54587),j=n.n(T),N=n(49995),O=n(23955),I=n(72569);let D=(0,i.PA)(function(e){let{purpose:t}=e,n=(0,I.jz)(e.themeArea),i=(0,S.kH)(),o=i&&i.user,s="border-b-[var(--group-primary-card-line-color)]";function a(e,t){let i=e.profile?.photo?.url,o="text-[var(--group-primary-card-text-color)]";n===O.L.ADMIN&&(o="color-secondary-900");let s="text-[var(--group-primary-card-text-muted-color)]";return n===O.L.ADMIN&&(s="text-secondary-400"),(0,r.jsxs)("div",{className:(0,N.A)("flex gap-2 px-2",t?"":"my-2"),"data-sentry-component":"avatarRow","data-sentry-source-file":"UserMenuWithButton.tsx",children:[i&&(0,r.jsx)(j(),{src:i,alt:"Profile and account menu",className:"w-10 h-10 rounded-full mr-3",width:40,height:40}),!i&&(0,r.jsx)(g.A,{className:"size-10"}),(0,r.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,r.jsx)("div",{className:o,children:e.name}),"BANNED"!==e.status&&e.title&&(0,r.jsx)("div",{className:s,children:e.title})]})]})}function l(e){let i=(0,m.RW)(o);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.A,{href:"/members/profile",icon:(0,r.jsx)(b.A,{className:"size-4"}),label:"Profile",isDropDownItem:e,purpose:t,themeArea:n,"data-sentry-element":"LinkMenuItem","data-sentry-source-file":"UserMenuWithButton.tsx"}),(0,r.jsx)(E.A,{href:"/members/subscriptions",label:"Notification settings",icon:(0,r.jsx)(x.A,{className:"size-4"}),isDropDownItem:e,purpose:t,themeArea:n,"data-sentry-element":"LinkMenuItem","data-sentry-source-file":"UserMenuWithButton.tsx"}),function(e){let i=(0,h.Wm)(o?.status);return i===h.F8.Apply?(0,r.jsx)(E.A,{href:"/join",label:"Apply for membership",icon:(0,r.jsx)(y.A,{className:"size-4"}),isDropDownItem:e,purpose:t,themeArea:n}):i===h.F8.Dues?(0,r.jsx)(E.A,{href:"/members/dues",label:"Dues",icon:(0,r.jsx)(v,{className:"size-4"}),isDropDownItem:e,purpose:t,themeArea:n}):null}(e),(0,r.jsx)(E.A,{href:"/members/account",label:"Account",icon:(0,r.jsx)(_.A,{className:"size-4"}),isDropDownItem:e,purpose:t,themeArea:n,"data-sentry-element":"LinkMenuItem","data-sentry-source-file":"UserMenuWithButton.tsx"}),i&&(0,r.jsx)(E.A,{href:"/_admin",label:"Admin dashboard",icon:(0,r.jsx)(w.A,{className:"size-4"}),isDropDownItem:e,purpose:t,themeArea:n}),(0,r.jsx)("div",{className:"border-b my-1"}),(0,r.jsx)(E.A,{href:"/logout",label:"Log out",icon:(0,r.jsx)(k.A,{className:"size-4"}),isDropDownItem:e,purpose:t,themeArea:n,"data-sentry-element":"LinkMenuItem","data-sentry-source-file":"UserMenuWithButton.tsx"})]})}if(n===O.L.ADMIN&&(s="border-b"),!o)return null;if(t===h.Bp.SIDEBAR)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,r.jsx)("div",{className:"border-b my-1"}),a(o,!0),(0,r.jsx)("div",{className:"border-b my-1"})]}),l()]});let u=(0,h.RM)(n,t,!1);return(0,r.jsx)(C.W1,{as:"div","data-sentry-element":"Menu","data-sentry-component":"UserMenuWithButton","data-sentry-source-file":"UserMenuWithButton.tsx",children:(0,r.jsxs)("div",{className:"UserMenuWithButton",children:[(0,r.jsxs)(C.IU,{className:(0,N.A)("MenuButton AccountDropdown w-10 flex items-center transition text-sm",u),style:{position:"relative"},"data-sentry-element":"MenuButton","data-sentry-source-file":"UserMenuWithButton.tsx",children:[o.profile?.photo?.url&&(0,r.jsx)(f.A,{p
2681hotoUrl:o.profile.photo?.url,photoSize:40}),!o.profile?.photo?.url&&(0,r.jsx)(g.A,{className:"size-10"})]}),(0,r.jsxs)(A.A,{anchor:"bottom",className:"UserMenu MenuItems z-[1]","data-sentry-element":"StyledMenuItems","data-sentry-source-file":"UserMenuWithButton.tsx",children:[a(o),(0,r.jsx)("div",{className:(0,N.A)("border-b",s,"my-1")}),l(!0)]})]})})}),M=(0,i.PA)(({className:e,purpose:t,themeArea:n})=>(0,l.lF)()?(0,r.jsx)(D,{navItemClass:e,purpose:t,themeArea:n}):(0,r.jsx)(s(),{href:"/login",role:"menuitem",className:e,"data-sentry-element":"Link","data-sentry-component":"UserMenuOrLogin","data-sentry-source-file":"UserMenuOrLogin.tsx",children:"Login"}));var L=n(82037),R=n(65761),P=n(69770),F=n(10734);let B=[{label:(0,r.jsx)("span",{children:"Announcements"}),href:"/members/announcements",icon:(0,r.jsx)(P.A,{className:"size-4 text-secondary-600",style:{color:"inherit"}})},{label:({forumBadgeCount:e})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"Forum Discussions"}),e>0&&(0,r.jsx)(L.xz,{className:"h-[16px] w-[16px] flex items-center justify-center p-0 min-w-0",children:e})]}),href:"/members/forum",icon:(0,r.jsx)(F.A,{className:"size-4 text-secondary-600",style:{color:"inherit"}}),isEnabled:({forumEnabled:e})=>e},{label:({unreadMessagesCount:e})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"Chat Messages"}),e>0&&(0,r.jsx)(L.xz,{className:"h-[16px] w-[16px] flex items-center justify-center p-0 min-w-0",children:e})]}),href:"/members/messages",icon:(0,r.jsx)(R.A,{className:"size-4 mt-[0.1rem] text-secondary-600",style:{color:"inherit"}})}],$=function(e){let{areaClass:t,forumBadgeCount:n,forumEnabled:i,purpose:o,specialClass:s,themeArea:a,totalUnreadCount:l,unreadMessagesCount:u}=e;return(0,r.jsxs)(C.W1,{as:"div",className:"relative",children:[(0,r.jsxs)(C.IU,{className:(0,N.A)("Link",s,t),children:[(0,r.jsx)(R.A,{className:"w-[1.3rem] h-[1.3rem] translate-y-1"})," ",l>0&&(0,r.jsx)(L.xz,{className:"absolute translate-x-[0.125rem] -translate-y-6 h-[16px] w-[16px] flex items-center justify-center p-0 min-w-0",children:l})]}),(0,r.jsx)(A.A,{anchor:"bottom",className:"CommunicationItemAndDropdown mt-2",children:B.map(e=>{if(e.isEnabled&&!e.isEnabled({forumEnabled:i}))return null;let t="function"==typeof e.label?e.label({forumBadgeCount:n,unreadMessagesCount:u}):e.label;return(0,r.jsx)(E.A,{href:e.href,label:t,icon:e.icon,isDropDownItem:!0,themeArea:a,purpose:o},e.href)})})]})},q=function(e){let{areaClass:t,forumBadgeCount:n,forumEnabled:i,unreadMessagesCount:o}=e,s={forumEnabled:i},a={forumBadgeCount:n,unreadMessagesCount:o};return(0,r.jsx)(r.Fragment,{children:B.map(e=>{if(e.isEnabled&&!e.isEnabled(s))return null;let n="function"==typeof e.label?e.label(a):e.label;return(0,r.jsx)(E.A,{href:e.href,icon:e.icon,label:n,className:t},e.href)})})};var V=n(32290);let z=(0,i.PA)(function(e){let t,n,i,o,{className:f,contentItem:m,navMenuSlug:y,parentTag:v,splitLinksType:b,style:x}=e,_=(0,I.jz)(e.themeArea),w=m?.id||e.navMenuId,{getNavMenu:k,getNavMenuById:C}=(0,a.Mm)(),A=w?C(w):void 0,T=(0,l.LV)();t=e.purpose?e.purpose:T?.pageSection===V.d.SIDE_CAR?h.Bp.SIDEBAR:T?.pageSection===V.d.FOOTER?h.Bp.FOOTER:h.Bp.PRIMARY,!A&&y&&(A=k(y));let j=(0,l.IG)(),O=(0,S.Me)(),L=O?.unreadCount??0,R=(O?.unreadTopicsCount??0)+(O?.unreadMessageCounts.topic??0),P=L+R,F=(0,S.g1)(),B=(0,S.rq)(),z=(0,h.RM)(_,t,!1);function U(e){e.preventDefault(),B?.open()}function H(e){if(e.specialType)return`special-item-${e.specialType.toLowerCase()}`}if((0,p.useEffect)(()=>{A&&F&&t===h.Bp.PRIMARY&&F.setNavItemId(A.id)},[w,y]),A?n={id:A.id}:y&&(i={slug:y,type:d.nz.NavMenu}),A){let e=A.children.map(e=>({uri:(0,d.iY)(e)||"",label:e.label,settings:e.settings,slug:e.slug,role:e.settings?.role}));o=(0,h.Fv)(e,j?.status,j?.roles),b===h.kZ.GENERIC?o=o.filter(e=>!h.pS.includes(e.uri)):b===h.kZ.SPECIAL&&(o=o.filter(e=>h.pS.includes(e.uri))),o=o.map(e=>{let t=e.uri||"/",n=h.kb.find(e=>e.uri===t);return{...e,specialType:n?.type,uri:t}})}else o=u.map(e=>({label:e.text,uri:e.url}));let W=(0,h.MA)({isLoggedIn:!!j,items:o,purpose:t,splitLinksType:b});return(0,r.jsxs)(c.A,{className:(0,N.A)("Navigation",f),editById:n,editBySlug:i,style:x,as:"nav",role:"navigation",hasContent:!!o&&o.length>0,showEditButton:!0,"data-sentry-element":"EditableSection","data-sentry-component":"Navigation","data-sentry-source-file":"Navigation.tsx",children:[o.map(e=>(0,r.jsx)(p.Fragment,{children:function(e){let n=H(e);if(e.specialType===h.Zq.ACCOUNT)return(0,r.jsx)(M,{themeArea:_,purpose:t,className:(0,N.A)(n,"Link")});if(e.specialType===h.Zq.LOGIN)return(0,r.jsxs)(s(),{href:"/login",className:(0,N.A)("Link flex items-center gap-2 relative",n,z),onClick:U,role:"menuitem",children:[t===h.Bp.PRIMARY?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.A,{className:"w-6 h-6"}),(0,r.jsx)("span",{children:"Login"})]}):(0,r.jsx)("span",{children:"Login"})," "]});if("/members/messages"===e.uri||"/members/communication"===e.uri)if(t===h.Bp.FOOTER)return(0,r.jsx)(E.A,{href:e.uri,label:e.label,themeArea:_,purpose:t});else if(t!==h.Bp.PRIMARY)return(0,r.jsx)(q,{areaClass:z,forumBadgeCount:R,forumEnabled:!0,unreadMessagesCount:L});else return(0,r.jsx)($,{areaClass:z,forumBadgeCount:R,forumEnabled:!0,purpose:t,specialClass:n,themeArea:_,totalUnreadCount:P,unreadMessagesCount:L});{let t=H(e);return(0,r.jsx)(s(),{href:e.uri,className:(0,N.A)(v,"Link",t,z,"transition"),role:"menuitem","data-sentry-element":"Link","data-sentry-component":"renderPlainLink","data-sentry-source-file":"Navigation.tsx",children:e.label},e.uri)}}(e)},e.uri)),W&&(0,r.jsx)(D,{navItemClass:"special-item-account Link",purpose:t,themeArea:_})]})})},69320:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(8345),i=n(39324),o=n.n(i);function s(){let[e,t]=(0,r.A)(["gf-group"]),n=o()().publicRuntimeConfig.defaultOrgSlug;return{groupSlug:e["gf-group"]||n,setGroup:function(e){t("gf-group",e,{path:"/"})}}}},69455:e=>{e.exports=function(e){return this.__data__.has(e)}},69460:(e,t,n)=>{"use strict";n.d(t,{$n:()=>r.A,Pd:()=>i.A,Vl:()=>o.Ay,nf:()=>d,Oc:()=>p,lq:()=>f.Ay,_V:()=>m.Ay,N_:()=>b,gu:()=>x.Ay,O7:()=>_.A,Xn:()=>k,Vx:()=>C.A,TK:()=>A,v7:()=>S.A,Wv:()=>I,pP:()=>D.A,M6:()=>M});var r=n(26478),i=n(85016),o=n(67544),s=n(37876),a=n(5811),l=n(43982),u=n(13220),c=n(49995);let d=(0,a.PA)(e=>{let{className:t,parentTag:n}=e,r=(0,u.Jc)();
2681return(0,s.jsxs)("div",{className:(0,c.A)(n,"GroupCopyright",t),"data-sentry-component":"GroupFooterCopyright","data-sentry-source-file":"GroupCopyright.tsx",children:["\xa9 ",(0,l.Yq)(new Date,"yyyy")," ",r.name]})});var h=n(40634);let p=(0,a.PA)(({className:e,parentTag:t})=>{let n=(0,u.Jc)();return(0,s.jsxs)("div",{className:(0,c.A)(t,"GroupFlowTag",e),"data-sentry-component":"GroupFlowTag","data-sentry-source-file":"GroupFlowTag.tsx",children:[(0,s.jsx)("div",{className:"PoweredBy text-sm",children:"Powered by"}),(0,s.jsx)("a",{href:`https://www.groupflow.app/?utm_source=group-site&utm_medium=web&utm_content=footer&utm_term=${n.slug}`,rel:"external","aria-label":"to GroupFlow website",className:"text-white hover:text-gf-green transition-colors",children:(0,s.jsx)(h.A,{className:"Logo block max-w-[10rem] h-auto","data-sentry-element":"GroupFlowWideLogo","data-sentry-source-file":"GroupFlowTag.tsx"})})]})});var f=n(19618),m=n(28429),g=n(80229),y=n(48230),v=n.n(y);function b(e){let{className:t,href:n,label:r,parentTag:i,style:o}=e;return t=(0,g.Wd)(i,t,"Link"),(0,s.jsx)(v(),{href:n||"/",className:t,style:o,"data-sentry-element":"NextLink","data-sentry-component":"Link","data-sentry-source-file":"Link.tsx",children:r||"LINK"})}var x=n(98143),_=n(45460),w=n(92775);let k=function(){return(0,s.jsx)(w.A,{"data-sentry-element":"OrigMembersHeader","data-sentry-component":"MembersHeader","data-sentry-source-file":"MembersHeader.tsx"})};var C=n(41492),E=n(94293);let A=(0,a.PA)(e=>{let{className:t,parentTag:n}=e;return(0,s.jsx)("div",{className:(0,g.Wd)(n,"PageContent","grow",t),"data-sentry-component":"PageContent","data-sentry-source-file":"PageContent.tsx",children:(0,s.jsx)(E.A,{"data-sentry-element":"CMSPage","data-sentry-source-file":"PageContent.tsx"})})});var S=n(80016),T=n(72954),j=n(65416),N=n(47952),O=n(73382);let I=(0,a.PA)(e=>{let{className:t,contentSlug:n,parentTag:r}=e,{getPostListBySlug:i}=(0,j.j6)(),o=n?i(n):void 0,a=(0,O.kA)(o),l=a?.photo?.url,u=o?.children?.find(O._F);return(0,s.jsxs)(T.A,{editById:o?.id?{id:o?.id,type:O.nz.Post}:void 0,className:(0,g.Wd)(r,"PageQuote",t),"data-sentry-element":"EditableSection","data-sentry-component":"PageQuote","data-sentry-source-file":"PageQuote.tsx",children:[(0,s.jsx)("img",{src:l,className:"Image",alt:(0,O.NM)(a,"quote image")}),(0,s.jsxs)("div",{className:"TextContent",children:[(0,s.jsx)("div",{className:"Title",children:o?.title}),(0,s.jsx)(N.A,{className:"Text",content:o?.content,"data-sentry-element":"MarkdownContent","data-sentry-source-file":"PageQuote.tsx"}),u&&(0,s.jsx)("div",{className:"ButtonWrapper",children:(0,s.jsx)(v(),{href:(0,O.iY)(u)||"/",className:"Button",children:u.label})})]})]})});var D=n(4374);let M=()=>(0,s.jsx)(s.Fragment,{})},69750:(e,t,n)=>{var r=n(56751),i=n(29934),o=n(27136);e.exports=function(e){return o(e)?r(e):i(e)}},69770:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"32px",height:"32px",style:n,className:t,title:"Megaphone icon",...{},"data-sentry-element":"svg","data-sentry-component":"MegaphoneIcon","data-sentry-source-file":"MegaphoneIcon.tsx",children:(0,r.jsx)("path",{d:"M5,7.087a3,3,0,0,0-3,3v3.826a3,3,0,0,0,2,2.816V21a1,1,0,0,0,1,1H9a1,1,0,0,0,1-1V17.423l10.609,4.5A1,1,0,0,0,22,21V3a1,1,0,0,0-1.391-.921L8.8,7.087ZM8,20H6V16.913H8Zm0-5.087H5a1,1,0,0,1-1-1V10.087a1,1,0,0,1,1-1H8Zm2-6.164L20,4.51V19.49L10,15.251Z",fill:"currentColor","data-sentry-element":"path","data-sentry-source-file":"MegaphoneIcon.tsx"})})}},70274:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(37876),i=n(16247),o=n(57560),s=n(18334),a=n(14232);function l(e){let{className:t,error:n,messagePrefix:l}=e,{serverErrorMessage:u}=e;if(u=u||"There was a problem handling your request.",(0,a.useEffect)(()=>{n&&n.error&&s.Cp(Error("API Error"),{extra:{response:n}})},[n]),!n||!n.error)return null;if(n.memberExpired)return(0,r.jsx)(i.A,{});let c=e.defaultRequestErrorMessage||"Failed to process your request.";return n.serverError?(0,r.jsx)(o.A,{children:u}):n.requestErrors&&n.requestErrors.length>0?(0,r.jsx)("div",{className:`flex flex-col gap-2 ${t||""}`,children:n.requestErrors.map(function(e,t){let n=e.title;return e.detail&&e.detail!==e.title&&(n=`${n} ${e.detail}`),n=(n=l?`${l} ${n}`:n).trim(),(0,r.jsx)(o.A,{"data-sentry-element":"FlashWarning","data-sentry-component":"renderError","data-sentry-source-file":"ApiErrors.tsx",children:n||"An unrecognized error occurred"},t)})}):n.message?(0,r.jsx)(o.A,{children:e.networkErrorMessage||n.message}):(0,r.jsx)(o.A,{children:c})}},70287:()=>{},70485:(e,t,n)=>{"use strict";n.d(t,{W:()=>N,A:()=>j});var r=n(37876),i=n(69460),o=n(73382),s=n(5811),a=n(38537),l=n(14232),u=n(49995),c=n(88992),d=n(42383),h=n(99410),p=n(62086),f=n(8571),m=n(9297),g=n(63945),y=n(47027),v=n(70544),b=n(10969),x=n(72569),_=n(31695),w=n(99082);let k="new:element-",C=[{purpose:"navigation",key:"navigation",typeName:"Navigation",description:"Footer navigation menu with links",params:{type:o.nz.NavMenu,purpose:"navigation",order:0}},{purpose:"logo_and_copyright",key:"logo-and-copyright",typeName:"Logo and Copyright",description:"Company logo with copyright information",params:{type:o.nz.Text,purpose:"logo_and_copyright",order:1}},{purpose:"social_links",key:"social-links",typeName:"Social Links",description:"Social media links for your organization",params:{type:o.nz.SocialLinks,purpose:"social_links",slug:"footer-social-links",order:2}}],E=(0,s.PA)(function(e){let t=(0,x.Eh)(),n=(0,b.CI)(t),i=(0,a.MM)(),{cursor:s}=(0,v.f)(),[E,A]=(0,l.useState)(null),S=(0,c.mN)({defaultValues:{children:[]}}),T=(0,_.X)({form:S,formToParams:function(e){if(!j)return{type:o.nz.Footer};let t=e.children.map(e=>e.params);return{type:o.nz.Footer,children:t}},populateForm:function(e){let t=e.children.sort((e,t)=>
2681e.order-t.order).map((e,t)=>{let n="",r=e.purpose||"",i=C.find(e=>e.purpose===r);return n=i?.typeName||e.title||r||"Unknown Element",{id:e.id,purpose:r,name:n,params:{id:e.id,type:e.type,purpose:r,order:t}}});S.reset({children:t})},onClose:e.onClose}),{contentItem:j,handleSubmit:N,save:O}=T,{listRef:I,dragProps:D,getItemClass:M,getGripSortable:L}=(0,h.A)({onReorder:function(e){let t=S.watch("children"),n=e.map((e,n)=>{let r=t.find(t=>t.id===e);if(!r)throw Error(`Component with id ${e} not found`);return{...r,params:{...r.params,order:n}}});S.setValue("children",n,{shouldDirty:!0})}}),{isDirty:R}=S.formState;async function P(e){if(!i||!j)return;let t=S.watch("children").findIndex(t=>t.id===e.id);if(-1===t||R&&!await O())return;let n=S.watch("children")[t];!n||n.id.startsWith(k)||i.open(n.id,{path:[...s?.path??[],(0,o.bN)(j)]})}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"space-y-6",children:(()=>{let e=S.watch("children");return(0,r.jsxs)("form",{onSubmit:N,className:"space-y-6","data-sentry-component":"renderFooterEditor","data-sentry-source-file":"FooterEditor.tsx",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-medium mb-3",children:"Footer Elements"}),0===e.length?(0,r.jsx)("div",{className:(0,u.A)("text-center py-8 border-2 border-dashed rounded-lg",n.cardMutedTextColor,n.cardLineColor),children:"No elements added yet. Add elements from the library below."}):(0,r.jsx)("div",{ref:I,className:"space-y-2",id:"footer-elements-list",children:e.sort((e,t)=>e.params.order-t.params.order).map(e=>(0,r.jsxs)("div",{id:e.id,"data-sort-item":!0,"data-sort-item-id":e.id,...D,className:(0,u.A)("flex gap-3 px-3 border rounded-lg",n.cardLineColor,n.cardTintedHoverColor,M(e.id)),children:[(0,r.jsx)("div",{...L(e.id),"data-sort-item-id":e.id,className:(0,u.A)("flex items-center py-3 cursor-move touch-none",n.cardMutedTextColor,n.cardTextHoverColor),title:"Drag to reorder",children:(0,r.jsx)(p.A,{className:"w-4 h-4 fill-current"})}),(0,r.jsx)("button",{type:"button",onClick:()=>P(e),className:"flex flex-1 min-w-0 items-center py-3 text-left",children:(0,r.jsx)("div",{className:"font-medium truncate",children:e.name})}),(0,r.jsx)("button",{type:"button",onClick:()=>{A(e)},className:(0,u.A)("flex items-center px-1 py-3 transition-colors hover:text-red-danger",n.cardMutedTextColor),title:"Remove element",children:(0,r.jsx)(f.A,{className:"w-4 h-4 fill-current"})})]},e.id))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-medium mb-3",children:"Element Library"}),(0,r.jsx)(y.A,{backgroundType:x.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"FooterEditor.tsx",children:"Add elements to the footer section."}),(0,r.jsx)("div",{className:"grid gap-2",children:C.map(e=>{let t=S.watch("children").some(t=>t.purpose===e.purpose);return(0,r.jsxs)("button",{type:"button",onClick:()=>(function(e){let t=S.watch("children");if(t.find(t=>t.purpose===e.purpose))return;let n={id:`${k}${Date.now()}-${Math.random().toString(36).substring(2,11)}`,purpose:e.purpose,name:e.typeName,params:{...e.params,order:t.length}};S.setValue("children",[...t,n],{shouldDirty:!0})})(e),disabled:t,className:(0,u.A)("flex items-center gap-3 p-3 text-left border rounded-lg transition-colors",n.cardLineColor,t?(0,u.A)(n.cardMutedTextColor,"cursor-not-allowed"):(0,u.A)(n.accentBorderHoverColor,n.cardTintedHoverColor)),children:[(0,r.jsx)("div",{className:t?n.cardMutedTextColor:n.accentTextColor,children:(0,r.jsx)(m.A,{className:"w-4 h-4 fill-current"})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsxs)("div",{className:"font-medium",children:[e.typeName,t&&" (Already Added)"]}),(0,r.jsx)("div",{className:(0,u.A)("text-sm",n.cardMutedTextColor),children:e.description})]})]},e.key)})})]}),(0,r.jsx)(w.D,{usingContentEdit:T,successMessage:"Footer details saved","data-sentry-element":"ApiResults","data-sentry-source-file":"FooterEditor.tsx"}),(0,r.jsx)("div",{className:"flex justify-end pt-4 border-t",children:(0,r.jsx)(d.rA,{type:"submit",className:"px-6","data-sentry-element":"ActionButton","data-sentry-source-file":"FooterEditor.tsx",children:"Save Footer"})})]})})()}),(0,r.jsx)(g.A,{deleting:!!E,onClose:()=>A(null),onDelete:function(){if(E){let e=S.watch("children");S.setValue("children",e.filter(e=>e.id!==E.id).map((e,t)=>({...e,params:{...e.params,order:t}}))),A(null)}},prompt:`Are you sure you want to remove "${E?.name}" from the footer?`,"data-sentry-element":"ConfirmDelete","data-sentry-source-file":"FooterEditor.tsx"})]})});var A=n(37483),S=n(32290);let T=(0,s.PA)(function(e){let t=e.contentItem,n=(0,a.uV)(),s=(0,l.useContext)(S.M);if(!t)return null;let u=(0,o.Ql)(t,n);return u?(s={...s,pageSection:S.d.FOOTER},(0,r.jsxs)(S.M.Provider,{value:s,"data-sentry-element":"LayoutContext.Provider","data-sentry-component":"FooterContent","data-sentry-source-file":"FooterContent.tsx",children:[u.children.sort((e,t)=>
2681e.order-t.order).map(e=>(0,r.jsx)(A.A,{contentItem:e},e.id)),(0,r.jsx)(i.Oc,{className:"flex flex-col items-center mt-8","data-sentry-element":"GroupFlowTag","data-sentry-source-file":"FooterContent.tsx"})]})):null}),j=T,N={component:T,type:o.nz.Footer,editComponent:E,editLabel:"Footer",containerOpts:{as:"footer"}}},70544:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,f:()=>c});var r=n(37876),i=n(31167),o=n(5811),s=n(14232),a=n(6195),l=n(38537);let u=(0,s.createContext)({cursor:null,upTarget:null,loading:!1,up:()=>void 0,refresh:()=>Promise.resolve()});function c(){return(0,s.useContext)(u)}let d=(0,o.PA)(function(e){let{hasEditor:t}=e,n=(0,l.MM)(),o=(0,l.uV)(),c=n?.cursor??null,d=c?.contentId??void 0,h=(0,i.I)(a.l2,{variables:{id:d},skip:!d,fetchPolicy:"network-only"}),p=(0,s.useMemo)(()=>{let e=h.data?.getContentItem;if(e&&e.id===d)return e},[h.data,d]),f=(0,s.useMemo)(()=>{if(!c)return null;let e=c.path.length>0?c.path[c.path.length-1]:p?.parent??null;return e&&t(e)?e:null},[c,p,t]),m=(0,s.useCallback)(()=>{if(!c||!f||!n)return;let e=c.path.length>0?c.path.slice(0,c.path.length-1):[];n.open(f.id,{path:e})},[n,c,f]),g=(0,s.useCallback)(()=>{let e=h.refetch(),t=p?.id??d;return t&&o.onPageUpdated(t),e},[o,d,p,h]),y=(0,s.useMemo)(()=>({cursor:c,contentItem:p,upTarget:f,loading:!!d&&!p&&!h.error&&h.loading,error:h.error,up:m,refresh:g}),[d,p,c,h.error,h.loading,g,m,f]);return(0,r.jsx)(u.Provider,{value:y,"data-sentry-element":"ContentCursorContext.Provider","data-sentry-component":"ContentCursorProvider","data-sentry-source-file":"ContentCursorContext.tsx",children:e.children})})},70553:(e,t,n)=>{"use strict";function r(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...i){let o=t[e].call(n,...i);o&&(n=o,r.forEach(e=>e()))}}}n.d(t,{y:()=>r})},71266:(e,t,n)=>{var r=n(11491),i=n(28654);e.exports=function e(t,n,o,s,a){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?r(t,n,o,s,e,a):t!=t&&n!=n)}},71498:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",className:t,style:n,title:"List icon",...{},"data-sentry-element":"svg","data-sentry-component":"ListIcon","data-sentry-source-file":"ListIcon.tsx",children:(0,r.jsx)("path",{d:"M 3 4.5 A 1.5 1.5 0 0 0 1.5 6 A 1.5 1.5 0 0 0 3 7.5 A 1.5 1.5 0 0 0 4.5 6 A 1.5 1.5 0 0 0 3 4.5 z M 7 5 L 7 7 L 22 7 L 22 5 L 7 5 z M 3 10.5 A 1.5 1.5 0 0 0 1.5 12 A 1.5 1.5 0 0 0 3 13.5 A 1.5 1.5 0 0 0 4.5 12 A 1.5 1.5 0 0 0 3 10.5 z M 7 11 L 7 13 L 22 13 L 22 11 L 7 11 z M 3 16.5 A 1.5 1.5 0 0 0 1.5 18 A 1.5 1.5 0 0 0 3 19.5 A 1.5 1.5 0 0 0 4.5 18 A 1.5 1.5 0 0 0 3 16.5 z M 7 17 L 7 19 L 22 19 L 22 17 L 7 17 z","data-sentry-element":"path","data-sentry-source-file":"ListIcon.tsx"})})}},71598:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},71879:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})},72115:(e,t,n)=>{e=n.nmd(e);var r=n(24298),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i&&r.process,a=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},72200:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},72269:e=>{"use strict";e.exports=JSON.parse('{"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}')},72569:(e,t,n)=>{"use strict";n.d(t,{Eh:()=>c,Q:()=>s.L,Sh:()=>u,Wo:()=>h,jz:()=>d,o4:()=>p});var r=n(15584),i=n.n(r);n(89099);var o=n(60711),s=n(23955),a=n(13220),l=n(22634),u=function(e){return e.MAIN="MAIN",e.PRIMARY_CARD="PRIMARY_CARD",e}({});function c(){return(0,a.LV)().siteArea}function d(e){let t=c();return e??t}function h(e){e=e.replace(/\?.*/,"");let t=s.L.MARKETING,n=!1,r=!0,i="";return e.startsWith("/_admin")?(t=s.L.ADMIN,r=!1,i="gf-area-admin"):e.startsWith("/members")||e.startsWith("/events")&&!e.startsWith("/events/public")?(t=s.L.MEMBERS,i="gf-area-members gf-customer"):(n=!0,i="gf-area-marketing gf-customer"),{areaClass:i,isCustomerThemeable:r,isMarketingArea:n,themeArea:t}}function p(e){var t;let n,r=(0,l.Ze)(e).config,s=i()(r.accentColor||"#333333"),a=i()(r.pageBackgroun
2681dColor||"#FFFFFF"),u=a.isDark()?a.lighten(.25):a.darken(.08),c=i()(r.primaryCardBackgroundColor||"#FFFFFF"),d=i()(r.pageBackgroundTextColor||"#333333"),h=.2>c.luminosity()?c.lighten(1):c.darken(.2),p=i()(r.textColorOverAccent||"#FFFFFF"),m=i()(c.isDark()?"#FFFFFF":"#000000"),g=s.lightness()>a.lightness(),y=(0,o.LC)(s,g?.82:.18),v=r.buttonBackgroundColor?i()(r.buttonBackgroundColor):s,b=v.desaturate(.9).lighten(.1),x=b.lighten(.2),_=f(v),w=r.buttonTextColor?i()(r.buttonTextColor):p,k=f(w),C=r.headingTextColor?i()(r.headingTextColor):y,E=r.linkTextColor?i()(r.linkTextColor):y,A=(t=E).luminosity()>.1?t.darken(.4):t.lighten(.4),S=s.mix(i()("white"),.6),T=s.mix(i()("white"),.75),j=s.mix(i()("white"),.9),N=s.mix(i()("black"),.5),O=r.secondaryAccentColor?i()(r.secondaryAccentColor):void 0,I=i()(r.pageBackgroundTextColor||"#333333"),D=I.mix(I.isDark()?i()("white"):i()("black"),.2),M=I.mix(I.isDark()?i()("white"):i()("black"),.5),L=I.mix(I.isDark()?i()("white"):i()("black"),.5);n=a.isDark()?a.mix(i()("white"),.2):a.mix(i()("black"),.1);let R=O||i()("#811762"),P=r.navMenuTextColor?i()(r.navMenuTextColor):E,F=r.navMenuTextHoverColor&&i()(r.navMenuTextHoverColor)||A,B=a.isDark()?a.mix(i()("white"),.5):a.mix(i()("black"),.5),$=a.mix(s.mix(i()("white"),.2),.7),q=i()(r.primaryCardBackgroundColor||"#FFFFFF"),V=(0,o.f3)(q,s),z=i()(r.primaryCardTextColor||"#333333"),U=z.mix(z.isDark()?i()("white"):i()("black"),.2),H=(0,o.Kj)(z,s),W=z.isDark()?z.mix(i()("white"),.8):z.mix(i()("black"),.5),G=q.isDark()?q.lighten(.05):q.darken(.05),K=q.isDark()?q.mix(i()("white"),.1):q.mix(i()("black"),.1),J="100px",Q=r.cornerStyle;"SQUARE"===Q?J="0px":"ROUNDED"===Q&&(J="0.375rem");let Y=(e,t)=>{let{r:n,g:r,b:i}=e.object();return`rgba(${n}, ${r}, ${i}, ${t})`},X=Y(q,.95),Z=Y(q,.65),ee=e.logos.backgroundImage;return{"--group-accent":s.hex(),"--group-accent-text":y.hex(),...O?{"--group-secondary-accent":O.hex()}:{},"--group-accent-light":S.hex(),"--group-accent-lighter":T.hex(),"--group-accent-ultralight":j.hex(),"--group-accent-darker":N.hex(),"--group-text-over-accent":w.hex(),"--group-link":E.hex(),"--group-link-hover":A.hex(),"--group-button":v.hex(),"--group-button-hover":_.hex(),"--group-link-color":E.hex(),"--group-link-hover-color":A.hex(),"--group-button-background-color":v.hex(),"--group-button-background-less-one-color":u.hex(),"--group-button-background-hover-color":_.hex(),"--group-button-secondary-background-color":b.hex(),"--group-button-secondary-background-hover-color":x.hex(),"--group-button-text-color":w.hex(),"--group-button-text-hover-color":k.hex(),"--group-button-radius":J,"--group-heading":C.hex(),"--group-heading-color":C.hex(),"--group-heading-text-color":C.hex(),"--group-hero-background-opacity":String(g?.8:.5),"--group-short-hero-banner-background-color":c.hex(),"--group-page-background":a.hex(),"--group-page-background-color":a.hex(),"--group-page-background-text-color":I.hex(),"--group-page-background-text-color-muted":D.hex(),"--group-page-background-border-color":M.hex(),"--group-page-background-line-color":L.hex(),"--group-page-background-text-field-background-color":n.hex(),"--group-quote-background-color":R.hex(),"--group-quote-text-color":w.hex(),"--group-primary-card-background-color":q.hex(),"--group-primary-card-background-tintend-color":V.hex(),"--group-primary-card-border-color":G.hex(),"--group-primary-card-shadow-color":K.hex(),"--group-primary-card-text-color":z.hex(),"--group-primary-card-text-muted-color":U.hex(),"--group-primary-card-text-color-muted":U.hex(),"--group-primary-card-text-hover-color":H.hex(),"--group-primary-card-line-color":W.hex(),"--group-border-color":s.hex(),"--group-header-background-color":c.hex(),"--group-header-opacity":"0.5","--group-header-border-color":h.hex(),"--group-header-text-color":d.hex(),"--group-header-hamburger-button-color":B.hex(),"--group-header-hamburger-button-hover-color":$.hex(),"--group-nav-menu-text-color":P.hex(),"--group-nav-menu-text-hover-color":F.hex(),"--group-sidecar-background-top-color":X,"--group-sidecar-background-bottom-color":Z,"--group-members-nav-menu-text-color":m.hex(),...ee?{"--group-background-image":`url(${ee})`}:{}}}function f(e){return e.luminosity()>.8?e.lighten(.8):e.luminosity()>.1?e.lighten(.2):e.lighten(.5)}}
2681,72954:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(37876),i=n(49995),o=n(14232);function s(e){let{dashStyle:t}=e;function n(e){e&&(e.onmouseover=function(){let t=e.querySelector("rect");t?.classList.add("rect-hover")},e.onmouseout=function(){let t=e.querySelector("rect");t?.classList.remove("rect-hover")})}let o="thick"===t?"thicker":"";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",preserveAspectRatio:"none",className:(0,i.A)("selection-area base",o),ref:n,style:{zIndex:10},"data-sentry-element":"svg","data-sentry-source-file":"SelectionArea.tsx",children:(0,r.jsx)("rect",{width:"40",height:"40","data-sentry-element":"rect","data-sentry-source-file":"SelectionArea.tsx"})}),(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",preserveAspectRatio:"none",className:(0,i.A)("selection-area dashes",o),ref:n,style:{zIndex:10},"data-sentry-element":"svg","data-sentry-source-file":"SelectionArea.tsx",children:(0,r.jsx)("rect",{width:"40",height:"40","data-sentry-element":"rect","data-sentry-source-file":"SelectionArea.tsx"})}),(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",preserveAspectRatio:"none",className:(0,i.A)("selection-area top cursor-pointer",o),ref:n,onClick:t=>{t.preventDefault(),t.stopPropagation(),e.onClick&&e.onClick()},style:{zIndex:10},"data-sentry-element":"svg","data-sentry-source-file":"SelectionArea.tsx",children:(0,r.jsx)("rect",{width:"40",height:"40","data-sentry-element":"rect","data-sentry-source-file":"SelectionArea.tsx"})})]})}var a=n(77237),l=n(13220),u=n(39114),c=n(5811),d=n(6884),h=n(42383),p=n(38537),f=n(64628),m=n(23955),g=n(32290);let y=(0,c.PA)(function(e){let{children:t,dashStyle:n,editById:c,editBySlug:y,navName:v,style:b,as:x,role:_}=e,w=c?.id,k=e.editRoles??["content"],C=x||e.componentType||(e=>(0,r.jsx)("div",{...e})),E=(0,l.IG)(),A=E&&(0,u.hN)(E,k),S=(0,p.MM)(),T=(0,p.uV)(),j=(0,f.Uy)(),N=o.useContext(g.M),O=!!(w||v||c||y),I=!!w;"boolean"==typeof e.hasContent&&(I=e.hasContent);let D=O&&A&&S?.editMode&&!S?.modalOpen;function M(){if(c)!function(e){let{id:t,webComponentName:n}=e,r=T?.contentItems?.find(e=>e.id===t)??T?.navItems?.find(e=>e.id===t);if(r){if(!r.type)return console.warn("No type found for item",r);S?.open(t,{path:j,webComponentName:n})}}(c);else if(y)!function(e){let{slug:t}=e,{webComponentName:n,initialParams:r,...i}=e,o=i;r&&(o={...o,...r});let s=(0,d.Z1)(e.type)?T?.navItems:T?.contentItems,a=s?.find(e=>e.slug===t),l=a?.type??o.type??e?.type;if(!l)return console.warn("Missing type in editBySlug",e);a?S?.open(a.id,{path:j,webComponentName:n}):(e?.pageType&&(o={...o,pageType:e.pageType}),S?.openNew({...o,type:l},{path:j,webComponentName:n}))}(y);
2681else if(v&&T.navigation){var e=v,t=T.navigation;let n=t[e];S?.open(n.id,{path:j})}else throw Error("Missing editById or editBySlug or contentId in EditableSection call")}if(!A)if(e.className||b)return(0,r.jsx)(C,{className:e.className,style:b,children:t});else return(0,r.jsx)(r.Fragment,{children:t});let L="boolean"!=typeof e.showEditButton||e.showEditButton;return(0,r.jsx)(g.M.Provider,{value:{...N,siteArea:m.L.ADMIN},"data-sentry-element":"LayoutContext.Provider","data-sentry-component":"EditableSection","data-sentry-source-file":"EditableSection.tsx",children:(0,r.jsxs)(C,{className:(0,i.A)("EditableSection relative",w&&`content-item-${w}`,e.withEditLink&&"mb-6 [&_p:last-of-type]:mb-2",e.className),role:_,style:b,"data-sentry-element":"Component","data-sentry-source-file":"EditableSection.tsx",children:[!I&&A&&!v&&L&&(0,r.jsx)(h.rA,{onClick:M,children:"Add content"}),D&&(0,r.jsx)(s,{onClick:M,dashStyle:n}),(0,r.jsx)(g.M.Provider,{value:N,"data-sentry-element":"LayoutContext.Provider","data-sentry-source-file":"EditableSection.tsx",children:t}),e.withEditLink&&(0,r.jsxs)("button",{type:"button",onClick:M,className:"mt-1 inline-flex items-center gap-1 text-sm font-medium underline decoration-dotted text-gf-green-dark hover:text-gf-green",children:[(0,r.jsx)(a.A,{className:"size-4"}),"Edit"]})]})})})},73e3:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(37876),i=n(49995),o=n(21684),s=n(54587),a=n.n(s),l=n(48230),u=n.n(l),c=n(63853);function d(e){let{children:t,href:n,id:s,leftIcon:l,onClick:d,type:h,widthClass:p}=e,[f]=(0,c.d7)(e.loading??!1,500),m=(0,c.YQ)(d||(()=>void 0),1e3,{leading:!0}),g=e.disabled||e.loading,y="submit"===e.type||"large"===e.size?"h-12":"h-9",v=e.paddingXClass||("submit"===e.type?"px-6":"px-5"),b=g?void 0:e.hoverClass||"hover:saturate-150 hover:brightness-125",x="bg-gradient-to-r from-new-green-500 to-new-green-600",_=g?e.disabledClass||(0,i.A)(x,"saturate-50 cursor-not-allowed"):x;e.bgColorClass&&(_=e.bgColorClass);let w=g?void 0:e.opacityClass,k=(0,i.A)("flex items-center justify-center gap-x-2",p,y,v,"rounded-full",_,w,b,"text-white","font-medium","transition",e.className),C=null;C=f?(0,r.jsx)(o.A,{className:"h-5 w-5 mr-2"}):e.withGroupFlow?(0,r.jsx)(a(),{src:"https://mp1md-pub.s3.amazonaws.com/groupflow/images/icon-white.svg",alt:"GroupFlow",className:"w-6 h-6",width:24,height:24}):l;let E=(0,r.jsxs)(r.Fragment,{children:[C,t]});if(n)if(n.startsWith("http"))return(0,r.jsx)("a",{href:n,id:s,download:e.download,target:e.target??"_blank","aria-label":"to external website",rel:e.rel??"noopener noreferrer",className:k,role:"button","data-id":e["data-id"],"data-testid":e["data-testid"],"data-ui-component":e["data-ui-component"],"data-ui-id":e["data-ui-id"],children:E});else return(0,r.jsx)(u(),{href:n,id:s,download:e.download,target:e.target,rel:e.rel,className:k,role:"button","data-id":e["data-id"],"data-testid":e["data-testid"],"data-ui-component":e["data-ui-component"],"data-ui-id":e["data-ui-id"],children:E});return(0,r.jsx)("button",{type:h,id:s,disabled:g,className:k,onClick:m,ref:e.inputRef,"data-id":e["data-id"],"data-testid":e["data-testid"],"data-ui-component":e["data-ui-component"],"data-ui-id":e["data-ui-id"],"data-sentry-component":"ActionButton","data-sentry-source-file":"ActionButton.tsx",children:E})}},73302:(e,t,n)=>{"use strict";n.d(t,{St:()=>L,UF:()=>M,G3:()=>D,Xc:()=>O,TI:()=>I,zn:()=>N});var r=n(14232),i=n.t(r,2),o=n(62757),s=n(81040),a=n(84974),l=n(98477),u=n(94882),c=n(80400);let d={...i},h=d.useInsertionEffect||(e=>e());function p(e){let t=r.useRef(()=>{});return h(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var f="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;let m=!1,g=0,y=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+g++,v=d.useId||function(){let[e,t]=r.useState(()=>m?y():void 0);return f(()=>{null==e&&t(y())},[]),r.useEffect(()=>{m=!0},[]),e},b=r.createContext(null),x=r.createContext(null),_="active",w="selected";function k(e,t,n){let r=new Map,i="item"===n,o=e;if(i&&e){let{[_]:t,[w]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1},...o,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
2681(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(!(i&&[_,w].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof o){var s;null==(s=r.get(n))||s.push(o),e[n]=function(){for(var e,t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)}}}else e[n]=o}),e),{})}}function C(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}var E=n(83660),A=n(64671),S=n(47737);let T=(0,r.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});T.displayName="FloatingContext";let j=(0,r.createContext)(null);function N(e){return(0,r.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}function O(){return(0,r.useContext)(T).setReference}function I(){return(0,r.useContext)(T).getReferenceProps}function D(){let{getFloatingProps:e,slot:t}=(0,r.useContext)(T);return(0,r.useCallback)((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function M(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,r.useContext)(j),n=(0,r.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,S.s)(()=>{null==t||t(null!=n?n:null)},[t,n]);let i=(0,r.useContext)(T);return(0,r.useMemo)(()=>[i.setFloating,e?i.styles:{}],[i.setFloating,e,i.styles])}function L({children:e,enabled:t=!0}){var n,i,d,h,m,g;let y,_,w,E,[N,O]=(0,r.useState)(null),[I,D]=(0,r.useState)(0),M=(0,r.useRef)(null),[L,P]=(0,r.useState)(null);n=L,(0,S.s)(()=>{if(!n)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(n).maxHeight,t=parseFloat(e);if(isNaN(t))return;let r=parseInt(e);isNaN(r)||t!==r&&(n.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[n]);let F=t&&null!==N&&null!==L,{to:B="bottom",gap:$=0,offset:q=0,padding:V=0,inner:z}=(i=N,d=L,y=R(null!=(h=null==i?void 0:i.gap)?h:"var(--anchor-gap, 0)",d),_=R(null!=(m=null==i?void 0:i.offset)?m:"var(--anchor-offset, 0)",d),w=R(null!=(g=null==i?void 0:i.padding)?g:"var(--anchor-padding, 0)",d),{...i,gap:y,offset:_,padding:w}),[U,H="center"]=B.split(" ");(0,S.s)(()=>{F&&D(0)},[F]);let{refs:W,floatingStyles:G,context:K}=function(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){var t;let{open:n=!1,onOpenChange:i,elements:o}=e,s=v(),a=r.useRef({}),[l]=r.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}})()),u=null!=((null==(t=r.useContext(b))?void 0:t.id)||null),[c,d]=r.useState(o.reference),h=p((e,t,n)=>{a.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:n,nested:u}),null==i||i(e,t,n)}),f=r.useMemo(()=>({setPositionReference:d}),[]),m=r.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return r.useMemo(()=>({dataRef:a,open:n,onOpenChange:h,elements:m,events:l,floatingId:s,refs:f}),[n,h,m,l,s,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,o=i.elements,[s,l]=r.useState(null),[c,d]=r.useState(null),h=(null==o?void 0:o.reference)||s,m=r.useRef(null),g=r.useContext(x);f(()=>{h&&(m.current=h)},[h]);let y=(0,u.we)({...e,elements:{...o,...c&&{reference:c}}}),_=r.useCallback(e=>{let t=(0,a.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),w=r.useCallback(e=>{((0,a.vq)(e)||null===e)&&(m.current=e,l(e)),((0,a.vq)(y.refs.reference.current)||null===y.refs.reference.current||null!==e&&!(0,a.vq)(e))&&y.refs.setReference(e)},[y.refs]),k=r.useMemo(()=>({...y.refs,setReference:w,setPositionReference:_,domReference:m}),[y.refs,w,_]),C=r.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),E=r.useMemo(()=>({...y,...i,refs:k,elements:C,nodeId:t}),[y,k,C,t,i]);return f(()=>{i.dataRef.current.floatingContext=E;let e=null==g?void 0:g.nodesRef.current.find(e=>e.id===t);e&&(e.context=E)}),r.useMemo(()=>({...y,context:E,refs:k,elements:C}),[y,k,C,E])}({open:F,placement:"selection"===U?"center"===H?"bottom":`bottom-${H}`:"center"===H?`${U}`:`${U}-${H}`,strategy:"absolute",transform:!1,middleware:[(0,u.cY)({mainAxis:"selection"===U?0:$,crossAxis:q}),(0,u.BN)({padding:V}),"selection"!==U&&(0,u.UU)({padding:V}),"selection"===U&&z?{name:"inner",options:E={...z,padding:V,overflowRef:M,offset:I,minItemsVisible:4,referenceOverflowThreshold:V,onFallbackChange(e){var t,n;if(!e)return;let r=K.elements.floating;if(!r)return;
2681let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,o=Math.min(4,r.childElementCount),s=0,a=0;for(let e of null!=(n=null==(t=K.elements.floating)?void 0:t.childNodes)?n:[])if(e instanceof HTMLElement){let t=e.offsetTop,n=t+e.clientHeight+i,l=r.scrollTop,u=l+r.clientHeight;if(t>=l&&n<=u)o--;else{a=Math.max(0,Math.min(n,u)-Math.max(t,l)),s=e.clientHeight;break}}o>=1&&D(e=>{let t=s*o-a+i;return e>=t?e:t})}},async fn(e){let{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:d=0,scrollRef:h,...p}=(0,s._3)(E,e),{rects:f,elements:{floating:m}}=e,g=t.current[o];if(!g)return{};let y={...e,...await (0,u.cY)(-g.offsetTop-m.clientTop-f.reference.height/2-g.offsetHeight/2-i).fn(e)},v=(null==h?void 0:h.current)||m,b=await (0,c.__)(C(y,v.scrollHeight),p),x=await (0,c.__)(y,{...p,elementContext:"reference"}),_=Math.max(0,b.top),w=y.y+_,k=Math.max(0,v.scrollHeight-_-Math.max(0,b.bottom));return v.style.maxHeight=k+"px",v.scrollTop=_,r&&(v.offsetHeight<g.offsetHeight*Math.min(a,t.current.length-1)-1||x.top>=-d||x.bottom>=-d?l.flushSync(()=>r(!0)):l.flushSync(()=>r(!1))),n&&(n.current=await (0,c.__)(C({...y,y:w},v.offsetHeight),p)),{y:w}}}:null,(0,u.Ej)({padding:V,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:c.ll}),[J=U,Q=H]=K.placement.split("-");"selection"===U&&(J="selection");let Y=(0,r.useMemo)(()=>({anchor:[J,Q].filter(Boolean).join(" ")}),[J,Q]),{getReferenceProps:X,getFloatingProps:Z}=function(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),i=e.map(e=>null==e?void 0:e.item),o=r.useCallback(t=>k(t,e,"reference"),t),s=r.useCallback(t=>k(t,e,"floating"),n),a=r.useCallback(t=>k(t,e,"item"),i);return r.useMemo(()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:a}),[o,s,a])}([function(e,t){let{open:n,elements:i}
2681=e,{enabled:s=!0,overflowRef:a,scrollRef:u,onChange:c}=t,d=p(c),h=r.useRef(!1),f=r.useRef(null),m=r.useRef(null);r.useEffect(()=>{if(!s)return;function e(e){if(e.ctrlKey||!t||null==a.current)return;let n=e.deltaY,r=a.current.top>=-.5,i=a.current.bottom>=-.5,s=t.scrollHeight-t.clientHeight,u=n<0?-1:1,c=n<0?"max":"min";!(t.scrollHeight<=t.clientHeight)&&(!r&&n>0||!i&&n<0?(e.preventDefault(),l.flushSync(()=>{d(e=>e+Math[c](n,s*u))})):/firefox/i.test((0,o.$t)())&&(t.scrollTop+=n))}let t=(null==u?void 0:u.current)||i.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{f.current=t.scrollTop,null!=a.current&&(m.current={...a.current})}),()=>{f.current=null,m.current=null,t.removeEventListener("wheel",e)}},[s,n,i.floating,a,u,d]);let g=r.useMemo(()=>({onKeyDown(){h.current=!0},onWheel(){h.current=!1},onPointerMove(){h.current=!1},onScroll(){let e=(null==u?void 0:u.current)||i.floating;if(a.current&&e&&h.current){if(null!==f.current){let t=e.scrollTop-f.current;(a.current.bottom<-.5&&t<-1||a.current.top<-.5&&t>1)&&l.flushSync(()=>d(e=>e+t))}requestAnimationFrame(()=>{f.current=e.scrollTop})}}}),[i.floating,d,a,u]);return r.useMemo(()=>s?{floating:g}:{},[s,g])}(K,{overflowRef:M,onChange:D})]),ee=(0,A._)(e=>{P(e),W.setFloating(e)});return r.createElement(j.Provider,{value:O},r.createElement(T.Provider,{value:{setFloating:ee,setReference:W.setReference,styles:G,getReferenceProps:X,getFloatingProps:Z,slot:Y}},e))}function R(e,t,n){let i=(0,E.L)(),o=(0,A._)((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let r=P(e,t);return[r,n=>{let o=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),i=n[1].slice(t+1).trim();return i?[r,...e(i)]:[r]}return[]}(e);{let s=o.map(e=>window.getComputedStyle(t).getPropertyValue(e));i.requestAnimationFrame(function a(){i.nextFrame(a);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(s[e]!==r){s[e]=r,l=!0;break}}if(!l)return;let u=P(e,t);r!==u&&(n(u),r=u)})}return i.dispose}]}return[n,null]}),s=(0,r.useMemo)(()=>o(e,t)[0],[e,t]),[a=s,l]=(0,r.useState)();return(0,S.s)(()=>{let[n,r]=o(e,t);if(l(n),r)return r(l)},[e,t]),a}function P(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}j.displayName="PlacementContext"},73378:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(14232);function i(e){return(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}},73382:(e,t,n)=>{"use strict";n.d(t,{$F:()=>P,AL:()=>e5,Ah:()=>en,Ao:()=>eG,BW:()=>el,Bd:()=>j,CQ:()=>Z,D0:()=>eY,DD:()=>u,FK:()=>es,FT:()=>e_,Fg:()=>eK,Gg:()=>e2,HX:()=>f,Hi:()=>d,J0:()=>eJ,KR:()=>p,Kz:()=>eR,Ld:()=>ed,NM:()=>g,No:()=>eB,PM:()=>eV,PO:()=>k,Pc:()=>_,Ql:()=>M,Sd:()=>x,St:()=>ec,Tm:()=>e0,Uh:()=>E,W:()=>A,W6:()=>e4,WE:()=>S,WV:()=>e3,YC:()=>eS,YH:()=>eg,YI:()=>Y,YX:()=>eP,Yy:()=>J,Z:()=>X,Zf:()=>z,Zp:()=>eA,_F:()=>eI,aD:()=>w,aG:()=>ey,bN:()=>N,bS:()=>e8,bm:()=>e$,br:()=>eD,cF:()=>B,dA:()=>v,dE:()=>eZ,dW:()=>ej,d_:()=>ei,fF:()=>F,fq:()=>eC,g6:()=>c,hW:()=>b,iK:()=>Q,iS:()=>eO,iU:()=>ez,iY:()=>m,kA:()=>I,kB:()=>e1,kY:()=>eW,kb:()=>eE,nF:()=>W,nn:()=>eu,nz:()=>l,oz:()=>O,pR:()=>V,pf:()=>eh,pz:()=>ep,r3:()=>U,rR:()=>D,rg:()=>ea,s5:()=>eN,u2:()=>ek,vR:()=>eQ,w$:()=>ef,x9:()=>L,xs:()=>y,zP:()=>eT});var r=n(49995),i=n(89099),o=n(80229),s=n(39324),a=n.n(s),l=function(e){return e.Announcement="ANNOUNCEMENT",e.Button="BUTTON",e.ButtonRow="BUTTON_ROW",e.ColumnContainer="COLUMN_CONTAINER",e.ContactForm="CONTACT_FORM",e.Footer="FOOTER",e.HeaderWithHero="HEADER_WITH_HERO",e.Header="HEADER",e.Hero="HERO",e.Image="IMAGE",e.Letter="LETTER",e.LetterList="LETTER_LIST",e.LogoAndCopyright="LOGO_AND_COPYRIGHT",e.Main="MAIN",e.NavGroup="NAV_GROUP",e.NavLink="NAV_LINK",e.NavMenu="NAV_MENU",e.Overlay="OVERLAY",e.Page="PAGE",e.PrimaryQuote="PRIMARY_QUOTE",e.Post="POST",e.PostList="POST_LIST",e.PublicEventsList="PUBLIC_EVENTS_LIST",e.Reference="REFERENCE",e.SocialLink="SOCIAL_LINK",e.SocialLinks="SOCIAL_LINKS",e.Text="TEXT",e.TwoColumns="TWO_COLUMNS",e}({}),u=function(e){return e.Application="APPLICATION",e.DuesReminder="DUES_REMINDER",e}({}),c=function(e){return e.Embedded="EMBEDDED",e.Standalone="STANDALONE",e}({}),d=function(e){return e.Draft="DRAFT",e.Published="PUBLISHED",e}({});let h=["NAV_GROUP","NAV_LINK","NAV_MENU"];function p(e){if(e?.type)return h.includes(e.type)?e.type:void 0}function f(e){return e?.path||null}function m(e){return e?.href||null}
2681function g(e,t){return e?.label||e?.title||t}function y(e){return e?.textFormat?e.textFormat:e?.contentType?(0,o.h5)(e.contentType):void 0}function v(e){return"NAV_GROUP"===p(e)}function b(e){return{type:v(e)?"NAV_MENU":"NAV_LINK"}}function x(e,t){return e.find(e=>"PAGE"===e.type&&f(e)===t)}function _(){let e=(0,i.useRouter)();if(!e)return null;let t=(e.query||{storyPath:""}).storyPath||e.asPath||"";return"/"===(t=t.replace(/\?.*/,""))?"home":t}function w(e,t,n){let r=[...t.filter(t=>t.parentId===e.id),...n?.filter(t=>t.parentId===e.id)||[]];return r=r.map(e=>{let r=t.filter(t=>t.parentId===e.id);return r=[...r,...n?.filter(t=>t.parentId===e.id)||[]],{...e,children:r}}),{...e,children:r}}function k(e,t){let n=t.filter(t=>t.parentId===e.id);return{...e,children:n,author:null}}let C=["/members/pages","/resources","/news","/content"];function E(e){var t;let{slug:n,type:r}=e,i=f(e);return"PAGE"===r&&i?(t=i,!C.reduce((e,n)=>e||t.startsWith(n+"/"),!1)):"TEXT"===r&&"board-election-form"===n}function A(e,t){let{hideBranding:n}=a()().publicRuntimeConfig,{abbreviation:r,name:i}=t,o=n?"Website":`${i} (${r})`,s=t.windowTitleName||o;return e?`${e} - ${s}`:s}function S(e){let t=[],n=[];e.childNodes.forEach(r=>{if("SCRIPT"===r.nodeName)if(r.src){let i=T(e,r),o=n.length;n[o]=!1,i.addEventListener("load",()=>{n[o]=!0,n.every(e=>e)&&t.forEach(t=>{T(e,t)})})}else t=[...t,r]})}function T(e,t){let n=document.createElement("script");return n.appendChild(document.createTextNode(t.innerText)),[...t.attributes].forEach(e=>{n.setAttribute(e.name,t.getAttribute(e.name))}),e.replaceChild(n,t),n}function j(e){let{children:t,...n}=e;return Array.isArray(t)?{...n,children:JSON.stringify(t)}:e}function N(e){return{id:e.id,internalName:e.internalName,label:e.label,pageType:e.pageType,slug:e.slug,type:e.type,title:e.title}}function O(e){if(e)return{...e,type:e.type??null}}function I(e){if(e?.children)return D(e.children)}function D(e){return e?.find(e=>"image"===e.purpose)}function M(e,t){if(!e)return null;let n=P(R(e,t),t);return n?{...n,author:null,photo:void 0}:null}function L(e,t,n){let r=M(e,n);return r?R(r.children.find(e=>e.purpose===t),n):null}function R(e,t){return e?"REFERENCE"!==e.type?e:t.contentItems?.find(t=>t.id===e.referenceId)||null:null}function P(e,t){if(!e)return null;let n=[...t.contentItems?.filter(t=>t.parentId===e.id)||[],...t.navItems?.filter(t=>t.parentId===e.id)||[]].sort((e,t)=>e.order-t.order);return{...e,children:n,author:null,photo:void 0}}function F(e,t){return e.contentItems?.find(e=>e.slug===t)}function B(e,t){if(!t)return null;let n=(e.contentItems?.filter(e=>"PAGE"===e.type)||[]).find(e=>f(e)===t);return n||null}function $(e,t){return t.reduce((e,t)=>e.find(e=>e.name===t.name)?e.map(e=>e.name===t.name?t:e):[...e,t],e)}let q="page-row-item-width";var V=function(e){return e.Regular="regular",e.Wide="wide",e.Full="full",e}({});function z(e){let t=e.find(e=>e.name===q)?.value;return t&&Object.values(V).includes(t)?t:"full"}function U(e,t){return $(e,[{name:q,value:t}])}let H={regular:"max-w-[768px] m-auto",wide:"max-w-[1024px] m-auto",full:""};function W(e){return H[z(e)]}let G="two-columns-layout",K="two-columns-size";var J=function(e){return e.Column1Percent="column-1-percent",e.Column1Fixed="column-1-fixed",e.Column2Fixed="column-2-fixed",e}({});let Q=[{percent:25,ratio:[1,3]},{percent:33,ratio:[1,2]},{percent:50,ratio:[1,1]},{percent:67,ratio:[2,1]},{percent:75,ratio:[3,1]}],Y={min:80,max:480,step:10},X=50,Z=240,ee={layout:"column-1-percent",size:50};function et(e,t){return e.find(e=>e.name===t)?.value}function en(e){let t=et(e,G),n=et(e,K)??"",r=Number(n);return void 0!==t&&Object.values(J).includes(t)&&/^\d+$/.test(n)&&("column-1-percent"===t?Q.some(e=>e.percent===r):r>=Y.min&&r<=Y.max)?{layout:t,size:r}:ee}let er="two-columns-stack-below";var ei=function(e){return e.Tight="tight",e.Narrow="narrow",e.Wide="wide",e}({});let eo={tight:"@[20rem]:grid-cols-[var(--two-columns-template)]",narrow:"@[32rem]:grid-cols-[var(--two-columns-template)]",wide:"@[44rem]:grid-cols-[var(--two-columns-template)]"};function es(e){let t=et(e,er);return t&&Object.values(ei).includes(t)?t:"wide"}function ea(e,t){return $(e,[{name:er,value:t}])}function el(e){return(0,r.A)("@container",W(e))}function eu(e){return(0,r.A)("grid grid-cols-1 items-start gap-8",eo[es(e)])}function ec(e){switch(e.layout){case"column-1-fixed":return`minmax(0, ${e.size}px) minmax(0, 1fr)`;case"column-2-fixed":return`minmax(0, 1fr) minmax(0, ${e.size}px)`;default:{let[t,n]=Q.find(t=>t.percent===e.size)?.ratio??[1,1];return`minmax(0, ${t}fr) minmax(0, ${n}fr)`}}}function ed(e){let t=Math.round((Number(e)||0)/Y.step)*Y.step;return Math.min(Y.max,Math.max(Y.min,t))}function eh(e,t){return $(e,[{name:G,value:t.layout},{name:K,value:String(t.size)}])}
2681function ep({sourceBackgroundImage:e,footer:t,path:n}){return{children:JSON.stringify([{purpose:"header",children:[{type:"HEADER",purpose:"header"},{type:"HERO",purpose:"hero",styles:[{name:"hero-style",value:"heading-only"}]},{type:"IMAGE",purpose:"background-image",photoId:e.photoId}],type:"HEADER_WITH_HERO",order:0},{purpose:"main",children:[{children:[{type:"POST",title:"My new post",content:"My new post content",children:[{type:"BUTTON",label:"Read More",href:"/"}]},{type:"POST",title:"Another Post",content:"My new post content",children:[{type:"BUTTON",label:"Read More",href:"/"}]}],type:"POST_LIST",styles:[eg]}],type:"MAIN",order:1},{purpose:"footer",type:"REFERENCE",referenceId:t.id,order:2}]),pageType:"STANDALONE",type:"PAGE",status:"PUBLISHED",title:"New Page",path:n}}var ef=function(e){return e.Alternating="alternating",e.Uniform="uniform",e}({});let em="post-list-style",eg={name:em,value:"alternating"};function ey(e){let t=e.styles?.find(e=>e.name===em);return t?.value==="alternating"?"alternating":"uniform"}let ev=["POST_LIST","LETTER_LIST"],eb=["POST"],ex=[...eb,"PRIMARY_QUOTE"];function e_(e){return e?.type==="POST_LIST"}let ew={POST_LIST:"POST",LETTER_LIST:"LETTER"};function ek(e){if(e)return ew[e]??e}function eC(e){return!!e?.type&&ev.includes(e.type)}function eE(e){return!!e?.type&&eb.includes(e.type)}function eA(e){return`Column ${e+1}`}function eS(e){return[...e.children??[]].sort((e,t)=>e.order-t.order)}function eT(e,t){let n=eS(e);return{name:function(e,t){let n=eS(e),r=1===n.length?n[0]:void 0;return e.title||r?.title||eA(t)}(e,t),openTarget:function(e){let t=eS(e);return 1===t.length?t[0]:void 0}(e)??e,elements:n,addLabel:n.length<=1?"Add element":"Elements"}}function ej(e,t){return[...e?.length?e.map(e=>e.type):[t?.parent?.type],t?.type]}function eN(e,t){return t?.parent?.type??e?.[e.length-1]?.type}function eO(e){let t=/^Text Block (\d+)$/,n=e.reduce((e,n)=>{let r=n.title?.match(t);return r?Math.max(e,Number(r[1])):e},0);return`Text Block ${n+1}`}function eI(e){return!!e&&"BUTTON"===e.type}function eD(e){return!!e?.type&&ex.includes(e.type)}let eM="space-above",eL="space-below";var eR=function(e){return e.None="none",e.Small="small",e.Medium="medium",e.Large="large",e}({});let eP={none:"0",small:"1.5rem",medium:"3rem",large:"6rem"};function eF(e,t){let n=et(e,t);return n&&Object.values(eR).includes(n)?n:"medium"}function eB(e){return{above:eF(e,eM),below:eF(e,eL)}}function e$(e){return{"--space-above":eP[e.above],"--space-below":eP[e.below]}}function eV(e,t){return $(e,[{name:eM,value:t.above},{name:eL,value:t.below}])}var ez=function(e){return e.BackgroundImage="background-image",e.Overlay="overlay",e}({});let eU="overlay-color",eH="overlay-alpha";var eW=function(e){return e.PageBackground="page-background",e.PageText="page-text",e.Accent="accent",e.Button="button",e}({});let eG={"page-background":"var(--group-page-background)","page-text":"var(--group-page-background-text-color)",accent:"var(--group-accent)",button:"var(--group-button-background-color)"},eK=["0.2","0.4","0.6","0.8"];function eJ(e){let t=et(e,eU),n=et(e,eH);return{color:t&&Object.values(eW).includes(t)?t:"page-background",alpha:n&&eK.includes(n)?n:"0.4"}}function eQ(e,t){return $(e,[{name:eU,value:t.color},{name:eH,value:t.alpha}])}function eY(e){return{backgroundImage:`url(${e.photo?.url})`,backgroundSize:et(e.styles,"background-size")||"cover",backgroundPosition:et(e.styles,"background-position")||"center",backgroundRepeat:"no-repeat"}}let eX="class-identifier";function eZ(e){return e?.attributes?.find(e=>e.name===eX)?.value}function e0(e){let t=eZ(e);return t?`content-item-${t}`:void 0}function e1(e){let t=e?.type;if(t)return`content-item-${t.toLowerCase().replace(/_/g,"-")}`}function e2(e){let t=eZ(e);return t?`page-${t}`:void 0}function e5(e,t){let n=(e?.attributes??[]).filter(e=>e.name!==eX),r=t.trim();return r?[...n,{name:eX,value:r}]:n}function e3(e){return{content:e.content,textFormat:e.textFormat||null,id:e.id,order:e.order,parentId:e.parentId,photo:e.photo,type:e.type,href:m(e)}}function e4(e){let t={content:e.content,href:e.href||null,textFormat:e.textFormat||null,order:e.order,parentId:e.parentId,photoId:null,purpose:null,type:e.type,title:""};return"IMAGE"===e.type&&(t={...t,photoId:e.photo?.id||null}),e.id&&!e.id.startsWith("new:")&&(t={...t,id:e.id}),t}function e8(e){return e?.match(/^\/members\/pages/)||"/contact"===e||"/contacts"===e||"/board"===e||"/glossary"===e||"/resources"===e}}
2681,73502:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(70274),o=n(42383);function s(e){let{children:t,usingHookForm:n}=e,{handleSubmit:s,hookForm:a,saveError:l,saving:u}=n,c=a.formState.isDirty;return(0,r.jsxs)("form",{onSubmit:s,"data-sentry-component":"BasicForm","data-sentry-source-file":"BasicForm.tsx",children:[t,(0,r.jsx)(i.A,{error:l,"data-sentry-element":"ApiErrors","data-sentry-source-file":"BasicForm.tsx"}),(0,r.jsx)(o.fC,{disabled:!c,saving:u,withGroupFlow:!0,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"BasicForm.tsx"})]})}},73915:(e,t,n)=>{"use strict";n.d(t,{_:()=>s});var r=Object.defineProperty,i=(e,t,n)=>(((e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),n);class o{constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let s=new o},74067:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>nz});var r=n(37876),i=n(4361),o=n.n(i),s=n(14232),a=n(74830),l=n(32468),u=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)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(e){function t(t){var n=e.call(this,t)||this;return t.cookies?n.cookies=t.cookies:n.cookies=new a.A,n}return u(t,e),t.prototype.render=function(){return s.createElement(l.Kq,{value:this.cookies},this.props.children)},t}(s.Component),d=n(75093),h=n(94852),p=function(e){var t=e.client,n=e.children,r=(0,h.l)();return s.createElement(r.Consumer,null,function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?(0,d.V1)(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):(0,d.V1)(e.client,29),s.createElement(r.Provider,{value:e},n)})},f=n(39324),m=n.n(f),g=n(33649),y=n(2138),v=n(94674),b=n(52226),x=n(22634),_=n(65364);let w=m()();async function k(e){let t,n=function(e){{let{host:e,port:t}=function(e){let t=e.split(":");return{host:t[0],port:t[1]?parseInt(t[1]):null}}(window.location.host);return{host:e,port:t=t||443,proto:window.location.protocol.replace(":","")}}}(0),r=(0,g.S0)(e),i=function(e){let t;if(!e)return;let n=e?.headers["gf-group"]||e?.headers["gf-org"];Array.isArray(n)&&(n=n[0]);let r=_.env.DEFAULT_ORG,i=e.url&&new URL(e.url,"http://x").searchParams.get("group")||void 0,o=e?.headers.cookie?.split("; ").map(e=>e.split("=")).find(e=>"gf-group"===e[0]),s=o?o[1]:void 0;return i?(console.log(`groupSlug from query param: ${i}`),t=i):n?(console.log(`groupSlug from gf-group header ${n}`),t=n):s?(console.log(`Using group slug from gf-group cookie: ${s}`),t=s):(console.log(`No gf-group header. Using DEFAULT_ORG=${r||""}`),t=r),t}(e),o=null,s=[];if(e&&i){let e=await (0,x.Jt)();if(!e)throw Error("No groupsConfig found in global state or config");let n=e.groups;if(!n)throw Error(`No groups found in groupsConfig: ${JSON.stringify(e)}`);t=n.find(e=>e.slug===i),s=e.metaTagCatalog||[];let{deployEnv:r}=w.publicRuntimeConfig;"development"===r&&(o=n.sort((e,t)=>e.slug>t.slug?1:-1).map(e=>({id:e.id,slug:e.slug,name:e.name})))}let a=await C({req:e,uri:n,jwt:r,groupSlug:i});return{jwt:r,uri:n,groupSlug:i,groupConfig:t,groups:o,me:a,metaTagCatalog:s}}async function C({req:e,uri:t,jwt:n,groupSlug:r}){if(!e||!n||!r||!(0,g.rb)(n))return null;try{return await (0,y.fy)({baseUrl:(0,v.hY)(t),jwt:n,groupSlug:r})}catch(e){if(e instanceof b.A)return null;return console.error("fetchServerSideMe() failed:",e),null}}var E=n(35885),A=n(41116),S=n.n(A),T=n(8345),j=n(18334),N=n(21993),O=n(85081),I=n(87157);let D=0x80000000-1,M="jwtExpiryReloadedExp";var L=n(72569),R=n(89099),P=n(38537),F=n(41946),B=n.n(F),$=n(14330
2681);let q=m()();async function V(e,t,n,r){try{let i=q.publicRuntimeConfig.backendBaseUrl+"/api/interactions";return(await fetch(i,{method:"POST",headers:(0,v.co)({jwt:e,groupSlug:t||"",sessionId:n}),body:JSON.stringify({type:"page",url:window.location.href,timestamp:new Date().toISOString(),...r&&{targetUrl:r}})})).headers.get($.Nk)}catch{return null}}n(22222),n(70287),n(62212);var z=n(49995),U=n(5811),H=n(78950),W=n(42383);let G=(0,U.PA)(function(){let e=(0,P.BT)();function t(){e.modalProps.onClose&&e.modalProps.onClose(),e.close()}return(0,r.jsx)(H.A,{isOpen:e.isOpen,...e.modalProps,onClose:t,"data-sentry-element":"SimpleModal","data-sentry-component":"Alert","data-sentry-source-file":"Alert.tsx",children:(0,r.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,r.jsx)("div",{className:"text-lg font-bold text-center",children:"Alert"}),(0,r.jsx)("div",{className:"text-lg",children:e.children}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(W.rA,{onClick:t,"data-sentry-element":"ActionButton","data-sentry-source-file":"Alert.tsx",children:"Okay"})})]})})});var K=n(77328),J=n.n(K),Q=n(73382);let Y=(0,U.PA)(function({group:e}){let t=Object.entries((0,L.o4)(e)).map(([e,t])=>` ${e}: ${t};`).join("\n");return(0,r.jsx)(J(),{"data-sentry-element":"Head","data-sentry-component":"ThemeStyle","data-sentry-source-file":"ThemeStyle.tsx",children:(0,r.jsx)("style",{id:"theme-style",children:`:root { 2682${t} 2683}`})})});function X(e){return e.name?`name:${e.name}`:e.property?`property:${e.property}`:null}let Z=(0,U.PA)(function(e){var t;let{groupConfig:n,pageMeta:i}=e,{release:o}=m()().publicRuntimeConfig,s=(0,R.useRouter)(),a=(0,Q.W)(i?.title||e.title,n),{mobileLandscape:l,mobileLandscapeInfo:u}=n.logos,c=function(e,t){let n=new Set(t.map(X).filter(e=>!!e));return[...e.filter(e=>{let t=X(e);return!t||!n.has(t)}),...t]}((0,x.Ze)(n).metaTags??[],i?.metaTags??[]),d=(t="og:image",c.some(e=>e.property===t||e.name===t)),h=c.filter(e=>"og:url"!==e.property),p=u?.width??1024,f=u?.height??576,g=function(e,t){if(!e)return null;let n=e.replace(/\/+$/,""),r=t.split(/[?#]/)[0];return`${n}${r}`}(n.productionUrl,s.asPath);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(J(),{"data-sentry-element":"Head","data-sentry-source-file":"HtmlHead.tsx",children:[(0,r.jsx)("meta",{charSet:"UTF-8","data-sentry-element":"meta","data-sentry-source-file":"HtmlHead.tsx"}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1","data-sentry-element":"meta","data-sentry-source-file":"HtmlHead.tsx"}),(0,r.jsx)("meta",{name:"release",content:o,"data-sentry-element":"meta","data-sentry-source-file":"HtmlHead.tsx"}),(0,r.jsx)("title",{children:a}),g&&(0,r.jsx)("link",{rel:"canonical",href:g},"canonical"),g&&(0,r.jsx)("meta",{property:"og:url",content:g},"og:url"),i?.noindex&&(0,r.jsx)("meta",{name:"robots",content:"noindex"},"robots"),!d&&l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:image",content:l},"og:image"),(0,r.jsx)("meta",{property:"og:image:width",content:String(p)},"og:image:width"),(0,r.jsx)("meta",{property:"og:image:height",content:String(f)},"og:image:height")]}),h.flatMap(e=>(function(e){let t=e.name||e.property;if(!t||!e.content)return[];let n=e.name?{name:e.name}:{property:e.property},i=[(0,r.jsx)("meta",{...n,content:e.content},t)];return null!=e.photoWidth&&i.push((0,r.jsx)("meta",{property:`${t}:width`,content:String(e.photoWidth)},`${t}:width`)),null!=e.photoHeight&&i.push((0,r.jsx)("meta",{property:`${t}:height`,content:String(e.photoHeight)},`${t}:height`)),i})(e)),i?.jsonLd?.map((e,t)=>(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e).replace(/</g,"\\u003c")}},`ld+json:${t}`))]}),(0,r.jsx)(Y,{group:n,"data-sentry-element":"ThemeStyle","data-sentry-source-file":"HtmlHead.tsx"})]})});var ee=n(62584),et=n(13220);let en=function(e){let{appContext:t}=e,{marketingId:n,sessionId:r}=t,i=(0,P.s_)(),o=(0,et.QU)(),a=e=>{if(!e)return null;if("TEXTAREA"===e.tagName)return"[redacted]";let t=e.textContent?.trim()??null;return t?t.substring(0,100):null},l=(0,s.useCallback)(e=>{((e,t)=>
2683{let s=window.location.href,l=i.validClaims?.sub,u=i.validClaims?.aud,c=t?.tagName??null,d=a(t),h=t?(e=>{let t=[],n=e;for(;n;){let e=n.dataset;t.push({tagName:n.tagName,id:n.id,component:e.uiComponent||null,role:e.uiRole||null,uiID:e.uiId||null,textContent:a(n),ariaLabel:n.getAttribute("aria-label")}),n=n.parentElement}return t})(t):null,p=h?h.map((e,t)=>{let n=[];return e.component&&n.push(`component:${e.component}`),e.role&&n.push(`role:${e.role}`),e.uiID?n.push(`uiID:${e.uiID}`):(n.push(`tag:${e.tagName}`),e.id&&n.push(`id:${e.id}`),e.ariaLabel&&n.push(`aria-label:${e.ariaLabel}`),e.textContent&&0===t&&e.textContent!==e.ariaLabel&&n.push(`text:${e.textContent}`)),n.join(", ")}).join(" < "):null,f={marketingId:n,sessionId:r,jwtClaims:l?{sub:l,aud:u}:null,type:e,url:s,breadcrumbs:h,breadcrumbsSummary:p,target:t&&{id:t.id,className:t.className,tagName:c,textContent:d,ariaLabel:t.getAttribute("aria-label"),name:t.getAttribute("name"),title:t.getAttribute("title"),inputType:t.getAttribute("type")}||null};(0,ee.k)(o,f)})(e.type,e.target)},[i.validClaims,r]);return(0,s.useEffect)(()=>(document.body.addEventListener("click",l),()=>{document.body.removeEventListener("click",l)}),[i.validClaims,r]),null};var er=n(62195),ei=n(23060),eo=n(92775),es=n(98345),ea=n(37483),el=n(70485);let eu=(0,U.PA)(function(){let e=(0,P.uV)(),t=e.contentItems?.find(e=>"primary-footer"===e.slug);return(0,r.jsx)("footer",{"data-sentry-component":"MembersFooter","data-sentry-source-file":"MembersFooter.tsx",children:t&&(0,r.jsx)(el.A,{contentItem:t})})});var ec=n(36568);let ed=(0,er.J)(),eh=(0,U.PA)(function(e){let t,n=(0,et.Jc)(),i=(0,P.uV)(),o=(0,s.useRef)(i),[a,l]=(0,s.useState)(),{initializeWebSite:u}=a||{};u&&u(ed),(0,s.useEffect)(()=>{o.current.getContentItems(),l(window.groupFlowExports)},[]);let{path:c,children:d,layoutConfig:h}=e,p=(0,ec.qE)(),f=e=>!!e&&(e.startsWith("/members")||e.startsWith("/events")&&"/events/public"!==e),{Components:m,ComponentsLookup:g,ROUTES:y}=a||{},v=(0,x.Ze)(n).primaryPageBuilder||"WEB_COMPONENT";if(!y||!m||!g)return null;let b=(0,Q.cF)(i,c);b?.pageType===Q.g6.Embedded&&(b=null);let _=function(e,t){let{Components:n,ComponentsLookup:r,ROUTES:i}=t||{},o=Object.entries(i||{}).map(([e,t])=>({...t,route:e}));return i&&n&&r?e&&(0,ei.ie)(e,o):null}(c,a);if(c?.startsWith("/_admin"))return d;if(c&&b&&!f(c)){let e=(0,Q.Ql)(b,i);if(!e)throw Error(`Failed to resolve content for page ${b?.id}`);return(0,r.jsx)(es.A,{contentItem:e})}if(_&&"/members/*"!==_.route)return(t=m[_.name])&&(0,r.jsx)(t,{context:ed,children:d});if(f(c)){let e=g["members-area-header"],t=g["default-footer"],n=e&&m[e]||null,i=t&&m[t]||null,o=!p&&(void 0===h?.showFooter||h?.showFooter);return(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsx)(n,{})||(0,r.jsx)(eo.A,{}),d,o&&(i&&(0,r.jsx)(i,{})||(0,r.jsx)(eu,{}))]})}if("WEB_COMPONENT"===v){let e=g["default-header"],t=g["default-footer"],n=e&&m[e]||null,i=t&&m[t]||null;return(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsx)(n,{}),d,!p&&i&&(0,r.jsx)(i,{})]})}else{let e=h?.headerSlug??"simple-public-header",t=i.contentItems?.find(t=>t.slug===e),n=i.contentItems?.find(e=>"primary-footer"===e.slug);return(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(ea.A,{contentItem:t,className:(0,z.A)("header-with-hero",t.purpose)}),d,!p&&n&&(0,r.jsx)(ea.A,{contentItem:n})]})}});var ep=n(23955),ef=n(95494),em=n(88129),eg=n(77237),ey=n(10969),ev=n(27527),eb=n(18259);let ex=(0,U.PA)(function(e){let{onConfirmingHide:t,onSelecting:n,editMode:i,modalOpen:o}=e,s=(0,P.MM)();return(0,r.jsxs)("div",{className:"GlobalEditControls flex flex-col gap-1 m-1 font-montserrat","data-sentry-component":"GlobalEditControls","data-sentry-source-file":"GlobalEditControls.tsx",children:[i&&!o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{className:(0,z.A)(ey.OT.buttonShapeSmall,ey.OT.buttonActionColors),onClick:()=>s?.showRootScreen(ev.N,"entry"),children:"Search Website"}),(0,r.jsxs)("button",{onClick:()=>n&&n(!1),className:(0,z.A)(ey.OT.buttonShapeSmall,ey.OT.buttonBasicColors,"bg-white"),children:[(0,r.jsx)(ef.A,{className:"w-5 h-5"}),"Dismiss"]}),(0,r.jsxs)("button",{onClick:()=>t&&t(!1),className:(0,z.A)(ey.OT.buttonShapeSmall,ey.OT.buttonBasicColors,"bg-white"),children:[(0,r.jsx)(em.A,{className:"w-5 h-5"}),"Hide"]})]}),!i&&(0,r.jsxs)("button",{onClick:()=>n&&n(!0),className:(0,z.A)("flex justify-between items-center gap-2 rounded-full px-5 py-2 transition text-sm",ey.OT.buttonBasicColors,` 2684 w-[170px] 2685 bg-white 2686 opacity-80 2687 hover:opacity-100 2688 `),children:[(0,r.jsx)(eb.A,{level:"button-small",opacityClass:"opacity-100"}),(0,r.jsxs)("div",{className:"grow flex justify-center items-center gap-x-2",children:[(0,r.jsx)(eg.A,{className:"size-5"}),(0,r.jsx)("span",{className:"text-secondary-800",children:"Edit Mode"})]})]})]})});var e_=n(39114),ew=n(78248),ek=n(6884),eC=n(85819),eE=n(6195),eA=n(88992),eS=n(47027),eT=n(9327),ej=n(76366);function eN(e){let{isOpen:t,onClose:n,prompt:i,queryParams:o}
2688=e,a=(0,et.lF)(),[l,u]=(0,s.useState)(null),[c]=(0,ew._)(eE._c,{fetchPolicy:"network-only"});return a?(0,r.jsxs)(H.A,{isOpen:t||!1,onClose:n,contentStyle:{minHeight:"400px"},"data-sentry-element":"SimpleModal","data-sentry-component":"SelectContentItem","data-sentry-source-file":"SelectContentItem.tsx",children:[(0,r.jsx)("div",{children:i||"Choose existing child"}),(0,r.jsx)(eT.EM,{focusOnLoad:!0,onSearch:function(e){c({variables:{query:e,filter:(0,ek.Mr)(o)}}).then(e=>{e.data?.searchContentItems&&u(e.data.searchContentItems)})},onItemSelected:function(t){e.onItemSelected&&e.onItemSelected(t),n&&n()},items:l,mapResultItem:e=>(0,r.jsx)(ej.A,{contentItem:e}),"data-sentry-element":"ItemSearch","data-sentry-source-file":"SelectContentItem.tsx"})]}):null}var eO=n(43371),eI=n(16710);function eD(e){let t=(0,L.Eh)(),n=(0,ey.CI)(t),{className:i,formValues:o,navItem:a,onClose:l,onSave:u}=e,c=(0,Q.KR)(a??o)??Q.nz.NavLink,{register:d,handleSubmit:h,formState:p,setValue:f}=(0,eA.mN)({mode:"all",defaultValues:{internalName:"",isPublished:!0,settings:{isLoggedInVisible:!0,isLoggedOutVisible:!0,role:""},label:null,slug:"",uri:null}}),{errors:m}=p,[g,y]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{a?(f("internalName",a.internalName),f("isPublished",a.status===Q.Hi.Published),f("settings.isLoggedInVisible",a.settings.isLoggedInVisible),f("settings.isLoggedOutVisible",a.settings.isLoggedOutVisible),f("settings.role",a.settings.role),f("label",a.label),f("uri",(0,Q.iY)(a)||""),f("slug",a.slug||"")):o&&Object.keys(o).forEach(e=>{f(e,o[e])})},[a]),(0,r.jsxs)("form",{onSubmit:h(function(e){if(!u)return;let{isPublished:t,settings:{role:n,...r},uri:i,...o}=e;o={...o,href:i},a&&(o={...o,id:a.id}),o=t?{...o,status:Q.Hi.Published}:{...o,status:Q.Hi.Draft},r={...r,role:n||null},u(o={...o,settings:r})}),className:`${i||""} flex flex-col gap-4`,"data-sentry-component":"NavItemForm","data-sentry-source-file":"NavItemForm.tsx",children:[a&&(0,r.jsxs)(W.fh,{children:[(0,r.jsx)(W.Dk,{children:"ID"}),(0,r.jsx)("div",{children:a.id})]}),(0,r.jsxs)(W.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"NavItemForm.tsx",children:[(0,r.jsx)(W.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"NavItemForm.tsx",children:"Display label"}),(0,r.jsx)("input",{type:"text",className:(0,ey.SJ)(t),...d("label")}),m.label&&(0,r.jsxs)("div",{className:"text-red-danger",children:["Error: ",m.label.message]})]}),(0,r.jsxs)(W.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"NavItemForm.tsx",children:[(0,r.jsx)(W.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"NavItemForm.tsx",children:"Internal name"}),(0,r.jsx)("input",{type:"text",className:(0,ey.SJ)(t),...d("internalName")}),m.internalName&&(0,r.jsxs)("div",{className:"text-red-danger",children:["Error: ",m.internalName.message]})]}),(0,r.jsxs)(W.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"NavItemForm.tsx",children:[(0,r.jsx)(W.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"NavItemForm.tsx",children:"Slug"}),(0,r.jsx)(eS.A,{backgroundType:L.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"NavItemForm.tsx",children:"This is a distinct name that is used by the website find this navigation item. It's usually left blank."}),(0,r.jsx)("input",{type:"text",className:(0,ey.SJ)(t),...d("slug")}),m.slug&&(0,r.jsxs)("div",{className:"text-red-danger",children:["Error: ",m.slug.message]})]}),c===Q.nz.NavLink&&(0,r.jsxs)(W.fh,{children:[(0,r.jsx)(W.Dk,{children:"Page Path"}),(0,r.jsx)(eS.A,{backgroundType:L.Sh.PRIMARY_CARD,children:"This is the where the page lives, in the browser's address bar. This can be a local path, or a full URL"}),(0,r.jsx)("input",{type:"text",className:(0,ey.SJ)(t),...d("uri")}),!g&&(0,r.jsx)("a",{className:(0,z.A)("cursor-pointer",n.linkColor),onClick:()=>y(!0),children:"Select local page..."}),(0,r.jsx)(eN,{isOpen:g,onClose:()=>y(!1),onItemSelected:function(e){f("uri",(0,Q.HX)(e)||"")},prompt:"Find a page",queryParams:{type:Q.nz.Page,parentId:null}}),m.uri&&(0,r.jsxs)("div",{className:"text-red-danger",children:["Error: ",m.uri.message]})]}),(0,r.jsxs)(W.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"NavItemForm.tsx",children:[(0,r.jsx)(W.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"NavItemForm.tsx",children:"Access by permission role"}),(0,r.jsx)("p",{className:(0,z.A)("p",n.cardMutedTextColor),children:"Restrict visibility to the specified member role."}),(0,r.jsxs)(eI.A,{className:"border rounded px-2 py-1",register:d("settings.role"),"data-sentry-element":"Select","data-sentry-source-file":"NavItemForm.tsx",children:[(0,r.jsx)("option",{value:"",children:"-- None --"}),eO.YR.filter(e=>"super"!==e.value).map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value))]})]}),(0,r.jsxs)(W.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"NavItemForm.tsx",children:[(0,r.jsx)(W.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"NavItemForm.tsx",children:"Options"}),(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("input",{type:"checkbox",...d("isPublished"),id:"isPublished"}),(0,r.jsx)("label",{htmlFor:"isPublished",className:"flex-grow ml-2",children:"Make item published"})]}),(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("input",{type:"checkbox",...d("settings.isLoggedInVisible"),id:"isLoggedInVisible"}),(0,r.jsx)("label",{htmlFor:"isLoggedInVisible",className:"flex-grow ml-2",children:"Visible to logged-in members?"})]}),(0,r.jsxs)("div",{className:"flex justify-between items-center",children:[(0,r.jsx)("input",{type:"checkbox",...d("settings.isLoggedOutVisible"),id:"isLoggedOutVisible"}),(0,r.jsx)("label",{htmlFor:"isLoggedOutVisible",className:"flex-grow ml-2",children:"Visible to logged-out members?"})]})]}),(0,r.jsx)(W.fC,{cancel:{onClick:()=>l&&l()},"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"NavItemForm.tsx",children:"Save"})]})}var eM=n(5491),eL=n(79344),eR=n(8571);function eP(e){let{onDelete:t}=e;return(0,r.jsx)("div",{className:"cursor-pointer hover:text-red-danger",onClick:t,title:"Removes this item from the list","data-sentry-component":"DeleteCol","data-sentry-source-file":"DeleteCol.tsx",children:(0,r.jsx)(eR.A,{className:"fill-current hover:text-red-danger mr-2",style:{width:"16px",height:"16px"},"data-sentry-element":"DeleteIcon","data-sentry-source-file":"DeleteCol.tsx"})})}
2688function eF(e){let t=(0,ey.CI)((0,L.Eh)()),{children:n}=e;return(0,r.jsx)("div",{className:(0,z.A)("flex-grow cursor-pointer ml-2 whitespace-nowrap truncate flex justify-left items-center",t.accentTextHoverColor),"data-sentry-component":"LabelCol","data-sentry-source-file":"LabelCol.tsx",children:n})}var eB=n(63334);function e$(e){let t=(0,ey.CI)((0,L.Eh)()),{navItem:n,onClick:i,dragProps:o,gripSortable:a,itemClass:l}=e,u=(0,s.useRef)(null);return(0,r.jsxs)("div",{id:`nav-item-${n.id}`,"data-sort-item":"true","data-sort-item-id":n.id,onClick:()=>{!u.current&&i&&i(n)},...o||{},className:(0,z.A)("ListItemWrapper block border rounded mb-2 flex items-center gap-1 pointer-cursor",t.cardLineColor,t.accentBorderHoverColor,l),"data-sentry-component":"NavListItem","data-sentry-source-file":"NavListItem.tsx",children:[(0,r.jsx)(eL.A,{id:n.id,sortable:a,"data-sentry-element":"GripCol","data-sentry-source-file":"NavListItem.tsx"}),(0,r.jsx)(eM.A,{contentItem:n,"data-sentry-element":"ContentItemTypeIcon","data-sentry-source-file":"NavListItem.tsx"}),(0,r.jsx)(eB.A,{contentItem:n,"data-sentry-element":"StatusIcon","data-sentry-source-file":"NavListItem.tsx"}),(0,r.jsxs)(eF,{"data-sentry-element":"LabelCol","data-sentry-source-file":"NavListItem.tsx",children:[(0,r.jsx)("span",{className:"inline-block",title:`ID: ${n.id}`,children:n.label}),n.internalName&&(0,r.jsxs)("span",{className:(0,z.A)("inline-block truncate ml-2",t.cardMutedTextColor),children:["- ",n.internalName]})]}),(0,r.jsx)(eP,{onDelete:function(t){t.preventDefault(),t.stopPropagation(),e.onDelete&&e.onDelete(n)},"data-sentry-element":"DeleteCol","data-sentry-source-file":"NavListItem.tsx"})]})}var eV=n(99410),ez=n(9297),eU=n(28333);function eH(e){let t=(0,ey.CI)((0,L.Eh)()),{sortable:n,children:i,className:o,id:s,onClick:a,style:l,title:u}=e;return(0,r.jsx)(eU.A,{className:(0,z.A)("ListItemWrapper block border rounded mb-2 flex items-center gap-1",t.cardLineColor,t.accentBorderHoverColor,o),id:s,onClick:a,sortable:n,style:l,title:u,"data-sentry-element":"ListItem","data-sentry-component":"ListItemWrapper","data-sentry-source-file":"ListItemWrapper.tsx",children:i})}var eW=n(82037);function eG(e){let t=(0,ey.CI)((0,L.Eh)()),{allowAddExisting:n,label:i}=e,[o,a]=(0,s.useState)(!1);function l(t){e.onClick&&e.onClick(t),a(!1)}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(eH,{className:(0,z.A)("cursor-pointer",t.cardMutedTextColor,e.className),style:{height:"1.75em"},onClick:function(){n?a(!0):l("new")},"data-sentry-element":"ListItemWrapper","data-sentry-source-file":"AddItem.tsx",children:[(0,r.jsx)(ez.A,{className:"fill-current mx-2",style:{width:"16px",height:"16px"},"data-sentry-element":"AddIcon","data-sentry-source-file":"AddItem.tsx"}),i&&(0,r.jsx)("div",{children:i})]}),(0,r.jsx)(H.A,{isOpen:o,onClose:()=>a(!1),"data-sentry-element":"SimpleModal","data-sentry-component":"choices","data-sentry-source-file":"AddItem.tsx",children:(0,r.jsxs)("div",{className:"flex gap-2 justify-center",children:[(0,r.jsx)(eW.tA,{onClick:()=>l("new"),"data-sentry-element":"SecondaryButton","data-sentry-source-file":"AddItem.tsx",children:"Add new item"}),(0,r.jsx)(eW.tA,{onClick:()=>l("existing"),"data-sentry-element":"SecondaryButton","data-sentry-source-file":"AddItem.tsx",children:"Add existing item"})]})})]})}var eK=n(63945);function eJ(e){let{navItem:t,onItemClick:n,onNewClick:i}=e,[o,a]=(0,s.useState)(null),{listRef:l,dragProps:u,getItemClass:c,getGripSortable:d}=(0,eV.A)({onReorder:t=>{e.onReorder&&e.onReorder(t)}});function h(e){a(e)}return(0,r.jsxs)("div",{className:"relative",id:"NavItemList","data-sentry-component":"NavItemList","data-sentry-source-file":"NavItemList.tsx",children:[(0,r.jsx)("div",{ref:l,children:t.children.map(e=>(0,r.jsx)(e$,{navItem:e,onDelete:h,onClick:n,dragProps:u,gripSortable:d(e.id),itemClass:c(e.id)},e.id))}),(0,r.jsx)(eG,{onClick:function(){i&&i("new")},label:"Add nav item","data-sentry-element":"AddItem","data-sentry-source-file":"NavItemList.tsx"}),(0,r.jsx)(eK.A,{deleting:!!o,onClose:function(){a(null)},onDelete:function(){if(e.onItemRemove&&o){if(!o)throw Error("Expected `deletingItem`");e.onItemRemove(o)}a(null)},prompt:"Are you sure you want to delete this item?","data-sentry-element":"ConfirmDelete","data-sentry-source-file":"NavItemList.tsx"})]})}var eQ=n(94829),eY=n(50015),eX=n(70544);
2688let eZ=(0,U.PA)(function(){let[e,t]=(0,s.useState)(),n=(0,P.uV)(),[i]=(0,ew._)(eE.Q9,{fetchPolicy:"network-only"});async function o(){let e=await i({variables:{filter:{type:{in:(0,ek.DX)(ek.eN.Navigation)},status:{eq:Q.Hi.Published}}}}),r=e.data?.listContentItems;return r?n.reloadNavigationData(r):void t(e.error??!0)}let a=(0,P.MM)(),{cursor:l,contentItem:u,refresh:c}=(0,eX.f)(),d=l?.initialParams,h=u||(0,Q.oz)(d)||{},p=(0,et.lF)(),[f,m]=(0,s.useState)("list"),[g,y]=(0,s.useState)(null),[v]=(0,eC.X)(eE.Jt),[b]=(0,eC.X)(eE.o5),[x]=(0,eC.X)(eE.Wv),[_]=(0,eC.X)(eE.bQ),w=!!l&&null===l.contentId,k=!!u&&(0,Q.KR)(u)!==Q.nz.NavLink,C=w?"add":k&&"list"===f?"list":"edit";if(!p)return null;function E(){let e=l?.path??[];return u?[...e,(0,Q.bN)(u)]:e}async function A(e){if(!u)throw Error("Expected navItem");j();let{id:n,...r}=e={id:u.id,...e},i=await b({variables:{id:n,input:(0,Q.Bd)(r)}},"updateContentItem2");i.hasError?t(i.errors??!0):(y("Updated nav item"),c(),o(),O(i.data))}async function S(e){if(!d)throw Error("initialParams is not set");j(),e={...d,...e};let n=await v({variables:{input:(0,Q.Bd)(e)}},"createContentItem2");n.hasError?t(n.errors??!0):(y("Created nav item"),o(),a?.open(n.data.id,{path:l?.path??[]}))}async function T(e){if(j(),!u)throw Error("Expected navItem");let n=e.map((e,t)=>({id:e,order:t})),r=await x({variables:{input:{items:n}}},"bulkUpdateContentItems2");r.hasError&&t(r.errors??!0),c(),o()}function j(){t(null),y(null)}async function N(e){if(j(),!u)throw Error("Expected navItem");let n=await _({variables:{id:e.id}},"destroyContentItem2");n.hasError?t(n.errors??!0):(y("Deleted nav item"),c(),o())}function O(e){if(!(e=e||u))throw Error("No navItem present");(0,Q.dA)(e)?m("list"):I()}function I(){if(!a)return;let e=l?.path[l.path.length-1]??u?.parent;e?a.open(e.id,{path:function(){let e=l?.path??[];return e.length>0?e.slice(0,e.length-1):[]}()}):a.close()}if(!a)return null;let D=[{screen:"list",content:(0,r.jsx)(eY.o_,{children:"List"})},{screen:"edit",content:(0,r.jsx)(eY.km,{children:"Attributes"})}].filter(e=>k||"list"!==e.screen);return(0,r.jsxs)("div",{style:{maxWidth:"500px"},className:"mx-auto","data-sentry-component":"NavEdit","data-sentry-source-file":"NavEdit.tsx",children:[(0,r.jsxs)(r.Fragment,{children:[u&&(0,r.jsx)(eW.tU,{tabs:D,screen:"list"===C?"list":"edit",onChange:function(e){j(),m(e)}}),"add"===C&&(0,r.jsx)(eD,{className:"mt-4",onClose:I,onSave:S,formValues:h}),"edit"===C&&u&&(0,r.jsx)(eD,{className:"mt-4",navItem:u,onClose:O,onSave:A}),"list"===C&&(0,r.jsxs)("div",{className:"mt-4",children:[g&&(0,r.jsx)(eQ.A,{className:"mb-2",onClose:()=>y(null),children:g}),u&&(0,r.jsx)(eJ,{navItem:u,onItemClick:function(e){a&&(j(),m("list"),a.open(e.id,{path:E()}))},onItemRemove:N,onReorder:T,onNewClick:function(){a&&a.openNew({parentId:u?.id,...(0,Q.hW)(h)},{path:E()})}})]})]}),e&&(0,r.jsx)(eQ.A,{type:"warning",onClose:()=>t(null),className:"mt-4",children:"There was an error while servicing your request. Please try again."})]})});var e0=n(81002),e1=n(22611);function e2(e){let{children:t,className:n}=e;return(0,r.jsx)("code",{className:`bg-gray-lighter px-1 ${n||""}`,"data-sentry-component":"Code","data-sentry-source-file":"Code.tsx",children:t})}var e5=n(95024),e3=n(48230),e4=n.n(e3),e8=n(32513),e6=n(34728),e7=n(77859),e9=n(11888);let te=function(e){let t=(0,ey.CI)((0,L.Eh)()),{contentItem:n,hookForm:i,isDeveloper:o}=e,{control:s,register:a,formState:l,setValue:u}=i,{errors:c}=l,d=(0,eA.FH)({control:s,name:"type"}),h=d!==Q.nz.Text,p=(0,eA.FH)({control:s,name:"photoItem.id"}),f=(0,eA.FH)({control:s,name:"photoItem.photoId"}),m=(0,eA.FH)({control:s,name:"photoItem.content"}),g=(0,eA.FH)({control:s,name:"photoItem.label"}),y=(0,eA.FH)({control:s,name:"photoUrl"}),v=(0,R.useRouter)().asPath.replace(/\?.*$/,"");return(0,r.jsxs)(r.Fragment,{children:[!n?.id&&d===Q.nz.Page&&(0,r.jsxs)(W.fh,{children:[(0,r.jsx)("p",{className:"p",children:"This creates a member-only page."}),(0,r.jsxs)("p",{className:"p",children:["To create a public page, go to any existing public page, such as the"," ",(0,r.jsx)(e4(),{href:"/",className:"a",children:"home page"}),', press the "Edit Mode" button, then press "New Page" at the top of the page.']})]}),n?.publishedAt&&(0,r.jsxs)(W.fh,{children:[(0,r.jsx)(W.Dk,{children:"Last Modified At:"}),(0,r.jsx)(e5.A,{dateTime:n.publishedAt})]}),n?.author&&(0,r.jsxs)(W.fh,{children:[(0,r.jsx)(W.Dk,{children:"Author"}),(0,r.jsx)("div",{children:(0,r.jsx)(e4(),{href:`/members/${n.author.id}`,className:"a",children:n.author.name})})]}),n?.type===Q.nz.Page&&(0,Q.HX)(n)&&(0,Q.HX)(n)!==v&&(0,r.jsxs)(W.fh,{children:[(0,r.jsx)(W.Dk,{children:"Page"}),(0,r.jsx)(e4(),{href:(0,Q.HX)(n)||"/",className:"a",children:"Go to page"})]}),n&&(0,Q.Uh)(n)&&(0,r.jsx)("div",{className:t.cardMutedTextColor,children:"This is a preset text item. Preset text items cannot be deleted."}),!n&&(0,Q.FT)({type:d})&&(0,r.jsxs)(W.fh,{children:[(0,r.jsx)(W.Dk,{children:"Adding a Post Container"}),(0,r.jsx)(eS.A,{backgroundType:L.Sh.PRIMARY_CARD,children:"Start by defining the container that will contain a list of posts on the page. After defining the container, posts can be added in the next step."})]}),(0,r.jsxs)(W.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"FormFields.tsx",children:[(0,r.jsxs)(W.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"FormFields.tsx",children:["Title",h&&(0,r.jsx)(e1.A,{})]}),d===Q.nz.Page&&(0,r.jsx)(eS.A,{backgroundType:L.Sh.PRIMARY_CARD,children:"The page title becomes part of the window or tab title. It is not displayed on the page."}),(0,r.jsx)(W.ks,{register:a("title",{required:h}),"data-sentry-element":"TextInput","data-sentry-source-file":"FormFields.tsx"}),(0,r.jsx)(W.Kw,{name:"title",errors:i.formState.errors,"data-sentry-element":"ErrorMessage","data-sentry-source-file":"FormFields.tsx"})]}),(0,r.jsxs)(W.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"FormFields.tsx",children:[(0,r.jsx)(W.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"FormFields.tsx",children:"Internal name"}),(0,r.jsx)(eS.A,{backgroundType:L.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"FormFields.tsx",children:"This provides additional information about the page, for easier searching."}),(0,r.jsx)(W.ks,{register:a("internalName"),"data-sentry-element":"TextInput","data-sentry-source-file":"FormFields.tsx"})]}),(0,Q.br)({type:d})&&(0,r.jsxs)(W.fh,{children:[(0,r.jsx)(W.Dk,{children:"Photo"}),(0,r.jsx)(e9.A,{photoValues:{id:p,photoId:f,content:m,label:g,url:y},altRegister:a("photoItem.label"),captionRegister:a("photoItem.content"),photoIdRegister:a("photoItem.photoId"),onPhotoUploaded:function({photoId:e,url:t}){u("photoItem.photoId",e),u("photoUrl",t)},onRemovePhoto:function(){u("photoItem.id",null),u("photoItem.photoId",null),u("photoItem.content",""),u("photoItem.label",""),u("photoUrl",null)}})]}),d===Q.nz.Page&&(0,r.jsxs)(W.fh,{children:[(0,r.jsx)(W.Dk,{children:"URI path"}),n&&(0,Q.Uh)(n)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:(0,z.A)("p",t.cardMutedTextColor),children:"This is a preset page. Its URI path cannot be changed."}),"URI: ",(0,r.jsx)(e2,{children:(0,Q.HX)(n)})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(eS.A,{backgroundType:L.Sh.PRIMARY_CARD,children:["Enter a local path for the page. The URI path must start with"," ",(0,r.jsx)(e2,{children:"/members/pages/"}),"."]}),(0,r.jsx)(W.ks,{register:a("uri",{required:!0,validate:e=>!!(0,Q.bS)(e)||"URI must start with /members/pages/"})})]})]}),(0,Q.kb)({type:d})&&(0,r.jsxs)(W.vZ,{label:"Button",className:ey.Ay.formClass,children:[(0,r.jsxs)("div",{className:"min-w-[15em]",children:[(0,r.jsx)(W.Dk,{children:"Label"}),(0,r.jsx)(W.ks,{register:a("buttonItem.label")})]}),(0,r.jsxs)("div",{className:"min-w-[15em]",children:[(0,r.jsx)(W.Dk,{children:"URI path"}),(0,r.jsx)(W.ks,{register:a("buttonItem.uri")})]})]}),o&&(0,r.jsx)(e6.A,{title:"Indexing options (developer only)",children:(0,r.jsx)(e7.A,{hookForm:i})}),!(0,Q.fq)({type:d})&&(0,r.jsxs)(W.fh,{children:[(0,r.jsx)(W.Dk,{children:"Text content"}),(0,r.jsx)(e8.A,{featureSet:"web",register:a("content"),hookForm:i}),c.content&&(0,r.jsxs)("div",{className:"text-red-danger",children:["Error: ",c.content.message]})]}),(0,r.jsx)(W.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"FormFields.tsx",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("input",{type:"checkbox",...a("isPublished"),id:"isPublished"}),(0,r.jsx)("label",{htmlFor:"isPublished",className:"flex-grow ml-2",children:"Make published"})]})}),(c.slug||c.classIdentifier)&&(0,r.jsx)("div",{className:"text-red-danger",children:"Correct the indexing options before saving."})]})};var tt=n(12089),tn=n(80229);let tr={buttonItem:{id:"",label:"",uri:""},classIdentifier:"",content:"",internalName:"",isPublished:!0,photoItem:{content:"",id:null,label:"",photoId:null},photoUrl:null,slug:null,textFormat:"MARKDOWN",type:null,title:"",uri:""},ti=(0,U.PA)(function(e){let[t,n]=(0,eC.X)(eE.o5),[i,o]=(0,eC.X)(eE.Jt),{contentItem:a,mutationResult:l}=e,u=n.loading||o.loading,c=(0,et.IG)(),d=!!c&&(0,e_.hN)(c,"developer"),h=e.addingAttrs||{},p={...tr,...e.initialValues||{},...h,textFormat:h.textFormat??e.initialValues?.textFormat??tr.textFormat,type:h.type??e.initialValues?.type??null},f={...p,uri:p.uri||h.path||"",classIdentifier:(0,Q.dE)(a)||""};f.type!==Q.nz.Page||f.uri||(f={...f,uri:"/members/resources/new-page"});let m=(0,Q.kA)(a),g=a?.children.find(Q._F),y=(0,eA.mN)({mode:"all",defaultValues:f}),{handleSubmit:v,register:b,setValue:x,watch:_}
2688=y,[w,k]=(0,s.useState)(!1);async function C(n){if(n.type===Q.nz.Page&&n.pageType!==Q.g6.Embedded&&!(0,Q.bS)(n.uri))throw Error("Standalone page cannot be created with this UI");let{id:r,...o}=function(e){let{isPublished:t,photoItem:n,buttonItem:r,photoUrl:i,type:o,classIdentifier:s,uri:l,...u}=e,c=o||h.type||Q.nz.Page,d={...h,...u,...c===Q.nz.Page?{path:l}:{href:l},...a?.id?{id:a.id}:{},...void 0!==s&&s.trim()!==((0,Q.dE)(a)||"")?{attributes:(0,Q.AL)(a,s??"")}:{},status:t?Q.Hi.Published:Q.Hi.Draft,type:c};if(!(0,Q.fq)({type:d.type})){let e=[];if(n&&(n.photoId||n.content||n.label)&&e.push({...n,type:Q.nz.Image,purpose:"image",id:n.id||void 0}),r&&r.label){let{uri:t,...n}=r;e.push({...n,href:t,type:Q.nz.Button,id:r.id||void 0})}(d={...d,children:e}).textFormat||(d={...d,textFormat:"HTML"})}return d.type===Q.nz.Page&&(d={...d,pageType:Q.g6.Embedded}),d}(n),s=(0,Q.Bd)(o),l=a?.id?await t({variables:{id:a.id,input:s}},"updateContentItem2"):await i({variables:{input:s}},"createContentItem2"),u=l.hasError?{error:!0,serverError:!1,requestErrors:[]}:{error:!1,data:l.data};e.onAfterSave&&e.onAfterSave(u)}return(0,s.useEffect)(()=>{a&&(x("content",(0,tn.aY)(a.content||"",(0,Q.xs)(a)??"MARKDOWN")),x("textFormat","HTML"),x("internalName",a.internalName||""),x("isPublished",a.status===Q.Hi.Published),x("pageType",a.pageType||null),x("slug",a.slug),x("type",a.type),x("title",a.title||""),x("uri",(a.type===Q.nz.Page?(0,Q.HX)(a):(0,Q.iY)(a))||""),m&&(x("photoItem.id",m.id),x("photoItem.photoId",m.photoId),x("photoItem.content",m.content||""),x("photoItem.label",m.label||""),x("photoUrl",m.photo?.url||null)),g&&(x("buttonItem.id",g.id),x("buttonItem.label",g.label),x("buttonItem.uri",(0,Q.iY)(g)||"")))},[a]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("form",{onSubmit:v(C),className:"flex flex-col gap-6 justify-between",children:[(0,r.jsx)(e0.A,{mutationResult:l,className:"mb-4","data-sentry-element":"SaveResult","data-sentry-source-file":"ContentItemEdit.tsx"}),_("type")?(0,r.jsx)(te,{contentItem:a,hookForm:y,isDeveloper:d}):(0,r.jsxs)(W.fh,{children:["What type of content do you want to create?",(0,r.jsx)(W.z6,{radios:[{label:"Page",value:Q.nz.Page},{label:"Posts",value:Q.nz.PostList}],register:b("type")})]}),_("type")&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e0.A,{mutationResult:l,className:"mb-4"}),(0,r.jsx)(W.fC,{cancel:{onClick:()=>void(e.onClose&&e.onClose())},className:"mb-4",saving:u,withGroupFlow:!0,children:"Save"})]})]}),a&&!(0,Q.Uh)(a)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-center gap-x-8",children:[(0,Q.FT)(a)&&(0,r.jsx)(eW.tA,{onClick:function(){e.onRequestClonePostList&&a?.id&&e.onRequestClonePostList(a)},leftIcon:(0,r.jsx)(tt.A,{className:"h-5 w-5"}),children:"Clone"}),(0,r.jsx)(eW.tA,{onClick:()=>k(!0),leftIcon:(0,r.jsx)(em.A,{className:"h-5 w-5"}),normalTextColorClass:"text-red-danger hover:text-red-dark",children:"Permanently Delete"})]}),(0,r.jsx)(eK.A,{deleting:w,onClose:()=>k(!1),onDelete:function(){k(!1),e.onDelete&&e.onDelete()},prompt:"Are you sure you want to delete this item?"})]})]})});function to(e){let t=(0,ey.CI)((0,L.Eh)()),{contentItem:n,onClick:i,dragProps:o,gripSortable:s,itemClass:a}=e;return(0,r.jsxs)("div",{id:`nav-item-${n.id}`,"data-sort-item":"true","data-sort-item-id":n.id,title:`ID: ${n.id}`,onClick:()=>i&&i(n),...o||{},className:(0,z.A)("ListItemWrapper block border rounded mb-2 flex items-center gap-1 pointer-cursor",t.cardLineColor,t.accentBorderHoverColor,a),"data-sentry-component":"ContentItemListItem","data-sentry-source-file":"ContentItemListItem.tsx",children:[(0,r.jsx)(eL.A,{id:n.id,sortable:s,"data-sentry-element":"GripCol","data-sentry-source-file":"ContentItemListItem.tsx"}),(0,r.jsx)(eM.A,{contentItem:n,"data-sentry-element":"ContentItemTypeIcon","data-sentry-source-file":"ContentItemListItem.tsx"}),(0,r.jsx)(eB.A,{contentItem:n,"data-sentry-element":"StatusIcon","data-sentry-source-file":"ContentItemListItem.tsx"}),(0,r.jsxs)(eF,{"data-sentry-element":"LabelCol","data-sentry-source-file":"ContentItemListItem.tsx",children:[(0,r.jsx)("span",{className:"inline-block",title:`ID: ${n.id}`,children:n.title}),n.internalName&&(0,r.jsxs)("span",{className:(0,z.A)("inline-block truncate ml-2",t.cardMutedTextColor),children:["- ",n.internalName]})]}),(0,r.jsx)(eP,{onDelete:function(t){t.preventDefault(),t.stopPropagation(),e.onDelete&&e.onDelete(n)},"data-sentry-element":"DeleteCol","data-sentry-source-file":"ContentItemListItem.tsx"})]})}
2688function ts(e){let t,n,{contentItem:i,onItemSelected:o}=e,[a,l]=(0,s.useState)(!1),{listRef:u,dragProps:c,getItemClass:d,getGripSortable:h}=(0,eV.A)({onReorder:t=>{e.onReorder&&e.onReorder(t)}});function p(e){o&&o(e)}function f(t){e.onItemRemoveRequested&&e.onItemRemoveRequested(t)}return(0,r.jsxs)("div",{id:"ContentItemList","data-sentry-component":"ContentItemList","data-sentry-source-file":"ContentItemList.tsx",children:[(0,r.jsx)("div",{id:"contentItems",ref:u,children:i.children.map(e=>(0,r.jsx)(to,{contentItem:e,onDelete:f,onClick:p,dragProps:c,gripSortable:h(e.id),itemClass:d(e.id)},e.id))}),(0,r.jsx)(eG,{label:"Add new",onClick:function(t){"existing"===t?l(!0):"new"===t&&e.onNewChildClick&&e.onNewChildClick(t)},allowAddExisting:!0,"data-sentry-element":"AddItem","data-sentry-source-file":"ContentItemList.tsx"}),(0,r.jsx)(eN,{isOpen:a,onClose:()=>l(!1),onItemSelected:e.onAddExistingChild,queryParams:(t=i.type??void 0,n={parentId:null},t&&(n={...n,type:t}),i.type===Q.nz.PostList&&(n={...n,type:Q.nz.Post}),n),"data-sentry-element":"SelectContentItem","data-sentry-source-file":"ContentItemList.tsx"})]})}let ta=(0,U.PA)(function(){let e=(0,P.MM)(),t=(0,P.uV)(),{cursor:n,contentItem:i,refresh:o,up:a,upTarget:l}
2688=(0,eX.f)(),u=(0,et.lF)(),[c,d]=(0,s.useState)(),[h,p]=(0,s.useState)("list"),[f]=(0,eC.X)(eE._b),[m]=(0,eC.X)(eE.Wv),[g]=(0,eC.X)(eE.bQ),[y]=(0,eC.X)(eE.o5),v=!!n&&null===n.contentId,b=(0,Q.fq)(i),x=v?"add":b&&"list"===h?"list":"edit";async function _(e){if(e.error){var t;return console.warn("Failed to update content item:",e),d((t="Failed to save content item",e.error?e.serverError?{type:"error",message:"Failed to service your request. There was a problem with this service."}:{type:"invalid",message:t}:{type:"success",message:t})),!1}w(e)}function w(r){if(!e)return;let i=r.data;i.type===Q.nz.Post&&i.parentId?(e.open(i.parentId,{path:k()}),t.onPageUpdated()):n?.contentId!==i.id?(e.open(i.id,{path:n?.path??[]}),t.onPageUpdated()):o();let s=i.type===Q.nz.Post?"Post":"Page";return d({type:"success",message:`Saved ${s}`}),!0}function k(){let e=n?.path??[];return e.length>0?e.slice(0,e.length-1):[]}function C(){let e=n?.path??[];return i?[...e,(0,Q.bN)(i)]:e}async function E(e){let t=await f({variables:{input:{sourceId:e.id}}},"cloneContentItem2");t.hasError?d({type:"error",message:"Failed to clone content item"}):w({error:!1,data:t.data})}function A(){d(void 0)}async function S(e){A();let{id:t,...n}={id:e.id,parentId:null,type:e.type};return(await y({variables:{id:t,input:(0,Q.Bd)(n)}},"updateContentItem2")).hasError?(d({type:"error",message:"Failed to update content type"}),!1):(o(),d({type:"success",message:"Removed content item from list"}),!0)}async function T(e){if(!i)return!1;A();let{id:t,...n}={id:e.id,parentId:i.id,type:e.type};return(await y({variables:{id:t,input:(0,Q.Bd)(n)}},"updateContentItem2")).hasError?(d({type:"error",message:"Failed to add child to list"}),!1):(o(),d({type:"success",message:"Added item to list"}),!0)}async function j(){if(!i)throw Error("No contentItem set");if(!e)return!1;if(A(),(await g({variables:{id:i.id}},"destroyContentItem2")).hasError)return d({type:"error",message:"Failed to delete content type"}),!1;let t=n?.path[n.path.length-1]??i.parent;return t?e.open(t.id,{path:k()}):e.close(),d({type:"success",message:"Deleted content item"}),!0}async function N(e){i||console.warn("Expected contentItem"),A();let t=e.map((e,t)=>({id:e,order:t}));(await m({variables:{input:{items:t}}},"bulkUpdateContentItems2")).hasError?d({type:"error",message:"Failed to reorder items"}):(o(),d({type:"success",message:"Reordered items"}))}function O({children:e,showResult:t,fullWidth:n}){return(0,r.jsxs)("div",{style:n?{}:{maxWidth:"500px"},className:"mx-auto","data-sentry-component":"Wrapper","data-sentry-source-file":"ContentItemManagement.tsx",children:[!1===t?null:(0,r.jsx)(e0.A,{mutationResult:c,className:"mb-4"}),e]})}if(!u)return null;if("add"===x||"edit"===x){let t,o,s,u;return"edit"===x?(o=i,s=E,u=j):t={...n?.initialParams??{type:Q.nz.Text}},(0,r.jsx)(O,{showResult:!1,fullWidth:!0,children:(0,r.jsx)(ti,{addingAttrs:t,contentItem:o,mode:x,mutationResult:c,onClose:function(){A(),l?a():e?.close()},onRequestClonePostList:s,onDelete:u,onAfterSave:_})})}let I=[{screen:"list",content:(0,r.jsx)(eY.o_,{children:"List"})},{screen:"edit",content:(0,r.jsx)(eY.km,{children:"Attributes"})}].filter(e=>b||"list"!==e.screen);return(0,r.jsxs)(O,{"data-sentry-element":"Wrapper","data-sentry-component":"ContentItemManagement","data-sentry-source-file":"ContentItemManagement.tsx",children:[(0,r.jsx)(eW.tU,{className:"mb-2",tabs:I,screen:h,onChange:p,"data-sentry-element":"Tabs","data-sentry-source-file":"ContentItemManagement.tsx"}),i&&(0,r.jsx)(ts,{contentItem:i,onAddExistingChild:T,onItemSelected:function(t){e&&(A(),p("list"),e.open(t.id,{path:C()}))},onNewChildClick:function(){if(e)if(A(),"list"===x&&i){let{type:t,id:n}=i;e.openNew({parentId:n,type:(0,Q.u2)(t)??Q.nz.Post},{path:C()})}else e.openNew({type:(0,Q.u2)(i?.type)??Q.nz.Page})},onItemRemoveRequested:S,onReorder:N})]})});var tl=n(88427),tu=n(41430),tc=n(88247),td=n(9095);let th=(0,U.PA)(function(e){let t=(0,L.Eh)(),{handleSubmit:n,register:i,setValue:o,watch:a}=(0,eA.mN)({defaultValues:{children:[]}}),{webComponentName:l}
2688=e,[u]=(0,eC.X)(eE.Jt),[c]=(0,eC.X)(eE.o5),[d,h]=(0,s.useState)(e.contentItem??null),[p,f]=(0,s.useState)(void 0),m=(0,P.uV)(),g=er.w.find(e=>e.name===l),y=g?.contentSchema,[v,b]=(0,s.useState)(null);async function x(t){let n;if(!y)return;let r=(0,Q.Bd)(function(e){let{contentItem:t,contentSchema:n,data:r,initialParams:i,webComponentName:o}=e,s="image"===n.type,a={textFormat:s?void 0:"MARKDOWN",type:s?Q.nz.Image:t?.type||Q.nz.Post,children:r.children,photoId:s?r.photoId:void 0,slug:t?.slug||i?.slug,title:t?.title||`${o} Content`,label:s&&r.label||""};return n.isParentEditable?{...a,content:r.content}:a}({contentItem:d,contentSchema:y,data:t,initialParams:e.initialParams,webComponentName:l}));if((n=d?await c({variables:{id:d.id,input:r}},"updateContentItem2"):await u({variables:{input:r}},"createContentItem2")).hasError){let e={data:null,loading:!1,reset:()=>f(void 0),serverError:!1,errors:n.errors};f(e)}else{let e={data:n.data,loading:!1,reset:()=>f(void 0),serverError:!1,errors:[]};f(e),h(n.data),m.reloadContentItems()}}function _(e=d){y?.isParentEditable&&(o("type",e?.type||Q.nz.Post),o("content",e?.content||""),o("photoId",e?.photo?.id),o("imageUrl",e?.photo?.url),o("label",e?.label||"")),y?.items?.forEach((t,n)=>{o(`children.${n}.purpose`,t.purpose);let r=e?.children.find(e=>e.purpose===t.purpose);"text"===t.type?(o(`children.${n}.type`,Q.nz.Post),o(`children.${n}.content`,r?.content??"")):"button"===t.type?(o(`children.${n}.type`,Q.nz.Button),o(`children.${n}.label`,r?.label??""),o(`children.${n}.href`,(0,Q.iY)(r)??"")):"image"===t.type&&(o(`children.${n}.type`,Q.nz.Image),r?.photo&&(o("imageUrl",e?.photo?.url||r?.photo?.url),o(`children.${n}.photoId`,r.photo.id)))})}if((0,s.useEffect)(()=>{e.contentItem&&(h(e.contentItem),_(e.contentItem))},[e.contentItem]),(0,s.useEffect)(()=>{_()},[er.w]),!l)return(0,r.jsx)("div",{children:"No web component name found."});if(!g)return(0,r.jsxs)("div",{children:["Unknown web component preset: ",l]});if(!y)return(0,r.jsx)("div",{children:"This preset does not support content editing."});function w(e,n){return"text"===e.type?(0,r.jsx)(W.fh,{label:e.title,children:(0,r.jsx)(W.fs,{register:i("number"==typeof n?`children.${n}.content`:"content"),className:(0,z.A)((0,ey._i)(t),"large"===e.fieldSize&&"min-h-[20rem]")})}):"button"===e.type?(0,r.jsxs)("div",{className:ey.Ay.formClass,children:[(0,r.jsx)(td.A,{children:e.title}),(0,r.jsx)(W.fh,{label:"Label",children:(0,r.jsx)(W.ks,{register:i("number"==typeof n?`children.${n}.label`:"label")})}),(0,r.jsx)(W.fh,{label:"URI",children:(0,r.jsx)(W.ks,{register:i("number"==typeof n?`children.${n}.href`:"href")})})]}):"image"===e.type?(0,r.jsxs)("div",{className:ey.Ay.formClass,children:[(0,r.jsx)(td.A,{children:e.title}),(0,r.jsxs)("div",{className:"flex flex-col gap-y-4 my-2",children:[(0,r.jsx)(tu.A,{src:a("imageUrl"),id:"web-component-image-preview"}),(0,r.jsx)(tl.A,{imageUploaded2:e=>{o("number"==typeof n?`children.${n}.photoId`:"photoId",e.id),o("imageUrl",e.url)},name:"web-component-image-upload",imagePurpose:"GENERIC_IMAGE",onError:e=>b(e)}),(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)(W.Dk,{children:"Image Label (for screen readers)"}),(0,r.jsx)(W.ks,{register:i("number"==typeof n?`children.${n}.label`:"label")})]})]})]}):(0,r.jsxs)(r.Fragment,{children:["Unknown item type (",e.type,")"]})}return(0,r.jsxs)("form",{className:ey.Ay.formClass,onSubmit:n(x),"data-sentry-component":"WebComponentContentEdit","data-sentry-source-file":"WebComponentContentEdit.tsx",children:[y.isParentEditable&&w(y),y.items?.map((e,t)=>(0,r.jsx)(s.Fragment,{children:w(e,t)},e.purpose)),v&&(0,r.jsx)(eQ.A,{type:"warning",onClose:()=>b(null),children:v}),(0,r.jsx)(tc.A,{mutationInfo:p,successMessage:"Saved","data-sentry-element":"AshMutationResult","data-sentry-source-file":"WebComponentContentEdit.tsx"}),(0,r.jsx)(W.fC,{cancel:{onClick:()=>e.onCancel&&e.onCancel()},withGroupFlow:!0,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"WebComponentContentEdit.tsx"})]})});var tp=n(87089),tf=n(68720);function tm(e){let{children:t}=e;return(0,r.jsx)("h1",{className:"h1 flex-grow flex flex-row gap-2 items-center whitespace-nowrap whitespace-nowrap truncate",style:{marginBottom:0},"data-sentry-component":"TitleHeading","data-sentry-source-file":"TitleHeading.tsx",children:t})}function tg(e){let{children:t}=e;return(0,r.jsx)("div",{className:"flex justify-between items-center mb-4","data-sentry-component":"TitleWrapper","data-sentry-source-file":"TitleWrapper.tsx",children:t})}
2688let ty=(0,U.PA)(function(e){let t=(0,ey.CI)((0,L.Eh)()),{editLabel:n,rootScreenLabel:i,rootUp:o,upLabel:s}=e,a=(0,P.MM)(),{cursor:l,contentItem:u,upTarget:c,up:d}=(0,eX.f)();if(i)return(0,r.jsx)(tg,{children:(0,r.jsx)(tm,{children:i})});if(!l)return null;let h=u??(0,Q.oz)(l.initialParams)??{},p=n??(0,ek.xU)(h),f=h.type===Q.nz.Page,m=(0,ek.Z1)(h.type),g=l.contentId?f&&u?.title||m&&u?.label:"New",y=c?d:o?()=>a?.showRootScreen(o,"up"):void 0;return(0,r.jsx)(tg,{"data-sentry-element":"TitleWrapper","data-sentry-component":"ContentEditHeader","data-sentry-source-file":"ContentEditHeader.tsx",children:(0,r.jsxs)(tm,{"data-sentry-element":"TitleHeading","data-sentry-source-file":"ContentEditHeader.tsx",children:[y&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{type:"button",onClick:y,className:(0,z.A)("flex items-center gap-2 underline",t.cardMutedTextColor,t.cardTextHoverColor),children:[c&&(0,r.jsx)(eM.A,{contentItem:c}),s]}),(0,r.jsx)(tf.A,{className:(0,z.A)("size-[1em] stroke-2 shrink-0",t.cardMutedTextColor)})]}),(0,r.jsx)(eM.A,{contentItem:h,"data-sentry-element":"ContentItemTypeIcon","data-sentry-source-file":"ContentEditHeader.tsx"}),p&&(0,r.jsx)("div",{children:p}),g&&(0,r.jsxs)("div",{title:h.id&&`ID: ${h.id}, Slug: ${h.slug}`,children:[": ",g]})]})})});var tv=n(21684);function tb(e){return(0,tp.yJ)({type:e.type,pageType:e.pageType})}function tx(e){return!!((0,ek.Z1)(e.type)||(0,Q.fq)(e))||!!tb(e)?.editComponent}let t_={zIndex:"10"},tw=(0,U.PA)(function(){let e,t=(0,P.MM)(),{cursor:n,contentItem:i,loading:o,upTarget:s}=(0,eX.f)();function a(){t?.close()}let l=t?.rootScreen;if(l){let e=l.rootUp.component;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ty,{rootScreenLabel:l.rootUp.label}),(0,r.jsx)(e,{origin:l.origin})]})}if(!n)return null;if(o)return(0,r.jsx)("div",{className:"flex justify-center items-center h-40",children:(0,r.jsx)(tv.A,{})});if(n.contentId&&!i)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ty,{}),(0,r.jsx)(eQ.A,{type:"warning",children:"This content item could not be loaded. It may have been deleted."})]});let u=i??(0,Q.oz)(n.initialParams),c={type:u?.type,pageType:u?.pageType},d=(0,tp.yJ)(c);return e=d?.editComponent?"registeredComponent":n.webComponentName?"webComponent":(0,ek.Z1)(u?.type)?"nav":"contentItem",(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ty,{editLabel:d?.editLabel,upLabel:s?tb(s)?.editLabel||(0,ek.xU)(s)||s.title||s.internalName||"Back":d?.rootUp?.label,rootUp:s?void 0:d?.rootUp,"data-sentry-element":"ContentEditHeader","data-sentry-source-file":"ContentEditModal.tsx"}),"webComponent"===e&&(0,r.jsx)(th,{contentItem:i,initialParams:n.initialParams,webComponentName:n.webComponentName,onCancel:a}),"nav"===e&&(0,r.jsx)(eZ,{}),"contentItem"===e&&(0,r.jsx)(ta,{}),"registeredComponent"===e&&d?.editComponent&&(0,r.jsx)(d.editComponent,{onClose:a})]})}),tk=(0,U.PA)(function(){let e=(0,P.MM)();return(0,et.lF)()?(0,r.jsx)(H.A,{isOpen:!!e?.modalOpen,onClose:()=>e?.close(),modalStyle:{content:{width:"auto",maxWidth:"1000px",minHeight:"400px",padding:0}},overlayStyle:t_,showCloseButton:!0,"data-sentry-element":"SimpleModal","data-sentry-component":"ContentEditModal","data-sentry-source-file":"ContentEditModal.tsx",children:(0,r.jsx)("div",{className:"h-full flex-1",children:(0,r.jsx)(eX.A,{hasEditor:tx,"data-sentry-element":"ContentCursorProvider","data-sentry-source-file":"ContentEditModal.tsx",children:(0,r.jsx)(tw,{"data-sentry-element":"ObservedContentEditScreens","data-sentry-source-file":"ContentEditModal.tsx"})})})}):null});var tC=n(32290);let tE=(0,U.PA)(function(){let e=(0,et.IG)(),t=(0,P.MM)(),n=(0,E.U)(),i=(0,R.useRouter)(),o=(0,s.useContext)(tC.M),[a,l]=(0,s.useState)(!1),[u,c]=(0,s.useState)(!1),d=(0,s.useRef)(!1),h=i.pathname.startsWith("/_admin"),p=i.pathname.startsWith("/members/messages"),f=(0,s.useCallback)(e=>{t&&(e?document.body.classList.add("selecting-for-edit"):document.body.classList.remove("selecting-for-edit"),t.setEditMode(e))},[t]),m=n.contentShowControls&&!h&&!p&&e&&(0,e_.hN)(e,"content");return((0,s.useEffect)(()=>{d.current||"true"===i.query.editMode&&m&&!t?.editMode&&(d.current=!0,f(!0))},[i.query.editMode,m,t?.editMode,f]),e&&t)?(0,r.jsx)(tC.M.Provider,{value:{...o,siteArea:ep.L.ADMIN},"data-sentry-element":"LayoutContext.Provider","data-sentry-component":"ContentEditing","data-sentry-source-file":"ContentEditing.tsx",children:(0,r.jsxs)("div",{className:"!h-auto ContentEditing",children:[(0,r.jsx)(tk,{"data-sentry-element":"ContentEditModal","data-sentry-source-file":"ContentEditing.tsx"}),m&&(0,r.jsxs)(r.Fragment,{children:[!a&&(0,r.jsx)(ex,{editMode:t.editMode,modalOpen:t.modalOpen,onConfirmingHide:()=>c(!0),onSelecting:f}),(0,r.jsx)(H.A,{isOpen:u,onClose:()=>c(!1),children:(0,r.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,r.jsx)("p",{children:'The "Edit Mode" button will remain hidden until you refresh the page.'}),(0,r.jsxs)("div",{className:"flex justify-center align-center gap-4",children:[(0,r.jsx)("button",{onClick:()=>c(!1),className:(0,z.A)(ey.OT.buttonShapeMedium,ey.OT.buttonBasicColors),children:"Cancel"}),(0,r.jsx)("button",{onClick:function(){l(!0),c(!1),f(!1)},className:(0,z.A)(ey.OT.buttonShapeMedium,ey.OT.buttonActionColors),children:"Hide"})]})]})})]})]})}):null}),tA=s.forwardRef(function({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.098 19.902a3.75 3.75 0 005.304 0l6.401-6.402M6.75 21A3.75 3.75 0 013 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 003.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88c.438-.439 1.15-.439 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75v-.008z"}))});var tS=n(33575),tT=n(69320),tj=n(33556);let tN=m()();function tO(){let{groupSwitcherEnabled:e}
2688=tN.publicRuntimeConfig,[t,n]=(0,s.useState)(!1),{groups:i}=(0,E.U)(),{groupSlug:o,setGroup:a}=(0,tT.A)(),[l,u]=(0,s.useState)(!0),c=(0,tj.v)();if(!e)return null;let d=i?.map(e=>({label:(0,r.jsxs)(r.Fragment,{children:[e.slug," - ",e.name," - ",e.id]}),value:e.slug}));return l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{className:"GroupSwitcher-button hidden md:block fixed top-[50%] left-0 bg-white rounded-r-md border opacity-80 py-2 px-4 group",onClick:()=>n(!0),children:(0,r.jsx)(tA,{className:"h-6 w-6 text-gf-green-dark group-hover:text-gf-green","data-sentry-element":"SwatchIcon","data-sentry-source-file":"GroupSwitcher.tsx"})}),(0,r.jsx)(H.A,{isOpen:t,onClose:()=>n(!1),themeArea:ep.L.ADMIN,"data-sentry-element":"SimpleModal","data-sentry-source-file":"GroupSwitcher.tsx",children:(0,r.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,r.jsx)("div",{className:"text-lg font-bold",children:"Group Switcher"}),(0,r.jsxs)("div",{children:[(0,r.jsx)(W.J3,{"data-sentry-element":"ColumnLabel","data-sentry-source-file":"GroupSwitcher.tsx",children:"Group:"}),(0,r.jsx)(eI.A,{options:d,onChange:function(e){a(e.target.value),c.logout(),window.location.reload()},value:o,"data-sentry-element":"Select","data-sentry-source-file":"GroupSwitcher.tsx"})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("div",{className:"text-lg font-bold",children:"Hide Switcher"}),(0,r.jsx)("div",{children:(0,r.jsxs)("button",{className:(0,z.A)(ey.OT.buttonShapeMedium,ey.OT.buttonBasicColors),onClick:()=>u(!1),children:[(0,r.jsx)(tS.A,{className:"w-5 h-5","data-sentry-element":"XMarkIcon","data-sentry-source-file":"GroupSwitcher.tsx"}),"Hide"]})}),(0,r.jsx)("p",{children:"Refresh the page to bring the switcher back."})]})]})})]}):null}let tI=(0,U.PA)(function(){let e=(0,P.$U)(),{errorMessage:t}=e;return(0,r.jsxs)(H.A,{isOpen:!!t,onClose:()=>e.close(),overlayStyle:{zIndex:50},title:"An error occurred",showCloseButton:!0,"data-sentry-element":"SimpleModal","data-sentry-component":"ErrorModal","data-sentry-source-file":"ErrorModal.tsx",children:[(0,r.jsx)("p",{className:"mb-8",children:t}),(0,r.jsx)(W.rA,{onClick:()=>e.close(),className:"w-full","data-sentry-element":"ActionButton","data-sentry-source-file":"ErrorModal.tsx",children:"Ok"})]})});var tD=n(97552),tM=n(55494),tL=n(6795);let tR=function(){return(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615Z",fill:"#4285F4"}),(0,r.jsx)("path",{d:"M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 0 0 9 18Z",fill:"#34A853"}),(0,r.jsx)("path",{d:"M3.964 10.71A5.41 5.41 0 0 1 3.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 0 0 0 9c0 1.452.348 2.827.957 4.042l3.007-2.332Z",fill:"#FBBC05"}),(0,r.jsx)("path",{d:"M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 0 0 .957 4.958L3.964 6.29C4.672 4.163 6.656 3.58 9 3.58Z",fill:"#EA4335"})]})},tP=function(){return(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M18 9a9 9 0 1 0-10.406 8.891v-6.29H5.31V9h2.284V7.017c0-2.255 1.343-3.5 3.4-3.5.984 0 2.014.176 2.014.176v2.214h-1.134c-1.118 0-1.466.694-1.466 1.406V9h2.496l-.399 2.601h-2.097v6.29A9.003 9.003 0 0 0 18 9Z",fill:"#1877F2"})})},tF=function(e){let{referrer:t}=e,n=(0,et.WD)(),i=(0,et.Jc)();function o(e){let r=new URLSearchParams({group:i.slug});return t&&r.set("referrer",t),`${n}/browser/auth/${e}?${r.toString()}`}return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("a",{href:o("google"),className:"flex items-center justify-center gap-3 rounded-lg border border-gray-300 bg-white text-secondary-700 hover:text-black px-4 py-2.5 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-300",children:[(0,r.jsx)(tR,{}),"Continue with Google"]}),(0,r.jsxs)("a",{href:o("facebook"),className:"flex items-center justify-center gap-3 rounded-lg border border-gray-300 bg-white text-secondary-700 hover:text-black px-4 py-2.5 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-300",children:[(0,r.jsx)(tP,{}),"Continue with Facebook"]})]})};var tB=n(10688);function t$(){let e=(0,s.useRef)(!1),t=function(t,n){n.ref(t),t&&!e.current&&(e.current=!0,t.focu
2688s())};return e=>({...e,ref:n=>t(n,e)})}function tq(e){let t=e.form,{formState:{errors:n},register:i}=t,o=t$();async function s(n){e.onSubmit&&(n.preventDefault(),await t.trigger("email")&&e.onSubmit())}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)(W.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"EmailPrompt.tsx",children:[(0,r.jsx)(tB.A,{"data-sentry-element":"RowLabel","data-sentry-source-file":"EmailPrompt.tsx",children:"Email address"}),(0,r.jsx)(W.ks,{type:"email",register:o(i("email",{required:!0,pattern:e_.GX})),onKeyDown:async e=>{"Enter"===e.key&&s(e)},placeholder:"[email protected]",autoComplete:"email","data-sentry-element":"TextInput","data-sentry-source-file":"EmailPrompt.tsx"})]}),(0,r.jsx)(W.Kw,{name:"email",errors:n,messages:{pattern:"email must be a valid email address"},"data-sentry-element":"ErrorMessage","data-sentry-source-file":"EmailPrompt.tsx"})]}),(0,r.jsx)(W.fC,{cancel:e.onCancel&&{onClick:e.onCancel},onClick:s,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"EmailPrompt.tsx",children:"Next"})]})}var tV=n(5507),tz=n(22767);function tU(e){let{error:t,loginStatus:n}=e,{formState:i,register:o,watch:s}=e.form,{errors:a}=i,l=t$();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(tB.A,{"data-sentry-element":"RowLabel","data-sentry-source-file":"PasswordPrompt.tsx",children:"Password"}),(0,r.jsx)(tV.A,{register:l(o("password",{required:!0})),email:s("email"),id:"login-password","data-sentry-element":"PasswordInput","data-sentry-source-file":"PasswordPrompt.tsx"}),(0,r.jsx)(W.Kw,{name:"password",errors:a,messages:{required:"password is required"},"data-sentry-element":"ErrorMessage","data-sentry-source-file":"PasswordPrompt.tsx"})]}),"failedLogin"===n?(0,r.jsx)("div",{className:"mb-2",children:(0,r.jsx)(eQ.A,{type:"warning",children:(0,r.jsxs)("span",{children:["Incorrect email or password for email ",(0,r.jsx)("b",{children:s("email")})]})})}):"loggedIn"===n?(0,r.jsx)(eQ.A,{className:"mb-2",children:"Success..."}):null,(0,r.jsxs)("div",{children:[t&&(0,r.jsx)(eQ.A,{type:"warning",className:"mb-2",children:t}),"loggingIn"===n?(0,r.jsx)(tz.A,{}):(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(W.rA,{id:"emailPasswordLoginBtn",type:"submit",disabled:!i.isValid||i.isSubmitting,withGroupFlow:!0,children:"Login"})})]})]})}var tH=n(5055),tW=n(33881),tG=n(704),tK=n(85287);
2688function tJ(e){let{codeSent:t,email:n,authCodeFormHook:i,onAuthCodeSelection:o,signupWithAuthState:s,maxContactsError:a}=e;return(0,r.jsxs)("div",{className:"flex flex-col items-center","data-sentry-component":"AuthCodeFlow","data-sentry-source-file":"AuthCodeFlow.tsx",children:[a?(0,r.jsx)(tK.A,{}):(0,r.jsx)(tW.A,{mutationInfo:s}),!t&&(0,r.jsxs)(W.rA,{onClick:o,children:[(0,r.jsx)(tH.A,{className:"w-4 h-4"}),"Send login code"]}),t&&(0,r.jsx)(tG.A,{email:n,authCodeFormHook:i})]})}var tQ=n(8153),tY=n(90425),tX=n(9437),tZ=n(54587),t0=n.n(tZ);function t1(e){let{children:t,withGroupFlow:n}=e,[i,o]=(0,s.useState)(!1);return(0,r.jsxs)("h2",{className:"flex justify-center items-center gap-x-4 text-center font-bold text-2xl text-secondary-950","data-sentry-component":"FormTitle","data-sentry-source-file":"FormTitle.tsx",children:[n&&(0,r.jsx)("button",{type:"button",title:"This website is powered by GroupFlow",onClick:()=>o(!0),className:"group w-8 h-8 min-w-8",children:(0,r.jsx)(t0(),{src:"https://mp1md-pub.s3.amazonaws.com/groupflow/images/icon-white-stroke.svg",alt:"GroupFlow",className:"opacity-50 group-hover:opacity-100",width:32,height:32})}),t,(0,r.jsx)(tX.A,{isOpen:i,onClose:()=>o(!1),"data-sentry-element":"AboutGroupFlowModal","data-sentry-source-file":"FormTitle.tsx"})]})}var t2=n(94741);let t5=(0,U.PA)(function(e){let[t,n]=(0,s.useState)("notLoggedIn"),i=(0,eA.mN)({defaultValues:{email:"",password:""}}),{watch:o}=i,{login:a}=(0,tj.v)(),l=(0,et.QU)(),[u,c]=(0,s.useState)(""),d=(0,R.useRouter)(),h=d.query.ret,[p,f]=(0,s.useState)("email"),[m,g]=(0,s.useState)(!1),y=(0,s.useRef)(""),v=(0,s.useRef)(null),b=(0,eA.mN)({defaultValues:{emailOptIn:!0,name:""}}),[x,_]=(0,eC.X)(tM.DO),w=(0,t2.o)({onAccessToken:function(e,t){t.accountConfirmed?C(e,t):(y.current=e,v.current=t,b.setValue("name",t.name),f("activate-account"))},skipLogin:!0});async function k(e){n("loggingIn");try{let t=await (0,tL.j)(l,e);if(t.error)console.warn("Failed login with HTTP response error:",t),401===t.status||403===t.status?n("failedLogin"):A({type:"http",resp:t});else{let{accessToken:e,account:n}=t.data;C(e,{...n,emailOptInAnswer:!0})}}catch(e){console.warn("Failed login with thrown error:",e),A({type:"transport",error:e})}}function C(e,t){a(e),f("redirecting");let n=d.asPath;if(h){let e=new URL(h,window.location.origin);e.searchParams.set("noSplash","true"),window.location.href=e.toString()}else if(n.startsWith("/members")||n.startsWith("/events")||n.startsWith("/_admin"))window.location.href=`${window.location.pathname}?noSplash=true`;else if("ACTIVE"===t.status)window.location.assign("/members/home?noSplash=true");else{let e="/events";"INACTIVE"===t.status&&(e="/members/dues"),window.location.assign(`${e}?noSplash=true`)}}async function E(){let e=i.getValues("email");await w.handleSubmitEmail(void 0,e),g(!0)}function A(e){"http"===e.type?j.Cp(Error("HTTP Response Error"),{extra:{response:e.resp}}):j.Cp(e.error),c("We're encountering technical difficulties. Please try again later."),n("serverError")}async function S(e){let t={emailOptIn:(0,tn.yG)(e.emailOptIn),name:e.name},n=y.current;if(!n)throw Error("missing accessToken");!(await x({variables:{input:t},context:{headers:{Authorization:`Bearer ${n}`}}},"confirmAccount")).hasError&&v.current&&C(n,v.current)}return(0,s.useEffect)(()=>{"password"===p&&document.getElementById("login-password")?.focus()},[p]),(0,r.jsx)("div",{"data-sentry-component":"LoginForm","data-sentry-source-file":"LoginForm.tsx",children:(0,r.jsxs)("div",{className:"login-form-content flex flex-col gap-4 p-4",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(t1,{withGroupFlow:!0,"data-sentry-element":"FormTitle","data-sentry-source-file":"LoginForm.tsx",children:"Account Login"}),"email"!==p&&(0,r.jsx)("div",{className:"absolute left-0 top-0 flex flex-col gap-y-4",children:(0,r.jsx)(tD.A,{onClick:function(){i.unregister("password"),f("email"),g(!1),c(""),n("notLoggedIn")}})})]}),"email"===p&&(0,r.jsx)(tF,{referrer:window.location.href}),"email"===p&&(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"flex-1 border-t border-gray-200"}),(0,r.jsx)("span",{className:"text-sm text-gray-400",children:"or"}),(0,r.jsx)("div",{className:"flex-1 border-t border-gray-200"})]}
2688),["email","password"].includes(p)&&(0,r.jsxs)("form",{onSubmit:i.handleSubmit(function(e){if("email"===p)f("password");else if("password"===p)return k(e)}),className:"relative flex flex-col gap-y-6",children:[(0,r.jsx)("div",{className:(0,z.A)("email"===p?"block":"hidden"),children:(0,r.jsx)(tq,{form:i,onCancel:e.onCancel,onSubmit:()=>f("password")})}),(0,r.jsxs)("div",{className:(0,z.A)("password"===p?"block":"hidden"),children:[!m&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tU,{form:i,error:u,loginStatus:t}),(0,r.jsx)("div",{className:"text-center font-bold text-lg",children:"OR"})]}),(0,r.jsxs)("div",{className:"border border-[var(--group-primary-card-line-color)] rounded-xl p-4",children:[(0,r.jsxs)("p",{className:"text-center pb-4",children:["Send login code to ",o("email")]}),(0,r.jsx)(tJ,{codeSent:m,email:w.email,authCodeFormHook:w.authCodeFormHook,onAuthCodeSelection:E,signupWithAuthState:w.signupWithAuthState,maxContactsError:w.maxContactsError})]})]})]}),"activate-account"===p&&(0,r.jsxs)("form",{onSubmit:b.handleSubmit(S),className:ey.Ay.formClass,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"mb-4",children:"Create your account"}),(0,r.jsxs)("p",{children:["No account was found for ",o("email"),". Would you like to create one?"]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"name",children:"Your name"}),(0,r.jsx)(tY.A,{form:b,focusOnLoad:!0})]}),(0,r.jsx)(tQ.A,{label:"Email me when there are new events and announcements",register:b.register("emailOptIn")}),(0,r.jsx)(W.rA,{type:"submit",withGroupFlow:!0,children:"Yes, create my account"}),(0,r.jsx)(tc.A,{mutationInfo:_,successMessage:"Account created"}),(0,r.jsx)("div",{className:"flex flex-col items-center",children:(0,r.jsx)(eW.tA,{type:"button",onClick:function(){f("email")},children:"Nope, nevermind"})})]}),"redirecting"===p&&(0,r.jsx)("div",{className:"flex flex-col items-center",children:(0,r.jsx)(tv.A,{className:"w-8 h-8"})})]})})}),t3=(0,U.PA)(function(){let e=(0,P.rq)();return(0,r.jsx)(H.A,{isOpen:e?.isOpen,onClose:()=>e?.close(),"data-testid":"login-modal","data-sentry-element":"SimpleModal","data-sentry-component":"LoginModal","data-sentry-source-file":"LoginModal.tsx",children:(0,r.jsx)(t5,{onCancel:()=>e?.close&&e?.close(),"data-sentry-element":"LoginForm","data-sentry-source-file":"LoginModal.tsx"})})}),t4=(0,U.PA)(function(){let e=(0,R.useRouter)(),t="1"===e.query.ssoActivate,n=e.query.ssoName||"",i=(0,et.lF)(),o=(0,et.IG)(),a=o?.accountConfirmed??!1,l=!!o?.name,u=!a||!l,c=t&&u,d=(0,eA.mN)({defaultValues:{emailOptIn:!0,name:""}}),[h,p]=(0,eC.X)(tM.DO);async function f(e){let t=(0,tn.yG)(e.emailOptIn);(await h({variables:{input:{emailOptIn:t,name:e.name}},context:{headers:{Authorization:`Bearer ${i}`}}},"confirmAccount")).hasError||window.location.assign("/events/public?noSplash=true")}function m(){let{ssoActivate:t,ssoName:n,...r}=e.query;e.replace({query:r}),window.location.assign("/")}return((0,s.useEffect)(()=>{if(t&&!u){let{ssoActivate:t,ssoName:n,...r}=e.query;e.replace({query:r})}},[t,u,e]),(0,s.useEffect)(()=>{c&&d.setValue("name",n)},[c,n,d]),c)?(0,r.jsx)(H.A,{isOpen:c,onClose:m,children:(0,r.jsxs)("form",{onSubmit:d.handleSubmit(f),className:"flex flex-col gap-4 p-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"mb-4",children:a?"Set up your profile":"Create your account"}),!a&&(0,r.jsx)("p",{children:"No account exists yet for this login. Would you like to create one?"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"name",children:"Your name"}),(0,r.jsx)(tY.A,{form:d,focusOnLoad:!0})]}),(0,r.jsx)(tQ.A,{label:"Email me when there are new events and announcements",register:d.register("emailOptIn")}),(0,r.jsx)(W.rA,{type:"submit",withGroupFlow:!0,children:a?"Save":"Yes, create my account"}),(0,r.jsx)(tc.A,{mutationInfo:p,successMessage:a?"Profile saved":"Account created"}),(0,r.jsx)("div",{className:"flex flex-col items-center",children:(0,r.jsx)(eW.tA,{type:"button",onClick:m,children:a?"Skip for now":"Nope, nevermind"})})]})}):null});var t8=n(34011);function t6(e){let{form:t,mutationState:n,originalEmail:i}=e,{formState:o,register:s}=t,{errors:a}=o;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(t8.A,{"data-sentry-element":"ModalHeading","data-sentry-source-file":"PromptEmailAddress.tsx",children:i?"Confirm your email address":"Set your email address"}),(0,r.jsx)("p",{children:i?"Please confirm your email address so you don't miss group announcements and event notices.":"Please set your email address to secure your account."})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(W.Dk,{htmlFor:"field-email","data-sentry-element":"RowLabel","data-sentry-source-file":"PromptEmailAddress.tsx",children:"Email address"}),(0,r.jsx)(W.ks,{type:"email",id:"field-email",register:s("email",{required:!0,pattern:/^\S+@\S+\.\w+$/}),style:{display:"inline-block"},placeholder:"[email protected]",autoComplete:"email","data-sentry-element":"TextInput","data-sentry-source-file":"PromptEmailAddress.tsx"}),(0,r.jsx)(W.Kw,{errors:a,name:"email",messages:{pattern:"This does not appear to be a valid email address"},"data-sentry-element":"ErrorMessage","data-sentry-source-file":"PromptEmailAddress.tsx"})]}),(0,r.jsx)(tW.A,{mutationInfo:n,"data-sentry-element":"AshMutationErrors","data-sentry-source-file":"PromptEmailAddress.tsx"}),(0,r.jsx)("div",{className:"flex flex-col items-center",children:(0,r.jsx)(W.rA,{type:"submit",loading:n.loading,"data-sentry-element":"ActionButton","data-sentry-source-file":"PromptEmailAddress.tsx",children:"Send confirmation email"})})]})}let t7=s.forwardRef(function({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))});function t9(e){let{email:t,form:n,mutationState:i}=e,{formState:o,register:s}=n,a=t$();if(!t)throw Error("Email is required");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t8.A,{"data-sentry-element":"ModalHeading","data-sentry-source-file":"PromptAuthCode.tsx",children:"Enter the confirmation code"}),(0,r.jsxs)("p",{children:["We sent a code to your email address at"," ",(0,r.jsx)("b",{className:"font-bold",children:t}),"."]}),(0,r.jsxs)(W.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"PromptAuthCode.tsx",children:[(0,r.jsx)(W.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"PromptAuthCode.tsx",children:"Enter the code from the email:"}),(0,r.jsx)(W.ks,{register:a(s("authCode",{required:!0,pattern:/^\d{6}$/})),placeholder:"999999","data-sentry-element":"TextInput","data-sentry-source-file":"PromptAuthCode.tsx"}),(0,r.jsx)(W.Kw,{errors:o.errors,name:"authCode",messages:{pattern:"Invalid auth code. Please enter the 6-digit code."},"data-sentry-element":"ErrorMessage","data-sentry-source-file":"PromptAuthCode.tsx"}),(0,r.jsx)(tW.A,{mutationInfo:i,"data-sentry-element":"AshMutationErrors","data-sentry-source-file":"PromptAuthCode.tsx"})]}),(0,r.jsx)(W.fC,{cancel:{onClick:function(){e.onCancelRequest?.()},label:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t7,{className:"w-4 h-4"}),"Back"]})},"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"PromptAuthCode.tsx",children:"Confirm"})]})}let ne=(0,U.PA)(function(){let e=(0,et.IG)(),t=(0,P.Mg)(),{login:n}=(0,tj.v)(),i=(0,eA.mN)({defaultValues:{authCode:"",email:""}}),{handleSubmit:o}
2688=i,[a,l]=(0,eC.X)(tM.cn),u=(0,P.kH)(),[c,d]=(0,s.useState)(e?"email":"initializing"),[h,p]=(0,eC.X)(tM.ir),[f,m]=(0,s.useState)(null);async function g(e){"email"===c?y(e):"authCode"===c&&v(e)}async function y(e){let t=e.email;if(!t)throw Error("Email is required");m(t),(await a({variables:{input:{unconfirmedEmail:t}}},"updateAccount")).hasError||(u.loadUser(),i.reset(),d("authCode"))}async function v(e){let r=e.authCode;if(!r)throw Error("Auth code is required");let i=await h({variables:{input:{authCode:r,unconfirmedEmail:f}}},"verifyMemberAuthCode2");if(!i.hasError){let e=i.data?.accessToken;e&&n(e),u.loadUser(),t?.close()}}return(0,s.useEffect)(()=>{t&&e&&!(e.email&&e.emailConfirmedAt)&&(i.setValue("email",e.email??""),t.open())},[e?.email,e?.emailConfirmedAt]),(0,s.useEffect)(()=>{e&&"initializing"===c&&d("email")},[e]),(0,r.jsx)(H.A,{isOpen:t?.isOpen,showCloseButton:!1,"data-sentry-element":"SimpleModal","data-sentry-component":"EmailSetPrompt","data-sentry-source-file":"EmailSetPrompt.tsx",children:(0,r.jsxs)("form",{className:ey.Ay.formClass,onSubmit:o(g),children:["email"===c&&(0,r.jsx)(t6,{form:i,originalEmail:e?.email,mutationState:l}),"authCode"===c&&f&&(0,r.jsx)(t9,{form:i,email:f,mutationState:p,onCancelRequest:()=>d("email")})]})})});var nt=n(95885);let nn=(0,U.PA)(function(){let e=(0,et.IG)(),t=(0,P.N8)(),n=(0,eA.mN)({defaultValues:{password:"",passwordConfirmation:""}}),{formState:i,handleSubmit:o,register:a}=n,{errors:l}=i,[u,c]=(0,eC.X)(tM.cn),d=(0,P.kH)(),h=(0,nt.A)();async function p(r){if(e?.passwordSet)return void t?.close();let i={password:r.password};(await u({variables:{input:i}},"updateAccount")).hasError||(d.loadUser(),n.reset())}(0,s.useEffect)(()=>{t&&e&&!1===e.passwordSet&&"NON_MEMBER"!==e.status&&t.open()},[e?.passwordSet,t?.isOpen]);let f=e?.passwordSet;return(0,r.jsx)(H.A,{isOpen:t?.isOpen,showCloseButton:!1,"data-sentry-element":"SimpleModal","data-sentry-component":"PasswordSetPrompt","data-sentry-source-file":"PasswordSetPrompt.tsx",children:e&&t&&(0,r.jsxs)("form",{className:ey.Ay.formClass,onSubmit:o(p),children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"h2",children:"Set your password"}),!f&&(0,r.jsx)("p",{children:"Please set a password to secure your account."})]}),!f&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(W.Dk,{children:"New password"}),(0,r.jsx)(tV.A,{id:"field-password",register:a("password",{required:!0,minLength:8,validate:{noLeadingSpace:e=>!e.match(/^\s+/)&&!e.match(/\s+$/)}})}),(0,r.jsx)(W.Kw,{errors:l,name:"password",messages:{minLength:"Password must be at least 8 characters in length",noLeadingSpace:"Password must not begin or end with a space"}})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(W.Dk,{children:"Confirm password"}),(0,r.jsx)(tV.A,{id:"field-passwordConfirmation",register:a("passwordConfirmation",{required:!0,minLength:8,validate:{sameAsPassword:function(e,t){return t.password===e}}})}),(0,r.jsx)(W.Kw,{errors:l,name:"passwordConfirmation",messages:{sameAsPassword:"Passwords do not match"}})]})]}),(0,r.jsx)(tc.A,{mutationInfo:c,successMessage:"Your password is set"}),!f&&(0,r.jsx)("div",{className:"flex flex-col items-center",children:(0,r.jsx)(W.rA,{type:"submit",disabled:c.loading,children:"Set password"})}),f&&(0,r.jsx)("div",{className:"flex flex-col items-center",children:(0,r.jsx)(W.rA,{type:"submit",inputRef:h,children:"Close"})})]})})});var nr=n(31167),ni=n(44046),no=n(93264);function ns(e){let{onCloseRequested:t}=e,n=(0,no.m)(),i=(0,s.useRef)(n);i.current=n;let o=(0,nr.I)(tM.VW,{variables:{search:"GroupFlow Support"}}),a=o.data?.listMembers2?.results,l=a?.[0];return(0,s.useEffect)(()=>{if(l){let e=(0,eO.Qv)(l);i.current.onMembersChosen([e])}},[l]),(0,r.jsxs)("div",{className:"flex flex-col gap-8","data-sentry-component":"Chat","data-sentry-source-file":"Chat.tsx",children:[(0,r.jsx)("p",{children:"Need help with GroupFlow? Send us a message here. Support isn't always available live, but we'll follow up as soon as we can."}),(0,r.jsx)(ni.A,{chatMessagingReturn:n,"data-sentry-element":"MessagingColumn","data-sentry-source-file":"Chat.tsx"}),(0,r.jsx)("div",{className:"flex justify-center align-center gap-4",children:(0,r.jsx)("button",{onClick:t,className:"SupportChatButton",children:"Close"})})]})}let na=(0,U.PA)(function(){let{helpAndSupportStore:e}=(0,P.gy)(),t=(0,et.IG)(),{isOpen:n}=e;return t&&"ACTIVE"===t.status?(0,r.jsx)(H.A,{isOpen:n,onClose:()=>void e.close(),title:(0,r.jsxs)("div",{className:"flex justify-center items-center gap-x-2",children:[(0,r.jsx)(eb.A,{level:"h2",opacityClass:"opacity-100"}),(0,r.jsx)("span",{className:"font-montserrat normal-case",children:"GroupFlow Support"})]}),"data-sentry-element":"SimpleModal","data-sentry-component":"SupportChat","data-sentry-source-file":"SupportChat.tsx",children:(0,r.jsx)(ns,{onCloseRequested:()=>void e.close(),"data-sentry-element":"Chat","data-sentry-source-file":"SupportChat.tsx"})}):null});function nl(){let e=(0,R.useRouter)(),t="true"===e.query.noSplash,[n,i]=(0,s.use
2688State)(t?"hidden":"start");(0,s.useEffect)(()=>{"start"===n?setTimeout(()=>{i("transition")},1e3):"transition"===n&&setTimeout(()=>{i("hidden")},1e3)},[n,t]);let o="";return("transition"===n?o="opacity-0":"hidden"===n&&(o="hidden"),e.asPath.startsWith("/members/pages"))?null:(0,r.jsx)("div",{className:(0,z.A)("absolute inset-0 w-full h-full bg-white z-30 flex items-center justify-center text-black","transition-opacity duration-1000",o),"data-sentry-component":"GroupFlowSplashScreen","data-sentry-source-file":"GroupFlowSpashScreen.tsx",children:(0,r.jsx)(t0(),{src:"https://mp1md-pub.s3.amazonaws.com/groupflow/images/logo-stacked.svg",alt:"GroupFlow logo",className:"w-[20rem] h-auto",width:0,height:0,sizes:"20rem","data-sentry-element":"Image","data-sentry-source-file":"GroupFlowSpashScreen.tsx"})})}var nu=n(5044);function nc(e){let{children:t,isEditingItem:n}=e,[i,o]=(0,s.useState)(!1),a=(0,s.useRef)(!1),l=(0,s.useRef)(null),u=(0,s.useRef)(null);(0,s.useEffect)(()=>{n||o(!1)},[n]);let{handlePointerDown:c,pointerOffset:d}=function(e){let t=(0,s.useRef)(null),n=(0,s.useRef)(null),[r,i]=(0,s.useState)({x:40,y:60}),o=(0,s.useRef)(null),a=(0,s.useRef)(null),[l,u]=(0,s.useState)();function c(r){if(!t.current||!n.current)return;let o={x:r.pageX,y:r.pageY};if(0===o.x&&0===o.y){r.stopPropagation(),r.preventDefault();return}let s={x:o.x-t.current.x,y:o.y-t.current.y};u(s),i({x:n.current.x+s.x-window.scrollX,y:n.current.y+s.y-window.scrollY}),r.stopPropagation(),r.preventDefault(),e?.onMove&&e.onMove({pointerOffset:s})}function d(e){t.current=null,n.current=null,h()}function h(){o.current&&(document.removeEventListener("mousemove",o.current),document.removeEventListener("pointermove",o.current),o.current=null),a.current&&(document.removeEventListener("mouseup",a.current),document.removeEventListener("pointerup",a.current),a.current=null)}function p(){o.current=c,document.addEventListener("mousemove",o.current),document.addEventListener("pointermove",o.current)}function f(){a.current=d,document.addEventListener("mouseup",a.current),document.addEventListener("pointerup",a.current)}let m=!!o.current,g=!!a.current;return h(),m&&p(),g&&f(),{targetPosition:r,handlePointerDown:function(r){let i={x:r.pageX,y:r.pageY};t.current=i;let o=(0,nu.B7)(r.target.parentNode);n.current={x:o.left,y:o.top},u(void 0),p(),f(),e?.onDown&&e.onDown({pointer:i})},pointerOffset:l,startPointerCoords:t}}({onMove:()=>{o(!0),a.current=!0}}),h=i?{position:"fixed",left:`${(u.current?.x??0)+(d?.x??0)}px`,top:`${(u.current?.y??0)+(d?.y??0)}px`,bottom:"auto",right:"auto"}:{},p=e=>!!l.current?.contains(e.target);return(0,r.jsx)("div",{ref:l,className:"LowerRightControls flex flex-col gap-1 fixed z-20 bottom-4 right-4 md:right-6 m-1 font-montserrat cursor-move select-none touch-none",style:h,onPointerDown:e=>{if(p(e)){if(a.current=!1,l.current){let e=l.current.getBoundingClientRect();u.current={x:e.left,y:e.top}}c(e)}},onClickCapture:e=>{p(e)&&a.current&&(e.preventDefault(),e.stopPropagation(),a.current=!1)},onDoubleClick:e=>{p(e)&&o(!1)},title:"Drag to reposition, double-click to reset","data-sentry-component":"LowerRightControls","data-sentry-source-file":"LowerRightControls.tsx",children:t})}var nd=n(69080),nh=n(53257);let np=(0,U.PA)(function(){let e=(0,P.g1)();if(!e||!e.isOpen)return null;let t=e.navItemSlug,n=t?void 0:e.navItemId;return(0,r.jsx)("section",{className:` 2689 SideCar block fixed top-0 right-0 overflow-auto 2690 bg-[var(--group-primary-card-background-color)] 2691 bg-[image:--group-background-image] 2692 border-l border-[var(--group-primary-card-line-color)] 2693 text-[var(--group-primary-card-text-color)] 2694 `,style:{width:"16rem",height:"100%"},"data-sentry-component":"SideCar","data-sentry-source-file":"SideCar.tsx",children:(0,r.jsxs)("div",{className:"relative min-h-full",children:[(0,r.jsx)("div",{className:"SideCarOpacity absolute inset-0"}),(0,r.jsx)(nd.A,{navMenuId:n,navMenuSlug:t,purpose:nh.Bp.SIDEBAR,themeArea:ep.L.MEMBERS,className:"p-8 relative w-full","data-sentry-element":"Navigation","data-sentry-source-file":"SideCar.tsx"})]})})}),nf=(0,U.PA)(function(){let e=(0,P.g1)();return(0,r.jsxs)(r.Fragment,{children:[e?.isOpen&&(0,r.jsx)("div",{className:"absolute inset-0 z-10 cursor-e-resize",style:{transform:"translatex(-16rem) translatez(0)"},onClick:()=>e.close(),children:"\xa0"}),(0,r.jsx)(np,{"data-sentry-element":"SideCar","data-sentry-source-file":"SideCarMenu.tsx"})]})});var nm=n(4799),ng=n(45384),ny=n(42461),nv=n(69770);let nb=s.forwardRef(function({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))});var nx=n(10734),n_=n(34296),nw=n(57166),nk=n(64558),nC=n(65761);let nE=(0,U.PA)(e=>{let{className:t,parentTag:n}=e,{member:i,modalOpen:o,onClose:a,setModalOpen:l,shouldDisplay:u}=(()=>
2694{let e=(0,et.IG)(),[t,n]=(0,s.useState)(!!e),r=(0,R.useRouter)(),i=!!e&&"/"===r.pathname;return(0,s.useEffect)(()=>{e&&n(!0)},[e?.id]),{member:e,modalOpen:t,onClose:()=>n(!1),setModalOpen:n,shouldDisplay:i}})();if(!u||!i)return null;let c="ACTIVE"===i.status,d="flex items-center gap-4";return(0,r.jsxs)(S(),{isOpen:o,className:"WelcomeBackPopUp gf-customer gf-area-marketing bg-[var(--group-primary-card-background-color)] border border-[var(--group-primary-card-border-color)]",onRequestClose:()=>l(!1),style:{overlay:{backgroundColor:"rgba(128, 128, 128, 0.75)",display:"flex",justifyContent:"center",alignItems:"center"},content:{maxWidth:"600px",maxHeight:"98%",width:"100%",overflow:"auto",padding:void 0}},"data-sentry-element":"ReactModal","data-sentry-component":"WelcomeBackPopUp","data-sentry-source-file":"WelcomeBackPopUp.tsx",children:[(0,r.jsx)("div",{className:(0,tn.Wd)(n,"BackgroundImage bg-[image:--group-background-image]",t)}),(0,r.jsx)("div",{className:(0,tn.Wd)(n,"BackgroundOpacity absolute inset w-full h-full bg-[var(--group-primary-card-background-color)] opacity-70")}),(0,r.jsxs)("div",{className:"Body p-8 text-[var(--group-primary-card-text-color)]",children:[(0,r.jsx)("div",{className:"CloseButton flex justify-end float-right transition",children:(0,r.jsx)(eW.Jn,{onClick:a,svgClass:"fill-current","data-sentry-element":"CloseButton","data-sentry-source-file":"WelcomeBackPopUp.tsx"})}),(0,r.jsxs)(nm.A,{level:"h2",withGroupFlow:!0,"data-sentry-element":"PageHeading","data-sentry-source-file":"WelcomeBackPopUp.tsx",children:["Welcome back ",i?.name,"!"]}),(0,r.jsx)("p",{className:"p",children:"Where would you like to go?"}),(0,r.jsx)("div",{className:"ButtonsWrapper flex flex-col items-center overflow-y-scroll relative",children:(0,r.jsxs)("nav",{className:"Buttons flex flex-col items-stretch gap-2",role:"navigation",children:[c&&(0,r.jsxs)(nA,{href:"/members/home",className:d,children:[(0,r.jsx)(ng.A,{className:"fill-current size-6"}),"Member Home"]}),(0,r.jsxs)(nA,{href:"/events",className:d,"data-sentry-element":"LinkButton","data-sentry-source-file":"WelcomeBackPopUp.tsx",children:[(0,r.jsx)(ny.A,{className:"size-6","data-sentry-element":"CalendarIcon","data-sentry-source-file":"WelcomeBackPopUp.tsx"}),"Events"]}),c&&(0,r.jsxs)(nA,{href:"/members/pages/resources",className:d,children:[(0,r.jsx)(nb,{className:"size-6"}),"Resources"]}),c&&(0,r.jsxs)(nA,{href:"/members/announcements",className:d,children:[(0,r.jsx)(nv.A,{className:"size-6"}),"Announcements"]}),c&&(0,r.jsxs)(nA,{href:"/members/forum",className:d,children:[(0,r.jsx)(nx.A,{className:"size-6"}),"Forum Discussions"]}),c&&(0,r.jsxs)(nA,{href:"/members/messages",className:d,children:[(0,r.jsx)(nC.A,{className:"size-6"}),"Messages"]}),(0,r.jsxs)(nA,{href:"/members/account",className:(0,z.A)(d),secondary:!0,"data-sentry-element":"LinkButton","data-sentry-source-file":"WelcomeBackPopUp.tsx",children:[(0,r.jsx)(n_.A,{className:"size-6","data-sentry-element":"Cog6ToothIcon","data-sentry-source-file":"WelcomeBackPopUp.tsx"}),"Account"]}),(0,e_.RW)(i)&&(0,r.jsxs)(nA,{href:"/_admin",className:(0,z.A)(d),secondary:!0,children:[(0,r.jsx)(nw.A,{className:"size-6"}),"Admin Dashboard"]}),(0,r.jsxs)(nA,{href:"/logout",className:(0,z.A)(d),secondary:!0,"data-sentry-element":"LinkButton","data-sentry-source-file":"WelcomeBackPopUp.tsx",children:[(0,r.jsx)(nk.A,{className:"size-6","data-sentry-element":"ArrowRightOnRectangleIcon","data-sentry-source-file":"WelcomeBackPopUp.tsx"}),"Logout"]})]})})]})]})}),nA=({href:e,children:t,className:n,secondary:i})=>{let o,s=(0,z.A)("bg-[var(--group-button-background-color)]","hover:bg-[var(--group-button-background-hover-color)]","text-[var(--group-button-text-color)]","hover:text-[var(--group-button-text-hover-color)]");return i&&(s=(0,z.A)("bg-[var(--group-button-secondary-background-color)]","hover:bg-[var(--group-button-secondary-background-hover-color)]","text-[var(--group-button-text-color)]","hover:text-[var(--group-button-text-hover-color)]"),o="secondary"),(0,r.jsx)(e4(),{href:e,className:(0,z.A)("Button transition",s,o,n),role:"menuitem","data-sentry-element":"Link","data-sentry-component":"LinkButton","data-sentry-source-file":"WelcomeBackPopUp.tsx",children:t})},nS=(0,U.PA)(function(){let e=(0,P.MM)(),t=!!e?.modalOpen;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(nl,{}),(0,r.jsx)(nE,{}),(0,r.jsx)(nf,{}),(0,r.jsx)(t3,{}),(0,r.jsx)(t4,{}),(0,r.jsx)(tI,{}),(0,r.jsx)(nn,{}),(0,r.jsx)(ne,{}),(0,r.jsx)(tO,{}),(0,r.jsx)(na,{}),(0,r.jsx)(nc,{isEditingItem:t,children:(0,r.jsx)(tE,{})})]})});var nT=n(25898),nj=n(35739);let nN=function(e){let{isOpen:t,onClose:n,onSubmit:i,isLoading:o=!1}
2694=e,[a,l]=(0,s.useState)(null),{register:u,handleSubmit:c,formState:d,reset:h}=(0,eA.mN)({defaultValues:{path:""}});async function p(e){try{l(null),await i(e.path.trim()),h()}catch(e){l(e instanceof Error?e.message:"Failed to create page")}}function f(){o||(h(),l(null),n())}return(0,r.jsx)(H.A,{isOpen:t,onClose:f,title:"Create New Public Page","data-sentry-element":"SimpleModal","data-sentry-component":"NewPageModal","data-sentry-source-file":"NewPageModal.tsx",children:(0,r.jsxs)("form",{onSubmit:c(p),className:ey.Ay.formClass,children:[(0,r.jsxs)(eS.A,{backgroundType:L.Sh.PRIMARY_CARD,as:"div",className:"text-sm flex flex-col gap-y-2","data-sentry-element":"HelpText","data-sentry-source-file":"NewPageModal.tsx",children:[(0,r.jsx)("p",{children:"Create a public-accessible page."}),(0,r.jsx)("p",{children:'If you want to create a member-only page instead, press the "Edit Mode" button, press "Search Website", then press "Add Member Page".'})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"path",className:"block text-sm font-medium mb-2",children:["Page Path",(0,r.jsx)(e1.A,{"data-sentry-element":"RequiredFieldAsterisk","data-sentry-source-file":"NewPageModal.tsx"})]}),(0,r.jsx)(W.ks,{id:"path",placeholder:"e.g., /about-us or /special-event",register:u("path",{required:"Page path is required",pattern:{value:/^[a-zA-Z0-9\-_/]+$/,message:"Page path can only contain letters, numbers, hyphens, underscores, and forward slashes"},validate:e=>e.startsWith("/")?e.match(/^\/members(\/|$)/)?"Cannot start with /members":!e.match(/^\/events(\/|$)/)||"Cannot start with /events":"Page path must start with /"}),disabled:o,"data-sentry-element":"TextInput","data-sentry-source-file":"NewPageModal.tsx"}),(0,r.jsx)(W.Kw,{name:"path",errors:d.errors,"data-sentry-element":"ErrorMessage","data-sentry-source-file":"NewPageModal.tsx"}),(0,r.jsx)(eS.A,{backgroundType:L.Sh.PRIMARY_CARD,as:"p",className:"text-sm","data-sentry-element":"HelpText","data-sentry-source-file":"NewPageModal.tsx",children:"Enter the URL path where this page will be accessible."})]}),a&&(0,r.jsx)(eQ.A,{type:"warning",children:a}),(0,r.jsx)(W.fC,{cancel:{onClick:f},saving:o,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"NewPageModal.tsx",children:o?"Creating...":"Create Page"})]})})};var nO=n(71879);let nI=function(e){let t=(0,ey.CI)((0,L.Eh)()),{isOpen:n,onClose:i,pagePath:o}=e,s=(0,R.useRouter)();return(0,r.jsx)(H.A,{isOpen:n,onClose:i,title:"Page Created Successfully","data-sentry-element":"SimpleModal","data-sentry-component":"PageCreatedModal","data-sentry-source-file":"PageCreatedModal.tsx",children:(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsx)(nO.A,{className:(0,z.A)("size-16",t.accentTextColor),"data-sentry-element":"CheckCircleIcon","data-sentry-source-file":"PageCreatedModal.tsx"})}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("p",{className:"text-lg font-medium mb-2",children:"Your page has been created!"}),(0,r.jsxs)("p",{className:t.cardMutedTextColor,children:["The page is now available at:"," ",(0,r.jsx)("span",{className:(0,z.A)("font-mono px-2 py-1 rounded",t.cardTintedBackgroundColor),children:o})]})]}),(0,r.jsx)(W.fC,{cancel:{onClick:i,label:"Stay Here"},onClick:function(){s.push(`${o}?editMode=true`),i()},"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"PageCreatedModal.tsx",children:"Go to Page to Edit"})]})})};var nD=n(97499),nM=n(98857),nL=n(31796),nR=n(32112),nP=n(40715);let nF=(0,U.PA)(function(){let e=(0,P.MM)(),[t,n]=(0,s.useState)(!1),[i,o]=(0,s.useState)(!1),[a,l]=(0,s.useState)(""),[u,c]=(0,s.useState)(!1),[d,h]=(0,s.use
2694State)(!1),[p,f]=(0,s.useState)(!1),m=(0,P.uV)(),g=(0,R.useRouter)(),y=g.asPath.split("?")[0],v=(0,Q.cF)(m,y),[b]=(0,nR.E)(),[x,_]=(0,s.useState)(null),w=(0,et.LV)(),k=(0,s.useMemo)(()=>v&&{id:v.id,internalName:v.internalName,pageType:Q.g6.Standalone,title:v.title,path:(0,Q.HX)(v)},[v]);if(v?.pageType!==Q.g6.Standalone)return null;let C=e.editMode,E=!nP.Qy.includes((0,Q.HX)(v)??"");async function A(e){c(!0);try{let t=await b(e);if(m.reloadContentItems(),t.hasError)throw Error("Failed to create page");l(e),n(!1),o(!0)}catch(e){throw _(e instanceof Error?e.message:"Failed to create page"),e}finally{c(!1)}}return C?(0,r.jsx)(tC.M.Provider,{value:{...w,siteArea:ep.L.ADMIN},"data-sentry-element":"LayoutContext.Provider","data-sentry-component":"PageEditBar","data-sentry-source-file":"PageEditBar.tsx",children:(0,r.jsxs)("div",{className:"h-12 flex items-center gap-6 px-4 bg-secondary-100 border-b border-secondary-200 text-secondary-900",children:[(0,r.jsx)("span",{className:"font-semibold",children:"Editing page"}),(0,r.jsxs)("div",{className:"flex items-center gap-4",role:"group","aria-label":"This page",children:[(0,r.jsxs)("button",{className:"flex items-center gap-2",onClick:function(){v&&e.open(v.id)},children:[(0,r.jsx)(nT.A,{className:"size-4","data-sentry-element":"PencilIcon","data-sentry-source-file":"PageEditBar.tsx"}),"Page Details"]}),(0,r.jsx)(nL.A,{buttonClassName:"p-2 rounded-full border border-secondary-300 text-secondary-700 hover:border-secondary-900 hover:text-secondary-900 focus:ring-2 focus:ring-secondary-400",canDelete:E,onCloneClick:()=>h(!0),onDeleteClick:()=>f(!0),"data-sentry-element":"WebPageMenu","data-sentry-source-file":"PageEditBar.tsx"})]}),(0,r.jsx)("div",{className:"ml-6",role:"group","aria-label":"Other pages",children:(0,r.jsxs)("button",{className:"flex items-center gap-2",onClick:function(){n(!0)},children:[(0,r.jsx)(nj.A,{className:"size-4","data-sentry-element":"PlusIcon","data-sentry-source-file":"PageEditBar.tsx"}),"New Page"]})}),(0,r.jsx)(nN,{isOpen:t,onClose:()=>n(!1),onSubmit:A,isLoading:u,"data-sentry-element":"NewPageModal","data-sentry-source-file":"PageEditBar.tsx"}),(0,r.jsx)(nI,{isOpen:i,onClose:()=>o(!1),pagePath:a,"data-sentry-element":"PageCreatedModal","data-sentry-source-file":"PageEditBar.tsx"}),(0,r.jsx)(nD.A,{page:d?k:null,onClose:()=>h(!1),onSuccess:()=>{m.reloadContentItems()},"data-sentry-element":"CloneWebPageModal","data-sentry-source-file":"PageEditBar.tsx"}),(0,r.jsx)(nM.A,{page:p?k:null,onClose:()=>f(!1),onSuccess:()=>{f(!1),m.reloadContentItems(),g.push("/")},"data-sentry-element":"DeleteWebPageModal","data-sentry-source-file":"PageEditBar.tsx"}),(0,r.jsx)(H.A,{isOpen:!!x,onClose:()=>_(null),title:"Error","data-sentry-element":"SimpleModal","data-sentry-source-file":"PageEditBar.tsx",children:(0,r.jsx)("div",{children:x})})]})}):null}),nB=(0,U.PA)(function(e){let{children:t,layoutConfig:n}=e,i=(0,R.useRouter)(),o=(0,et.Vw)(),a=(0,P.g1)(),l=(0,P.uV)(),u=(0,et.IG)(),c=i.asPath.replace(/\?.*/,""),d=(0,Q.cF)(l,c),h=d?.pageType===Q.g6.Standalone?(0,Q.Gg)(d):void 0;if((0,s.useEffect)(()=>{a?.close()},[i?.asPath]),o?.type!=="web-components"&&o?.version!==2)return(0,r.jsxs)("div",{children:["Unsupported page engine: ",o.type,"."]});let p={};return a?.isOpen&&(p={position:a?.isOpen?"absolute":void 0,transform:a?.isOpen?"translate3d(-16rem, 0px, 0px)":void 0}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(nF,{"data-sentry-element":"PageEditBar","data-sentry-source-file":"PageLayout.tsx"}),(0,r.jsx)("div",{className:(0,z.A)("PageWrapperForSideCar",a?.isOpen?"fixed":"","gf-page-layout w-full min-h-screen flex flex-col justify-between items-stretch relative",h),style:p,children:(0,r.jsx)(eh,{path:c,loggedIn:!!u,layoutConfig:n,"data-sentry-element":"HeaderMainFooter","data-sentry-source-file":"PageLayout.tsx",children:t})}),(0,r.jsx)(nS,{"data-sentry-element":"GlobalUIs","data-sentry-source-file":"PageLayout.tsx"})]})});function n$(){return!function(){let e=(0,R.useRouter)(),{jwt:t,groupSlug:n,sessionId:r,alertStore:i}=(0,E.U)(),o=(0,s.useRef)(Date.now()),a=(0,s.useRef)(t),l=(0,s.useRef)(n),u=(0,s.useRef)(r);a.current=t,l.current=n,u.current=r,(0,s.useEffect)(()=>
2694{if(i)return(0,$.ej)(()=>{i.open("A background update prevented this request from completing. Please refresh the page, then try again.")}),()=>(0,$.ej)(null)},[i]),(0,s.useEffect)(()=>{V(a.current,l.current,u.current).then(e=>(0,$.A)(e,$.Ku.Background));let t=e=>{V(a.current,l.current,u.current,e).then(e=>(0,$.A)(e,$.Ku.Navigation))},n=()=>{"visible"===document.visibilityState&&Date.now()-o.current>432e5&&window.location.reload()};return e.events.on("routeChangeStart",t),document.addEventListener("visibilitychange",n),()=>{e.events.off("routeChangeStart",t),document.removeEventListener("visibilitychange",n)}},[e.events])}(),null}function nq({apollo:e,children:t}){return e?(0,r.jsx)(p,{client:e,children:t}):(0,r.jsx)(r.Fragment,{children:t})}function nV(e){let{component:t,appContext:n,layoutContext:i}=function(e){var t,n;let r,{Component:i,pageProps:o}=e,{jwt:a,uri:l,groupSlug:u,groupConfig:c,groups:d,me:h,metaTagCatalog:p}=o,f=(0,R.useRouter)(),[m,y]=(0,T.A)();a=a||m[N.x5];let{sessionId:b}=function(e,t){let n={path:"/",sameSite:!0,secure:!0},r=e[N.W5];return(0,s.useEffect)(()=>{r||(r=(0,O.A)(),t(N.W5,r,n))},[r]),{sessionId:r}}(m,y),{marketingId:x}=function([e,t]){let n=(0,R.useRouter)(),r={path:"/",sameSite:!0,secure:!0},i="string"==typeof n.query.mid?n.query.mid:null,o=e[N.WL];return(0,s.useEffect)(()=>{i&&t(N.WL,i,r)},[i,t]),{marketingId:i||o}}([m,y]);if(!c){let e=window.document.getElementById("__NEXT_DATA__");if(e?.textContent){let t=JSON.parse(e.textContent).props.pageProps;u=t.groupSlug,c=t.groupConfig,l=t.uri,d=t.groups,h=t.me,p=t.metaTagCatalog}}c&&j.o("group",{slug:c.slug,name:c.name});let _=u&&l&&(0,v.hY)(l),w=u&&l&&(0,v.Al)(l);window?.gfRootStore?r=window.gfRootStore:(r=new P.yd({apiBaseUrl:_,wsBaseUrl:w,jwt:a,groupSlug:u,groupConfig:c,me:h}),window.gfRootStore=r),t=r,n=a,(0,s.useEffect)(()=>{let e,n=()=>{let r=(0,g.KQ)(),i=r?(0,g.Cq)(r):null,o=function(e,t){if(!e?.exp||!(0,g.XP)(e))return{kind:"ignore"};let n=(0,g.WJ)({exp:e.exp}).getTime()-t;return n>0?{kind:"arm",delayMs:Math.min(n,D)}:{kind:"expire"}}(i,Date.now());if("arm"===o.kind)clearTimeout(e),e=setTimeout(n,o.delayMs);else if("expire"===o.kind)if("visible"===document.visibilityState){var s;t.endSession(),s=i.exp,sessionStorage.getItem(M)!==String(s)&&(sessionStorage.setItem(M,String(s)),window.location.reload())}else t.webSocketStore?.disconnect()},r=()=>{"visible"===document.visibilityState&&n()},i=e=>{e.key===g.k9&&e.newValue&&t.jwtStore.jwtValue&&window.location.reload()};return n(),document.addEventListener("visibilitychange",r),window.addEventListener("storage",i),()=>{clearTimeout(e),document.removeEventListener("visibilitychange",r),window.removeEventListener("storage",i)}},[t,n]);let k=(0,I.Ay)({apiBaseUrl:_,jwtStore:r.jwtStore,groupSlug:u,sessionId:b});S().setAppElement("#__next");let C=!0;i.metaData&&!1===i.metaData().contentShowControls&&(C=!1);let E=f.asPath,A=(0,L.Wo)(E),F=(0,s.useRef)(A);B()(A,F.current)||(F.current=A);let $={pageSection:void 0,siteArea:A.themeArea},q={alertStore:r.alertStore,apollo:k,memberChannelStore:r.memberChannelStore,contentEditStore:r.contentEditStore,contentShowControls:C,emailSetModalStore:r.emailSetModalStore,formStore:r.formStore,groupConfig:c,groups:d,groupSlug:u,hamburgerStore:r.hamburgerStore,metaTagCatalog:p||[],jwt:a,jwtStore:r.jwtStore,loginModalStore:r.loginModalStore,marketingId:x,passwordSetModalStore:r.passwordSetModalStore,rootStore:r,sessionId:b,stripeStore:r.stripeStore,themeInfo:F.current,uri:l,userStore:r.userStore};return{component:i,appContext:q,layoutContext:$}}(e),{themeInfo:{areaClass:o}}=n;return(0,r.jsx)(E.O.Provider,{value:n,"data-sentry-element":"GfAppContext.Provider","data-sentry-component":"GroupFlowWeb","data-sentry-source-file":"_app.tsx",children:(0,r.jsxs)(c,{"data-sentry-element":"CookiesProvider","data-sentry-source-file":"_app.tsx",children:[(0,r.jsx)(n$,{"data-sentry-element":"VersionCheck","data-sentry-source-file":"_app.tsx"}),(0,r.jsx)(en,{appContext:n,"data-sentry-element":"Clickstream","data-sentry-source-file":"_app.tsx"}),(0,r.jsx)(Z,{groupConfig:n.groupConfig,pageMeta:e.pageProps.pageMeta,"data-sentry-element":"HtmlHead","data-sentry-source-file":"_app.tsx"}),(0,r.jsx)(nq,{apollo:n.apollo,"data-sentry-element":"MaybeApollo","data-sentry-source-file":"_app.tsx",children:(0,r.jsxs)(tC.M.Provider,{value:i,"data-sentry-element":"LayoutContext.Provider","data-sentry-source-file":"_app.tsx",children:[(0,r.jsx)("div",{className:(0,z.A)("gf-page",o),children:(0,r.jsx)(nB,{layoutConfig:t.layoutOptions?.layoutConfig,"data-sentry-element":"PageLayout","data-sentry-source-file":"_app.tsx",children:(0,r.jsx)(t,{...n,"data-sentry-element":"Component","data-sentry-source-file":"_app.tsx"})})}),(0,r.jsx)(G,{"data-sentry-element":"Alert","data-sentry-source-file":"_app.tsx"})]})})]})})}nV.getInitialProps=async e=>{let t=await o().getInitialProps(e),{ctx:n}=e,r={groupSlug:void 0,groupConfig:void 0,jwt:void 0,groups:null,metaTagCatalog:[]},i=await k(n.req);return r={...t.pageProps,...i},{...t,pageProps:r}};let nz=nV}
2694,74472:(e,t,n)=>{"use strict";var r;void 0===(r=(function(e,t,n){var r;return(r=function(t,n){return e.js_beautify(t,n)}).js=e.js_beautify,r.css=t.css_beautify,r.html=n.html_beautify,r.js_beautify=e.js_beautify,r.css_beautify=t.css_beautify,r.html_beautify=n.html_beautify,r}).apply(t,[n(46725),n(49067),n(74881)]))||(e.exports=r)},74727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var r=n(2836);function i(e,t){var n=[],i=[];if(e===t)return 0;for(var o=(0,r.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(o=(0,r.hasChildren)(t)?t:t.parent;o;)i.unshift(o),o=o.parent;for(var s=Math.min(n.length,i.length),a=0;a<s&&n[a]===i[a];)a++;if(0===a)return 1;var l=n[a-1],u=l.children,c=n[a],d=i[a];return u.indexOf(c)>u.indexOf(d)?l===t?20:4:l===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0){e.splice(t,1);continue}for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},t.compareDocumentPosition=i,t.uniqueSort=function(e){return(e=e.filter(function(e,t,n){return!n.includes(e,t+1)})).sort(function(e,t){var n=i(e,t);return 2&n?-1:4&n?1:0}),e}},74830:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(53441);function i(e,t){void 0===t&&(t={});var n,r,i=(n=e)&&"j"===n[0]&&":"===n[1]?n.substr(2):n;if(void 0===(r=t.doNotParse)&&(r=!i||"{"!==i[0]&&"["!==i[0]&&'"'!==i[0]),!r)try{return JSON.parse(i)}catch(e){}return e}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}).apply(this,arguments)};let s=function(){function e(e,t){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?r.parse(e,t):"object"==typeof e&&null!==e?e:{},new Promise(function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=r.parse(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,n){return void 0===t&&(t={}),this._updateBrowserValues(n),i(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var n={};for(var r in this.cookies)n[r]=i(this.cookies[r],e);return n},e.prototype.set=function(e,t,n){var i;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=o(o({},this.cookies),((i={})[e]=t,i)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.serialize(e,t,n)),this._emitChange({name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=o(o({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=o({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}()},74881:(e,t,n)=>{var r;!function(){!function(){"use strict";var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function r(e,r){this.__indent_cache=new n(e,r),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)}
2694,t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count)+this.__items.join(""),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return e<0&&(e=0,n=""),t=(t||0)+e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=Array(t+1).join(this.__indent_string)),e&&(n+=Array(e+1).join(" ")),this.__cache.push(n)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(e,t){return(e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1)?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},r.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,n){for(var r=this.__lines.length-2;r>=0;){var i=this.__lines[r];if(i.is_empty())break;if(0!==i.item(0).indexOf(e)&&i.item(-1)!==n){this.__lines.splice(r+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=r},function(e){e.exports.Token=function(e,t,n,r){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs"," "===this.indent_char),this.indent_with_tabs&&(this.indent_char=" ",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","
2694none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,i={};for(n in e=r(e))n!==t&&(i[n]=e[n]);if(t&&e[t])for(n in e[t])i[n]=e[t][n];return i}function r(e){var t,n={};for(t in e)n[t.replace(/-/g,"_")]=e[t];return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(r=n.concat()):"string"==typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return"string"==typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/," ")),r},t.prototype._get_number=function(e,t){var n=this.raw_options[e];isNaN(t=parseInt(t,10))&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},t.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.length)throw Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(e){return -1===t.indexOf(e)})},e.exports.Options=t,e.exports.normalizeOpts=r,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return(e=(e||0)+this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var r=e.exec(this.__input);return r&&!(t&&e.sticky)&&r.index!==n&&(r=null),r},n.prototype.test=function(e,t){return(t=(t||0)+this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var r,i="";return e&&(r=this.match(e))&&(i+=r[0]),t&&(r||!e)&&(i+=this.readUntil(t,n)),i},n.prototype.readUntil=function(e,t){var n="",r=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(r=i.index,t&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var r=null,i="g";return n&&t&&(i="y"),"string"==typeof e&&""!==e?r=new RegExp(e,i):e&&(r=new RegExp(e.source,i)),r},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var r=n(8).InputScanner,i=n(3).Token,o=n(10).TokenStream,s=n(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new r(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)};l.prototype.tokenize=function(){this._input.restart(),this.__tokens=new o,this._reset();for(var e,t=new i(a.START,""),n=null,r=[],s=new o;t.type!==a.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)s.add(e),e=this._get_next_token(t,n);s.isEmpty()||(e.comments_before=s,s=new o),e.parent=n,this._is_opening(e)?(r.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=r.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new i(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=a},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},t.prototype.peek=function(e){var t=null;return(e=(e||0)+this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},t.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=t},function(e,t,n){var r=n(12).Pattern;function i(e,t){r.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}i.prototype=new r,i.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},i.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},i.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,r=[],i=e.exec(t);i;)r.push(t.substring(n,i.index)),n=i.index+i[0].length,i=e.exec(t);return n<t.length?r.push(t.substring(n,t.length)):r.push(""),r},e.exports.WhitespacePattern=i},function(e){function t(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}t.prototype.read=function(){var e=this._input.read(this._starting_pattern);return(!this._starting_pattern||e)&&(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},e.exports.Pattern=t},function(e){function t(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},function(e,t,n){var r=n(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function o(e,t){r.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new r(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}o.prototype=new r,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},o.prototype.read_options=function(e){var t=this._create();for(var n in i)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},o.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},o.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},o.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},o.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),!this._disabled.django&&(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),!this._disabled.smarty&&this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=o},,,,function(e,t,n){var r=n(19).Beautifier,i=n(20).Options;e.exports=function(e,t,n,i){return new r(e,t,n,i).beautify()},e.exports.defaultOptions=function(){return new i}},function(e,t,n){var r=n(20).Options,i=n(2).Output,o=n(21).Tokenizer,s=n(21).TOKEN,a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new i(e,t)};u.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},u.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},u.prototype.print_preserved_newlines=function(e){var t=0;e.type!==s.TEXT&&e.previous.type!==s.TEXT&&(t=+!!e.newlines),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var n=0;n<t;n++)this.print_newline(n>0);return 0!==t},u.prototype.traverse_whitespace=function(e){return(!!e.whitespace_before||!!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(e){this._output.add_new_line(e)},u.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},u.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var c=function(e){for(var t=null,n=e.next;n.type!==s.EOF&&e.closed!==n;){if(n.type===s.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===s.EQUALS&&n.next.next&&n.next.next.type===s.VALUE&&(t=n.next.next.text);break}n=n.next}return t},d=function(e,t){var n=null,r=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),(n=c(t)||n).search("text/css")>-1?r="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?r="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?r="html":n.search(/test\/null/)>-1&&(r="null"),r):null};function h(e,t){return -1!==t.indexOf(e)}function p(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function f(e){this._printer=e,this._current_frame=null}function m(e,t,n,i){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=i,this._tag_stack=null;var o=new r(t,"html");this._options=o,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}f.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},f.prototype.record_tag=function(e){var t=new p(this._current_frame,e,this._printer.inde
vendor: 19,447 bytes, line 2694
2694nt_level);this._current_frame=t},f.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},f.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},f.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},f.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&a.test(e)&&(t=e.match(a)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0],r={text:"",type:""},i=new g(this._options),c=new u(this._options,n),d=new o(e,this._options).tokenize();this._tag_stack=new f(c);for(var h=null,p=d.next();p.type!==s.EOF;)p.type===s.TAG_OPEN||p.type===s.COMMENT?i=h=this._handle_tag_open(c,p,i,r,d):p.type!==s.ATTRIBUTE&&p.type!==s.EQUALS&&p.type!==s.VALUE&&(p.type!==s.TEXT||i.tag_complete)?p.type===s.TAG_CLOSE?h=this._handle_tag_close(c,p,i):p.type===s.TEXT?h=this._handle_text(c,p,i):p.type===s.CONTROL_FLOW_OPEN?h=this._handle_control_flow_open(c,p):p.type===s.CONTROL_FLOW_CLOSE?h=this._handle_control_flow_close(c,p):c.add_raw_token(p):h=this._handle_inside_tag(c,p,i,r),r=h,p=d.next();return c._output.get_code(t)},m.prototype._handle_control_flow_open=function(e,t){var n={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),n},m.prototype._handle_control_flow_close=function(e,t){var n={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),n},m.prototype._handle_tag_close=function(e,t,n){var r={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),n.indent_content&&!(n.is_unformatted||n.is_content_unformatted)&&(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),r},m.prototype._handle_inside_tag=function(e,t,n,r){var i=n.has_wrapped_attrs,o={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):"{"===n.tag_start_char&&t.type===s.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===s.ATTRIBUTE?e.set_space_before_token(!0):t.type===s.EQUALS?e.set_space_before_token(!1):t.type===s.VALUE&&t.previous.type===s.EQUALS&&e.set_space_before_token(!1),t.type===s.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),i=i||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(r.type!==s.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),i=!0)),e.print_token(t),n.has_wrapped_attrs=i=i||e.previous_token_wrapped()),o},m.prototype._handle_text=function(e,t,n){var r={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),r},m.prototype._print_custom_beatifier_text=function(e,t,n){var r=this;if(""!==t.text){var i,o=t.text,s=1,a="",l="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?i=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?i=this._css_beautify:"html"===n.custom_beautifier_name&&(i=function(e,t){return new m(e,t,r._js_beautify,r._css_beautify).beautify()}),"keep"===this._options.indent_scripts?s=0:"separate"===this._options.indent_scripts&&(s=-e.indent_level);var u=e.get_full_indent(s);if(o=o.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===o[0]&&o.match(/^(<!--|<!\[CDATA\[)/)){var c=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(o);if(!c)return void e.add_raw_token(t);a=u+c[1]+"\n",o=c[4],c[5]&&(l=u+c[5]),o=o.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&(c=c[3].match(/[ \t]+$/))&&(t.whitespace_before=c[0])}if(o)if(i){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options,o=i(u+o,new d)}else{var h=t.whitespace_before;h&&(o=o.replace(RegExp("\n("+h+")?","g"),"\n")),o=u+o.replace(/\n/g,"\n"+u)}a&&(o=o?a+o+"\n"+l:a+l),e.print_newline(!1),o&&(t.text=o,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},m.prototype._handle_tag_open=function(e,t,n,r,i){var o=this._get_tag_open_token(t);if((n.is_unformatted||n.is_content_unformatted)&&!n.is_empty_element&&t.type===s.TAG_OPEN&&!o.is_start_tag?(e.add_raw_token(t),o.start_tag_token=this._tag_stack.try_pop(o.tag_name)):(e.traverse_whitespace(t),this._set_tag_position(e,t,o,n,r),o.is_inline_element||e.set_wrap_point(),e.print_token(t)),o.is_start_tag&&this._is_wrap_attributes_force){var a,l=0;do(a=i.peek(l)).type===s.ATTRIBUTE&&(o.attr_count+=1),l+=1;while(a.type!==s.EOF&&a.type!==s.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(o.alignment_size=t.text.length+1),o.tag_complete||o.is_unformatted||(e.alignment_size=o.alignment_size),o};var g=function(e,t,n){if(this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",n){this.tag_start_char=n.text[0],this.text=n.text,"<"===this.tag_start_char?(r=n.text.match(/^<([^\s>]*)/),this.tag_check=r?r[1]:""):(r=n.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=r?r[1]:"",(n.text.startsWith("{{#>")||n.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==n.next?this.tag_check=n.next.text.split(" ")[0]:this.tag_check=n.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),n.type===s.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||n.closed&&"/>"===n.closed.text;var r,i=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(i=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(!e.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(i)))}else this.tag_complete=!0};m.prototype._get_tag_open_token=function(e){var t=new g(this._options,this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||h(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&h(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&h(t.tag_check,this._options.content_unformatted),t.is_inline_element=h(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},m.prototype._set_tag_position=function(e,t,n,r,i){if(!n.is_empty_element&&(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&!n.is_inline_element&&e.print_newline(!1),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=d(n.tag_check,t)))),h(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element)"{"===n.tag_start_char&&"else"===n.tag_check&&(this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1)),"!--"===n.tag_name&&i.type===s.TAG_CLOSE&&r.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n));else if(n.is_end_tag){var o=!1;o=(o=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(r.is_inline_element||r.is_unformatted)&&(i.type!==s.TAG_CLOSE||n.start_tag_token!==r)&&"TK_CONTENT"!==i.type,(n.is_content_unformatted||n.is_unformatted)&&(o=!1),o&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),!(n.is_inline_element||n.is_unformatted)&&("TK_CONTENT"!==i.type||n.is_content_unformatted)&&e.print_newline(!1),this._calcluate_parent_multiline(e,n)},m.prototype._calcluate_parent_multiline=function(e,t){t.parent&&e._output.just_added_newline()&&!((t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element)&&(t.parent.multiline_content=!0)};var y=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],v=["a","audio","del","ins","map","noscript","video"];m.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==y.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==v.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):("th"===e.tag_name||"td"===e.tag_name)&&(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},e.exports.Beautifier=m},function(e,t,n){var r=n(6).Options;function i(e){r.call(this,e,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}i.prototype=new r,e.exports.Options=i},function(e,t,n){var r=n(9).Tokenizer,i=n(9).TOKEN,o=n(13).Directives,s=n(14).TemplatablePattern,a=n(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:i.START,RAW:i.RAW,EOF:i.EOF},u=new o(/<\!--/,/-->/),c=function(e,t){r.call(this,e,t),this._current_tag_name="";var n=new s(this._input).read_options(this._options),i=new a(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:i.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),handlebars_open:i.until(/[\n\r\t }]/),handlebars_raw_close:i.until(/}}/),comment:i.starting_with(/<!--/).until_after(/-->/),cdata:i.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:i.starting_with(/<!\[/).until_after(/]>/),processing:i.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=i.matching(o).until_after(o)}};c.prototype=new r,c.prototype._is_comment=function(e){return!1},c.prototype._is_opening=function(e){return e.type===l.TAG_OPEN||e.type===l.CONTROL_FLOW_OPEN},c.prototype._is_closing=function(e,t){return e.type===l.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===l.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(r,t))||this._read_attribute(r,e,t))||this._read_close(r,t))||this._read_script_and_style(r,e))||this._read_control_flows(r,t))||this._read_raw_content(r,e,t))||this._read_content_word(r,t))||this._read_comment_or_cdata(r))||this._read_processing(r))||this._read_open(r,t))||this._create_token(l.UNKNOWN,this._input.next())},c.prototype._read_comment_or_cdata=function(e){var t=null,n=null,r=null;return"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(r=u.get_directives(n))&&"start"===r.ignore&&(n+=u.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=r)),t},c.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var r=this._input.peek(1);("!"===r||"?"===r)&&(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=null)}return t},c.prototype._read_open=function(e,t){var n=null,r=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||"<"!==e||(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),r=this._create_token(l.TAG_OPEN,n)),r},c.prototype._read_open_handlebars=function(e,t){var n=null,r=null;return(!t||t.type===l.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&"{"===e&&"{"===this._input.peek(1)&&(this._options.indent_handlebars&&"!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),r=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),r=this._create_token(l.TAG_OPEN,n))),r},c.prototype._read_control_flows=function(e,t){var n="",r=null;if(!this._options.templating.includes("angular"))return r;if("@"===e){if(""===(n=this.__patterns.angular_control_flow_start.read()))return r;for(var i=+!!n.endsWith("("),o=0;!(n.endsWith("{")&&i===o);){var s=this._input.next();if(null===s)break;"("===s?i++:")"===s&&o++,n+=s}r=this._create_token(l.CONTROL_FLOW_OPEN,n)}else"}"===e&&t&&t.type===l.CONTROL_FLOW_OPEN&&(n=this._input.next(),r=this._create_token(l.CONTROL_FLOW_CLOSE,n));return r},c.prototype._read_close=function(e,t){var n=null,r=null;return t&&t.type===l.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),r=this._create_token(l.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),r=this._create_token(l.TAG_CLOSE,"}}"))),r},c.prototype._read_attribute=function(e,t,n){var r=null,i="";if(n&&"<"===n.text[0])if("="===e)r=this._create_token(l.EQUALS,this._input.next());else if('"'===e||"'"===e){var o=this._input.next();'"'===e?o+=this.__patterns.double_quote.read():o+=this.__patterns.single_quote.read(),r=this._create_token(l.VALUE,o)}else(i=this.__patterns.attribute.read())&&(r=t.type===l.EQUALS?this._create_token(l.VALUE,i):this._create_token(l.ATTRIBUTE,i));return r},c.prototype._is_content_unformatted=function(e){return -1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},c.prototype._read_raw_content=function(e,t,n){var r="";if(n&&"{"===n.text[0])r=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var i=t.o
2694pened.text.substr(1).toLowerCase();this._is_content_unformatted(i)&&(r=this._input.readUntil(RegExp("</"+i+"[\\n\\r\\t ]*?>","ig")))}return r?this._create_token(l.TEXT,r):null},c.prototype._read_script_and_style=function(e,t){if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var n=t.opened.text.substr(1).toLowerCase();if("script"===n||"style"===n){var r=this._read_comment_or_cdata(e);if(r)return r.type=l.TEXT,r;var i=this._input.readUntil(RegExp("</"+n+"[\\n\\r\\t ]*?>","ig"));if(i)return this._create_token(l.TEXT,i)}}return null},c.prototype._read_content_word=function(e,t){var n="";return(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=t&&t.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),n)?this._create_token(l.TEXT,n):null},e.exports.Tokenizer=c,e.exports.TOKEN=l}],t={};i=function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}(18)}();var i,o=i;void 0===(r=(function(e){var t=n(46725),r=n(49067);return{html_beautify:function(e,n){return o(e,n,t.js_beautify,r.css_beautify)}}}).apply(t,[n,n(46725),n(49067)]))||(e.exports=r)}()},75059:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 58 58",width:"47px",height:"47px",className:t,style:n,title:"Forbidden",...{},"data-sentry-element":"svg","data-sentry-component":"ForbiddenIcon","data-sentry-source-file":"ForbiddenIcon.tsx",children:(0,r.jsx)("path",{d:"M29,0C12.984,0,0,12.984,0,29c0,16.016,12.984,29,29,29s29-12.984,29-29C58,12.984,45.016,0,29,0z M5,29C5,15.767,15.767,5,29,5c5.846,0,11.208,2.103,15.375,5.589L10.589,44.375C7.103,40.208,5,34.845,5,29z M29,53 c-5.59,0-10.736-1.927-14.82-5.144l33.676-33.677C51.073,18.264,53,23.41,53,29C53,42.233,42.233,53,29,53z","data-sentry-element":"path","data-sentry-source-file":"ForbiddenIcon.tsx"})})}},75082:(e,t,n)=>{e.exports=n(19031).Uint8Array},75093:(e,t,n)=>{"use strict";n.d(t,{zU:()=>a,V1:()=>l,no:()=>h});var r=n(4902),i="Invariant Violation",o=Object.setPrototypeOf,s=void 0===o?function(e,t){return e.__proto__=t,e}:o,a=function(e){function t(n){void 0===n&&(n=i);var r=e.call(this,"number"==typeof n?i+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=i,s(r,t.prototype),r}return(0,r.C6)(t,e),t}(Error);function l(e,t){if(!e)throw new a(t)}var u=["debug","log","warn","error","silent"],c=u.indexOf("log");function d(e){return function(){if(u.indexOf(e)>=c)return(console[e]||console.log).apply(console,arguments)}}function h(e){try{return e()}catch(e){}}!function(e){e.debug=d("debug"),e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(l||(l={}));let p=h(function(){return globalThis})||h(function(){return window})||h(function(){return self})||h(function(){return global})||h(function(){return h.constructor("return this")()});var f="__DEV__";let m=function(){try{return!!__DEV__}catch(e){return Object.defineProperty(p,f,{value:"production"!==h(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),p[f]}}();var g=n(65364);function y(e){try{return e()}catch(e){}}var v=y(function(){return globalThis})||y(function(){return window})||y(function(){return self})||y(function(){return global})||y(function(){return y.constructor("return this")()}),b=!1;!v||y(function(){return"production"})||y(function(){return g})||(Object.defineProperty(v,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),b=!0),n(6505).k,b&&(delete v.process,b=!1),__DEV__?l("boolean"==typeof m,m):l("boolean"==typeof m,39)},75416:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(37876),i=n(49995);function o({className:e,style:t}){return(0,r.jsx)("span",{className:(0,i.A)("w-2 h-2 inline-flex rounded-full",e),style:t,"data-sentry-component":"BadgeDot","data-sentry-source-file":"BadgeDot.tsx"})}},75803:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(37876),i=n(14232),o=n(9327),s=n(24295);function a(e){let{member:t}=e;return(0,r.jsxs)("div",{className:"flex","data-sentry-component":"MemberSearchResult2","data-sentry-source-file":"MemberSearchResult2.tsx",children:[(0,r.jsx)("div",{className:"pr-4",children:(0,r.jsx)(s.g,{url:t.profile?.photo?.url,"data-sentry-element":"PersonPhoto","data-sentry-source-file":"MemberSearchResult2.tsx"})}),(0,r.jsxs)("div",{children:[t.name,(0,r.jsx)("br",{}),t.title]})]})}var l=n(78248),u=n(55494);function c(e){let t=e.apiParams||{},n=(0,i.useRef)(null),[s,c]=(0,i.useState)([]),[d]=(0,l._)(u.VW);async function h(e){if(1===e.length)return;let n={search:e,limit:20,...t},r=await d({variables:n});r.error||c(r.data.listMembers2.results)}return(0,r.jsx)(o.EM,{inputRef:n,onSearch:h,onItemSelected:function(t){let n=s.find(e=>e.id===t.id);c([]);let{onSelected:r}=e;r&&r(n)},items:s,placeholder:e.searchPlaceholder||"Add event host by nameâ¦",mapResultItem:function(e){return(0,r.jsx)(a,{member:e,"data-sentry-element":"MemberSearchResult2","data-sentry-component":"mapResultItem","data-sentry-source-file":"MemberSearch2.tsx"})},searchInputTestId:e.searchInputTestId,"data-sentry-element":"ItemSearch","data-sentry-component":"MemberSearch2","data-sentry-source-file":"MemberSearch2.tsx"})}}
2694,75938:(e,t,n)=>{"use strict";function r(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}n.d(t,{xI:()=>$});let i=r(),o=/[&<>"']/,s=RegExp(o.source,"g"),a=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,l=RegExp(a.source,"g"),u={"&":"&","<":"<",">":">",'"':""","'":"'"},c=e=>u[e];function d(e,t){if(t){if(o.test(e))return e.replace(s,c)}else if(a.test(e))return e.replace(l,c);return e}let h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function p(e){return e.replace(h,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}let f=/(^|[^\[])\^/g;function m(e,t){e="string"==typeof e?e:e.source,t=t||"";let n={replace:(t,r)=>(r=(r=r.source||r).replace(f,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}let g=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(e,t,n){if(e){let e;try{e=decodeURIComponent(p(n)).replace(g,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!y.test(n)&&(n=function(e,t){b[" "+e]||(x.test(e)?b[" "+e]=e+"/":b[" "+e]=E(e,"/",!0));let n=-1===(e=b[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(_,"$1")+t:"/"!==t.charAt(0)?e+t:n?t:e.replace(w,"$1")+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}let b={},x=/^[^:]+:\/*[^/]*$/,_=/^([^:]+:)[\s\S]*$/,w=/^([^:]+:\/*[^/]*)[\s\S]*$/,k={exec:function(){}};function C(e,t){let n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function E(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let o=e.charAt(r-i-1);if(o!==t||n)if(o!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function A(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function S(e,t,n,r){let i=t.href,o=t.title?d(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;let e={type:"link",raw:n,href:i,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:o,text:d(s)}}class T{constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:E(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t){let n=e.match(/^(\s+)(?:```)/);if(null===n)return t;let r=n[1];return t.split("\n").map(e=>{let t=e.match(/^\s+/);if(null===t)return e;let[n]=t;return n.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){let t=E(e,"#");this.options.pedantic?e=t.trim():(!t||/ $/.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;let r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,i,o,s,a,l,u,c,d,h,p,f=t[1].trim(),m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");let y=RegExp(`^( {0,3}${f})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(p=!1,!(!(t=y.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),u=t[2].split("\n",1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],this.options.pedantic?(o=2,h=u.trimLeft()):(o=(o=t[2].search(/[^ ]/))>4?1:o,h=u.slice(o),o+=t[1].length),a=!1,!u&&/^ *$/.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),p=!0),!p){let t=Reg
2694Exp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),r=RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),s=RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(c=d=e.split("\n",1)[0],this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(i.test(c)||s.test(c)||t.test(c)||r.test(e)));){if(c.search(/[^ ]/)>=o||!c.trim())h+="\n"+c.slice(o);else{if(a||u.search(/[^ ]/)>=4||i.test(u)||s.test(u)||r.test(u))break;h+="\n"+c}a||c.trim()||(a=!0),n+=d+"\n",e=e.substring(d.length+1),u=c.slice(o)}}!g.loose&&(l?g.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(h))&&(i="[ ] "!==r[0],h=h.replace(/^\[[ xX]\] +/,"")),g.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:h}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=h.trimRight(),g.raw=g.raw.trimRight();let v=g.items.length;for(s=0;s<v;s++)if(this.lexer.state.top=!1,g.items[s].tokens=this.lexer.blockTokens(g.items[s].text,[]),!g.loose){let e=g.items[s].tokens.filter(e=>"space"===e.type);g.loose=e.length>0&&e.some(e=>/\n.*\n/.test(e.raw))}if(g.loose)for(s=0;s<v;s++)g.items[s].loose=!0;return g}}html(e){let t=this.rules.block.html.exec(e);if(t){let e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){let n=this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return e}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(t){let e={type:"table",header:C(t[1]).map(e=>({text:e})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){let n,r,i,o;e.raw=t[0];let s=e.align.length;for(n=0;n<s;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(n=0,s=e.rows.length;n<s;n++)e.rows[n]=C(e.rows[n],e.header.length).map(e=>({text:e}));for(r=0,s=e.header.length;r<s;r++)e.header[r].tokens=this.lexer.inline(e.header[r].text);for(r=0,s=e.rows.length;r<s;r++)for(i=0,o=e.rows[r];i<o.length;i++)o[i].tokens=this.lexer.inline(o[i].text);return e}}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:d(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):d(t[0]):t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;let t=E(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=e.length,r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if("("===e[i])r++;else if(e[i]===t[1]&&--r<0)return i;return -1}(t[2],"()");if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),S(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");
2694if(!(e=t[e.toLowerCase()])){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return S(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r||r[3]&&n.match(/[\p{L}\p{N}]/u))return;let i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){let n=r[0].length-1,i,o,s=n,a=0,l="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(o=i.length,r[3]||r[4]){s+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){a+=o;continue}if((s-=o)>0)continue;o=Math.min(o,o+s+a);let t=e.slice(0,n+r.index+(r[0].length-i.length)+o);if(Math.min(n,o)%2){let e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}let l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," "),n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=d(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){let n=this.rules.inline.autolink.exec(e);if(n){let e,r;return r="@"===n[2]?"mailto:"+(e=d(this.options.mangle?t(n[1]):n[1])):e=d(n[1]),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])r="mailto:"+(e=d(this.options.mangle?t(n[0]):n[0]));else{let t;do t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(t!==n[0]);e=d(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){let n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):d(n[0]):n[0]:d(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}let j={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:k,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};j._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,j._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,j.def=m(j.def).replace("label",j._label).replace("title",j._title).getRegex(),j.bullet=/(?:[*+-]|\d{1,9}[.)])/,j.listItemStart=m(/^( *)(bull) */).replace("bull",j.bullet).getRegex(),j.list=m(j.list).replace(/bull/g,j.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+j.def.source+")").getRegex(),j._tag="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",j._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,j.html=m(j.html,"i").replace("comment",j._comment).replace("tag",j._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),j.paragraph=m(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.blockquote=m(j.blockquote).replace("paragraph",j.paragraph).getRegex(),j.normal={...j},j.gfm={...j.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},j.gfm.table=m(j.gfm.table).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.gfm.paragraph=m(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",j.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.pedantic={...j.normal,html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",j._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:k,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:m(j.normal._paragraph).replace("hr",j.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",j.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};let N={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:k,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:k,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function O(e){return e.replace(/---/g,"â").replace(/--/g,"â").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1â").replace(/'/g,"â").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1â").replace(/"/g,"â").replace(/\.{3}/g,"â¦")}function I(e){let t="",n,r,i=e.length;for(n=0;n<i;n++)r=e.charCodeAt(n),Math.random()>.5&&(r="x"+r.toString(16)),t+="&#"+r+";";return t}N._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",N.punctuation=m(N.punctuation).replace(/punctuation/g,N._punctuation).getRegex(),N.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,N.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,N._comment=m(j._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),N.emStrong.lDelim=m(N.emStrong.lDelim).replace(/punct/g,N._punctuation).getRegex(),N.emStrong.rDelimAst=m(N.emStrong.rDelimAst,"g").replace(/punct/g,N._punctuation).getRegex(),N.emStrong.rDelimUnd=m(N.emStrong.rDelimUnd,"g").replace(/punct/g,N._punctuation).getRegex(),N._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,N._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,N._email=/[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])?)+(?![-_])/,N.autolink=m(N.autolink).replace("scheme",N._scheme).replace("email",N._email).getRegex(),N._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,N.tag=m(N.tag).replace("comment",N._comment).replace("attribute",N._attribute).getRegex(),N._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,N._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,N._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,N.link=m(N.link).replace("label",N._label).replace("href",N._href).replace("title",N._title).getRegex(),N.reflink=m(N.reflink).replace("label",N._label).replace("ref",j._label).getRegex(),N.nolink=m(N.nolink).replace("ref",j._label).getRegex(),N.reflinkSearch=m(N.reflinkSearch,"g").replace("reflink",N.reflink).replace("nolink",N.nolink).getRegex(),N.normal={...N},N.pedantic={...N.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",N._label).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",N._label).getRegex()},N.gfm={...N.normal,escape:m(N.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},N.gfm.url=m(N.gfm.url,"i").replace("email",N.gfm._extended_email).getRegex(),N.breaks={...N.gfm,br:m(N.br).replace("{2,}","*").getRegex(),text:m(N.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class D{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new T,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={block:j.normal,inline:N.normal};this.options.pedantic?(t.block=j.pedantic,t.inline=N.pedantic):this.options.gfm&&(t.block=j.gfm,this.options.breaks?t.inline=N.breaks:t.inline=N.gfm),this.tokenizer.rules=t}static get rules(){return{block:j,inline:N}}static lex(e,t){return new D(t).lex(e)}static lexInline(e,t){return new D(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);
2694t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,i,o;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(e,t,n)=>t+" ".repeat(n.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),(r=t[t.length-1])&&("paragraph"===r.type||"text"===r.type)?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);continue}if((n=this.tokenizer.fences(e))||(n=this.tokenizer.heading(e))||(n=this.tokenizer.hr(e))||(n=this.tokenizer.blockquote(e))||(n=this.tokenizer.list(e))||(n=this.tokenizer.html(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),(r=t[t.length-1])&&("paragraph"===r.type||"text"===r.type)?(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if((n=this.tokenizer.table(e))||(n=this.tokenizer.lheading(e))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(function(e){"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=i.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,o,s,a,l=e;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+A("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+A("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,l,a))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e,I))||!this.state.inLink&&(n=this.tokenizer.url(e,I))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(function(e){"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(i,O)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),s=!0,(r=t[t.length-1])&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}}class M{constructor(e){this.options=e||i}code(e,t,n){let r=(t||"").match(/\S*/)[0];if(this.options.highlight){let t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return(e=e.replace(/\n$/,"")+"\n",r)?'<pre><code class="'+this.options.langPrefix+d(r)+'">'+(n?e:d(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:d(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote> 2695${e}</blockquote> 2696`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){let i=this.options.headerPrefix+r.slug(n);return`<h${t} id="${i}">${e}</h${t}> 2697`}return`<h${t}>${e}</h${t}> 2698`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){let r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li> 2699`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p> 2700`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr> 2701${e}</tr> 2702`}tablecell(e,t){let n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}> 2703`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"}image(e,t,n){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">"}text(e){return e}}class L{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class R{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}
2703getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do n=e+"-"+ ++r;while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){let n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class P{constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new M,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new L,this.slugger=new R}static parse(e,t){return new P(t).parse(e)}static parseInline(e,t){return new P(t).parseInline(e)}parse(e,t=!0){let n="",r,i,o,s,a,l,u,c,d,h,f,m,g,y,v,b,x,_,w,k=e.length;for(r=0;r<k;r++){if(h=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type]&&(!1!==(w=this.options.extensions.renderers[h.type].call({parser:this},h))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type))){n+=w||"";continue}switch(h.type){case"space":continue;case"hr":n+=this.renderer.hr();continue;case"heading":n+=this.renderer.heading(this.parseInline(h.tokens),h.depth,p(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":n+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(i=0,c="",u="",s=h.header.length;i<s;i++)u+=this.renderer.tablecell(this.parseInline(h.header[i].tokens),{header:!0,align:h.align[i]});for(c+=this.renderer.tablerow(u),d="",s=h.rows.length,i=0;i<s;i++){for(o=0,l=h.rows[i],u="",a=l.length;o<a;o++)u+=this.renderer.tablecell(this.parseInline(l[o].tokens),{header:!1,align:h.align[o]});d+=this.renderer.tablerow(u)}n+=this.renderer.table(c,d);continue;case"blockquote":d=this.parse(h.tokens),n+=this.renderer.blockquote(d);continue;case"list":for(i=0,f=h.ordered,m=h.start,g=h.loose,s=h.items.length,d="";i<s;i++)b=(v=h.items[i]).checked,x=v.task,y="",v.task&&(_=this.renderer.checkbox(b),g?v.tokens.length>0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=_+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=_+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:_}):y+=_),y+=this.parse(v.tokens,g),d+=this.renderer.listitem(y,x,b);n+=this.renderer.list(d,f,m);continue;case"html":n+=this.renderer.html(h.text);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(d=h.tokens?this.parseInline(h.tokens):h.text;r+1<k&&"text"===e[r+1].type;)d+="\n"+((h=e[++r]).tokens?this.parseInline(h.tokens):h.text);n+=t?this.renderer.paragraph(d):d;continue;default:{let e='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw Error(e)}}}return n}parseInline(e,t){t=t||this.renderer;let n="",r,i,o,s=e.length;for(r=0;r<s;r++){if(i=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(!1!==(o=this.options.extensions.renderers[i.type].call({parser:this},i))||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type))){n+=o||"";continue}switch(i.type){case"escape":case"text":n+=t.text(i.text);break;case"html":n+=t.html(i.text);break;case"link":n+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break;case"image":n+=t.image(i.href,i.title,i.text);break;case"strong":n+=t.strong(this.parseInline(i.tokens,t));break;case"em":n+=t.em(this.parseInline(i.tokens,t));break;case"codespan":n+=t.codespan(i.text);break;case"br":n+=t.br();break;case"del":n+=t.del(this.parseInline(i.tokens,t));break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw Error(e)}}}return n}}class F{constructor(e){this.options=e||i}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(e){return e}postprocess(e){return e}}function B(e,t){return(n,r,i)=>{var o,s,a,l;"function"==typeof r&&(i=r,r=null);let u={...r},c=(o=(r={...$.defaults,...u}).silent,s=r.async,a=i,e=>{if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",o){let t="<p>An error occurred:</p><pre>"+d(e.message+"",!0)+"</pre>";return s?Promise.resolve(t):a?void a(null,t):t}if(s)return Promise.reject(e);
2703if(a)return void a(e);throw e});if(null==n)return c(Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return c(Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if((l=r)&&l.sanitize&&!l.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"),r.hooks&&(r.hooks.options=r),i){let o,s=r.highlight;try{r.hooks&&(n=r.hooks.preprocess(n)),o=e(n,r)}catch(e){return c(e)}let a=function(e){let n;if(!e)try{r.walkTokens&&$.walkTokens(o,r.walkTokens),n=t(o,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(t){e=t}return r.highlight=s,e?c(e):i(null,n)};if(!s||s.length<3||(delete r.highlight,!o.length))return a();let l=0;return $.walkTokens(o,function(e){"code"===e.type&&(l++,setTimeout(()=>{s(e.text,e.lang,function(t,n){if(t)return a(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0==--l&&a()})},0))}),void(0===l&&a())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(t=>e(t,r)).then(e=>r.walkTokens?Promise.all($.walkTokens(e,r.walkTokens)).then(()=>e):e).then(e=>t(e,r)).then(e=>r.hooks?r.hooks.postprocess(e):e).catch(c);try{r.hooks&&(n=r.hooks.preprocess(n));let i=e(n,r);r.walkTokens&&$.walkTokens(i,r.walkTokens);let o=t(i,r);return r.hooks&&(o=r.hooks.postprocess(o)),o}catch(e){return c(e)}}}function $(e,t,n){return B(D.lex,P.parse)(e,t,n)}$.options=$.setOptions=function(e){return $.defaults={...$.defaults,...e},i=$.defaults,$},$.getDefaults=r,$.defaults=i,$.use=function(...e){let t=$.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(e=>{let n={...e};if(n.async=$.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if(e.renderer){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=$.defaults.renderer||new M;for(let n in e.renderer){let r=t[n];t[n]=(...i)=>{let o=e.renderer[n].apply(t,i);return!1===o&&(o=r.apply(t,i)),o}}n.renderer=t}if(e.tokenizer){let t=$.defaults.tokenizer||new T;for(let n in e.tokenizer){let r=t[n];t[n]=(...i)=>{let o=e.tokenizer[n].apply(t,i);return!1===o&&(o=r.apply(t,i)),o}}n.tokenizer=t}if(e.hooks){let t=$.defaults.hooks||new F;for(let n in e.hooks){let r=t[n];F.passThroughHooks.has(n)?t[n]=i=>{if($.defaults.async)return Promise.resolve(e.hooks[n].call(t,i)).then(e=>r.call(t,e));let o=e.hooks[n].call(t,i);return r.call(t,o)}:t[n]=(...i)=>{let o=e.hooks[n].apply(t,i);return!1===o&&(o=r.apply(t,i)),o}}n.hooks=t}if(e.walkTokens){let t=$.defaults.walkTokens;n.walkTokens=function(n){let r=[];return r.push(e.walkTokens.call(this,n)),t&&(r=r.concat(t.call(this,n))),r}}$.setOptions(n)})},$.walkTokens=function(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call($,r)),r.type){case"table":for(let e of r.header)n=n.concat($.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat($.walkTokens(r.tokens,t));break;case"list":n=n.concat($.walkTokens(r.items,t));break;default:$.defaults.extensions&&$.defaults.extensions.childTokens&&$.defaults.extensions.childTokens[r.type]?$.defaults.extensions.childTokens[r.type].forEach(function(e){n=n.concat($.walkTokens(r[e],t))}):r.tokens&&(n=n.concat($.walkTokens(r.tokens,t)))}return n},$.parseInline=B(D.lexInline,P.parseInline),$.Parser=P,$.parser=P.parse,$.Renderer=M,$.TextRenderer=L,$.Lexer=D,$.lexer=D.lex,$.Tokenizer=T,$.Slugger=R,$.Hooks=F,$.parse=$,$.options,$.setOptions,$.use,$.walkTokens,$.parseInline,P.parse,D.lex},76019:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(49995),o=n(75416),s=n(10969);function a(e){let{bgClass:t="bg-white",children:n,className:a,marginRight:l="mr-2",onClick:u,onMouseDown:c,style:d,size:h="md",withDot:p,dotColor:f,title:m}=e,g="bg-gray-light",y="border-secondary-200";"primary"===e.type?(g="bg-blue-600",y="border-blue-600"):"warn"===e.type?(g="bg-orange-warn",y="border-orange-warn"):"danger"===e.type?(g="bg-red-danger",y="border-red-danger"):"success"===e.type&&(g="bg-emerald-500",y="border-emerald-500");let v="";u&&(v="cursor-pointer");let b=`text-${h}`,x=e.marginBottom??"mb-2";return(0,r.jsxs)("span",{className:(0,i.A)(s.Ay.badge,"px-2",x,l,b,t,y,a,v),style:d,onClick:u,onMouseDown:c,title:m,"data-sentry-component":"Badge","data-sentry-source-file":"Badge.tsx",children:[p&&(0,r.jsx)(o.A,{className:g,style:f?{backgroundColor:f}:void 0}),n]})}}
2703,76212:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e,i=e.otherProps||{};return(0,r.jsx)("svg",{width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:t,style:n,...i,"data-sentry-element":"svg","data-sentry-component":"CheckIcon","data-sentry-source-file":"CheckIcon.tsx",children:(0,r.jsx)("path",{d:"M10.6663 1.5L4.24967 7.91667L1.33301 5",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","data-sentry-element":"path","data-sentry-source-file":"CheckIcon.tsx"})})}},76217:(e,t,n)=>{var r=n(66521);e.exports=function(e){return r(this,e).has(e)}},76366:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(37876),i=n(72569),o=n(10969),s=n(5491),a=n(63334),l=n(6884);function u(e){let t=(0,o.CI)((0,i.Eh)()),{type:n}=e;return(0,r.jsx)("div",{className:t.cardMutedTextColor,"data-sentry-component":"ContentItemTypeHeading","data-sentry-source-file":"ContentItemTypeHeading.tsx",children:(0,l.Sk)(n)})}function c(e){let t=(0,o.CI)((0,i.Eh)()),{contentItem:n}=e;return(0,r.jsxs)("div",{title:`ID: ${n.id}`,className:"flex gap-1 items-center","data-sentry-component":"ContentItemResultItem","data-sentry-source-file":"ContentItemResultItem.tsx",children:[(0,r.jsx)(s.A,{contentItem:n,"data-sentry-element":"ContentItemTypeIcon","data-sentry-source-file":"ContentItemResultItem.tsx"}),(0,r.jsx)(a.A,{contentItem:n,"data-sentry-element":"StatusIcon","data-sentry-source-file":"ContentItemResultItem.tsx"}),(0,r.jsxs)("div",{className:"ml-2 flex gap-1",children:[(0,r.jsx)("div",{children:(0,r.jsx)(u,{type:n.type,"data-sentry-element":"ContentItemTypeHeading","data-sentry-source-file":"ContentItemResultItem.tsx"})}),(0,r.jsx)("div",{children:n.title}),(0,r.jsx)("div",{className:t.cardMutedTextColor,children:n.internalName})]})]})}},76717:(e,t,n)=>{"use strict";n.d(t,{m_:()=>E});var r=n(14232),i=n(80400),o=n(58103),s=n(65364);let a={core:!1,base:!1};function l({css:e,id:t="react-tooltip-base-styles",type:n="base",ref:r}){var i,o;if(!e||"undefined"==typeof document||a[n]||"core"===n&&void 0!==s&&(null==(i=null==s?void 0:s.env)?void 0:i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||"base"!==n&&void 0!==s&&(null==(o=null==s?void 0:s.env)?void 0:o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===n&&(t="react-tooltip-core-styles"),r||(r={});let{insertAt:l}=r;if(document.getElementById(t))return;let u=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css","top"===l&&u.firstChild?u.insertBefore(c,u.firstChild):u.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),a[n]=!0}let u=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:o=10,strategy:s="absolute",middlewares:a=[(0,i.cY)(Number(o)),(0,i.UU)({fallbackAxisSideDirection:"start"}),(0,i.BN)({padding:5})],border:l,arrowSize:u=8})=>e&&null!==t?n?(a.push((0,i.UE)({element:n,padding:5})),(0,i.rD)(e,t,{placement:r,strategy:s,middleware:a}).then(({x:e,y:t,placement:n,middlewareData:r})=>{var i,o;let s={left:`${e}px`,top:`${t}px`,border:l},{x:a,y:c}=null!=(i=r.arrow)?i:{x:0,y:0},d=null!=(o=({top:"bottom",right:"left",bottom:"top",left:"right"})[n.split("-")[0]])?o:"bottom",h=0;if(l){let e=`${l}`.match(/(\d+)px/);h=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=a?`${a}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...l&&{borderBottom:l,borderRight:l},[d]:`-${u/2+h}px`},place:n}})):(0,i.rD)(e,t,{placement:"bottom",strategy:s,middleware:a}).then(({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})):{tooltipStyles:{},tooltipArrowStyles:{},place:r},c=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),d=(e,t,n)=>{let r=null,i=function(...i){let o=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(o,t)),n||(r&&clearTimeout(r),r=setTimeout(o,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},h=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,p=(e,t)=>{if(e===t)return!0;
2703if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>p(e,t[n]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!h(e)||!h(t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>p(e[n],t[n]))},f=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(e=>{let n=t.getPropertyValue(e);return"auto"===n||"scroll"===n})},m=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(f(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},g="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,y=e=>{e.current&&(clearTimeout(e.current),e.current=null)},v={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},b=(0,r.createContext)({getTooltipData:()=>v});function x(e="DEFAULT_TOOLTIP_ID"){return(0,r.useContext)(b).getTooltipData(e)}var _={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},w={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};let k=({forwardRef:e,id:t,className:n,classNameArrow:s,variant:a="dark",anchorId:l,anchorSelect:c,place:h="top",offset:f=10,events:v=["hover"],openOnClick:b=!1,positionStrategy:k="absolute",middlewares:C,wrapper:E,delayShow:A=0,delayHide:S=0,float:T=!1,hidden:j=!1,noArrow:N=!1,clickable:O=!1,closeOnEsc:I=!1,closeOnScroll:D=!1,closeOnResize:M=!1,openEvents:L,closeEvents:R,globalCloseEvents:P,imperativeModeOnly:F,style:B,position:$,afterShow:q,afterHide:V,disableTooltip:z,content:U,contentWrapperRef:H,isOpen:W,defaultIsOpen:G=!1,setIsOpen:K,previousActiveAnchor:J,activeAnchor:Q,setActiveAnchor:Y,border:X,opacity:Z,arrowColor:ee,arrowSize:et=8,role:en="tooltip"})=>{var er;let ei=(0,r.useRef)(null),eo=(0,r.useRef)(null),es=(0,r.useRef)(null),ea=(0,r.useRef)(null),el=(0,r.useRef)(null),[eu,ec]=(0,r.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:h}),[ed,eh]=(0,r.useState)(!1),[ep,ef]=(0,r.useState)(!1),[em,eg]=(0,r.useState)(null),ey=(0,r.useRef)(!1),ev=(0,r.useRef)(null),{anchorRefs:eb,setActiveAnchor:ex}=x(t),e_=(0,r.useRef)(!1),[ew,ek]=(0,r.useState)([]),eC=(0,r.useRef)(!1),eE=b||v.includes("click"),eA=eE||(null==L?void 0:L.click)||(null==L?void 0:L.dblclick)||(null==L?void 0:L.mousedown),eS=L?{...L}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!L&&eE&&Object.assign(eS,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});let eT=R?{...R}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};
2703!R&&eE&&Object.assign(eT,{mouseleave:!1,blur:!1,mouseout:!1});let ej=P?{...P}:{escape:I||!1,scroll:D||!1,resize:M||!1,clickOutsideAnchor:eA||!1};F&&(Object.assign(eS,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(eT,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ej,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),g(()=>(eC.current=!0,()=>{eC.current=!1}),[]);let eN=e=>{eC.current&&(e&&ef(!0),setTimeout(()=>{eC.current&&(null==K||K(e),void 0===W&&eh(e))},10))};(0,r.useEffect)(()=>{if(t){if(ed){n(J);let r=[...new Set([...e(Q),t])].filter(Boolean).join(" ");null==Q||Q.setAttribute("aria-describedby",r)}else n(Q);return()=>{n(Q),n(J)}}function e(e){var t;return(null==(t=null==e?void 0:e.getAttribute("aria-describedby"))?void 0:t.split(" "))||[]}function n(n){let r=e(n).filter(e=>e!==t);r.length?null==n||n.setAttribute("aria-describedby",r.join(" ")):null==n||n.removeAttribute("aria-describedby")}},[Q,ed,t,J]),(0,r.useEffect)(()=>{if(void 0===W)return()=>null;W&&ef(!0);let e=setTimeout(()=>{eh(W)},10);return()=>{clearTimeout(e)}},[W]),(0,r.useEffect)(()=>{ed!==ey.current&&((y(el),ey.current=ed,ed)?null==q||q():el.current=setTimeout(()=>{ef(!1),eg(null),null==V||V()},(e=>{let t=e.match(/^([\d.]+)(ms|s)$/);if(!t)return 0;let[,n,r]=t;return Number(n)*("ms"===r?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"))+25))},[ed]);let eO=e=>{ec(t=>p(t,e)?t:e)},eI=(e=A)=>{y(es),ep?eN(!0):es.current=setTimeout(()=>{eN(!0)},e)},eD=(e=S)=>{y(ea),ea.current=setTimeout(()=>{e_.current||eN(!1)},e)},eM=e=>{var t;if(!e)return;let n=null!=(t=e.currentTarget)?t:e.target;if(!(null==n?void 0:n.isConnected))return Y(null),void ex({current:null});A?eI():eN(!0),Y(n),ex({current:n}),y(ea)},eL=()=>{O?eD(S||100):S?eD():eN(!1),y(es)},eR=({x:e,y:t})=>{var n;u({place:null!=(n=null==em?void 0:em.place)?n:h,offset:f,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:ei.current,tooltipArrowReference:eo.current,strategy:k,middlewares:C,border:X,arrowSize:et}).then(e=>{eO(e)})},eP=e=>{if(!e)return;let t={x:e.clientX,y:e.clientY};eR(t),ev.current=t},eF=e=>{var t;if(!ed)return;let n=e.target;n.isConnected&&(null==(t=ei.current)||!t.contains(n))&&([document.querySelector(`[id='${l}']`),...ew].some(e=>null==e?void 0:e.contains(n))||(eN(!1),y(es)))},eB=d(eM,50,!0),e$=d(eL,50,!0),eV=e=>{e$.cancel(),eB(e)},ez=()=>{eB.cancel(),e$()},eU=(0,r.useCallback)(()=>{var e,t;let n=null!=(e=null==em?void 0:em.position)?e:$;n?eR(n):T?ev.current&&eR(ev.current):(null==Q?void 0:Q.isConnected)&&u({place:null!=(t=null==em?void 0:em.place)?t:h,offset:f,elementReference:Q,tooltipReference:ei.current,tooltipArrowReference:eo.current,strategy:k,middlewares:C,border:X,arrowSize:et}).then(e=>{eC.current&&eO(e)})},[ed,Q,U,B,h,null==em?void 0:em.place,f,k,$,null==em?void 0:em.position,T,et]);(0,r.useEffect)(()=>{var e,t;let n=new Set(eb);ew.forEach(e=>{(null==z?void 0:z(e))||n.add({current:e})});let r=document.querySelector(`[id='${l}']`);!r||(null==z?void 0:z(r))||n.add({current:r});let o=()=>{eN(!1)},s=m(Q),a=m(ei.current);ej.scroll&&(window.addEventListener("scroll",o),null==s||s.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o));let u=null;ej.resize?window.addEventListener("resize",o):Q&&ei.current&&(u=(0,i.ll)(Q,ei.current,eU,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));let c=e=>{"Escape"===e.key&&eN(!1)};ej.escape&&window.addEventListener("keydown",c),ej.clickOutsideAnchor&&window.addEventListener("click",eF);let d=[],h=e=>!!((null==e?void 0:e.target)&&(null==Q?void 0:Q.contains(e.target))),p=e=>{ed&&h(e)||eM(e)},f=e=>{ed&&h(e)&&eL()},g=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],y=["click","dblclick","mousedown","mouseup"];Object.entries(eS).forEach(([e,t])=>{t&&(g.includes(e)?d.push({event:e,listener:eV}):y.includes(e)&&d.push({event:e,listener:p}))}),Object.entries(eT).forEach(([e,t])=>{t&&(g.includes(e)?d.push({event:e,listener:ez}):y.includes(e)&&d.push({event:e,listener:f}))}),T&&d.push({event:"pointermove",listener:eP});let v=()=>{e_.current=!0},b=()=>{e_.current=!1,eL()},x=O&&(eT.mouseout||eT.mouseleave);return x&&(null==(e=ei.current)||e.addEventListener("mouseover",v),null==(t=ei.current)||t.addEventListener("mouseout",b)),d.forEach(({event:e,listener:t})=>
2703{n.forEach(n=>{var r;null==(r=n.current)||r.addEventListener(e,t)})}),()=>{var e,t;ej.scroll&&(window.removeEventListener("scroll",o),null==s||s.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o)),ej.resize?window.removeEventListener("resize",o):null==u||u(),ej.clickOutsideAnchor&&window.removeEventListener("click",eF),ej.escape&&window.removeEventListener("keydown",c),x&&(null==(e=ei.current)||e.removeEventListener("mouseover",v),null==(t=ei.current)||t.removeEventListener("mouseout",b)),d.forEach(({event:e,listener:t})=>{n.forEach(n=>{var r;null==(r=n.current)||r.removeEventListener(e,t)})})}},[Q,eU,ep,eb,ew,L,R,P,eE,A,S]),(0,r.useEffect)(()=>{var e,n;let r=null!=(n=null!=(e=null==em?void 0:em.anchorSelect)?e:c)?n:"";!r&&t&&(r=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);let i=new MutationObserver(e=>{let n=[],i=[];e.forEach(e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&i.push(e.target)),"childList"===e.type){if(Q){let t=[...e.removedNodes].filter(e=>1===e.nodeType);if(r)try{i.push(...t.filter(e=>e.matches(r))),i.push(...t.flatMap(e=>[...e.querySelectorAll(r)]))}catch(e){}t.some(e=>{var t;return!!(null==(t=null==e?void 0:e.contains)?void 0:t.call(e,Q))&&(ef(!1),eN(!1),Y(null),y(es),y(ea),!0)})}if(r)try{let t=[...e.addedNodes].filter(e=>1===e.nodeType);n.push(...t.filter(e=>e.matches(r))),n.push(...t.flatMap(e=>[...e.querySelectorAll(r)]))}catch(e){}}}),(n.length||i.length)&&ek(e=>[...e.filter(e=>!i.includes(e)),...n])});return i.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{i.disconnect()}},[t,c,null==em?void 0:em.anchorSelect,Q]),(0,r.useEffect)(()=>{eU()},[eU]),(0,r.useEffect)(()=>{if(!(null==H?void 0:H.current))return()=>null;let e=new ResizeObserver(()=>{setTimeout(()=>eU())});return e.observe(H.current),()=>{e.disconnect()}},[U,null==H?void 0:H.current]),(0,r.useEffect)(()=>{var e;let t=document.querySelector(`[id='${l}']`),n=[...ew,t];Q&&n.includes(Q)||Y(null!=(e=ew[0])?e:t)},[l,ew,Q]),(0,r.useEffect)(()=>(G&&eN(!0),()=>{y(es),y(ea)}),[]),(0,r.useEffect)(()=>{var e;let n=null!=(e=null==em?void 0:em.anchorSelect)?e:c;if(!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),n)try{let e=Array.from(document.querySelectorAll(n));ek(e)}catch(e){ek([])}},[t,c,null==em?void 0:em.anchorSelect]),(0,r.useEffect)(()=>{es.current&&(y(es),eI(A))},[A]);let eH=null!=(er=null==em?void 0:em.content)?er:U,eW=ed&&Object.keys(eu.tooltipStyles).length>0;return(0,r.useImperativeHandle)(e,()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}eg(null!=e?e:null),(null==e?void 0:e.delay)?eI(e.delay):eN(!0)},close:e=>{(null==e?void 0:e.delay)?eD(e.delay):eN(!1)},activeAnchor:Q,place:eu.place,isOpen:!!(ep&&!j&&eH&&eW)})),ep&&!j&&eH?r.createElement(E,{id:t,role:en,className:o("react-tooltip",_.tooltip,w.tooltip,w[a],n,`react-tooltip__place-${eu.place}`,_[eW?"show":"closing"],eW?"react-tooltip__show":"react-tooltip__closing","fixed"===k&&_.fixed,O&&_.clickable),onTransitionEnd:e=>{y(el),ed||"opacity"!==e.propertyName||(ef(!1),eg(null),null==V||V())},style:{...B,...eu.tooltipStyles,opacity:void 0!==Z&&eW?Z:void 0},ref:ei},eH,r.createElement(E,{className:o("react-tooltip-arrow",_.arrow,w.arrow,s,N&&_.noArrow),style:{...eu.tooltipArrowStyles,background:ee?`linear-gradient(to right bottom, transparent 50%, ${ee} 50%)`:void 0,"--rt-arrow-size":`${et}px`},ref:eo})):null},C=({content:e})=>r.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),E=r.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:i,html:s,render:a,className:l,classNameArrow:u,variant:d="dark",place:h="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:y=!1,positionStrategy:v="absolute",middlewares:b,delayShow:_=0,delayHide:w=0,float:E=!1,hidden:A=!1,noArrow:S=!1,clickable:T=!1,closeOnEsc:j=!1,closeOnScroll:N=!1,closeOnResize:O=!1,openEvents:I,closeEvents:D,globalCloseEvents:M,imperativeModeOnly:L=!1,style:R,position:P,isOpen:F,defaultIsOpen:B=!1,disableStyleInjection:$=!1,border:q,opacity:V,arrowColor:z,arrowSize:U,setIsOpen:H,afterShow:W,afterHide:G,disableTooltip:K,role:J="tooltip"},Q)=>{let[Y,X]=(0,r.useState)(i),[Z,ee]=(0,r.useState)(s),[et,en]=(0,r.useState)(h),[er,ei]=(0,r.useState)(d),[eo,es]=(0,r.useState)(p),[ea,el]=(0,r.useState)(_),[eu,ec]=(0,r.useState)(w),[ed,eh]=(0,r.useState)(E),[ep,ef]=(0,r.useState)(A),[em,eg]=(0,r.useState)(f),[ey,ev]=(0,r.useState)(g),[eb,ex]=(0,r.useState)(v),[e_,ew]=(0,r.useState)(null),[ek,eC]=(0,r.useState)(null),eE=(0,r.useRef)(null),eA=(0,r.useRef)($),{anch
2703orRefs:eS,activeAnchor:eT}=x(e),ej=e=>null==e?void 0:e.getAttributeNames().reduce((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!=(r=null==e?void 0:e.getAttribute(n))?r:null),t},{}),eN=e=>{let t={place:e=>{en(null!=e?e:h)},content:e=>{X(null!=e?e:i)},html:e=>{ee(null!=e?e:s)},variant:e=>{ei(null!=e?e:d)},offset:e=>{es(null===e?p:Number(e))},wrapper:e=>{eg(null!=e?e:f)},events:e=>{let t=null==e?void 0:e.split(" ");ev(null!=t?t:g)},"position-strategy":e=>{ex(null!=e?e:v)},"delay-show":e=>{el(null===e?_:Number(e))},"delay-hide":e=>{ec(null===e?w:Number(e))},float:e=>{eh(null===e?E:"true"===e)},hidden:e=>{ef(null===e?A:"true"===e)},"class-name":e=>{ew(e)}};Object.values(t).forEach(e=>e(null)),Object.entries(e).forEach(([e,n])=>{var r;null==(r=t[e])||r.call(t,n)})};(0,r.useEffect)(()=>{X(i)},[i]),(0,r.useEffect)(()=>{ee(s)},[s]),(0,r.useEffect)(()=>{en(h)},[h]),(0,r.useEffect)(()=>{ei(d)},[d]),(0,r.useEffect)(()=>{es(p)},[p]),(0,r.useEffect)(()=>{el(_)},[_]),(0,r.useEffect)(()=>{ec(w)},[w]),(0,r.useEffect)(()=>{eh(E)},[E]),(0,r.useEffect)(()=>{ef(A)},[A]),(0,r.useEffect)(()=>{ex(v)},[v]),(0,r.useEffect)(()=>{eA.current!==$&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[$]),(0,r.useEffect)(()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===$,disableBase:$}}))},[]),(0,r.useEffect)(()=>{var r;let i=new Set(eS),o=n;if(!o&&e&&(o=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),o)try{document.querySelectorAll(o).forEach(e=>{i.add({current:e})})}catch(e){console.warn(`[react-tooltip] "${o}" is not a valid CSS selector`)}let s=document.querySelector(`[id='${t}']`);if(s&&i.add({current:s}),!i.size)return()=>null;let a=null!=(r=null!=ek?ek:s)?r:eT.current,l=new MutationObserver(e=>{e.forEach(e=>{var t;a&&"attributes"===e.type&&(null==(t=e.attributeName)?void 0:t.startsWith("data-tooltip-"))&&eN(ej(a))})});return a&&(eN(ej(a)),l.observe(a,{attributes:!0,childList:!1,subtree:!1})),()=>{l.disconnect()}},[eS,eT,ek,t,n]),(0,r.useEffect)(()=>{(null==R?void 0:R.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),q&&!c("border",`${q}`)&&console.warn(`[react-tooltip] "${q}" is not a valid \`border\`.`),(null==R?void 0:R.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),V&&!c("opacity",`${V}`)&&console.warn(`[react-tooltip] "${V}" is not a valid \`opacity\`.`)},[]);let eO=m,eI=(0,r.useRef)(null);if(a){let e=a({content:(null==ek?void 0:ek.getAttribute("data-tooltip-content"))||Y||null,activeAnchor:ek});eO=e?r.createElement("div",{ref:eI,className:"react-tooltip-content-wrapper"},e):null}else Y&&(eO=Y);Z&&(eO=r.createElement(C,{content:Z}));let eD={forwardRef:Q,id:e,anchorId:t,anchorSelect:n,className:o(l,e_),classNameArrow:u,content:eO,contentWrapperRef:eI,place:et,variant:er,offset:eo,wrapper:em,events:ey,openOnClick:y,positionStrategy:eb,middlewares:b,delayShow:ea,delayHide:eu,float:ed,hidden:ep,noArrow:S,clickable:T,closeOnEsc:j,closeOnScroll:N,closeOnResize:O,openEvents:I,closeEvents:D,globalCloseEvents:M,imperativeModeOnly:L,style:R,position:P,isOpen:F,defaultIsOpen:B,border:q,opacity:V,arrowColor:z,arrowSize:U,setIsOpen:H,afterShow:W,afterHide:G,disableTooltip:K,activeAnchor:ek,previousActiveAnchor:eE.current,setActiveAnchor:e=>{eC(t=>((null==e?void 0:e.isSameNode(t))||(eE.current=t),e))},role:J};return r.createElement(k,{...eD})});"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||l({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}
2703.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||l({css:` 2704.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})})},76802:(e,t,n)=>{let r=n(24519),{get:i,numberToLetterSequence:o,numberToRoman:s,splitClassesAndIds:a,trimCharacter:l}=n(61388);function u(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks})}function c(e,t){return t?("string"==typeof t[0]?t[0]:"[")+e+("string"==typeof t[1]?t[1]:"]"):e}function d(e,t,n,r,o){let s="li"===i(e,["parent","name"]),a=0,l=(e.children||[]).filter(e=>"text"!==e.type||!/^\s*$/.test(e.data)).map(function(e){if("li"!==e.name)return{node:e,prefix:""};let t=s?o().trimStart():o();return t.length>a&&(a=t.length),{node:e,prefix:t}}
2704);if(!l.length)return;let u=a,c="\n"+" ".repeat(u);for(let{node:e,prefix:i}of(n.openBlock({leadingLineBreaks:s?1:r.leadingLineBreaks||2}),l))n.openBlock({leadingLineBreaks:1,reservedLineLength:u}),t([e],n),n.closeBlock({trailingLineBreaks:1,blockTransform:e=>i+" ".repeat(u-i.length)+e.replace(/\n/g,c)});n.closeBlock({trailingLineBreaks:s?1:r.trailingLineBreaks||2})}function h(e,t,n,r){function o(e){let o=+i(e,["attribs","colspan"])||1,s=+i(e,["attribs","rowspan"])||1;n.openTableCell({maxColumnWidth:r.maxColumnWidth}),t(e.children,n),n.closeTableCell({colspan:o,rowspan:s})}n.openTable(),e.children.forEach(function e(t){if("tag"!==t.type)return;let i=!1!==r.uppercaseHeaderCells?e=>{n.pushWordTransform(e=>e.toUpperCase()),o(e),n.popWordTransform()}:o;switch(t.name){case"thead":case"tbody":case"tfoot":case"center":t.children.forEach(e);return;case"tr":for(let e of(n.openTableRow(),t.children))if("tag"===e.type)switch(e.name){case"th":i(e);break;case"td":o(e)}n.closeTableRow()}}),n.closeTable({colSpacing:r.colSpacing,leadingLineBreaks:r.leadingLineBreaks,rowSpacing:r.rowSpacing,trailingLineBreaks:r.trailingLineBreaks})}n(85668),e.exports={anchor:function(e,t,n,i){let o=function(){if(i.ignoreHref||!e.attribs||!e.attribs.href)return"";let t=e.attribs.href.replace(/^mailto:/,"");return i.noAnchorUrl&&"#"===t[0]?"":(t=i.baseUrl&&"/"===t[0]?i.baseUrl+t:t,r.decode(t,n.options.decodeOptions))}();if(o){let r="";n.pushWordTransform(e=>(e&&(r+=e),e)),t(e.children,n),n.popWordTransform(),i.hideLinkHrefIfSameAsText&&o===r||n.addInline(r?" "+c(o,i.linkBrackets):o,{noWordTransform:!0})}else t(e.children,n)},block:u,blockquote:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2,reservedLineLength:2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2,blockTransform:e=>(!1!==r.trimEmptyLines?l(e,"\n"):e).split("\n").map(e=>"> "+e).join("\n")})},dataTable:h,heading:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),!1!==r.uppercase?(n.pushWordTransform(e=>e.toUpperCase()),t(e.children,n),n.popWordTransform()):t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},horizontalLine:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.addInline("-".repeat(r.length||n.options.wordwrap||40)),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},image:function(e,t,n,i){let o=e.attribs||{},s=o.alt?r.decode(o.alt,n.options.decodeOptions):"",a=o.src?i.baseUrl&&0===o.src.indexOf("/")?i.baseUrl+o.src:o.src:"",l=a?s?s+" "+c(a,i.linkBrackets):c(a,i.linkBrackets):s;n.addInline(l)},inline:function(e,t,n,r){t(e.children,n)},lineBreak:function(e,t,n,r){n.addLineBreak()},orderedList:function(e,t,n,r){let i=Number(e.attribs.start||"1"),a=function(e="1"){switch(e){case"a":return e=>o(e,"a");case"A":return e=>o(e,"A");case"i":return e=>s(e).toLowerCase();case"I":return e=>s(e);default:return e=>e.toString()}}(e.attribs.type);return d(e,t,n,r,()=>" "+a(i++)+". ")},paragraph:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},pre:function(e,t,n,r){n.openBlock({isPre:!0,leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},skip:function(e,t,n,r){},table:function(e,t,n,r){return!function(e,t){if(!0===t)return!0;if(!e)return!1;let{classes:n,ids:r}=a(t),i=(e.class||"").split(" "),o=(e.id||"").split(" ");return i.some(e=>n.includes(e))||o.some(e=>r.includes(e))}(e.attribs,n.options.tables)?u(e,t,n,r):h(e,t,n,r)},unorderedList:function(e,t,n,r){let i=r.itemPrefix||" * ";return d(e,t,n,r,()=>i)},wbr:function(e,t,n,r){n.addWordBreakOpportunity()}}},77016:(e,t,n)=>{"use strict";function r(e){return function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){if(null===t)return"null";if(n.includes(t))return"[Circular]";let r=[...n,t];if("function"==typeof t.toJSON){let n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,r)}else if(Array.isArray(t)){var i=t,o=r;if(0===i.length)return"[]";if(o.length>2)return"[Array]";let n=Math.min(10,i.length),s=i.length-n,a=[];for(let t=0;t<n;++t)a.push(e(i[t],o));return 1===s?a.push("... 1 more item"):s>1&&a.push(`... ${s} more items`),"["+a.join(", ")+"]"}var s=t,a=r;let l=Object.entries(s);return 0===l.length?"{}":a.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(s)+"]":"{ "+l.map(([t,n])=>t+": "+e(n,a)).join(", ")+" }"}(t,n);default:return String(t)}}(e,[])}n.d(t,{N:()=>r})}
2704,77052:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(37876),i=n(49995),o=n(266),s=n(32752),a=n(62086),l=n(82037),u=n(87782),c=n(10969),d=n(72569),h=n(99410);let p=function(e){let{busy:t,elements:n,emptyMessage:p,listId:f,menuItems:m,onOpen:g,sortable:y}=e,v=(0,d.Eh)(),b=(0,c.CI)(v),{containerProps:x,dragProps:_,endZoneProps:w,getGripSortable:k,getItemClass:C,inserting:E,listRef:A}=y;return(0,r.jsxs)("div",{ref:A,...x,className:"space-y-2",id:f,"data-sentry-component":"ElementList","data-sentry-source-file":"ElementList.tsx",children:[0===n.length?(0,r.jsx)("div",{...w,className:(0,i.A)("text-center py-8 border-2 border-dashed rounded-lg",b.cardMutedTextColor,b.cardLineColor,C(h.W)),children:p}):[...n].sort((e,t)=>e.params.order-t.params.order).map(e=>(0,r.jsxs)("div",{id:e.id,"data-sort-item":!0,"data-sort-item-id":e.id,..._,className:(0,i.A)("flex gap-3 px-3 border rounded-lg",b.cardLineColor,b.cardTintedHoverColor,C(e.id)),children:[(0,r.jsx)("div",{...k(e.id),"data-sort-item-id":e.id,className:(0,i.A)("flex items-center py-3 cursor-move touch-none",b.cardMutedTextColor,b.cardTextHoverColor),title:"Drag to reorder",children:(0,r.jsx)(a.A,{className:"w-4 h-4 fill-current"})}),(0,r.jsxs)("button",{type:"button",onClick:()=>g(e),className:"flex flex-1 min-w-0 items-center gap-2 py-3 text-left",children:[(0,r.jsx)("div",{className:"font-medium truncate",children:e.name}),!(0,u.HF)(e)&&(0,r.jsx)(o.A,{})]}),(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-2 py-3",children:[(0,r.jsx)(l.tA,{disabled:t,onClick:()=>g(e),children:"Detail"}),(0,r.jsx)(s.A,{ariaLabel:`Actions for ${e.name}`,items:m(e)})]})]},e.id)),E&&n.length>0&&(0,r.jsx)("div",{...w,className:(0,i.A)("h-12 border-2 border-dashed rounded-lg",b.cardLineColor,C(h.W))})]})}},77133:(e,t,n)=>{"use strict";function r(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}n.d(t,{x:()=>r})},77162:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(47952),o=n(80327),s=n(49995);function a(e){let{as:t="span",className:n,text:a}=e,l=e.format||"MARKDOWN";return"MARKDOWN"===l?(0,r.jsx)(i.A,{content:a}):"HTML"===l?(0,r.jsx)(t,{className:(0,s.A)("external-content",n),dangerouslySetInnerHTML:{__html:a}}):(0,r.jsx)(t,{className:(0,s.A)("external-content",n),"data-sentry-element":"Component","data-sentry-component":"FormattedText","data-sentry-source-file":"FormattedText.tsx",children:(0,r.jsx)(o.A,{text:a,"data-sentry-element":"TextToHtml","data-sentry-source-file":"FormattedText.tsx"})})}},77237:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"}))})},77289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]).filter(r)};var n=/input|select|textarea|button|object|iframe/;function r(e){var t,r,i=e.getAttribute("tabindex");null===i&&(i=void 0);var o=isNaN(i);return(o||i>=0)&&(t=!o,r=e.nodeName.toLowerCase(),(n.test(r)&&!e.disabled||"a"===r&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),r=n.getPropertyValue("display");return t?"contents"!==r&&("visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0):"none"===r}catch(e){return console.warn("Failed to inspect element style"),!1}}(t))return!1;t=t.parentNode}return!0}(e))}e.exports=t.default}
2704,77328:(e,t,n)=>{e.exports=n(88022)},77404:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var r=function(e){return e.Image="IMAGE",e.Video="VIDEO",e.Audio="AUDIO",e}({})},77859:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(42383),o=n(47027),s=n(72569);function a(e){let{formState:t,register:n}=e.hookForm;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"IndexingFields.tsx",children:[(0,r.jsx)(i.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"IndexingFields.tsx",children:"Tag or Slug"}),(0,r.jsxs)(o.A,{backgroundType:s.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"IndexingFields.tsx",children:["This is a unique identifier of this content item that is used as a reference from content components that depend on it. Only letters, numeric digits, lower-case characters and the minus sign (",(0,r.jsx)("code",{children:"-"}),") may be used. The slug should start with a letter."]}),(0,r.jsx)(i.ks,{register:n("slug",{pattern:/^[a-z][a-z0-9-]*$/}),"data-sentry-element":"TextInput","data-sentry-source-file":"IndexingFields.tsx"}),(0,r.jsx)(i.Kw,{name:"slug",errors:t.errors,messages:{pattern:"invalid character pattern"},"data-sentry-element":"ErrorMessage","data-sentry-source-file":"IndexingFields.tsx"})]}),(0,r.jsxs)(i.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"IndexingFields.tsx",children:[(0,r.jsx)(i.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"IndexingFields.tsx",children:"Class identifier"}),(0,r.jsxs)(o.A,{backgroundType:s.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"IndexingFields.tsx",children:["Gives this item a CSS class so the group stylesheet can target it. An identifier of ",(0,r.jsx)("code",{children:"section-nav"})," renders as"," ",(0,r.jsx)("code",{children:"content-item-section-nav"}),". Share one identifier across items that should look the same. It must start with a letter, followed by letters, digits or the minus sign (",(0,r.jsx)("code",{children:"-"}),")."]}),(0,r.jsx)(i.ks,{register:n("classIdentifier",{pattern:/^[a-zA-Z][a-zA-Z0-9-]*$/}),"data-sentry-element":"TextInput","data-sentry-source-file":"IndexingFields.tsx"}),(0,r.jsx)(i.Kw,{name:"classIdentifier",errors:t.errors,messages:{pattern:"invalid character pattern"},"data-sentry-element":"ErrorMessage","data-sentry-source-file":"IndexingFields.tsx"})]})]})}},78248:(e,t,n)=>{"use strict";n.d(t,{_:()=>u});var r=n(4902),i=n(14232),o=n(18877),s=n(31167),a=n(67994),l=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function u(e,t){var n,u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(),h=u.current?(0,o.l)(t,u.current):t,p=null!=(n=null==h?void 0:h.query)?n:e;c.current=h,d.current=p;var f=(0,s.k)((0,a.m)(t&&t.client),p),m=f.useQuery((0,r.Cl)((0,r.Cl)({},h),{skip:!u.current})),g=m.observable.options.initialFetchPolicy||f.getDefaultFetchPolicy(),y=Object.assign(m,{called:!!u.current}),v=(0,i.useMemo)(function(){for(var e={},t=0;t<l.length;t++)!function(t){var n=y[t];e[t]=function(){return u.current||(u.current=Object.create(null),f.forceUpdate()),n.apply(this,arguments)}}(l[t]);return e},[]);return Object.assign(y,v),[(0,i.useCallback)(function(e){u.current=e?(0,r.Cl)((0,r.Cl)({},e),{fetchPolicy:e.fetchPolicy||g}):{fetchPolicy:g};var t=(0,o.l)(c.current,(0,r.Cl)({query:d.current},u.current)),n=f.executeQuery((0,r.Cl)((0,r.Cl)({},t),{skip:!1})).then(function(e){return Object.assign(e,v)});return n.catch(function(){}),n},[]),y]}},78483:e=>{e.exports=function(e){return this.__data__.get(e)}},78583:(e,t,n)=>{var r=n(48872),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,s,a){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var h=u[d];if(!(l?h in t:i.call(t,h)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var m=!0;a.set(e,t),a.set(t,e);for(var g=l;++d<c;){var y=e[h=u[d]],v=t[h];if(o)var b=l?o(v,y,h,t,e,a):o(y,v,h,e,t,a);if(!(void 0===b?y===v||s(y,v,n,o,a):b)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var x=e.constructor,_=t.constructor;x!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _)&&(m=!1)}return a.delete(e),a.delete(t),m}},78598:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},78755:(e,t,n)=>{var r;!function(){"use strict";var i=!!("undefined"!=typeof window&&window.document&&window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!!(window.addEventListener||window.attachEvent),canUseVie
2704wport:i&&!!window.screen};void 0===(r=(function(){return o}).call(t,n,t,e))||(e.exports=r)}()},78950:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(37876),i=n(49995),o=n(82037),s=n(10969),a=n(72569),l=n(89099),u=n(14232),c=n(41116),d=n.n(c);function h(e){let{title:t,showCloseButton:n,onClose:s}=e;return(0,r.jsxs)("div",{className:"flex flex-between items-center mt-4","data-sentry-component":"TitleWithCloseButton","data-sentry-source-file":"TitleWithCloseButton.tsx",children:[(0,r.jsx)("h2",{className:"flex-grow text-2xl font-bold px-6",children:t}),n&&(0,r.jsx)("div",{className:(0,i.A)("CloseButton-Wrapper flex justify-end items-start -mt-4 pr-4"),children:(0,r.jsx)(o.Jn,{onClick:s})})]})}function p(e){let{bodyClassName:t,children:n,className:c,header:p,isOpen:f,modalStyle:m,modalContentStyle:g,onAfterClose:y,onClose:v,title:b}=e,x=e.withBodyStyle??!0,_=e.floatCloseButton??!0,w=(0,a.jz)(e.themeArea),k=(0,u.useMemo)(()=>{let t="admin"===w?s.OT.modalStyle:s.Ay.modalStyle,n={...t,...m||{}};return{...n,overlay:{...n.overlay,...e.overlayStyle||{}},content:{...t.content,...g||{},...e.contentStyle||{},...m?.content||{}}}},[w,m,e.overlayStyle,g,e.contentStyle]),C=(0,l.useRouter)(),E=(0,u.useRef)(C.asPath);c="admin"===w?(0,i.A)("gf-area-admin bg-gf-green-ultralight",c):(0,i.A)("gf-customer gf-area-members bg-[var(--group-primary-card-background-color)] text-[var(--group-primary-card-text-color)]",c);let A=t??"";x&&"admin"===w?A=s.OT.modalBodyStyle:x&&(A=s.Ay.modalBodyStyle),(0,u.useEffect)(()=>{let e=e=>{e!==E.current&&(E.current=e,v&&v())};return C.events.on("routeChangeStart",e),()=>{C.events.off("routeChangeStart",e)}});let S=e.showCloseButton??!0;return!p&&b?p=(0,r.jsx)(h,{title:b,showCloseButton:S,onClose:v??(()=>void 0)}):!p&&S&&(p=(0,r.jsx)("div",{className:(0,i.A)("CloseButton flex justify-end",_?"mt-3 mr-3":""),children:(0,r.jsx)(o.Jn,{onClick:v})})),(0,r.jsx)(d(),{isOpen:void 0===f||f,onAfterClose:y,onRequestClose:v,style:k,className:(0,i.A)("SimpleModal",c,"mx-4 md:min-w-0"),"data-sentry-element":"ReactModal","data-sentry-component":"SimpleModal","data-sentry-source-file":"SimpleModal.tsx",children:(0,r.jsxs)("div",{className:"relative","data-testid":e["data-testid"],children:[p,(0,r.jsx)("div",{className:A,children:n})]})})}},79020:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},79151:(e,t)=>{"use strict";t.Headers=self.Headers,t.Request=self.Request,t.Response=self.Response,t.fetch=self.fetch},79316:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(37876),i=n(5811),o=n(54587),s=n.n(o),a=n(43982),l=n(48230),u=n.n(l),c=n(49995),d=n(10969);function h(e){let{event:t}=e,n=t.image||{},i=t.startAt,o=(0,a.Yq)(i,"EEEE, MMM d, yyyy"),l=(0,a.Yq)(i,"h:mm a");return(0,r.jsxs)("section",{className:(0,c.A)(d.Ay.primaryCard,"my-8 shadow-md sm:flex overflow-hidden"),"data-sentry-component":"EventCard","data-sentry-source-file":"EventCard.tsx",children:[(0,r.jsx)("div",{className:"sm:min-w-2xs sm:max-w-2xs",children:n.url&&(0,r.jsx)(u(),{href:`/events/${t.id}`,children:(0,r.jsx)(s(),{src:n.url,className:"w-full h-full object-cover",alt:"Event photo",width:n.info?.width||0,height:n.info?.height||0,sizes:"(max-width: 640px) 100vw, 288px"})})}),(0,r.jsxs)("div",{className:"ml-2 mt-4 sm:mt-0 p-2",children:[(0,r.jsx)("h3",{className:"mt-0 font-bold",children:t.title}),(0,r.jsxs)("p",{className:"mt-2 mb-0",children:["Date: ",o]}),(0,r.jsxs)("p",{className:"mt-0 mb-2",children:["Time: ",l]}),(0,r.jsx)(u(),{href:`/events/${t.id}`,className:"a mt-2 mb-0","data-sentry-element":"Link","data-sentry-source-file":"EventCard.tsx",children:"Details and registration"})]})]})}var p=n(2418),f=n(46449),m=n(10290),g=n(31167);let y=(0,i.PA)(function(){let e=(0,g.I)(m.UG,{variables:{additionalFilter:{pastOrFuture:"FUTURE"},filter:{and:{status:{eq:"PUBLISHED"},isPublic:{eq:!0}}},sort:{field:"START_AT",order:"ASC"},limit:50,offset:0}}),t=(0,f.A)(e),n=t.events;return n&&0!==n.length?(0,r.jsxs)(r.Fragment,{children:[n.map(e=>(0,r.jsx)(h,{event:e},e.id)),(0,r.jsx)(p.A,{paging:t,className:"mt-8","data-sentry-element":"EventsLoadMoreButton","data-sentry-source-file":"PublicEventsList.tsx"})]}):(0,r.jsx)("p",{className:"p",children:(0,r.jsx)("strong",{children:"There are no public events posted at this time. Please check back later."})})})},79344:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(37876),i=n(72569),o=n(49995),s=n(62086),a=n(10969);
2704function l({id:e,sortable:t,className:n,iconSize:l="16px"}){let u=(0,a.CI)((0,i.Eh)());return(0,r.jsx)("div",{title:"Drag to change its position",className:(0,o.A)("grip-control flex items-center",u.cardMutedTextColor,u.accentTextHoverColor,n),id:e,...t||{},"data-sentry-component":"GripCol","data-sentry-source-file":"GripCol.tsx",children:(0,r.jsx)(s.A,{style:{width:l,height:l,fill:"currentColor"},className:"mx-2 cursor-pointer","data-sentry-element":"GripIcon","data-sentry-source-file":"GripCol.tsx"})})}},79364:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},79560:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(80229),o=n(13055),s=n(14232),a=n(37101),l=n(18334);function u(e){let{className:t,name:n,fileBroadTypes:u,anyFileType:c,onError:d,preserveOriginal:h}=e,p=e.inputRef||s.createRef(),f=(0,s.useRef)(null),m=(0,s.useRef)(null),g=(0,s.useRef)(e.onProcessingChange);async function y(e){m.current=null,f.current=setTimeout(()=>{m.current=Date.now(),g.current?.(!0)},300);try{return await e()}finally{if(f.current&&(clearTimeout(f.current),f.current=null),null!==m.current){let e=300-(Date.now()-m.current);e>0&&await new Promise(t=>setTimeout(t,e)),g.current?.(!1),m.current=null}}}async function v(t){let n,{target:r}=t;if(!r||!r.files)return d&&d("No file given"),null;let i=r.files.length>0?r.files[0]:null;if(!i)return d&&d("No file given"),null;t.preventDefault();try{n=h?i:await y(()=>(0,a.j1)(i))}catch(t){let e=t instanceof Error?t.message:"Couldn't process this file.";d&&d(e),l.wd("File preparation error",{level:"error",extra:{fileName:i.name,fileType:i.type,message:e}});return}if(!h){let e=(0,a.oL)(n);if(e){d&&d(e),l.wd("File size error",{level:"error",extra:{file:n,errorMessage:e}});return}}let{onChange:o}=e;o&&o(n)}g.current=e.onProcessingChange,(0,s.useEffect)(()=>()=>{f.current&&clearTimeout(f.current)},[]);let b=o.ST;return u?.includes(o.RG.VECTOR)&&(b=[...b,...o.OW]),u?.includes(o.RG.FAVICON)&&(b=[...b,...o.HF]),u?.includes(o.RG.PDF)&&(b=[...b,...o.vG]),u?.includes(o.RG.VIDEO)&&(b=[...b,...o.Eq]),c&&(b=["*/*"]),(0,r.jsx)("input",{type:"file",ref:p,name:n,onChange:v,accept:b.join(","),className:(0,i.Wd)("FileInput",t),"data-sentry-component":"FileInput","data-sentry-source-file":"FileInput.tsx"})}},79642:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:"Facebook icon",style:n,className:t,...{},"data-sentry-element":"svg","data-sentry-component":"FacebookIcon","data-sentry-source-file":"FacebookIcon.tsx",children:(0,r.jsx)("path",{d:"M32 0C14.356 0 0 14.356 0 32C0 49.644 14.356 64 32 64C49.644 64 64 49.644 64 32C64 14.356 49.644 0 32 0ZM32 4.92308C46.9833 4.92308 59.0769 17.0167 59.0769 32C59.0769 45.6189 49.0711 56.8173 36 58.75V39.8269H43.6442L44.8462 32.0673H36V27.8173C36 24.5927 37.0495 21.7308 40.0673 21.7308H44.9135V14.9519C44.0618 14.8387 42.2625 14.5865 38.8558 14.5865C31.7468 14.5865 27.5769 18.3428 27.5769 26.8942V32.0577H20.2692V39.8269H27.5865V58.6827C14.719 56.5766 4.92308 45.4748 4.92308 32C4.92308 17.0167 17.0167 4.92308 32 4.92308Z","data-sentry-element":"path","data-sentry-source-file":"FacebookIcon.tsx"})})}},79706:(e,t,n)=>{"use strict";var r=n(3717);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=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 a.name="Invariant Violation",a}}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}
2704;return n.PropTypes=n,n}},79760:(e,t,n)=>{"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var r=e[t];void 0!==r&&(n[t]=r)})}),n}n.d(t,{o:()=>r})},80016:(e,t,n)=>{"use strict";n.d(t,{A:()=>h,p:()=>p});var r=n(37876),i=n(5811),o=n(8832),s=n(42383),a=n(44302),l=n(7794),u=n(49995),c=n(37483),d=n(73382);let h=(0,i.PA)(({className:e})=>{let{page:t,notFound:n,canEdit:i,onAddClick:h,uriPath:p,cardStyle:f}=(0,l.A)();return p?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.A,{title:t?.title,"data-sentry-element":"WindowTitle","data-sentry-source-file":"PageContentSimplified.tsx"}),t&&t.content&&(0,r.jsx)(c.A,{contentSlug:t.slug??void 0,contentId:t.id,className:(0,u.A)(`content-item-${d.nz.Page}`,f,e),type:d.nz.Page,pageType:d.g6.Embedded}),n&&!t?.content&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.A,{}),i&&(0,r.jsx)(s.rA,{onClick:h,children:"Add page"})]})]}):null}),p=[{key:"className",type:"string"}]},80035:(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("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}n.d(t,{EW:()=>eR,Gn:()=>tQ,HO:()=>tq,XI:()=>t_,h5:()=>tk,jK:()=>tj,l_:()=>tX,qT:()=>tl,sH:()=>eI,yl:()=>tO});var i,o,s,a,l,u,c,d,h,p,f={};function m(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:f}var g=Object.assign,y=Object.getOwnPropertyDescriptor,v=Object.defineProperty,b=Object.prototype,x=[];Object.freeze(x);var _={};Object.freeze(_);var w="undefined"!=typeof Proxy,k=Object.toString();function C(){w||r("Proxy not available")}function E(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var A=function(){};function S(e){return"function"==typeof e}function T(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function j(e){return null!==e&&"object"==typeof e}function N(e){if(!j(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===k}function O(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function I(e,t,n){v(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function D(e,t,n){v(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function M(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return j(e)&&!0===e[n]}}function L(e){return e instanceof Map}function R(e){return e instanceof Set}var P=void 0!==Object.getOwnPropertySymbols,F="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:P?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function B(e){return null===e?null:"object"==typeof e?""+e:e}function $(e,t){return b.hasOwnProperty.call(e,t)}var q=Object.getOwnPropertyDescriptors||function(e){var t={};return F(e).forEach(function(n){t[n]=y(e,n)}),t};function V(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,function(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 TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(r.key),r)}}function z(e,t,n){return t&&V(e.prototype,t),n&&V(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}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}).apply(this,arguments)}function H(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,W(e,t)}function W(e,t){return(W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function G(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function J(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return K(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(e,void 0)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Q=Symbol("mobx-stored-annotations");function Y(e){return Object.assign(function(t,n){X(t,n,e)},e)}
2704function X(e,t,n){$(e,Q)||I(e,Q,U({},e[Q])),"override"!==n.annotationType_&&(e[Q][t]=n)}var Z=Symbol("mobx administration"),ee=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=l.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.reportObserved=function(){return ts(this)},t.reportChanged=function(){ti(),ta(this),tt.stateVersion=tt.stateVersion<Number.MAX_SAFE_INTEGER?tt.stateVersion+1:Number.MIN_SAFE_INTEGER,to()},t.toString=function(){return this.name_},e}(),et=M("Atom",ee);function en(e,t,n){void 0===t&&(t=A),void 0===n&&(n=A);var r=new ee(e);return t!==A&&tS("onBO",r,t,void 0),n!==A&&tA(r,n),r}var er={structural:function(e,t){return nE(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}};function ei(e,t,n){if(tB(e))return e;if(Array.isArray(e))return eI.array(e,{name:n});if(N(e))return eI.object(e,void 0,{name:n});if(L(e))return eI.map(e,{name:n});if(R(e))return eI.set(e,{name:n});if("function"==typeof e&&!tC(e)&&!tF(e))if(O(e))return tR(e);else return tw(n,e);return e}function eo(e){return e}function es(e,t){return{annotationType_:e,options_:t,make_:ea,extend_:el}}function ea(e,t,n,r){if(null!=(i=this.options_)&&i.bound)return+(null!==this.extend_(e,t,n,!1));if(r===e.target_)return 2*(null!==this.extend_(e,t,n,!1));if(tC(n.value))return 1;var i,o=eu(e,this,t,n,!1);return v(r,t,o),2}function el(e,t,n,r){var i=eu(e,this,t,n);return e.defineProperty_(t,i,r)}function eu(e,t,n,r,i){void 0===i&&(i=tt.safeDescriptors),t.annotationType_,r.value;var o,s,a,l,u,c,d,h,p=r.value;return null!=(o=t.options_)&&o.bound&&(p=p.bind(null!=(h=e.proxy_)?h:e.target_)),{value:eV(null!=(s=null==(a=t.options_)?void 0:a.name)?s:n.toString(),p,null!=(l=null==(u=t.options_)?void 0:u.autoAction)&&l,null!=(c=t.options_)&&c.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ec(e,t){return{annotationType_:e,options_:t,make_:ed,extend_:eh}}function ed(e,t,n,r){if(r===e.target_)return 2*(null!==this.extend_(e,t,n,!1));if(null!=(i=this.options_)&&i.bound&&(!$(e.target_,t)||!tF(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(tF(n.value))return 1;var i,o=ep(e,this,t,n,!1,!1);return v(r,t,o),2}function eh(e,t,n,r){var i,o=ep(e,this,t,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function ep(e,t,n,r,i,o){void 0===o&&(o=tt.safeDescriptors),t.annotationType_,r.value;var s,a=r.value;return tF(a)||(a=tR(a)),i&&((a=a.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:a,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ef(e,t){return{annotationType_:e,options_:t,make_:em,extend_:eg}}function em(e,t,n){return+(null!==this.extend_(e,t,n,!1))}function eg(e,t,n,r){var i,o;return i=this,o=n,i.annotationType_,o.get,e.defineComputedProperty_(t,U({},this.options_,{get:n.get,set:n.set}),r)}function ey(e,t){return{annotationType_:e,options_:t,make_:ev,extend_:eb}}function ev(e,t,n){return+(null!==this.extend_(e,t,n,!1))}function eb(e,t,n,r){var i,o,s;return s=this,s.annotationType_,e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:ei,r)}var ex=e_();function e_(e){return{annotationType_:"true",options_:e,make_:ew,extend_:ek}}function ew(e,t,n,r){if(n.get)return eR.make_(e,t,n,r);if(n.set){var i,o,s,a,l,u=eV(t.toString(),n.set);return r===e.target_?2*(null!==e.defineProperty_(t,{configurable:!tt.safeDescriptors||e.isPlainObject_,set:u})):(v(r,t,{configurable:!0,set:u}),2)}if(r!==e.target_&&"function"==typeof n.value)return O(n.value)?(null!=(a=this.options_)&&a.autoBind?tR.bound:tR).make_(e,t,n,r):(null!=(s=this.options_)&&s.autoBind?tw.bound:tw).make_(e,t,n,r);var c=(null==(i=this.options_)?void 0:i.deep)===!1?eI.ref:eI;return"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(l=e.proxy_)?l:e.target_)),c.make_(e,t,n,r)}function ek(e,t,n,r){var i,o,s;return n.get?eR.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!tt.safeDescriptors||e.isPlainObject_,set:eV(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(s=e.proxy_)?s:e.target_)),((null==(o=this.options_)?void 0:o.deep)===!1?eI.ref:eI).extend_(e,t,n,r))}var eC={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(eC);var eE=ey("observable"),eA=ey("observable.ref",{enhancer:eo}),eS=ey("observable.shallow",{enhancer:function(e,t,n){return null==e||np(e)||t9(e)||nr(e)||ns(e)?e:Array.isArray(e)?eI.array(e,{name:n,deep:!1}):N(e)?eI.object(e,void 0,{name:n,deep:!1}):L(e)?eI.map(e,{name:n,deep:!1}):R(e)?eI.set(e,{name:n,deep:!1}):void 0}}),eT=ey("observable.struct",{enhancer:function(e,t){return nE(e,t)?t:e}}),ej=Y(eE);function eN(e){var t,n,r;return!0===e.deep?ei:!1===e.deep?eo:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:ei}function eO(e,t,n){return T(t)?void X(e,t,eE):tB(e)?e:N(e)?eI.object(e,t,n):Array.isArray(e)?eI.array(e,t):L(e)?eI.map(e,t):R(e)?eI.set(e,t):"object"==typeof e&&null!==e?e:eI.box(e,t)}g(eO,ej);var eI=g(eO,{box:function(e,t){var n=t||eC;return new eW(e,eN(n),n.name,!0,n.equals)},array:function(e,t){var n=t||eC;return(!1===tt.useProxies||!1===n.proxy?function(e,t,n){return new nb(e,t,n)}:function(e,t,n,r){void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),C();var i=new t2(n,t,r,!1);D(i.values_,Z,i);var o=new Proxy(i.values_,t1);if(i.proxy_=o,e&&e.length){var s=eU(!0);i.spliceWithArray_(0,0,e),eH(s)}return o}
2704)(e,eN(n),n.name)},map:function(e,t){var n=t||eC;return new nn(e,eN(n),n.name)},set:function(e,t){var n=t||eC;return new no(e,eN(n),n.name)},object:function(e,t,n){var r,i,o,s;return tN(!1===tt.useProxies||(null==n?void 0:n.proxy)===!1?nc({},n):(r={},i=n,C(),null!=(s=(o=(r=nc(r,i))[Z]).proxy_)?s:o.proxy_=new Proxy(r,tz)),e,t)},ref:Y(eA),shallow:Y(eS),deep:ej,struct:Y(eT)}),eD="computed",eM=ef(eD),eL=ef("computed.struct",{equals:er.structural}),eR=function(e,t){if(T(t))return X(e,t,eM);if(N(e))return Y(ef(eD,e));var n=N(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new eK(n)};Object.assign(eR,eM),eR.struct=Y(eL);var eP=0,eF=1,eB=null!=(i=null==(o=y(function(){},"name"))?void 0:o.configurable)&&i,e$={value:"action",configurable:!0,writable:!1,enumerable:!1};function eV(e,t,n,r){function i(){return ez(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,eB&&(e$.value=e,v(i,"name",e$)),i}function ez(e,t,n,i,o){var s,a,l,u,c,d,h=(s=t,a=tt.trackingDerivation,l=!s||!a,ti(),u=tt.allowStateChanges,l&&(e5(),u=eU(!0)),eP=(c={runAsAction_:l,prevDerivation_:a,prevAllowStateChanges_:u,prevAllowStateReads_:e4(!0),notifySpy_:!1,startTime_:0,actionId_:eF++,parentActionId_:eP}).actionId_,c);try{return n.apply(i,o)}catch(e){throw h.error_=e,e}finally{eP!==(d=h).actionId_&&r(30),eP=d.parentActionId_,void 0!==d.error_&&(tt.suppressReactionErrors=!0),eH(d.prevAllowStateChanges_),e8(d.prevAllowStateReads_),to(),d.runAsAction_&&e3(d.prevDerivation_),tt.suppressReactionErrors=!1}}function eU(e){var t=tt.allowStateChanges;return tt.allowStateChanges=e,t}function eH(e){tt.allowStateChanges=e}s=Symbol.toPrimitive;var eW=function(e){function t(t,n,r,i,o){var s;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=er.default),(s=e.call(this,r)||this).enhancer=void 0,s.name_=void 0,s.equals=void 0,s.hasUnreportedChange_=!1,s.interceptors_=void 0,s.changeListeners_=void 0,s.value_=void 0,s.dehancer=void 0,s.enhancer=n,s.name_=r,s.equals=o,s.value_=n(t,void 0,r),s}H(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==tt.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(eZ(this),tU(this)){var t=tW(this,{object:this,type:t0,newValue:e});if(!t)return tt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?tt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),tG(this)&&tJ(this,{type:t0,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return tH(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:t0,newValue:this.value_,oldValue:void 0}),tK(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return B(this.get())},n[s]=function(){return this.valueOf()},t}(ee),eG=M("ObservableValue",eW);a=Symbol.toPrimitive;var eK=function(){function e(e){this.dependenciesState_=l.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=l.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new eQ(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=u.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=eV("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?er.structural:er.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){var e;e=this,e.lowestObserverState_===l.UP_TO_DATE_&&(e.lowestObserverState_=l.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===l.UP_TO_DATE_&&(e.depen
2704denciesState_=l.POSSIBLY_STALE_,e.onBecomeStale_())}))},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.get=function(){if(this.isComputing_&&r(32,this.name_,this.derivation),0!==tt.inBatch||0!==this.observers_.size||this.keepAlive_){if(ts(this),eX(this)){var e,t=tt.trackingContext;this.keepAlive_&&!t&&(tt.trackingContext=this),this.trackAndCompute()&&(e=this,e.lowestObserverState_!==l.STALE_&&(e.lowestObserverState_=l.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===l.POSSIBLY_STALE_?t.dependenciesState_=l.STALE_:t.dependenciesState_===l.UP_TO_DATE_&&(e.lowestObserverState_=l.UP_TO_DATE_)}))),tt.trackingContext=t}}else eX(this)&&(this.warnAboutUntrackedRead_(),ti(),this.value_=this.computeValue_(!1),to());var n=this.value_;if(eY(n))throw n.cause;return n},t.set=function(e){if(this.setter_){this.isRunningSetter_&&r(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===l.NOT_TRACKING_,n=this.computeValue_(!0),r=t||eY(e)||eY(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=eU(!1);if(e)t=e0(this,this.derivation,this.scope_);else if(!0===tt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new eQ(e)}return eH(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(e1(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return function(e,t){void 0===t&&(t=_);var n,r,i,o=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var s,a=(s=t).scheduler?s.scheduler:s.delay?function(e){return setTimeout(e,s.delay)}:tE,l=!1;i=new tl(o,function(){l||(l=!0,a(function(){l=!1,i.isDisposed_||i.track(u)}))},t.onError,t.requiresObservable)}else i=new tl(o,function(){this.track(u)},t.onError,t.requiresObservable);function u(){e(i)}return i.schedule_(),i.getDisposer_()}(function(){var o=n.get();if(!r||t){var s=e5();e({observableKind:"computed",debugObjectName:n.name_,type:t0,object:n,newValue:o,oldValue:i}),e3(s)}r=!1,i=o})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return B(this.get())},t[a]=function(){return this.valueOf()},e}(),eJ=M("ComputedValue",eK);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(l||(l={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(u||(u={}));var eQ=function(e){this.cause=void 0,this.cause=e};function eY(e){return e instanceof eQ}function eX(e){switch(e.dependenciesState_){case l.UP_TO_DATE_:return!1;case l.NOT_TRACKING_:case l.STALE_:return!0;case l.POSSIBLY_STALE_:for(var t=e4(!0),n=e5(),r=e.observing_,i=r.length,o=0;o<i;o++){var s=r[o];if(eJ(s)){if(tt.disableErrorBoundaries)s.get();else try{s.get()}catch(e){return e3(n),e8(t),!0}if(e.dependenciesState_===l.STALE_)return e3(n),e8(t),!0}}return e6(e),e3(n),e8(t),!1}}function eZ(e){}function e0(e,t,n){var r,i=e4(!0);e6(e),e.newObserving_=Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++tt.runId;var o=tt.trackingDerivation;if(tt.trackingDerivation=e,tt.inBatch++,!0===tt.disableErrorBoundaries)r=t.call(n);else try{r=t.call(n)}catch(e){r=new eQ(e)}return tt.inBatch--,tt.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=l.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var a=n[s];0===a.diffValue_&&(a.diffValue_=1,i!==s&&(n[i]=a),i++),a.dependenciesState_>r&&(r=a.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];0===u.diffValue_&&tn(u,e),u.diffValue_=0}for(;i--;){var c,d,h=n[i];1===h.diffValue_&&(h.diffValue_=0,c=h,d=e,c.observers_.add(d),c.lowestObserverState_>d.dependenciesState_&&(c.lowestObserverState_=d.dependenciesState_))}
2704r!==l.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),e8(i),r}function e1(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)tn(t[n],e);e.dependenciesState_=l.NOT_TRACKING_}function e2(e){var t=e5();try{return e()}finally{e3(t)}}function e5(){var e=tt.trackingDerivation;return tt.trackingDerivation=null,e}function e3(e){tt.trackingDerivation=e}function e4(e){var t=tt.allowStateReads;return tt.allowStateReads=e,t}function e8(e){tt.allowStateReads=e}function e6(e){if(e.dependenciesState_!==l.UP_TO_DATE_){e.dependenciesState_=l.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=l.UP_TO_DATE_}}var e7=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0,this.stateVersion=Number.MIN_SAFE_INTEGER},e9=!0,te=!1,tt=function(){var e=m();return(e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(e9=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new e7().version&&(e9=!1),e9)?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new e7):(setTimeout(function(){te||r(35)},1),new e7)}();function tn(e,t){e.observers_.delete(t),0===e.observers_.size&&tr(e)}function tr(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,tt.pendingUnobservations.push(e))}function ti(){tt.inBatch++}function to(){if(0==--tt.inBatch){tc();for(var e=tt.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,0===n.observers_.size&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof eK&&n.suspend_())}tt.pendingUnobservations=[]}}function ts(e){var t=tt.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&tt.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_):(0===e.observers_.size&&tt.inBatch>0&&tr(e),!1)}function ta(e){e.lowestObserverState_!==l.STALE_&&(e.lowestObserverState_=l.STALE_,e.observers_.forEach(function(e){e.dependenciesState_===l.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=l.STALE_}))}var tl=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=l.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=u.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,tt.pendingReactions.push(this),tc())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){ti(),this.isScheduled_=!1;var e=tt.trackingContext;if(tt.trackingContext=this,eX(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}tt.trackingContext=e,to()}},t.track=function(e){if(!this.isDisposed_){ti(),this.isRunning_=!0;var t=tt.trackingContext;tt.trackingContext=this;var n=e0(this,e,void 0);tt.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&e1(this),eY(n)&&this.reportExceptionInDerivation_(n.cause),to()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)return void this.errorHandler_(e,this);if(tt.disableErrorBoundaries)throw e;tt.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",e),tt.globalReactionErrorHandlers.forEac
2704h(function(n){return n(e,t)})},t.dispose=function(){!this.isDisposed_&&(this.isDisposed_=!0,this.isRunning_||(ti(),e1(this),to()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[Z]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){r("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];"boolean"==typeof n[n.length-1]&&(e=n.pop());var o=function(e){switch(e.length){case 0:return tt.trackingDerivation;case 1:return nw(e[0]);case 2:return nw(e[0],e[1])}}(n);if(!o)return r("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===u.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=e?u.BREAK:u.LOG}(this,e)},e}(),tu=function(e){return e()};function tc(){tt.inBatch>0||tt.isRunningReactions||tu(td)}function td(){tt.isRunningReactions=!0;for(var e=tt.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}tt.isRunningReactions=!1}var th=M("Reaction",tl),tp="action",tf="autoAction",tm="<unnamed action>",tg=es(tp),ty=es("action.bound",{bound:!0}),tv=es(tf,{autoAction:!0}),tb=es("autoAction.bound",{autoAction:!0,bound:!0});function tx(e){return function(t,n){return S(t)?eV(t.name||tm,t,e):S(n)?eV(t,n,e):T(n)?X(t,n,e?tv:tg):T(t)?Y(es(e?tf:tp,{name:t,autoAction:e})):void 0}}var t_=tx(!1);Object.assign(t_,tg);var tw=tx(!0);function tk(e){return ez(e.name||tm,!1,e,this,void 0)}function tC(e){return S(e)&&!0===e.isMobxAction}Object.assign(tw,tv),t_.bound=Y(ty),tw.bound=Y(tb);var tE=function(e){return e()};function tA(e,t,n){return tS("onBUO",e,t,n)}function tS(e,t,n,r){var i="function"==typeof r?nw(t,n):nw(t),o=S(r)?r:n,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var e=i[s];e&&(e.delete(o),0===e.size&&delete i[s])}}var tT="always";function tj(e){!0===e.isolateGlobalState&&function(){if((tt.pendingReactions.length||tt.inBatch||tt.isRunningReactions)&&r(36),te=!0,e9){var e=m();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),tt=new e7}}();var t,n,i=e.useProxies,o=e.enforceActions;if(void 0!==i&&(tt.useProxies=i===tT||"never"!==i&&"undefined"!=typeof Proxy),"ifavailable"===i&&(tt.verifyProxies=!0),void 0!==o){var s=o===tT?tT:"observed"===o;tt.enforceActions=s,tt.allowStateChanges=!0!==s&&s!==tT}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(t){t in e&&(tt[t]=!!e[t])}),tt.allowStateReads=!tt.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=tu,tu=function(e){return t(function(){return n(e)})})}function tN(e,t,n,r){var i=q(t),o=nc(e,r)[Z];ti();
2704try{F(i).forEach(function(e){o.extend_(e,i[e],!n||!(e in n)||n[e])})}finally{to()}return e}function tO(e,t){return function e(t){var n={name:t.name_};return t.observing_&&t.observing_.length>0&&(n.dependencies=Array.from(new Set(t.observing_)).map(e)),n}(nw(e,t))}var tI=0;function tD(){this.message="FLOW_CANCELLED"}tD.prototype=Object.create(Error.prototype);var tM=ec("flow"),tL=ec("flow.bound",{bound:!0}),tR=Object.assign(function(e,t){if(T(t))return X(e,t,tM);var n=e.name||"<unnamed flow>",r=function(){var t,r=arguments,i=++tI,o=t_(n+" - runid: "+i+" - init",e).apply(this,r),s=void 0,a=new Promise(function(e,r){var a=0;function l(e){var t;s=void 0;try{t=t_(n+" - runid: "+i+" - yield "+a++,o.next).call(o,e)}catch(e){return r(e)}c(t)}function u(e){var t;s=void 0;try{t=t_(n+" - runid: "+i+" - yield "+a++,o.throw).call(o,e)}catch(e){return r(e)}c(t)}function c(t){return S(null==t?void 0:t.then)?void t.then(c,r):t.done?e(t.value):(s=Promise.resolve(t.value)).then(l,u)}t=r,l(void 0)});return a.cancel=t_(n+" - runid: "+i+" - cancel",function(){try{s&&tP(s);var e=o.return(void 0),n=Promise.resolve(e.value);n.then(A,A),tP(n),t(new tD)}catch(e){t(e)}}),a};return r.isMobXFlow=!0,r},tM);function tP(e){S(e.cancel)&&e.cancel()}function tF(e){return(null==e?void 0:e.isMobXFlow)===!0}function tB(e){return!!e&&(np(e)||!!e[Z]||et(e)||th(e)||eJ(e))}function t$(e,t,n){return e.set(t,n),n}function tq(e,t){return function e(t,n){if(null==t||"object"!=typeof t||t instanceof Date||!tB(t))return t;if(eG(t)||eJ(t))return e(t.get(),n);if(n.has(t))return n.get(t);if(t9(t)){var i=t$(n,t,Array(t.length));return t.forEach(function(t,r){i[r]=e(t,n)}),i}if(ns(t)){var o=t$(n,t,new Set);return t.forEach(function(t){o.add(e(t,n))}),o}if(nr(t)){var s=t$(n,t,new Map);return t.forEach(function(t,r){s.set(r,e(t,n))}),s}var a=t$(n,t,{});return(function(e){if(np(e))return e[Z].ownKeys_();r(38)})(t).forEach(function(r){b.propertyIsEnumerable.call(t,r)&&(a[r]=e(t[r],n))}),a}(e,new Map)}function tV(e,t){void 0===t&&(t=void 0),ti();try{return e.apply(t)}finally{to()}}tR.bound=Y(tL);var tz={has:function(e,t){return e[Z].has_(t)},get:function(e,t){return e[Z].get_(t)},set:function(e,t,n){var r;return!!T(t)&&(null==(r=e[Z].set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!T(t)&&(null==(n=e[Z].delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=e[Z].defineProperty_(t,n))||r},ownKeys:function(e){return e[Z].ownKeys_()},preventExtensions:function(e){r(13)}};function tU(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function tH(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),E(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function tW(e,t){var n=e5();try{for(var i=[].concat(e.interceptors_||[]),o=0,s=i.length;o<s&&((t=i[o](t))&&!t.type&&r(14),t);o++);return t}finally{e3(n)}}function tG(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function tK(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),E(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function tJ(e,t){var n=e5(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,o=r.length;i<o;i++)r[i](t);e3(n)}}function tQ(e,t,n){var r=nc(e,n)[Z];ti();try{null!=t||($(e,Q)||I(e,Q,U({},e[Q])),t=e[Q]),F(t).forEach(function(e){return r.make_(e,t[e])})}finally{to()}return e}var tY=Symbol("mobx-keys");function tX(e,t,n){if(N(e))return tN(e,e,t,n);var r=nc(e,n)[Z];if(!e[tY]){var i=Object.getPrototypeOf(e),o=new Set([].concat(F(e),F(i)));o.delete("constructor"),o.delete(Z),I(i,tY,o)}ti();try{e[tY].forEach(function(e){return r.make_(e,!t||!(e in t)||t[e])})}finally{to()}return e}var tZ="splice",t0="update",t1={get:function(e,t){var n=e[Z];return t===Z?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?$(t5,t)?t5[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[Z];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},t2=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_
2704=n,this.legacyMode_=r,this.atom_=new ee(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return tH(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),tK(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&n_(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1==arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=x),tU(this)){var o=tW(this,{object:this.proxy_,type:tZ,index:e,removedCount:t,added:n});if(!o)return x;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map(function(e){return r.enhancer_(e,void 0)}),this.legacyMode_){var s=n.length-t;this.updateArrayLength_(i,s)}var a=this.spliceItemsIntoValues_(e,t,n);return(0!==t||0!==n.length)&&this.notifyArraySplice_(e,n,a),this.dehanceValues_(a)},t.spliceItemsIntoValues_=function(e,t,n){if(n.length<1e4){var r;return(r=this.values_).splice.apply(r,[e,t].concat(n))}var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var s=0;s<n.length;s++)this.values_[e+s]=n[s];for(var a=0;a<o.length;a++)this.values_[e+n.length+a]=o[a];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=tG(this),o=i||r?{observableKind:"array",object:this.proxy_,type:t0,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&tJ(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=tG(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:tZ,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&tJ(this,o)},t.get_=function(e){return this.legacyMode_&&e>=this.values_.length?void console.warn("[mobx] Out of bounds read: "+e):(this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]))},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&r(17,e,n.length),e<n.length){this.atom_;var i=n[e];if(tU(this)){var o=tW(this,{type:t0,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,i))!==i&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,i))}else{for(var s=Array(e+1-n.length),a=0;a<s.length-1;a++)s[a]=void 0;s[s.length-1]=t,this.spliceWithArray_(n.length,0,s)}},e}(),t5={clear:function(){return this.splice(0)},replace:function(e){var t=this[Z];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[Z];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[Z].spliceWithArray_(e,t,n)},push:function(){for(var e=this[Z],t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[Z].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[Z],t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return tt.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){tt.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[Z],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function t3(e,t){"function"==typeof Array.prototype[e]&&(t5[e]=t(e))}function t4(e){return function(){var t=this[Z];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function t8(e){return function(t,n){var r=this,i=this[Z];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e](function(e,i){return t.call(n,e,i,r)})}}function t6(e){return function(){var t=this,n=this[Z];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}t3("concat",t4),t3("flat",t4),t3("includes",t4),t3("indexOf",t4),t3("join",t4),t3("lastIndexOf",t4),t3("slice",t4),t3("toString",t4),t3("toLocaleStr
2704ing",t4),t3("every",t8),t3("filter",t8),t3("find",t8),t3("findIndex",t8),t3("flatMap",t8),t3("forEach",t8),t3("map",t8),t3("some",t8),t3("reduce",t6),t3("reduceRight",t6);var t7=M("ObservableArrayAdministration",t2);function t9(e){return j(e)&&t7(e[Z])}var ne={},nt="delete";c=Symbol.iterator,d=Symbol.toStringTag;var nn=function(){function e(e,t,n){var i=this;void 0===t&&(t=ei),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Z]=ne,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,S(Map)||r(18),this.keysAtom_=en("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,function(e,t){var n=eU(e);try{return t()}finally{eH(n)}}(!0,function(){i.merge(e)})}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!tt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new eW(this.has_(e),eo,"ObservableMap.key?",!1);this.hasMap_.set(e,r),tA(r,function(){return t.hasMap_.delete(e)})}return n.get()},t.set=function(e,t){var n=this.has_(e);if(tU(this)){var r=tW(this,{type:n?t0:"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(eZ(this.keysAtom_),tU(this)&&!tW(this,{type:nt,object:this,name:e}))return!1;if(this.has_(e)){var n=tG(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:nt,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return tV(function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),n&&tJ(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==tt.UNCHANGED){var r=tG(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:t0,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&tJ(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,tV(function(){var r,i=new eW(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()});var r=tG(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:"add",object:this,name:e,newValue:t}:null;r&&tJ(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return nS({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return nS({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[c]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=J(this);!(n=r()).done;){var i=n.value,o=i[0],s=i[1];e.call(t,s,o,this)}},t.merge=function(e){var t=this;return nr(e)&&(e=new Map(e)),tV(function(){N(e)?(function(e){var t=Object.keys(e);if(!P)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return b.propertyIsEnumerable.call(e,t)})):t})(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];return t.set(n,r)}):L(e)?(e.constructor!==Map&&r(19,e),e.forEach(function(e,n){return t.set(n,e)})):null!=e&&r(20,e)}),this},t.clear=function(){var e=this;tV(function(){e2(function(){for(var t,n=J(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.replace=function(e){var t=this;return tV(function(){for(var n,i=function(e){if(L(e)||nr(e))return e;if(Array.isArray(e))return new Map(e);if(!N(e))return r(21,e);var t=new Map;for(var n in e)t.set(n,e[n]);return t}(e),o=new Map,s=!1,a=J(t.data_.keys());!(n=a()).done;){var l=n.value;if(!i.has(l))if(t.delete(l))s=!0;else{var u=t.data_.get(l);o.set(l,u)}}for(var c,d=J(i.entries());!(c=d()).done;){var h=c.value,p=h[0],f=h[1],m=t.data_.has(p);if(t.set(p,f),t.data_.has(p)){var g=t.data_.get(p);o.set(p,g),m||(s=!0)}}if(!s)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var y=t.data_.keys(),v=o.keys(),b=y.next(),x=v.next();!b.done;){if(b.value!==x.value){t.keysAtom_.reportChanged();break}b=y.next(),x=v.next()}t.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return tK(this,e)},t.intercept_=function(e){return tH(this,e)},z(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:d,get:function(){return"Map"}}]),e}(),nr=M("ObservableMap",nn),ni={};h=Symbol.iterator,p=Symbol.toStringTag;var no=function(){function e(e,t,n){void 0===t&&(t=ei),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[Z]=ni,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,S(Set)||r(22),this.atom_=en(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;tV(function(){e2(function(){for(var t,n=J(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.forEach=function(e,t){for(var n,r=J(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(eZ(this.atom_),tU(this)&&!tW(this,{type:"add",object:this,newValue:e}))return this;if(!this.has(e)){tV(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var n=tG(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:"add",object:this,newValue:e}:null;n&&tJ(this,r)}return this},t.delete=function(e){var t=this;if(tU(this)&&!tW(this,{type:nt,object:this,oldValue:e}))return!1;if(this.has(e)){var n=tG(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:nt,object:this,oldValue:e}:null;return tV(function(){t.atom_.reportChanged(),t.data_.delete(e)}),n&&tJ(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return nS({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return nS({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return ns(e)&&(e=new Set(e)),tV(function(){Array.isArray(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):R(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):null!=e&&r("Cannot initialize set from "+e)}),this},t.observe_=function(e,t){return tK(this,e)},t.intercept_=function(e){return tH(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[h]=function(){return this.values()},z(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:p,get:function(){return"Set"}}]),e}(),ns=M("ObservableSet",no),na=Object.create(null),nl="remove",nu=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=ex),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=ne
2704w ee("ObservableObject.keys"),this.isPlainObject_=N(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof eK)return n.set(t),!0;if(tU(this)){var r=tW(this,{type:t0,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==tt.UNCHANGED){var i=tG(this),o=i?{type:t0,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&tJ(this,o)}return!0},t.get_=function(e){return tt.trackingDerivation&&!$(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return(void 0===n&&(n=!1),$(this.target_,e))?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!tt.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new eW(e in this.target_,eo,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(nm(this,t,e),!(e in this.target_)){var n;if(null!=(n=this.target_[Q])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==b;){var o=y(i,e);if(o){var s=t.make_(this,e,o,i);if(0===s)return;if(1===s)break}i=Object.getPrototypeOf(i)}nf(this,t,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var i=n.extend_(this,e,t,r);return i&&nf(this,n,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1);try{ti();var r=this.delete_(e);if(!r)return r;if(tU(this)){var i=tW(this,{object:this.proxy_||this.target_,name:e,type:"add",newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=U({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else v(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{to()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1);try{ti();var i=this.delete_(e);if(!i)return i;if(tU(this)){var o=tW(this,{object:this.proxy_||this.target_,name:e,type:"add",newValue:t});if(!o)return null;t=o.newValue}var s=nh(e),a={configurable:!tt.safeDescriptors||this.isPlainObject_,enumerable:!0,get:s.get,set:s.set};if(r){if(!Reflect.defineProperty(this.target_,e,a))return!1}else v(this.target_,e,a);var l=new eW(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{to()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1);try{ti();var r=this.delete_(e);if(!r)return r;if(tU(this)&&!tW(this,{object:this.proxy_||this.target_,name:e,type:"add",newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=nh(e),o={configurable:!tt.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else v(this.target_,e,o);this.values_.set(e,new eK(t)),this.notifyPropertyAddition_(e,void 0)}finally{to()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!$(this.target_,e))return!0;if(tU(this)&&!tW(this,{object:this.proxy_||this.target_,name:e,type:nl}))return null;try{ti();var n,r,i,o=tG(this),s=this.values_.get(e),a=void 0;if(!s&&(o||0)&&(a=null==(i=y(this.target_,e))?void 0:i.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(s&&(this.values_.delete(e),s instanceof eW&&(a=s.value_),ta(s)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),o||0){var l={type:nl,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};o&&tJ(this,l)}}finally{to()}return!0},t.observe_=function(e,t){return tK(this,e)},t.intercept_=function(e){return tH(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,i=tG(this);if(i){var o=i?{type:"add",observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;i&&tJ(this,o)}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),F(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function nc(e,t){if($(e,Z))return e;var n,r,i=null!=(r=null==t?void 0:t.name)?r:"ObservableObject",o=new nu(e,new Map,String(i),t?null!=(n=t.defaultDecorator)?n:e_(t):void 0);return I(e,Z,o),e}var nd=M("ObservableObjectAdministration",nu);function nh(e){return na[e]||(na[e]={get:function(){return this[Z].getObservablePropValue_(e)}
2704,set:function(t){return this[Z].setObservablePropValue_(e,t)}})}function np(e){return!!j(e)&&nd(e[Z])}function nf(e,t,n){var r;null==(r=e.target_[Q])||delete r[n]}function nm(e,t,n){}var ng=nx(0),ny=0,nv=function(){};!function(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):void 0!==e.prototype.__proto__?e.prototype.__proto__=t:e.prototype=t}(nv,Array.prototype);var nb=function(e,t,n){function r(t,n,r,i){void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1);var o=e.call(this)||this,s=new t2(r,n,i,!0);if(s.proxy_=G(o),D(G(o),Z,s),t&&t.length){var a=eU(!0);o.spliceWithArray(0,0,t),eH(a)}return Object.defineProperty(G(o),"0",ng),o}H(r,e);var i=r.prototype;return i.concat=function(){this[Z].atom_.reportObserved();for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map(function(e){return t9(e)?e.slice():e}))},i[n]=function(){var e=this,t=0;return nS({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},z(r,[{key:"length",get:function(){return this[Z].getArrayLength_()},set:function(e){this[Z].setArrayLength_(e)}},{key:t,get:function(){return"Array"}}]),r}(nv,Symbol.toStringTag,Symbol.iterator);function nx(e){return{enumerable:!1,configurable:!0,get:function(){return this[Z].get_(e)},set:function(t){this[Z].set_(e,t)}}}function n_(e){if(e>ny){for(var t,n=ny;n<e+100;n++)t=n,v(nb.prototype,""+t,nx(t));ny=e}}function nw(e,t){if("object"==typeof e&&null!==e){if(t9(e))return void 0!==t&&r(23),e[Z].atom_;if(ns(e))return e.atom_;if(nr(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,nk(e)),n}if(np(e)){if(!t)return r(26);var i=e[Z].values_.get(t);return i||r(27,t,nk(e)),i}if(et(e)||eJ(e)||th(e))return e}else if(S(e)&&th(e[Z]))return e[Z];r(28)}function nk(e,t){var n;if(void 0!==t)n=nw(e,t);else{if(tC(e))return e.name;n=np(e)||nr(e)||ns(e)?function e(t,n){return(t||r(29),void 0!==n)?e(nw(t,n)):et(t)||eJ(t)||th(t)||nr(t)||ns(t)?t:t[Z]?t[Z]:void r(24,t)}(e):nw(e)}return n.name_}
2704Object.entries(t5).forEach(function(e){var t=e[0],n=e[1];"concat"!==t&&I(nb.prototype,t,n)}),n_(1e3);var nC=b.toString;function nE(e,t,n){return void 0===n&&(n=-1),function e(t,n,r,i,o){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var s=typeof t;if("function"!==s&&"object"!==s&&"object"!=typeof n)return!1;var a=nC.call(t);if(a!==nC.call(n))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":if(+t!=+t)return+n!=+n;return 0==+t?1/t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(n);case"[object Map]":case"[object Set]":r>=0&&r++}t=nA(t),n=nA(n);var l="[object Array]"===a;if(!l){if("object"!=typeof t||"object"!=typeof n)return!1;var u=t.constructor,c=n.constructor;if(u!==c&&!(S(u)&&u instanceof u&&S(c)&&c instanceof c)&&"constructor"in t&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var d=(i=i||[]).length;d--;)if(i[d]===t)return o[d]===n;if(i.push(t),o.push(n),l){if((d=t.length)!==n.length)return!1;for(;d--;)if(!e(t[d],n[d],r-1,i,o))return!1}else{var h,p=Object.keys(t);if(d=p.length,Object.keys(n).length!==d)return!1;for(;d--;)if(!($(n,h=p[d])&&e(t[h],n[h],r-1,i,o)))return!1}return i.pop(),o.pop(),!0}(e,t,n)}function nA(e){return t9(e)?e.slice():L(e)||nr(e)||R(e)||ns(e)?Array.from(e.entries()):e}function nS(e){return e[Symbol.iterator]=nT,e}function nT(){return this}["Symbol","Map","Set"].forEach(function(e){void 0===m()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")}),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:nk},$mobx:Z})},80120:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(37876);n(14232);var i=n(10969);function o(e){let{className:t,formId:n,label:o,value:s,register:a,registerProps:l,...u}=e,c=e.register||{},d=e.name||c.name;l=l||{};let h=["CheckboxWithLabel",d,s].filter(e=>e);e.formId&&(h=[e.formId,...h]);let p=h.filter(e=>e).join("-");return(0,r.jsxs)("div",{className:`${t||""} ${i.Ay.radioWithLabel}`,"data-sentry-component":"CheckboxWithLabel","data-sentry-source-file":"CheckboxWithLabel.tsx",children:[(0,r.jsx)("div",{children:(0,r.jsx)("input",{type:"checkbox",value:s,id:p,...c,...u})}),(0,r.jsx)("label",{htmlFor:p,className:"ml-2",children:o})]})}},80229:(e,t,n)=>{"use strict";n.d(t,{$J:()=>f,G9:()=>c,Rj:()=>function e(t,n){if("PLAIN"===n)return t||"";if("MARKDOWN"===n)return e(h(t||"","MARKDOWN"),"HTML");if("HTML"===n)return i(t||"");if(!t)return"";throw Error(`Unknown format: ${n}`)},Wd:()=>m,Zn:()=>y,aY:()=>h,eV:()=>function e(t,n){t=`${t}`;let r=(n=n||{}).size||2;return t.length<r?e(n.rightSide?`${t}0`:`0${t}`,{...n,size:r-1}):t},gZ:()=>g,h5:()=>d,mp:()=>o,o5:()=>s,qH:()=>l,xv:()=>u,yG:()=>p});var r=n(75938);let{convert:i}=n(52228);function o(e,t=""){let n=Math.round(100*("string"==typeof e?parseFloat(e):e)),r=Math.abs(n)%100,i=Math.floor(n/100);return`${t}${i}.${`${r}`.padEnd(2,"0")}`}function s(e){"number"==typeof e&&(e=`${e}`);let t=function(e){if(!e)return"0";let t=parseFloat(e),n=parseInt(e);if(!(t>n))return a(`${n}`);{let e=`${(function(e,t){let n=Math.pow(10,t=t||0);return Math.round(e*n)/n})(t-n,2)}`.replace(/^\d+\./,"").padEnd(2,"0").substring(0,2),r=a(`${n}`);return`${r}.${e}`}}(e);return`$${t}`}function a(e){return e?e.replace(/\B(?=(\d{3})+(?!\d))/g,","):""}function l(e){if(!e)return"";let t=e.replace(/[^\d]/g,"");return[t.slice(-10,-7),t.slice(-7,-4),t.slice(-4)].filter(e=>e).join("-")}function u(e,t){return e.length<=t?e:e.substring(0,t-1)+"â¦"}function c(e){return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/\n/g,"")).replace(/\t/g,"")).replace(/<\/td>/g," ")).replace(/<\/table>/g,"\n")).replace(/<\/tr>/g,"\n")).replace(/<\/p>/g,"\n\n")).replace(/<\/div>/g,"\n")).replace(/<\/h>/g,"\n")).replace(/<br>/g,"\n")).replace(/<br( )*\/>/g,"\n"),new DOMParser().parseFromString("<!doctype html><body>"+e,"text/html").body.textContent||""}function d(e){if("text/markdown"===e);else if("text/html"===e)return"HTML";else if("text/plain"===e)return"PLAIN";return"MARKDOWN"}function h(e,t){if("HTML"===t)return e||"";if("MARKDOWN"===t)return(0,r.xI)(e||"");if("PLAIN"===t)return(0,r.xI)(e||"");if(!e)return"";throw Error(`Unknown format: ${t}`)}function p(e){return"string"==typeof e?"true"===e:e}function f(e){if("number"==typeof e&&!isNaN(e))return e;if("string"==typeof e){let t=parseFloat(e);
2704if(isNaN(t))return;return t}}function m(...e){let t=e.filter(e=>!!e).join(" ");if(""!==t)return t}function g(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>{let t=parseInt(e);return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)})}function y(e){return e.replace(/[&<>"']/g,function(e){return({"&":"&","<":"<",">":">",'"':""","'":"'"})[e]||e})}},80301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(14232),i=n(62640),o="function"==typeof IntersectionObserver,s=new Map,a=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),h=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{h.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=h.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t,n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=s.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},a.push(n),s.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),s.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,h.current]),[p,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80327:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(14232);let o={")":"(","]":"[","}":"{",">":"<"};function s(e,t){return e.split(t).length-1}function a({text:e}){let t=e.split(/\r?\n/),n=[];for(let e=0;e<t.length;e++){let r=t[e];if(""===r)n.push(["br",""]);else{let i=[r],o="";do(o=t[++e])&&(i=[...i,o]);while(o);let s=i.map(e=>["br",e]);n.push(["p",s])}}let a=n.map((e,t)=>(0,r.jsx)(i.Fragment,{children:function e([t,n]){let i=(0,r.jsx)(r.Fragment,{});return("p"===t&&Array.isArray(n)?n.forEach(t=>{let n=e(t);i=(0,r.jsxs)(r.Fragment,{children:[i,n]})}):"string"==typeof n&&(i=function e(t){let n=t.match(/^(.*)\b(https?:\/\/\S+)(.*)$/);if(!n)return(0,r.jsx)(r.Fragment,{children:t});{let t=n[1],i=n[2],a=n[3],l=function e(t){let n=t[t.length-1];if(!n)return t;if(".,;:!?'\"*~".includes(n))return e(t.slice(0,-1));let r=o[n];return r&&s(t,n)>s(t,r)?e(t.slice(0,-1)):t}(i);if(!/^https?:\/\/\S/.test(l))return(0,r.jsxs)(r.Fragment,{children:[e(t),i,e(a)]});let u=i.slice(l.length)+a;return(0,r.jsxs)(r.Fragment,{children:[e(t),(0,r.jsx)("a",{className:"a",href:l,target:"_blank",rel:"noreferrer","aria-label":"to external website",children:l}),e(u)]})}}(n)||(0,r.jsx)(r.Fragment,{children:"\xa0"})),"br"===t)?(0,r.jsxs)(r.Fragment,{children:[i,(0,r.jsx)("br",{})]}):"p"===t?(0,r.jsx)("p",{children:i}):(0,r.jsx)(r.Fragment,{children:i})}(e)},t));return(0,r.jsx)(r.Fragment,{children:a})}},80400:(e,t,n)=>{"use strict";n.d(t,{UE:()=>D,RK:()=>T,ll:()=>E,rD:()=>R,__:()=>A,UU:()=>N,jD:()=>I,mG:()=>M,ER:()=>L,cY:()=>S,iD:()=>C,BN:()=>j,Ej:()=>O});var r=n(81040);function i(e,t,n){let i,{reference:o,floating:s}=e,a=(0,r.TV)(t),l=(0,r.Dz)(t),u=(0,r.sq)(l),c=(0,r.C0)(t),d="y"===a,h=o.x+o.width/2-s.width/2,p=o.y+o.height/2-s.height/2,f=o[u]/2-s[u]/2;switch(c){case"top":i={x:h,y:o.y-s.height};break;case"bottom":i={x:h,y:o.y+o.height};break;case"right":i={x:o.x+o.width,y:p};break;case"left":i={x:o.x-s.width,y:p};break;default:i={x:o.x,y:o.y}}switch((0,r.Sg)(t)){case"start":i[l]-=f*(n&&d?-1:1);break;case"end":i[l]+=f*(n&&d?-1:1)}return i}let o=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=i(c,r,u),p=r,f={},m=0;for(let n=0;n<l.length;n++){let{name:s,fn:g}=l[n],{x:y,y:v,data:b,reset:x}=await g({x:d,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:f,re
2704cts:c,platform:a,elements:{reference:e,floating:t}});d=null!=y?y:d,h=null!=v?v:h,f={...f,[s]:{...f[s],...b}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:d,y:h}=i(c,p,u)),n=-1)}return{x:d,y:h,placement:p,strategy:o,middlewareData:f}};async function s(e,t){var n;void 0===t&&(t={});let{x:i,y:o,platform:s,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=(0,r._3)(t,e),m=(0,r.nI)(f),g=l[p?"floating"===h?"reference":"floating":h],y=(0,r.B1)(await s.getClippingRect({element:null==(n=await (null==s.isElement?void 0:s.isElement(g)))||n?g:g.contextElement||await (null==s.getDocumentElement?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),v="floating"===h?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==s.getOffsetParent?void 0:s.getOffsetParent(l.floating)),x=await (null==s.isElement?void 0:s.isElement(b))&&await (null==s.getScale?void 0:s.getScale(b))||{x:1,y:1},_=(0,r.B1)(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:u}):v);return{top:(y.top-_.top+m.top)/x.y,bottom:(_.bottom-y.bottom+m.bottom)/x.y,left:(y.left-_.left+m.left)/x.x,right:(_.right-y.right+m.right)/x.x}}function a(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function l(e){return r.r_.some(t=>e[t]>=0)}function u(e){let t=(0,r.jk)(...e.map(e=>e.left)),n=(0,r.jk)(...e.map(e=>e.top));return{x:t,y:n,width:(0,r.T9)(...e.map(e=>e.right))-t,height:(0,r.T9)(...e.map(e=>e.bottom))-n}}async function c(e,t){let{placement:n,platform:i,elements:o}=e,s=await (null==i.isRTL?void 0:i.isRTL(o.floating)),a=(0,r.C0)(n),l=(0,r.Sg)(n),u="y"===(0,r.TV)(n),c=["left","top"].includes(a)?-1:1,d=s&&u?-1:1,h=(0,r._3)(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return l&&"number"==typeof m&&(f="end"===l?-1*m:m),u?{x:f*d,y:p*c}:{x:p*c,y:f*d}}var d=n(84974);function h(e){let t=(0,d.L9)(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,o=(0,d.sb)(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:i,l=(0,r.LI)(n)!==s||(0,r.LI)(i)!==a;return l&&(n=s,i=a),{width:n,height:i,$:l}}function p(e){return(0,d.vq)(e)?e:e.contextElement}function f(e){let t=p(e);if(!(0,d.sb)(t))return(0,r.Jx)(1);let n=t.getBoundingClientRect(),{width:i,height:o,$:s}=h(t),a=(s?(0,r.LI)(n.width):n.width)/i,l=(s?(0,r.LI)(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let m=(0,r.Jx)(0);function g(e){let t=(0,d.zk)(e);return(0,d.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:m}function y(e,t,n,i){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),a=p(e),l=(0,r.Jx)(1);t&&(i?(0,d.vq)(i)&&(l=f(i)):l=f(e));let u=(void 0===(o=n)&&(o=!1),i&&(!o||i===(0,d.zk)(a))&&o)?g(a):(0,r.Jx)(0),c=(s.left+u.x)/l.x,h=(s.top+u.y)/l.y,m=s.width/l.x,y=s.height/l.y;if(a){let e=(0,d.zk)(a),t=i&&(0,d.vq)(i)?(0,d.zk)(i):i,n=e,r=(0,d._m)(n);for(;r&&i&&t!==n;){let e=f(r),t=r.getBoundingClientRect(),i=(0,d.L9)(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,h*=e.y,m*=e.x,y*=e.y,c+=o,h+=s,n=(0,d.zk)(r),r=(0,d._m)(n)}}return(0,r.B1)({width:m,height:y,x:c,y:h})}function v(e){return y((0,d.ep)(e)).left+(0,d.CP)(e).scrollLeft}function b(e,t,n){let i;if("viewport"===t)i=function(e,t){let n=(0,d.zk)(e),r=(0,d.ep)(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let e=(0,d.Tc)();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t)i=function(e){let t=(0,d.ep)(e),n=(0,d.CP)(e),i=e.ownerDocument.body,o=(0,r.T9)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=(0,r.T9)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),a=-n.scrollLeft+v(e),l=-n.scrollTop;return"rtl"===(0,d.L9)(i).direction&&(a+=(0,r.T9)(t.clientWidth,i.clientWidth)-o),{width:o,height:s,x:a,y:l}}((0,d.ep)(e));else if((0,d.vq)(t))i=function(e,t){let n=y(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,s=(0,d.sb)(e)?f(e):(0,r.Jx)(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y;return{width:a,height:l,x:o*s.x,y:i*s.y}}(t,n);else{let n=g(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return(0,r.B1)(i)}function x(e){return"static"===(0,d.L9)(e).position}function _(e,t){return(0,d.sb)(e)&&"fixed"!==(0,d.L9)(e).position?t?t(e):e.offsetParent:null}function w(e,t){let n=(0,d.zk)(e);if((0,d.Tf)(e))return n;if(!(0,d.sb)(e)){let t=(0,d.$4)(e);for(;t&&!(0,d.eu)(t);){if((0,d.vq)(t)&&!x(t))return t;t=(0,d.$4)(t)}return n}let r=_(e,t);for(;r&&(0,d.Lv)(r)&&x(r);)r=_(r,t);return r&&(0,d.eu)(r)&&x(r)&&!(0,d.sQ)(r)?n:r||(0,d.gJ)(e)||n}let k=async function(e){let t=this.getOffsetParent||w,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=(0,d.sb)(t),o=(0,d.ep)(t),s="fixed"===n,a=y(e,!0,s,t),l={scrollLeft:0,scrollTop:0},u=(0,r.Jx)(0);if(i||!i&&!s)if(("body"!==(0,d.mq)(t)||(0,d.ZU)(o))&&(l=(0,d.CP)(t)),i){let e=y(t,!0,s,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=v(o));return{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},C={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e,s="fixed"===o,a=(0,d.ep)(i),l=!!t&&(0,d.Tf)(t.floating);if(i===a||l&&s)return n;let u={scrollLeft:0,scrollTop:0},c=(0,r.Jx)(1),h=(0,r.Jx)(0),p=(0,d.sb)(i);if((p||!p&&!s)&&(("body"!==(0,d.mq)(i)||(0,d.ZU)(a))&&(u=(0,d.CP)(i)),(0,d.sb)(i))){let e=y(i);c=f(i),h.x=e.x+i.clientLeft,h.y=e.y+i.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+h.x,y:n.y*c.y-u.scrollTop*c.y+h.y}},getDocumentElement:d.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e,s=[..."clippingAncestors"===n?(0,d.Tf)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,d.v9)(e,[],!1).filter(e=>(0,d.vq)(e)&&"body"!==(0,d.mq)(e)),i=null,o="fixed"===(0,d.L9)(e).position,s=o?(0,d.$4)(e):e;for(;(0,d.vq)(s)&&!(0,d.eu)(s);){let t=(0,d.L9)(s),n=(0,d.sQ)(s);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||(0,d.ZU)(s)&&!n&&function e(t,n){let r=(0,d.$4)(t);return!(r===n||!(0,d.vq)(r)||(0,d.eu)(r))&&("fixed"===(0,d.L9)(r).position||e(r,n))}(e,s))?r=r.filter(e=>e!==s):i=t,s=(0,d.$4)(s)}return t.set(e,r),r}(t,this._c):[].concat(n),i],a=s[0],l=s.reduce((e,n)=>{let i=b(t,n,o);return e.top=(0,r.T9)(i.top,e.top),e.right=(0,r.jk)(i.right,e.right),e.bottom=(0,r.jk)(i.bottom,e.bottom),e.left=(0,r.T9)(i.left,e.left),e},b(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:w,getElementRects:k,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=h(e);return{width:t,height:n}},getScale:f,isElement:d.vq,isRTL:function(e){return"rtl"===(0,d.L9)(e).direction}};function E(e,t,n,i){let o;void 0===i&&(i={});let{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,h=p(e),f=s||a?[...h?(0,d.v9)(h):[],...(0,d.v9)(t)]:[];
2704f.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let m=h&&u?function(e,t){let n,i=null,o=(0,d.ep)(e);function s(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return!function a(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),s();let{left:c,top:d,width:h,height:p}=e.getBoundingClientRect();if(l||t(),!h||!p)return;let f=(0,r.RI)(d),m=(0,r.RI)(o.clientWidth-(c+h)),g={rootMargin:-f+"px "+-m+"px "+-(0,r.RI)(o.clientHeight-(d+p))+"px "+-(0,r.RI)(c)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,u))||1},y=!0;function v(e){let t=e[0].intersectionRatio;if(t!==u){if(!y)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},1e3)}y=!1}try{i=new IntersectionObserver(v,{...g,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(v,g)}i.observe(e)}(!0),s}(h,n):null,g=-1,v=null;l&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),h&&!c&&v.observe(h),v.observe(t));let b=c?y(e):null;return c&&function t(){let r=y(e);b&&(r.x!==b.x||r.y!==b.y||r.width!==b.width||r.height!==b.height)&&n(),b=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{s&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,c&&cancelAnimationFrame(o)}}let A=s,S=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:s,middlewareData:a}=t,l=await c(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},T=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,o,a;let{rects:l,middlewareData:u,placement:c,platform:d,elements:h}=t,{crossAxis:p=!1,alignment:f,allowedPlacements:m=r.DD,autoAlignment:g=!0,...y}=(0,r._3)(e,t),v=void 0!==f||m===r.DD?((a=f||null)?[...m.filter(e=>(0,r.Sg)(e)===a),...m.filter(e=>(0,r.Sg)(e)!==a)]:m.filter(e=>(0,r.C0)(e)===e)).filter(e=>!a||(0,r.Sg)(e)===a||!!g&&(0,r.aD)(e)!==e):m,b=await s(t,y),x=(null==(n=u.autoPlacement)?void 0:n.index)||0,_=v[x];if(null==_)return{};let w=(0,r.w7)(_,l,await (null==d.isRTL?void 0:d.isRTL(h.floating)));if(c!==_)return{reset:{placement:v[0]}};let k=[b[(0,r.C0)(_)],b[w[0]],b[w[1]]],C=[...(null==(i=u.autoPlacement)?void 0:i.overflows)||[],{placement:_,overflows:k}],E=v[x+1];if(E)return{data:{index:x+1,overflows:C},reset:{placement:E}};let A=C.map(e=>{let t=(0,r.Sg)(e.placement);return[e.placement,t&&p?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),S=(null==(o=A.filter(e=>e[2].slice(0,(0,r.Sg)(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||A[0][0];return S!==c?{data:{index:x+1,overflows:C},reset:{placement:S}}:{}}}},j=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:i,placement:o}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r._3)(e,t),d={x:n,y:i},h=await s(t,c),p=(0,r.TV)((0,r.C0)(o)),f=(0,r.PG)(p),m=d[f],g=d[p];if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=m+h[e],i=m-h[t];m=(0,r.qE)(n,m,i)}
2704if(l){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=g+h[e],i=g-h[t];g=(0,r.qE)(n,g,i)}let y=u.fn({...t,[f]:m,[p]:g});return{...y,data:{x:y.x-n,y:y.y-i}}}}},N=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i,o,a,l;let{placement:u,middlewareData:c,rects:d,initialPlacement:h,platform:p,elements:f}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,..._}=(0,r._3)(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let w=(0,r.C0)(u),k=(0,r.TV)(h),C=(0,r.C0)(h)===h,E=await (null==p.isRTL?void 0:p.isRTL(f.floating)),A=y||(C||!x?[(0,r.bV)(h)]:(0,r.WJ)(h)),S="none"!==b;!y&&S&&A.push(...(0,r.lP)(h,x,b,E));let T=[h,...A],j=await s(t,_),N=[],O=(null==(i=c.flip)?void 0:i.overflows)||[];if(m&&N.push(j[w]),g){let e=(0,r.w7)(u,d,E);N.push(j[e[0]],j[e[1]])}if(O=[...O,{placement:u,overflows:N}],!N.every(e=>e<=0)){let e=((null==(o=c.flip)?void 0:o.index)||0)+1,t=T[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(a=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(v){case"bestFit":{let e=null==(l=O.filter(e=>{if(S){let t=(0,r.TV)(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=h}if(u!==n)return{reset:{placement:n}}}return{}}}},O=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,i,{placement:o,rects:a,platform:l,elements:u}=t,{apply:c=()=>{},...d}=(0,r._3)(e,t),h=await s(t,d),p=(0,r.C0)(o),f=(0,r.Sg)(o),m="y"===(0,r.TV)(o),{width:g,height:y}=a.floating;"top"===p||"bottom"===p?(n=p,i=f===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(i=p,n="end"===f?"top":"bottom");let v=y-h.top-h.bottom,b=g-h.left-h.right,x=(0,r.jk)(y-h[n],v),_=(0,r.jk)(g-h[i],b),w=!t.middlewareData.shift,k=x,C=_;if(m?C=f||w?(0,r.jk)(_,b):b:k=f||w?(0,r.jk)(x,v):v,w&&!f){let e=(0,r.T9)(h.left,0),t=(0,r.T9)(h.right,0),n=(0,r.T9)(h.top,0),i=(0,r.T9)(h.bottom,0);m?C=g-2*(0!==e||0!==t?e+t:(0,r.T9)(h.left,h.right)):k=y-2*(0!==n||0!==i?n+i:(0,r.T9)(h.top,h.bottom))}await c({...t,availableWidth:C,availableHeight:k});let E=await l.getDimensions(u.floating);return g!==E.width||y!==E.height?{reset:{rects:!0}}:{}}}},I=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:i="referenceHidden",...o}=(0,r._3)(e,t);switch(i){case"referenceHidden":{let e=a(await s(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:l(e)}}}case"escaped":{let e=a(await s(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:l(e)}}}default:return{}}}}},D=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:i,placement:o,rects:s,platform:a,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=(0,r._3)(e,t)||{};if(null==c)return{};let h=(0,r.nI)(d),p={x:n,y:i},f=(0,r.Dz)(o),m=(0,r.sq)(f),g=await a.getDimensions(c),y="y"===f,v=y?"clientHeight":"clientWidth",b=s.reference[m]+s.reference[f]-p[f]-s.floating[m],x=p[f]-s.reference[f],_=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),w=_?_[v]:0;w&&await (null==a.isElement?void 0:a.isElement(_))||(w=l.floating[v]||s.floating[m]);let k=w/2-g[m]/2-1,C=(0,r.jk)(h[y?"top":"left"],k),E=(0,r.jk)(h[y?"bottom":"right"],k),A=w-g[m]-E,S=w/2-g[m]/2+(b/2-x/2),T=(0,r.qE)(C,S,A),j=!u.arrow&&null!=(0,r.Sg)(o)&&S!==T&&s.reference[m]/2-(S<C?C:E)-g[m]/2<0,N=j?S<C?S-C:S-A:0;return{[f]:p[f]+N,data:{[f]:T,centerOffset:S-T-N,...j&&{alignmentOffset:N}},reset:j}}}),M=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:i,rects:o,platform:s,strategy:a}=t,{padding:l=2,x:c,y:d}=(0,r._3)(e,t),h=Array.from(await (null==s.getClientRects?void 0:s.getClientRects(i.reference))||[]),p=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],i=null;for(let e=0;e<t.length;e++){let r=t[e];!i||r.y-i.y>i.height/2?n.push([r]):n[n.length-1].push(r),i=r}return n.map(e=>(0,r.B1)(u(e)))}(h),f=(0,r.B1)(u(h)),m=(0,r.nI)(l),g=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=c&&null!=d)return p.find(e=>c>e.left-m.left&&c<e.right+m.right&&d>e.top-m.top&&d<e.bottom+m.bottom)||f;if(p.length>=2){if("y"===(0,r.TV)(n)){let e=p[0],t=p[p.length-1],i="top"===(0,r.C0)(n),o=e.top,s=t.bottom,a=i?e.left:t.left,l=i?e.right:t.right;return{top:o,bottom:s,left:a,right:l,width:l-a,height:s-o,x:a,y:o}}
2704let e="left"===(0,r.C0)(n),t=(0,r.T9)(...p.map(e=>e.right)),i=(0,r.jk)(...p.map(e=>e.left)),o=p.filter(n=>e?n.left===i:n.right===t),s=o[0].top,a=o[o.length-1].bottom;return{top:s,bottom:a,left:i,right:t,width:t-i,height:a-s,x:i,y:s}}return f}},floating:i.floating,strategy:a});return o.reference.x!==g.reference.x||o.reference.y!==g.reference.y||o.reference.width!==g.reference.width||o.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},L=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:i,placement:o,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=(0,r._3)(e,t),d={x:n,y:i},h=(0,r.TV)(o),p=(0,r.PG)(h),f=d[p],m=d[h],g=(0,r._3)(l,t),y="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){let e="y"===p?"height":"width",t=s.reference[p]-s.floating[e]+y.mainAxis,n=s.reference[p]+s.reference[e]-y.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var v,b;let e="y"===p?"width":"height",t=["top","left"].includes((0,r.C0)(o)),n=s.reference[h]-s.floating[e]+(t&&(null==(v=a.offset)?void 0:v[h])||0)+(t?0:y.crossAxis),i=s.reference[h]+s.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[h])||0)-(t?y.crossAxis:0);m<n?m=n:m>i&&(m=i)}return{[p]:f,[h]:m}}}},R=(e,t,n)=>{let r=new Map,i={platform:C,...n},s={...i.platform,_c:r};return o(e,t,{...i,platform:s})}},80542:(e,t,n)=>{"use strict";n.d(t,{En:()=>o,JR:()=>c,et:()=>i,ol:()=>s,uJ:()=>a});var r=n(75093),i="function"==typeof WeakMap&&"ReactNative"!==(0,r.no)(function(){return navigator.product}),o="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,a=s&&Symbol.asyncIterator,l="function"==typeof(0,r.no)(function(){return window.document.createElement}),u=(0,r.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,c=l&&!u},80643:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(94829),o=n(9664);function s(e){let{error:t,flashStyle:n}=e;return t?"admin"===n?(0,r.jsx)(o.A,{type:"warning",children:t?.message}):(0,r.jsx)(i.A,{type:"warning","data-sentry-element":"ThemeFlash","data-sentry-component":"ApolloQueryError","data-sentry-source-file":"ApolloQueryError.tsx",children:t?.message}):null}},80894:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
2704ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},80903:(e,t,n)=>{"use strict";n.d(t,{L7:()=>r.A,XE:()=>i.A});var r=n(25268);n(37876);var i=n(13572)},81002:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(94829),o=n(14232);function s(e){let t,{className:n}=e,[s,a]=(0,o.useState)();if((0,o.useEffect)(()=>{a(e.mutationResult)},[e.mutationResult]),!s)return null;let l="warning";return"error"===s.type?t="Encountered an error servicing your request.":"invalid"===s.type?t="Encountered an error processing the form submission. Please check for any issues with the form and try again.":(l="info",t="Successfully saved"),(0,r.jsx)(i.A,{className:n,type:l,onClose:()=>a(void 0),"data-sentry-element":"Flash","data-sentry-component":"SaveResult","data-sentry-source-file":"SaveResult.tsx",children:s.message||t})}},81040:(e,t,n)=>{"use strict";n.d(t,{B1:()=>A,C0:()=>f,DD:()=>i,Dz:()=>b,Jx:()=>u,LI:()=>a,PG:()=>g,RI:()=>l,Sg:()=>m,T9:()=>s,TV:()=>v,WJ:()=>_,_3:()=>p,aD:()=>w,bV:()=>C,jk:()=>o,lP:()=>k,nI:()=>E,qE:()=>h,r_:()=>r,sq:()=>y,w7:()=>x});let r=["top","right","bottom","left"],i=r.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),o=Math.min,s=Math.max,a=Math.round,l=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function h(e,t,n){return s(e,o(t,n))}function p(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(f(e))?"y":"x"}function b(e){return g(v(e))}function x(e,t,n){void 0===n&&(n=!1);let r=m(e),i=b(e),o=y(i),s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=C(s)),[s,C(s)]}function _(e){let t=C(e);return[w(e),t,w(t)]}function w(e){return e.replace(/start|end/g,e=>d[e])}function k(e,t,n,r){let i=m(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(w)))),o}function C(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function E(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function A(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}},81314:function(e,t,n){"use strict";var r,i,o,s,a,l=this&&this.__extends||(o=function(e,t){return(o=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)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),c=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
2704),d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&u(t,e,n);return c(t,e),t},h=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseFeed=t.FeedHandler=void 0;var p=h(n(2836)),f=d(n(65589)),m=n(58321);(r=s||(s={}))[r.image=0]="image",r[r.audio=1]="audio",r[r.video=2]="video",r[r.document=3]="document",r[r.executable=4]="executable",(i=a||(a={}))[i.sample=0]="sample",i[i.full=1]="full",i[i.nonstop=2]="nonstop";var g=function(e){function t(t,n){return"object"==typeof t&&(n=t=void 0),e.call(this,t,n)||this}return l(t,e),t.prototype.onend=function(){var e,t,n=b(k,this.dom);if(!n)return void this.handleCallback(Error("couldn't find root of feed"));var r={};if("feed"===n.name){var i=n.children;r.type="atom",w(r,"id","id",i),w(r,"title","title",i);var o=_("href",b("link",i));o&&(r.link=o),w(r,"description","subtitle",i);var s=x("updated",i);s&&(r.updated=new Date(s)),w(r,"author","email",i,!0),r.items=v("entry",i).map(function(e){var t={},n=e.children;w(t,"id","id",n),w(t,"title","title",n);var r=_("href",b("link",n));r&&(t.link=r);var i=x("summary",n)||x("content",n);i&&(t.description=i);var o=x("updated",n);return o&&(t.pubDate=new Date(o)),t.media=y(n),t})}else{var i=null!=(t=null==(e=b("channel",n.children))?void 0:e.children)?t:[];r.type=n.name.substr(0,3),r.id="",w(r,"title","title",i),w(r,"link","link",i),w(r,"description","description",i);var s=x("lastBuildDate",i);s&&(r.updated=new Date(s)),w(r,"author","managingEditor",i,!0),r.items=v("item",n.children).map(function(e){var t={},n=e.children;w(t,"id","guid",n),w(t,"title","title",n),w(t,"link","link",n),w(t,"description","description",n);var r=x("pubDate",n);return r&&(t.pubDate=new Date(r)),t.media=y(n),t})}this.feed=r,this.handleCallback(null)},t}(p.default);function y(e){return v("media:content",e).map(function(e){var t={medium:e.attribs.medium,isDefault:!!e.attribs.isDefault};return e.attribs.url&&(t.url=e.attribs.url),e.attribs.fileSize&&(t.fileSize=parseInt(e.attribs.fileSize,10)),e.attribs.type&&(t.type=e.attribs.type),e.attribs.expression&&(t.expression=e.attribs.expression),e.attribs.bitrate&&(t.bitrate=parseInt(e.attribs.bitrate,10)),e.attribs.framerate&&(t.framerate=parseInt(e.attribs.framerate,10)),e.attribs.samplingrate&&(t.samplingrate=parseInt(e.attribs.samplingrate,10)),e.attribs.channels&&(t.channels=parseInt(e.attribs.channels,10)),e.attribs.duration&&(t.duration=parseInt(e.attribs.duration,10)),e.attribs.height&&(t.height=parseInt(e.attribs.height,10)),e.attribs.width&&(t.width=parseInt(e.attribs.width,10)),e.attribs.lang&&(t.lang=e.attribs.lang),t})}function v(e,t){return f.getElementsByTagName(e,t,!0)}function b(e,t){return f.getElementsByTagName(e,t,!0,1)[0]}function x(e,t,n){return void 0===n&&(n=!1),f.getText(f.getElementsByTagName(e,t,n,1)).trim()}function _(e,t){return t?t.attribs[e]:null}function w(e,t,n,r,i){void 0===i&&(i=!1);var o=x(n,r,i);o&&(e[t]=o)}function k(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=g,t.parseFeed=function(e,t){void 0===t&&(t={xmlMode:!0});var n=new g(t);return new m.Parser(n,t).end(e),n.feed}},81676:function(e,t,n){"use strict";var r,i=this&&this.__extends||(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])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(65883),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!=(e=a.get(this.type))?e:1}
2704,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),w(this,e)},e}();t.Node=l;var u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=u;var c=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(u);t.Text=c;var d=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(u);t.Comment=d;var h=function(e){function t(t,n){var r=e.call(this,s.ElementType.Directive,n)||this;return r.name=t,r}return i(t,e),t}(u);t.ProcessingInstruction=h;var p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!=(e=this.children[0])?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var f=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(p);t.Document=f;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,r)||this;return o.name=t,o.attribs=n,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null==(n=e["x-attribsNamespace"])?void 0:n[t],prefix:null==(r=e["x-attribsPrefix"])?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,s.isTag)(e)}function y(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function b(e){return e.type===s.ElementType.Comment}function x(e){return e.type===s.ElementType.Directive}function _(e){return e.type===s.ElementType.Root}function w(e,t){if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(b(e))n=new d(e.data);else if(g(e)){var n,r=t?k(e.children):[],i=new m(e.name,o({},e.attribs),r);r.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(y(e)){var r=t?k(e.children):[],a=new p(s.ElementType.CDATA,r);r.forEach(function(e){return e.parent=a}),n=a}else if(_(e)){var r=t?k(e.children):[],l=new f(r);r.forEach(function(e){return e.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else if(x(e)){var u=new h(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),n=u}else throw Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function k(e){for(var t=e.map(function(e){return w(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=y,t.isText=v,t.isComment=b,t.isDirective=x,t.isDocument=_,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=w},81684:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0012 15.75a7.488 7.488 0 00-5.982 2.975m11.963 0a9 9 0 10-11.963 0m11.963 0A8.966 8.966 0 0112 21a8.966 8.966 0 01-5.982-2.275M15 9.75a3 3 0 11-6 0 3 3 0 016 0z"}))})},81692:(e,t,n)=>{"use strict";n.d(t,{o9:()=>_,Cg:()=>x,nW:()=>b});let r=window,i=("undefined"!=typeof self?self:null)||r||void 0,o={connecting:0,open:1,closing:2,closed:3},s={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},a={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},l=[a.close,a.error,a.join,a.reply,a.leave],u={longpoll:"longpoll",websocket:"websocket"},c=e=>"function"==typeof e?e:function(){return e};class d{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHo
2704oks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,ref:n}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}}class h{constructor(e,t,n){this.state=s.closed,this.topic=e,this.params=c(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new d(this,a.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new y(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=s.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=s.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=s.closed,this.socket.remove(this)}),this.onError(e=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,e),this.isJoining()&&this.joinPush.reset(),this.state=s.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new d(this,a.leave,c({}),this.timeout).send(),this.state=s.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(a.reply,(e,t)=>{this.trigger(this.replyEventName(t),e)})}join(e=this.timeout){if(!this.joinedOnce)return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush;throw Error("tried to join multiple times. 'join' can only be called a single time per channel instance")}onClose(e){this.on(a.close,e)}onError(e){return this.on(a.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>n.event!==e||void 0!==t&&t!==n.ref)}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(!this.joinedOnce)throw Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new d(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=s.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(a.close,"leave")},n=new d(this,a.leave,c({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}isLifecycleEvent(e){return l.indexOf(e)>=0}isMember(e,t,n,r){return this.topic===e&&(!(r&&r!==this.joinRef()&&this.isLifecycleEvent(t))||(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1))}joinRef(){return this.joinPush.ref}sendJoin(e){this.state=s.joining,this.joinPush.resend(e)}rejoin(e=this.timeout){this.isLeaving()||this.sendJoin(e)}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw Error("channel onMessage callbacks must return the payload, modified or unmodified");for(let t=0;t<this.bindings.length;t++){let o=this.bindings[t];o.event===e&&o.callback(i,n,r||this.joinRef())}}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===s.closed}isErrored(){return this.state===s.errored}isJoined(){return this.state===s.joined}isJoining(){return this.state===s.joining}isLeaving(){return this.state===s.leaving}}let p={encode:(e,t)=>t(JSON.stringify([e.join_ref,e.ref,e.topic,e.event,e.payload])),decode(e,t){let[n,r,i,o,s]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:o,payload:s})}};class f{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=t.timeout||1e4,this.transport=t.transport||i.WebSocket||m,this.defaultEncoder=p.encode,this.defaultDecoder=p.decode,this.closeWasClean=!1,this.unloaded=!1,this.binaryType=t.binaryType||"arraybuffer",this.transport!==m?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder),r&&r.addEventListener&&r.addEventListener("unload",e=>{this.conn&&(this.unloaded=!0,this.abnormalClose("unloaded"))}),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.rejoinAfterMs=e=>t.rejoinAfterMs?t.rejoinAfterMs(e):[1e3,2e3,5e3][e-1]||1e4,this.reconnectAfterMs=e=>this.unloaded?100:t.reconnectAfterMs?t.reconnectAfterMs(e):[10,50,100,150,200,250,500,1e3,2e3][e-1]||5e3,this.logger=t.logger||null,this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=c(t.params||{}),this.endPoint=`${e}/${u.websocket}`,this.vsn=t.vsn||"2.0.0",this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new y(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=g.appendParams(g.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return"/"!==e.charAt(0)?e:"/"===e.charAt(1)?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(e,t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=c(e)),this.conn||(this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>
2704this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e))}log(e,t,n){this.logger(e,t,n)}hasLogger(){return null!==this.logger}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.unloaded=!1,this.closeWasClean=!1,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,e])=>e())}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n||""):this.conn.close(),this.conn=null),e&&e()}onConnClose(e){this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),clearInterval(this.heartbeatTimer),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,t])=>t(e))}onConnError(e){this.hasLogger()&&this.log("transport",e),this.triggerChanError(),this.stateChangeCallbacks.error.forEach(([,t])=>t(e))}triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(a.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case o.connecting:return"connecting";case o.open:return"open";case o.closing:return"closing";default:return"closed"}}isConnected(){return"open"===this.connectionState()}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t.joinRef()!==e.joinRef())}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([t])=>!e.includes(t))}channel(e,t={}){let n=new h(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:i,join_ref:o}=e;this.log("push",`${t} ${n} (${o}, ${i})`,r)}this.isConnected()?this.encode(e,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(e,e=>this.conn.send(e)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.abnormalClose("heartbeat timeout");return}this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef})}}abnormalClose(e){this.closeWasClean=!1,this.conn.close(1e3,e)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:n,payload:r,ref:i,join_ref:o}=e;i&&i===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.hasLogger()&&this.log("receive",`${r.status||""} ${t} ${n} ${i&&"("+i+")"||""}`,r);for(let e=0;e<this.channels.length;e++){let s=this.channels[e];s.isMember(t,n,r,o)&&s.trigger(n,r,i,o)}for(let t=0;t<this.stateChangeCallbacks.message.length;t++){let[,n]=this.stateChangeCallbacks.message[t];n(e)}})}}class m{constructor(e){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=o.connecting,this.poll()}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(RegExp("(.*)/"+u.websocket),"$1/"+u.longpoll)}endpointURL(){return g.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(){this.close(),this.readyState=o.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry()}poll(){(this.readyState===o.open||this.readyState===o.connecting)&&g.request("GET",this.endpointURL(),"application/json",null,this.timeout,this.ontimeout.bind(this),e=>{if(e){var{status:t,token:n,messages:r}=e;this.token=n}else var t=0;
2704switch(t){case 200:r.forEach(e=>this.onmessage({data:e})),this.poll();break;case 204:this.poll();break;case 410:this.readyState=o.open,this.onopen(),this.poll();break;case 0:case 500:this.onerror(),this.closeAndRetry();break;default:throw Error(`unhandled poll status ${t}`)}})}send(e){g.request("POST",this.endpointURL(),"application/json",e,this.timeout,this.onerror.bind(this,"timeout"),e=>{e&&200===e.status||(this.onerror(e&&e.status),this.closeAndRetry())})}close(e,t){this.readyState=o.closed,this.onclose()}}class g{static request(e,t,n,r,o,s,a){if(i.XDomainRequest){let n=new XDomainRequest;this.xdomainRequest(n,e,t,r,o,s,a)}else{let l=i.XMLHttpRequest?new i.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");this.xhrRequest(l,e,t,n,r,o,s,a)}}static xdomainRequest(e,t,n,r,i,o,s){e.timeout=i,e.open(t,n),e.onload=()=>{let t=this.parseJSON(e.responseText);s&&s(t)},o&&(e.ontimeout=o),e.onprogress=()=>{},e.send(r)}static xhrRequest(e,t,n,r,i,o,s,a){e.open(t,n,!0),e.timeout=o,e.setRequestHeader("Content-Type",r),e.onerror=()=>{a&&a(null)},e.onreadystatechange=()=>{e.readyState===this.states.complete&&a&&a(this.parseJSON(e.responseText))},s&&(e.ontimeout=s),e.send(i)}static parseJSON(e){if(!e||""===e)return null;try{return JSON.parse(e)}catch(t){return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!e.hasOwnProperty(r))continue;let i=t?`${t}[${r}]`:r,o=e[r];"object"==typeof o?n.push(this.serialize(o,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(o))}return n.join("&")}static appendParams(e,t){if(0===Object.keys(t).length)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}}g.states={complete:4};class y{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var v=n(94674);function b(e,t,n={}){return new Promise(r=>{e.push(t,n).receive("ok",e=>r({ok:!0,value:e})).receive("error",e=>{console.warn(`Error in ${t}:`,e),r({ok:!1,error:e})})})}function x(e,t){return new Promise(n=>{e.join().receive("ok",e=>n({ok:!0,value:e})).receive("error",e=>{console.warn("Error joining channel:",e),n({ok:!1,error:e}),t?.onErrorRef?.current&&t.onErrorRef.current(e)})})}function _(e,t,n){if(!t)throw Error("No jwt is set");let r=new f(e,{params:{jwt:t,group:n,v:v.mG}});return r.connect(),r}},81862:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RssHandler=t.DefaultHandler=t.DomUtils=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DomHandler=t.Parser=void 0;var l=n(58321);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return l.Parser}});var u=n(2836);function c(e,t){var n=new u.DomHandler(void 0,t);return new l.Parser(n,t).end(e),n.root}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}}),t.parseDocument=c,t.parseDOM=function(e,t){return c(e,t).children},t.createDomStream=function(e,t,n){var r=new u.DomHandler(e,t,n);return new l.Parser(r,t)};var d=n(40783);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return a(d).default}}
2704),t.ElementType=o(n(65883)),s(n(81314),t),t.DomUtils=o(n(65589));var h=n(81314);Object.defineProperty(t,"RssHandler",{enumerable:!0,get:function(){return h.FeedHandler}})},81918:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",className:t,style:n,title:"Question mark",...{},"data-sentry-element":"svg","data-sentry-component":"QuestionMark","data-sentry-source-file":"QuestionMark.tsx",children:(0,r.jsx)("path",{d:"M 12.298828 2.0078125 C 9.2536504 1.8592539 6.6687031 3.9932031 6.1113281 6.8457031 C 5.9933281 7.4477031 6.4914687 8 7.1054688 8 C 7.5894687 8 7.9859375 7.6497813 8.0859375 7.1757812 C 8.5179375 5.1197812 10.534922 3.6391719 12.794922 4.0761719 C 14.716922 4.4481719 16.103141 6.2667031 15.994141 8.2207031 C 15.908141 9.7697031 14.910672 10.751859 13.763672 11.880859 C 12.712672 12.915859 11.548484 14.061281 11.146484 15.738281 C 10.992484 16.377281 11.460188 17 12.117188 17 C 12.594188 17 12.981703 16.657359 13.095703 16.193359 C 13.373703 15.069359 14.217016 14.238687 15.166016 13.304688 C 16.490016 12.001688 17.99 10.525391 18 8.0253906 C 18.011 5.2883906 16.274906 2.9158438 13.628906 2.2148438 C 13.179656 2.0958438 12.733854 2.0290352 12.298828 2.0078125 z M 11.5 20 C 11.224 20 11 20.224 11 20.5 L 11 21.5 C 11 21.776 11.224 22 11.5 22 L 12.5 22 C 12.776 22 13 21.776 13 21.5 L 13 20.5 C 13 20.224 12.776 20 12.5 20 L 11.5 20 z","data-sentry-element":"path","data-sentry-source-file":"QuestionMark.tsx"})})}},82030:(e,t,n)=>{"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}n.d(t,{_:()=>r})},82037:(e,t,n)=>{"use strict";n.d(t,{HI:()=>u,Ex:()=>c.A,_Q:()=>d,Jn:()=>p.A,xz:()=>f.A,et:()=>b,tA:()=>h.A,tU:()=>x.Ay});var r=n(37876),i=n(48230),o=n.n(i),s=n(85767),a=n(49995),l=n(72569);function u(e){let{children:t,className:n,href:i,onClick:u}=e,c=(0,l.jz)(e.themeArea),d=(0,a.A)("BackArrow mr-4 flex","admin"===c?"text-gray-darker hover:text-gf-green":"text-[var(--group-primary-card-text-muted-color)] hover:text-[var(--group-accent)]","cursor-pointer flex gap-2 items-center",n);return(0,r.jsxs)(function({href:e,children:t}){return e?(0,r.jsx)(o(),{href:e,className:d,children:(0,r.jsx)(r.Fragment,{children:t})}):(0,r.jsx)("button",{onClick:u,type:"button",className:d,children:t})},{href:i,"data-sentry-element":"MaybeLink","data-sentry-component":"BackArrow","data-sentry-source-file":"BackArrow.tsx",children:[(0,r.jsx)("span",{style:{width:"20px",minWidth:"20px",maxWidth:"20px",height:"20px",transform:"rotate(180deg)"},children:(0,r.jsx)(s.A,{className:"fill-current","data-sentry-element":"ArrowIcon","data-sentry-source-file":"BackArrow.tsx"})}),t]})}var c=n(76019);function d(e){let{items:t,itemBgClass:n,formatItem:i}=e;return(0,r.jsx)(r.Fragment,{children:t.map(e=>(0,r.jsx)(c.A,{bgClass:n,children:i?i(e):e},e))})}var h=n(14668),p=n(92122),f=n(13352),m=n(42383),g=n(82337),y=n(21684),v=n(23955);function b(e){let{admin:t,className:n,children:i,disabled:o,loading:s,onClick:u,size:c,type:d="button",uiId:h,withIcon:p}=e,f=(0,l.jz)(e.themeArea);s&&(o=!0);let b="bg-red-dark",x="border-red-dark",_="",w="text-white";o?(b="bg-gray",x="border-gray",w="text-gray-dark"):_="hover:bg-red-danger";let k="py-1 px-3",C="",E={width:"20px",height:"20px"},A="gap-2";if("small"===c&&(C="text-sm",E={width:"16px",height:"16px"},k="px-2",A="gap-1"),n=`${n||""} font-semibold ${w} ${C} border-2 ${x} ${t?"rounded-full":"rounded-[var(--group-button-radius)]"} ${k} inline-flex ${A} items-center`,"admin"===f){let t=(0,a.$)(b,_);return(0,r.jsx)(m.rA,{bgColorClass:t,className:(0,a.$)(e.className,C),colorClass:"text-white",onClick:e.onClick,disabled:e.disabled,loading:s,leftIcon:e.icon||(0,r.jsx)(g.A,{className:"fill-current",style:E}),themeArea:v.L.ADMIN,type:d,"data-ui-component":"DeleteButton","data-ui-id":h,children:e.children||"Delete"})}return n=(0,a.$)(n,b,_),(0,r.jsxs)("button",{className:n,type:d,onClick:u,disabled:o,"data-ui-component":"DeleteButton","data-ui-id":h,"data-sentry-component":"DeleteButton","data-sentry-source-file":"DeleteButton.tsx",children:[s?(0,r.jsx)(y.A,{className:"h-5 w-5"}):p&&(0,r.jsx)(g.A,{className:"fill-current",style:E}),s?"Loadingâ¦":i||"Delete"]})}var x=n(86286)},82153:(e,t,n)=>{"use strict";n.d(t,{J:()=>s,q:()=>o});var r=n(14232);let i=(0,r.createContext)(void 0);function o(){return(0,r.useContext)(i)}function s({id:e,children:t}){return r.createElement(i.Provider,{value:e},t)}},82337:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",className:t,style:n,title:"Trash can",...{},"data-sentry-element":"svg","data-sentry-component":"TrashIcon","data-sentry-source-file":"TrashIcon.tsx",children:(0,r.jsx)("path",{d:"M 10 2 L 9 3 L 4 3 L 4 5 L 5 5 L 5 20 C 5 20.522222 5.1913289 21.05461 5.5683594 21.431641 C 5.9453899 21.808671 6.4777778 22 7 22 L 17 22 C 17.522222 22 18.05461 21.808671 18.431641 21.431641 C 18.808671 21.05461 19 20.522222 19 20 L 19 5 L 20 5 L 20 3 L 15 3 L 14 2 L 10 2 z M 7 5 L 17 5 L 17 20 L 7 20 L 7 5 z M 9 7 L 9 18 L 11 18 L 11 7 L 9 7 z M 13 7 L 13 18 L 15 18 L 15 7 L 13 7 z","data-sentry-element":"path","data-sentry-source-file":"TrashIcon.tsx"})})}},82355:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsxs)("svg",{width:"64",height:"64",viewBox:"0 0 64 64",f
2704ill:"none",xmlns:"http://www.w3.org/2000/svg",title:"FetLife icon",style:n,className:t,...{},"data-sentry-element":"svg","data-sentry-component":"FetLifeIcon","data-sentry-source-file":"FetLifeIcon.tsx",children:[(0,r.jsx)("path",{d:"M8 0C3.61317 0 0 3.61317 0 8V56C0 60.3868 3.61317 64 8 64H56C60.3868 64 64 60.3868 64 56V8C64 3.61317 60.3868 0 56 0H8ZM8 5.33333H56C57.5012 5.33333 58.6667 6.49883 58.6667 8V56C58.6667 57.5012 57.5012 58.6667 56 58.6667H8C6.49883 58.6667 5.33333 57.5012 5.33333 56V8C5.33333 6.49883 6.49883 5.33333 8 5.33333Z","data-sentry-element":"path","data-sentry-source-file":"FetLifeIcon.tsx"}),(0,r.jsx)("path",{d:"M20.4643 12.2828C18.9361 14.3907 17.8069 17.0858 17.3401 19.7131C17.1143 21.0005 17.0917 23.2815 17.295 24.5011L17.4305 25.2916L17.0917 25.9315C15.8119 28.3405 15.842 31.1711 17.182 33.9038C18.4091 36.4183 20.3514 38.4434 25.5158 42.5914C28.1582 44.7068 29.6187 45.9415 30.9737 47.1912L32.2912 48.4107L32.7805 47.9666C35.0992 45.8511 35.9047 45.1661 39.0666 42.6366C43.5233 39.0682 45.2849 37.3593 46.6701 35.2966C47.5434 33.9942 48.1381 32.5337 48.3715 31.1184C48.5145 30.2527 48.4844 28.7997 48.3037 27.9791C48.1306 27.2113 47.7918 26.3154 47.4455 25.7131L47.2196 25.3141L47.3401 24.5161C47.9423 20.6768 46.9712 16.5513 44.6149 12.9377C43.7792 11.6504 43.8545 11.6203 43.8545 13.2539C43.8545 14.6692 43.7341 15.9641 43.5007 16.9653C43.1845 18.3806 42.4467 20.0971 41.7466 21.0833L41.3552 21.6328H40.4668C39.9775 21.6328 39.2774 21.6855 38.9085 21.7458C37.0114 22.077 34.768 23.2213 32.9913 24.757L32.3288 25.3217L31.6287 24.7269C29.1971 22.6868 26.6676 21.6328 24.1908 21.6328H23.3025L22.8809 21.0456C21.5032 19.1034 20.7881 16.4835 20.7805 13.2916C20.7805 12.5011 20.7805 11.8461 20.773 11.8461C20.773 11.8461 20.63 12.0419 20.4643 12.2828Z","data-sentry-element":"path","data-sentry-source-file":"FetLifeIcon.tsx"})]})}},82675:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},82731:(e,t,n)=>{var r=n(91667),i=n(99969),o=n(72115),s=o&&o.isTypedArray;e.exports=s?i(s):r},82742:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(42383),o=n(78950);function s(e){let{apiError:t,onClose:n}=e;function s(){n&&n()}return(0,r.jsx)(o.A,{isOpen:!!t,onClose:s,overlayStyle:{zIndex:50},title:"An error occurred","data-sentry-element":"SimpleModal","data-sentry-component":"GeneralApiError","data-sentry-source-file":"GeneralApiError.tsx",children:t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"mb-8",children:t.explanation}),(0,r.jsx)(i.fC,{onClick:s,children:"Ok"})]})})}},82938:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(44467),i=n(42034);function o(e){let t=e.map(s);return(e,...n)=>u(t,t=>t(e,...n))}function s(e){switch(e.type){case"terminal":{let t=[e.valueContainer];return(e,...n)=>t}case"tagName":var t=e;let n={};for(let e of t.variants)n[e.value]=o(e.cont);return(e,...t)=>{let r=n[e.name];return r?r(e,...t):[]};case"attrValue":var r=e;let i=[];for(let e of r.matchers){let t=e.predicate,n=o(e.cont);i.push((e,r,...i)=>t(e)?n(r,...i):[])}let s=r.name;return(e,...t)=>{let n=e.attribs[s];return n||""===n?u(i,r=>r(n,e,...t)):[]};case"attrPresence":var c=e;let d=c.name,h=o(c.cont);return(e,...t)=>Object.prototype.hasOwnProperty.call(e.attribs,d)?h(e,...t):[];case"pushElement":var p=e;let f=o(p.cont),m="+"===p.combinator?a:l;return(e,...t)=>{let n=m(e);return null===n?[]:f(n,e,...t)};case"popElement":var g=e;let y=o(g.cont);return(e,t,...n)=>y(t,...n)}}let a=e=>{let t=e.prev;return null===t?null:r.isTag(t)?t:a(t)},l=e=>{let t=e.parent;return t&&r.isTag(t)?t:null};function u(e,t){return[].concat(...function(e,t){let n=e.length,r=Array(n);for(let i=0;i<n;i++)r[i]=t(e[i]);return r}(e,t))}t.hp2Builder=function(e){return new i.Picker(o(e))}},83070:(e,t,n)=>{"use strict";n.d(t,{K$:()=>o,K4:()=>u,Mn:()=>a,uR:()=>s});var r=n(4902);n(75093);var i=n(93957),o=Symbol();function s(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function a(e){return e.hasOwnProperty("graphQLErrors")}var l=function(e){var t=(0,r.fX)((0,r.fX)((0,r.fX)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.U)(e)&&e.message||"Error message not found."}).join("\n")},u=function(e){function t(n){var r=n.graphQLErrors,i=n.protocolErrors,o=n.clientErrors,s=n.networkError,a=n.errorMessage,u=n.extraInfo,c=e.call(this,a)||this;return c.name="ApolloError",c.graphQLErrors=r||[],c.protocolErrors=i||[],c.clientErrors=o||[],c.networkError=s||null,c.message=a||l(c),c.extraInfo=u,c.__proto__=t.prototype,c}return(0,r.C6)(t,e),t}(Error)},83660:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(14232),i=n(31787);function o(){let[e]=(0,r.useState)(i.e);return(0,r.useEffect)(()=>()=>
2704e.dispose(),[e]),e}},83988:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(14232),i=n(31787),o=n(29842);function s(e,t,n){let s=(0,o.Y)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,r.useEffect)(()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let r=(0,i.e)();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>s.current(n));e.observe(n),r.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>s.current(n));e.observe(n),r.add(()=>e.disconnect())}return()=>r.dispose()},[t,s,e])}},84237:(e,t,n)=>{var r=n(50224),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},84779:(e,t,n)=>{var r=n(53512),i=n(58528),o=n(84237),s=n(33065),a=n(68329);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},84855:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(37876),i=n(5811);function o(e){let t=e.style,n=e.otherProps||{},i={totalWidth:200,square:{radiusRatio:.2,strokeWidthRatio:.085},cross:{strokeRatio:.085}};return(0,r.jsxs)("svg",{width:"200",height:"200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",style:t,className:e.className,onClick:e.onClick,title:"Close",...n,"data-sentry-element":"svg","data-sentry-component":"CloseIcon","data-sentry-source-file":"CloseIcon.tsx",children:[function(){let{totalWidth:e,square:t}=i,n=t.strokeWidthRatio*e,o=t.radiusRatio*e,s=e-2*o-n;return(0,r.jsxs)(r.Fragment,{children:[!1,(0,r.jsx)("path",{name:"rounded-box",d:` 2705 M ${n/2+o} ${n/2} 2706 h ${s} 2707 q ${o} 0 ${o} ${o} 2708 v ${s} 2709 q 0 ${o} -${o} ${o} 2710 h -${s} 2711 q -${o} 0 -${o} -${o} 2712 v -${s} 2713 q 0 -${o} ${o} -${o} 2714 `,stroke:"currentColor",strokeWidth:n,fill:"none","data-sentry-element":"path","data-sentry-source-file":"CloseIcon.tsx"})]})}(),function(){let{totalWidth:e,cross:t}=i,n=e/2,o=e*t.strokeRatio,s=2*o,a=1.33*o,l=e-s;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("g",{name:"cross",transform:` 2715 scale(0.5) 2716 translate(${n} ${n}) 2717 rotate(45 ${n} ${n}) 2718 `,"data-sentry-element":"g","data-sentry-source-file":"CloseIcon.tsx",children:[(0,r.jsx)("path",{name:"horizontal-line",d:` 2719 M ${o} ${n-o} 2720 h ${l} 2721 c ${a} 0 ${a} ${s} 0 ${s} 2722 h -${l} 2723 c -${a} 0 -${a} -${s} 0 -${s} 2724 `,fill:"currentColor","data-sentry-element":"path","data-sentry-source-file":"CloseIcon.tsx"}),(0,r.jsx)("path",{name:"vertical-line",d:` 2725 M ${n+o} ${o} 2726 v ${l} 2727 c 0 ${a} -${s} ${a} -${s} 0 2728 v -${l} 2729 c 0 -${a} ${s} -${a} ${s} 0 2730 `,fill:"currentColor","data-sentry-element":"path","data-sentry-source-file":"CloseIcon.tsx"})]})})}()]})}function s(e){let{className:t,style:n}=e;return(0,r.jsxs)("svg",{width:"74",height:"51",viewBox:"0 0 74 51",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:n,className:t,"data-sentry-element":"svg","data-sentry-component":"HamburgerMenuIcon","data-sentry-source-file":"HamburgerMenuIcon.tsx",children:[(0,r.jsx)("rect",{width:"74",height:"9",fill:"current","data-sentry-element":"rect","data-sentry-source-file":"HamburgerMenuIcon.tsx"}),(0,r.jsx)("rect",{y:"21",width:"74",height:"9",fill:"current","data-sentry-element":"rect","data-sentry-source-file":"HamburgerMenuIcon.tsx"}),(0,r.jsx)("rect",{y:"42",width:"74",height:"9",fill:"current","data-sentry-element":"rect","data-sentry-source-file":"HamburgerMenuIcon.tsx"})]})}n(14232);var a=n(49995);let l=(0,i.PA)(function({isOpen:e,onToggle:t,className:n,size:i="md",variant:l="default"}){let u={sm:"w-5 h-5",md:"w-6 h-6",lg:"w-8 h-8"}[i];return(0,r.jsxs)("button",{type:"button","aria-label":e?"Close navigation menu":"Open navigation menu","aria-expanded":e,"aria-controls":"navigation-menu","data-testid":"mobile-menu-button","data-menu-state":e?"open":"closed",className:(0,a.A)("NavigationMenuButton cursor-pointer overflow-hidden focu
2730s:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[var(--group-accent)]","admin"===l?"-m-2.5 p-2.5":"",n),onClick:t,"data-sentry-component":"HamburgerMenuButton","data-sentry-source-file":"HamburgerMenuButton.tsx",children:[(0,r.jsxs)("span",{className:"sr-only",children:[e?"Close":"Open"," navigation menu"]}),e?(0,r.jsx)(o,{className:(0,a.A)("fill-current",u),"aria-hidden":"true"}):(0,r.jsx)(s,{className:(0,a.A)("fill-current",u),"aria-hidden":"true"})]})})},84941:function(e,t,n){"use strict";var r,i=this&&this.__extends||(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])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(65883),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!=(e=a.get(this.type))?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),w(this,e)},e}();t.Node=l;var u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=u;var c=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(u);t.Text=c;var d=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(u);t.Comment=d;var h=function(e){function t(t,n){var r=e.call(this,s.ElementType.Directive,n)||this;return r.name=t,r}return i(t,e),t}(u);t.ProcessingInstruction=h;var p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!=(e=this.children[0])?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var f=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(p);t.Document=f;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,r)||this;return o.name=t,o.attribs=n,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e}
2730,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null==(n=e["x-attribsNamespace"])?void 0:n[t],prefix:null==(r=e["x-attribsPrefix"])?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,s.isTag)(e)}function y(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function b(e){return e.type===s.ElementType.Comment}function x(e){return e.type===s.ElementType.Directive}function _(e){return e.type===s.ElementType.Root}function w(e,t){if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(b(e))n=new d(e.data);else if(g(e)){var n,r=t?k(e.children):[],i=new m(e.name,o({},e.attribs),r);r.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(y(e)){var r=t?k(e.children):[],a=new p(s.ElementType.CDATA,r);r.forEach(function(e){return e.parent=a}),n=a}else if(_(e)){var r=t?k(e.children):[],l=new f(r);r.forEach(function(e){return e.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else if(x(e)){var u=new h(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),n=u}else throw Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function k(e){for(var t=e.map(function(e){return w(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=y,t.isText=v,t.isComment=b,t.isDirective=x,t.isDocument=_,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=w},84974:(e,t,n)=>{"use strict";function r(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return e instanceof Node||e instanceof i(e).Node}function a(e){return e instanceof Element||e instanceof i(e).Element}function l(e){return e instanceof HTMLElement||e instanceof i(e).HTMLElement}function u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function d(e){return["table","td","th"].includes(r(e))}function h(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function p(e){let t=m(),n=a(e)?y(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function f(e){let t=b(e);for(;l(t)&&!g(t);){if(p(t))return t;if(h(t))break;t=b(t)}return null}function m(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function g(e){return["html","body","#document"].includes(r(e))}function y(e){return i(e).getComputedStyle(e)}function v(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function b(e){if("html"===r(e))return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||o(e);return u(t)?t.host:t}function x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n.d(t,{$4:()=>b,CP:()=>v,L9:()=>y,Lv:()=>d,Ng:()=>u,Tc:()=>m,Tf:()=>h,ZU:()=>c,_m:()=>x,ep:()=>o,eu:()=>g,gJ:()=>f,mq:()=>r,sQ:()=>p,sb:()=>l,v9:()=>function e(t,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let s=function e(t){let n=b(t);return g(n)?t.ownerDocument?t.ownerDocument.body:t.body:l(n)&&c(n)?n:e(n)}(t),a=s===(null==(o=t.ownerDocument)?void 0:o.body),u=i(s);if(a){let t=x(u);
2730return n.concat(u,u.visualViewport||[],c(s)?s:[],t&&r?e(t):[])}return n.concat(s,e(s,[],r))},vq:()=>a,zk:()=>i})},85016:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,q:()=>l});var r=n(37876),i=n(37483),o=n(73382),s=n(6884);function a(e){let{type:t,contentSlug:n,className:o,as:s}=e;return(0,r.jsx)(i.A,{type:t,contentSlug:n,className:o,as:s,"data-sentry-element":"BaseContentItem","data-sentry-component":"ContentItem","data-sentry-source-file":"ContentItem.tsx"})}let l=[{key:"type",type:"enum",enumOptions:[o.nz.Text,o.nz.Button,o.nz.HeaderWithHero,o.nz.Header,o.nz.Hero,o.nz.Image,o.nz.Page,o.nz.Post].map(e=>({value:e,label:(0,s.Sk)(e)??e}))},{key:"contentSlug",type:"string"},{key:"as",type:"string"},{key:"className",type:"string"}]},85081:(e,t,n)=>{"use strict";function r(){return Math.random().toString(36).slice(2)}function i(){return r()+r()}n.d(t,{A:()=>i})},85287:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(37876),i=n(90152);function o(){return(0,r.jsx)(i.A,{title:"Contact Limit Reached",type:"warning","data-sentry-element":"InfoMessage","data-sentry-component":"MaxContactsReached","data-sentry-source-file":"MaxContactsReached.tsx",children:"This group has reached the number of contacts included in its current plan. A group administrator will need to upgrade the plan before new accounts can be created."})}},85318:(e,t,n)=>{"use strict";n.d(t,{C:()=>r,i:()=>i});var r=function(e){return e.Navigation="navigation",e.Content="content",e}({});async function i(e,t){let n=await t(e).catch(t=>{throw Error(`Published ${e}.json could not be read: ${t}`)});if(n.error)throw Error(`Published ${e}.json could not be read: status ${n.status}`);if(!Array.isArray(n.data))throw Error(`Published ${e}.json could not be decoded`);return n}},85590:(e,t,n)=>{var r=n(89950),i=n(28654);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},85668:()=>{},85767:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(37876);function i(e){let{className:t,style:n}=e;return(0,r.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 41.999 41.999",className:t,style:n,title:"Arrow",...{},"data-sentry-element":"svg","data-sentry-component":"ArrowIcon","data-sentry-source-file":"ArrowIcon.tsx",children:(0,r.jsx)("g",{"data-sentry-element":"g","data-sentry-source-file":"ArrowIcon.tsx",children:(0,r.jsx)("path",{d:"M36.068,20.176l-29-20C6.761-0.035,6.363-0.057,6.035,0.114C5.706,0.287,5.5,0.627,5.5,0.999v40 c0,0.372,0.206,0.713,0.535,0.886c0.146,0.076,0.306,0.114,0.465,0.114c0.199,0,0.397-0.06,0.568-0.177l29-20 c0.271-0.187,0.432-0.494,0.432-0.823S36.338,20.363,36.068,20.176z","data-sentry-element":"path","data-sentry-source-file":"ArrowIcon.tsx"})})})}},85819:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(64177),i=n(24447),o=n(14232);function s(e){let[t,n]=(0,r.n)(e,{errorPolicy:"all"}),{error:s,loading:a,data:l}=n,[u,c]=(0,o.useState)(void 0);async function d(e,n){let r=await t(e);return(0,i.VY)(r,n)}return(0,o.useEffect)(()=>{if(l){let e=Object.keys(l)[0],t=l[e];c(t?.errors)}},[l]),[d,{serverError:s,errors:u,loading:a,data:l,reset:function(){n.reset(),c(void 0)}}]}},85858:(e,t,n)=>{"use strict";function r(e,t){return e?e+"["+t+"]":t}function i(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}n.d(t,{h:()=>function e(t={},n=null,i=[]){for(let[o,s]of Object.entries(t))!function t(n,i,o){if(Array.isArray(o))for(let[e,s]of o.entries())t(n,r(i,e.toString()),s);else o instanceof Date?n.push([i,o.toISOString()]):"boolean"==typeof o?n.push([i,o?"1":"0"]):"string"==typeof o?n.push([i,o]):"number"==typeof o?n.push([i,`${o}`]):null==o?n.push([i,""]):e(o,i,n)}(i,r(n,o),s);return i},q:()=>i})},86158:(e,t,n)=>{"use strict";var r;n.d(t,{Ll:()=>l,aD:()=>s,aZ:()=>i,cE:()=>r,ou:()=>o});class i{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class o{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
2730Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=new Set(Object.keys(s));function l(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(r||(r={}))},86191:(e,t,n)=>{"use strict";n.d(t,{J1:()=>R});var r,i,o=n(4902);let s=/\r\n|[\n\r]/g;function a(e,t){let n=0,r=1;for(let i of e.body.matchAll(s)){if("number"==typeof i.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function l(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?n:0,l=t.column+a,c=`${e.name}:${s}:${l} 2731`,d=r.split(/\r\n|[\n\r]/g),h=d[i];if(h.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<h.length;e+=80)t.push(h.slice(e,e+80));return c+u([[`${s} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return c+u([[`${s-1} |`,d[i-1]],[`${s} |`,h],["|","^".padStart(l)],[`${s+1} |`,d[i+1]]])}function u(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class c extends Error{constructor(e,...t){var n,r,i;let{nodes:o,source:s,positions:l,path:u,originalError:h,extensions:p}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=h?h:void 0,this.nodes=d(Array.isArray(o)?o:o?[o]:void 0);let f=d(null==(n=this.nodes)?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==f||null==(r=f[0])?void 0:r.source,this.positions=null!=l?l:null==f?void 0:f.map(e=>e.start),this.locations=l&&s?l.map(e=>a(s,e)):null==f?void 0:f.map(e=>a(e.source,e.start));let m=!function(e){return"object"==typeof e&&null!==e}(null==h?void 0:h.extensions)||null==h?void 0:h.extensions;this.extensions=null!=(i=null!=p?p:m)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let n of this.nodes){var t;n.loc&&(e+="\n\n"+l((t=n.loc).source,a(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+l(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function d(e){return void 0===e||0===e.length?void 0:e}function h(e,t,n){return new c(`Syntax Error: ${n}`,{source:e,positions:[t]})}var p=n(86158);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(r||(r={}));var f=n(94587),m=n(47518),g=n(7743);!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}
2731",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(i||(i={}));class y{constructor(e){let t=new p.ou(i.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==i.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,r=n.length,o=t;for(;o<r;){let t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return function(e,t){let n=e.source.body,r=n.length,o=t+1;for(;o<r;){let e=n.charCodeAt(o);if(10===e||13===e)break;if(v(e))++o;else if(b(n,o))o+=2;else break}return k(e,i.COMMENT,t,o,n.slice(t+1,o))}(e,o);case 33:return k(e,i.BANG,o,o+1);case 36:return k(e,i.DOLLAR,o,o+1);case 38:return k(e,i.AMP,o,o+1);case 40:return k(e,i.PAREN_L,o,o+1);case 41:return k(e,i.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return k(e,i.SPREAD,o,o+3);break;case 58:return k(e,i.COLON,o,o+1);case 61:return k(e,i.EQUALS,o,o+1);case 64:return k(e,i.AT,o,o+1);case 91:return k(e,i.BRACKET_L,o,o+1);case 93:return k(e,i.BRACKET_R,o,o+1);case 123:return k(e,i.BRACE_L,o,o+1);case 124:return k(e,i.PIPE,o,o+1);case 125:return k(e,i.BRACE_R,o,o+1);case 34:if(34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2))return function(e,t){let n=e.source.body,r=n.length,o=e.lineStart,s=t+3,a=s,l="",u=[];for(;s<r;){let r=n.charCodeAt(s);if(34===r&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){l+=n.slice(a,s),u.push(l);let r=k(e,i.BLOCK_STRING,t,s+3,(0,m.OC)(u).join("\n"));return e.line+=u.length-1,e.lineStart=o,r}if(92===r&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)&&34===n.charCodeAt(s+3)){l+=n.slice(a,s),a=s+1,s+=4;continue}if(10===r||13===r){l+=n.slice(a,s),u.push(l),13===r&&10===n.charCodeAt(s+1)?s+=2:++s,l="",a=s,o=s;continue}if(v(r))++s;else if(b(n,s))s+=2;else throw h(e.source,s,`Invalid character within String: ${w(e,s)}.`)}throw h(e.source,s,"Unterminated string.")}(e,o);return function(e,t){let n=e.source.body,r=n.length,o=t+1,s=o,a="";for(;o<r;){let r=n.charCodeAt(o);if(34===r)return a+=n.slice(s,o),k(e,i.STRING,t,o+1,a);if(92===r){a+=n.slice(s,o);let t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?function(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+i++);if(125===e){if(i<5||!v(r))break;return{value:String.fromCodePoint(r),size:i}}if((r=r<<4|A(e))<0)break}throw h(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}(e,o):function(e,t){let n=e.source.body,r=E(n,t+2);if(v(r))return{value:String.fromCodePoint(r),size:6};if(x(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=E(n,t+8);if(_(e))return{value:String.fromCodePoint(r,e),size:12}}throw h(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}(e,o):function(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw h(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}(e,o);a+=t.value,o+=t.size,s=o;continue}if(10===r||13===r)break;if(v(r))++o;else if(b(n,o))o+=2;else throw h(e.source,o,`Invalid character within String: ${w(e,o)}.`)}throw h(e.source,o,"Unterminated string.")}(e,o)}if((0,g.yp)(t)||45===t)return function(e,t,n){let r=e.source.body,o=t,s=n,a=!1;if(45===s&&(s=r.charCodeAt(++o)),48===s){if(s=r.charCodeAt(++o),(0,g.yp)(s))throw h(e.source,o,`Invalid number, unexpected digit after 0: ${w(e,o)}.`)}else o=C(e,o,s),s=r.charCodeAt(o);if(46===s&&(a=!0,s=r.charCodeAt(++o),o=C(e,o,s),s=r.charCodeAt(o)),(69===s||101===s)&&(a=!0,(43===(s=r.charCodeAt(++o))||45===s)&&(s=r.charCodeAt(++o)),o=C(e,o,s),s=r.charCodeAt(o)),46===s||(0,g.un)(s))throw h(e.source,o,`Invalid number, expected digit but got: ${w(e,o)}.`);return k(e,a?i.FLOAT:i.INT,t,o,r.slice(t,o))}(e,o,t);if((0,g.un)(t))return function(e,t){let n=e.source.body,r=n.length,o=t+1;for(;o<r;){let e=n.charCodeAt(o);if((0,g.xr)(e))++o;else break}return k(e,i.NAME,t,o,n.slice(t,o))}(e,o);throw h(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":v(t)||b(n,o)?`Unexpected character: ${w(e,o)}.`:`Invalid character: ${w(e,o)}.`)}return k(e,i.EOF,r,r)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===i.COMMENT);return e}}function v(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function b(e,t){return x(e.charCodeAt(t))&&_(e.charCodeAt(t+1))}function x(e){return e>=55296&&e<=56319}function _(e){return e>=56320&&e<=57343}function w(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return i.EOF;
2731if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function k(e,t,n,r,i){let o=e.line,s=1+n-e.lineStart;return new p.ou(t,n,r,o,s,i)}function C(e,t,n){if(!(0,g.yp)(n))throw h(e.source,t,`Invalid number, expected digit but got: ${w(e,t)}.`);let r=e.source.body,i=t+1;for(;(0,g.yp)(r.charCodeAt(i));)++i;return i}function E(e,t){return A(e.charCodeAt(t))<<12|A(e.charCodeAt(t+1))<<8|A(e.charCodeAt(t+2))<<4|A(e.charCodeAt(t+3))}function A(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var S=n(6505);class T{constructor(e,t={}){let n=(0,S._)(e)?e:new S.k(e);this._lexer=new y(n),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(i.NAME);return this.node(e,{kind:f.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:f.b.DOCUMENT,definitions:this.many(i.SOF,this.parseDefinition,i.EOF)})}parseDefinition(){if(this.peek(i.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===i.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw h(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(i.BRACE_L))return this.node(t,{kind:f.b.OPERATION_DEFINITION,operation:p.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType();return this.peek(i.NAME)&&(e=this.parseName()),this.node(t,{kind:f.b.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(i.NAME);switch(e.value){case"query":return p.cE.QUERY;case"mutation":return p.cE.MUTATION;case"subscription":return p.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(i.PAREN_L,this.parseVariableDefinition,i.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:f.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(i.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(i.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(i.DOLLAR),this.node(e,{kind:f.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:f.b.SELECTION_SET,selections:this.many(i.BRACE_L,this.parseSelection,i.BRACE_R)})}parseSelection(){return this.peek(i.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(i.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:f.b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(i.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(i.PAREN_L,t,i.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(i.COLON),this.node(t,{kind:f.b.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(i.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(i.NAME)?this.node(e,{kind:f.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:f.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:f.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:f.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case i.BRACKET_L:return this.parseList(e);case i.BRACE_L:return this.parseObject(e);case i.INT:return this.advanceLexer(),this.node(t,{kind:f.b.INT,value:t.value});case i.FLOAT:return this.advanceLexer(),this.node(t,{kind:f.b.FLOAT,value:t.value});case i.STRING:case i.BLOCK_STRING:return this.parseStringLiteral();case i.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:f.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:f.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:f.b.NULL});default:return this.node(t,{kind:f.b.ENUM,value:t.value})}case i.DOLLAR:if(e){if(this.expectToken(i.DOLLAR),this._lexer.token.kind===i.NAME){let e=this._lexer.token.value;throw h(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:f.b.STRING,value:e.value,block:e.kind===i.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:f.b.LIST,values:this.any(i.BRACKET_L,t,i.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:f.b.OBJECT,fields:this.any(i.BRACE_L,t,i.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(i.COLON),this.node(t,{kind:f.b.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(i.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(i.AT),this.node(t,{kind:f.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(i.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(i.BRACKET_R),e=this.node(t,{kind:f.b.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(i.BANG)?this.node(t,{kind:f.b.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:f.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(i.STRING)||this.peek(i.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(i.BRACE_L,this.parseOperationTypeDefinition,i.BRACE_R);return this.node(e,{kind:f.b.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(i.COLON);let n=this.parseNamedType();
2731return this.node(e,{kind:f.b.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:f.b.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:f.b.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(i.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(i.BRACE_L,this.parseFieldDefinition,i.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(i.COLON);let o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:f.b.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(i.PAREN_L,this.parseInputValueDef,i.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(i.COLON);let o=this.parseTypeReference();this.expectOptionalToken(i.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:f.b.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:f.b.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:f.b.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(i.EQUALS)?this.delimitedMany(i.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:f.b.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(i.BRACE_L,this.parseEnumValueDefinition,i.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:f.b.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw h(this._lexer.source,this._lexer.token.start,`${j(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:f.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(i.BRACE_L,this.parseInputValueDef,i.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===i.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(i.BRACE_L,this.parseOperationTypeDefinition,i.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:f.b.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:f.b.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:f.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:f.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:f.b.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:f.b.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:f.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(i.AT);let n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:f.b.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(i.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(r,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p.aZ(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw h(this._lexer.source,t.start,`Expected ${N(e)}, found ${j(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===i.NAME&&t.value===e)this.advanceLexer();else throw h(this._lexer.source,t.start,`Expected "${e}", found ${j(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===i.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return h(this._lexer.source,t.start,`Unexpected ${j(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==i.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw h(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function j(e){let t=e.value;return N(e.kind)+(null!=t?` "${t}"`:"")}function N(e){return e===i.BANG||e===i.DOLLAR||e===i.AMP||e===i.PAREN_L||e===i.PAREN_R||e===i.SPREAD||e===i.COLON||e===i.EQUALS||e===i.AT||e===i.BRACKET_L||e===i.BRACKET_R||e===i.BRACE_L||e===i.PIPE||e===i.BRACE_R?`"${e}"`:e}var O=new Map,I=new Map,D=!0,M=!1;function L(e){return e.replace(/[\s,]+/g," ").trim()}function R(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]}),function(e){var t=L(e);if(!O.has(t)){var n,r,i,s,a,l=new T(e,{experimentalFragmentVariables:M,allowLegacyFragmentVariables:M}).parseDocument();if(!l||"Document"!==l.kind)throw Error("Not a valid GraphQL document.");O.set(t,((s=new Set((n=new Set,r=[],l.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,o=L((t=e.loc).source.body.substring(t.start,t.end)),s=I.get(i);s&&!s.has(o)?D&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||I.set(i,s=new Set),s.add(o),n.has(o)||
2731(n.add(o),r.push(e))}else r.push(e)}),i=(0,o.Cl)((0,o.Cl)({},l),{definitions:r})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var n=e[t];n&&"object"==typeof n&&s.add(n)})}),(a=i.loc)&&(delete a.startToken,delete a.endToken),i))}return O.get(t)}(r)}var P={gql:R,resetCaches:function(){O.clear(),I.clear()},disableFragmentWarnings:function(){D=!1},enableExperimentalFragmentVariables:function(){M=!0},disableExperimentalFragmentVariables:function(){M=!1}};!function(e){e.gql=P.gql,e.resetCaches=P.resetCaches,e.disableFragmentWarnings=P.disableFragmentWarnings,e.enableExperimentalFragmentVariables=P.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=P.disableExperimentalFragmentVariables}(R||(R={})),R.default=R},86286:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,fG:()=>l,rQ:()=>u});var r=n(37876),i=n(45241),o=n(49995),s=n(10969),a=n(72569);function l(e,t){return(0,o.A)("flex flex-wrap gap-x-4 border-b",(0,s.CI)(e).cardLineColor,t)}function u(e,t){let n=(0,s.CI)(t);return(0,o.A)("font-semibold whitespace-nowrap border-b-4 mx-[2px] py-2 px-1 transition rounded-t focus:outline-none focus-visible:ring-2",n.focusVisibleRingColor,e?(0,o.A)(n.accentBorderColor,n.accentTextColor):(0,o.A)("border-transparent",n.cardMutedTextColor,n.accentBorderHoverColor,n.cardTextHoverColor))}function c(e){let{className:t,onChange:n,panelClassName:c,renderPanel:d,screen:h,tabs:p}=e,f=(0,a.jz)(e.themeArea),m=(0,s.CI)(f),g=Math.max(0,p.findIndex(e=>e.screen===h));return(0,r.jsxs)(i.fu,{selectedIndex:g,onChange:function(e){let t=p[e];t&&n&&n(t.screen)},"data-sentry-element":"TabGroup","data-sentry-component":"Tabs","data-sentry-source-file":"Tabs.tsx",children:[(0,r.jsx)(i.wb,{className:l(f,t),"data-sentry-element":"TabList","data-sentry-source-file":"Tabs.tsx",children:p.map(e=>(0,r.jsx)(i.oz,{className:({selected:e})=>u(e,f),children:e.content},String(e.screen)))}),d&&(0,r.jsx)(i.T2,{children:p.map(e=>(0,r.jsx)(i.Kp,{className:(0,o.A)("rounded focus:outline-none focus-visible:ring-2",m.focusVisibleRingColor,c),children:e.screen===h?d(e.screen):null},String(e.screen)))})]})}},86637:(e,t,n)=>{"use strict";n.d(t,{A:()=>Q});var r=n(37876),i=n(14232),o=n(10969),s=n(49995),a=n(24044),l=n(5811);let u=(0,l.PA)(function(e){let{disabled:t,onClick:n,textAreaRef:i}=e;return(0,r.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),n(),i.current&&i.current.focus()},disabled:t,className:(0,s.A)("flex flex-col items-center w-8",t?"text-[var(--group-primary-card-text-muted-color)]":"text-[var(--group-primary-card-text-color)] hover:text-[var(--group-primary-card-text-hover-color)]"),"data-sentry-component":"SendButton","data-sentry-source-file":"SendButton.tsx",children:(0,r.jsx)(a.A,{className:"fill-current","data-sentry-element":"SendIcon","data-sentry-source-file":"SendButton.tsx"})})});var c=n(36568),d=n(36767),h=n(42383),p=n(30139),f=n(94829),m=n(22767);function g(e){let{messageText:t="",onMessageChange:n,onSubmit:o,placeholder:a,style:l,autoFocus:g=!1,shouldFocusInput:y=!1,enterToNewline:v=!1,hideSendButton:b=!1,pendingAttachments:x=[],onAttachFile:_,onRemoveAttachment:w,uploading:k=!1}=e,C=(0,i.useRef)(void 0),E=(0,i.useRef)(null),[A,S]=(0,i.useState)(24),[T,j]=(0,i.useState)(null),[N,O]=(0,i.useState)(!1),I="undefined"==typeof navigator?"":navigator.userAgent,D=x.length>0,M=(t||D)&&!k;function L(){M&&(o&&o(t.trim()),S(24))}async function R(e){return j(null),_&&_(e),!0}function P(e){let t=window.scrollY;e.focus(),window.scrollTo(0,t)}return(0,i.useEffect)(()=>{y&&C.current&&P(C.current)},[y]),(0,r.jsxs)("form",{className:"Compose border border-[var(--group-primary-card-line-color)] rounded-xl m-4",onSubmit:function(e){e.preventDefault(),L()},style:l,"data-sentry-component":"Compose","data-sentry-source-file":"Compose.tsx",children:[(0,r.jsxs)("div",{className:` 2732 flex flex-col gap-y-4 2733 mt-2 md:mb-4 mb-4 mx-4 2734 bg-gray-lighter 2735 rounded-lg 2736 py-2 px-2 2737 relative 2738 `,children:[(0,r.jsx)("textarea",{placeholder:a||"Type a message...",className:(0,s.A)("message-compose","border-box focus:border-0 border-0","bg-gray-lighter","text-black"),style:{maxHeight:"20em",height:`${A}px`,outline:"none",resize:"none"},name:"message",value:t,onKeyDown:function(e){"Enter"===e.key&&(e.shiftKey||e.altKey||e.ctrlKey||v||(0,c.Fr)(I)||(e.preventDefault(),L()))},onChange:function(e){let t=e.target.value.trimStart();t.length<2?S(24):S(e.target.scrollHeight),n&&n(t)},ref:function(e){C.current=e,e&&g&&P(e)},role:"textbox"}),D&&w&&(0,r.jsx)(p.A,{attachments:x,onRemove:w})]}),(0,r.jsx)(h.zp,{onChange:R,className:"hidden",name:"attachmentFile",inputRef:E,onError:j,onProcessingChange:O,"data-sentry-element":"FileInput","data-sentry-source-file":"Compose.tsx"}),T&&(0,r.jsx)(f.A,{type:"warning",onClose:()=>j(null),className:"mx-1 md:mx-4 mb-2",children:T}),(0,r.jsxs)("div",{className:"flex justify-between mx-1 md:mx-4 mb-2",children:[_&&(0,r.jsxs)("div",{className:"flex items-center gap-x-2 ml-2",children:[(0,r.jsx)("button",{type:"button",onClick:function(){E.current?.click()},className:"flex flex-col items-center w-6 text-[var(--group-primary-card-text-muted-color)] hover:text-[var(--group-primary-card-text-hover-color)]","aria-label":"Attach image",children:(0,r.jsx)(d.A,{className:"w-5 h-5"})}),N&&(0,r.jsx)(m.A,{size:20,withDelay:!1})]}),!b&&(0,r.jsx)(u,{onClick:L,disabled:!M,textAreaRef:C,userAgent:I})]})]})}var y=n(22960),v=n(82037),b=n(5878),x=n(78950);function _({isNamed:e,isOpen:t,onClose:n,onLeave:i}){return(0,r.jsx)(x.A,{isOpen:t,onClose:n,"data-sentry-element":"SimpleModal","data-sentry-component":"LeaveConfirmModal","data-sentry-source-file":"LeaveConfirmModal.tsx",children:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("h2",{className:"text-xl font-bold mb-4",children:e?"Leave channel":"Leave conversation"}),(0,r.jsx)("p",{className:"mb-6 text-gray-700",children:e?"Are you sure you want to leave this channel? Only an administrator can add you back.":"Are you sure you want to leave this conversation? Only other participants can add you back."}),(0,r.jsx)(h.fC,{cancel:{onClick:n},onClick:i,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"LeaveConfirmModal.tsx",children:"Leave"})]})})}function w({isOpen:e,onClose:t,onArchive:n}){return(0,r.jsx)(x.A,{isOpen:e,onClose:t,"data-sentry-element":"SimpleModal","data-sentry-component":"ArchiveConfirmModal","data-sentry-source-file":"ArchiveConfirmModal.tsx",children:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("h2",{className:"text-xl font-bold mb-4",children:"Archive channel"}),(0,r.jsx)("p",{className:"mb-6 text-gray-700",children:"Are you sure you want to archive this channel? It will no longer be visible to members."}),(0,r.jsx)(h.fC,{cancel:{onClick:t},onClick:n,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"ArchiveConfirmModal.tsx",children:"Archive"})]})})}var k=n(85819),C=n(44650),E=n(33881);function A({isOpen:e,onClose:t,conversationId:n,currentName:o,onRenamed:s}){let[a,l]=(0,i.useState)(o),[u,c]=(0,k.X)(C.ot);async function d(e){e.preventDefault(),a.trim()&&((await u({variables:{id:n,input:{name:a.trim()}}},"updateNamedConversation")).hasError||(s(),p()))}function p(){c.reset(),t()}return(0,i.useEffect)(()=>{e&&l(o)},[e,o]),(0,r.jsx)(x.A,{isOpen:e,onClose:p,"data-sentry-element":"SimpleModal","data-sentry-component":"RenameChannelModal","data-sentry-source-file":"RenameChannelModal.tsx",children:(0,r.jsxs)("div",{className:"flex flex-col gap-6 font-montserrat p-2",children:[(0,r.jsx)("h2",{className:"text-xl font-bold text-center",children:"Rename
2738Channel"}),(0,r.jsxs)("form",{onSubmit:d,className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Name"}),(0,r.jsx)(h.ks,{type:"text",value:a,onChange:e=>l(e.target.value),placeholder:"Enter channel name...",autoFocus:!0,"data-sentry-element":"TextInput","data-sentry-source-file":"RenameChannelModal.tsx"})]}),(0,r.jsx)(E.A,{mutationInfo:c,"data-sentry-element":"AshMutationErrors","data-sentry-source-file":"RenameChannelModal.tsx"}),(0,r.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,r.jsx)("button",{type:"button",onClick:p,className:"px-4 py-2 text-sm text-gray-600 hover:text-gray-800",children:"Cancel"}),(0,r.jsx)(h.rA,{type:"submit",disabled:!a.trim()||c.loading,"data-sentry-element":"ActionButton","data-sentry-source-file":"RenameChannelModal.tsx",children:"Rename"})]})]})]})})}var S=n(56750),T=n(88765),j=n(77237),N=n(1132),O=n(64558),I=n(32752);function D({isNamed:e,isSilenced:t,hasSilenceOption:n,canManageChannel:i,onLeaveClick:o,onSilenceToggle:s,onRenameClick:a,onArchiveClick:l}){let u=[...n?[{label:t?"Enable notifications":"Silence notifications",icon:t?S.A:T.A,handleClick:s}]:[],...i&&e&&a?[{label:"Rename channel",icon:j.A,handleClick:a}]:[],...i&&e&&l?[{label:"Archive channel",icon:N.A,handleClick:l}]:[],{label:e?"Leave channel":"Leave conversation",icon:O.A,handleClick:o}];return(0,r.jsx)("div",{className:"px-1","data-sentry-component":"ChannelEllipsisMenu","data-sentry-source-file":"ChannelEllipsisMenu.tsx",children:(0,r.jsx)(I.A,{ariaLabel:"Channel options",buttonClassName:"p-1 rounded text-[var(--group-primary-card-text-muted-color)] hover:text-[var(--group-primary-card-text-hover-color)]",items:u,"data-sentry-element":"ActionMenu","data-sentry-source-file":"ChannelEllipsisMenu.tsx"})})}var M=n(10289);function L({onClick:e}){return(0,r.jsxs)("button",{onClick:e,className:"flex items-center gap-1 text-sm hover:text-[var(--group-primary-card-text-hover-color)] px-2 py-1 pr-4 rounded","data-sentry-component":"MembersButton","data-sentry-source-file":"MembersButton.tsx",children:[(0,r.jsx)(M.A,{className:"size-5","data-sentry-element":"UserGroupIcon","data-sentry-source-file":"MembersButton.tsx"}),(0,r.jsx)("span",{className:"hidden md:inline",children:"Members"})]})}var R=n(10734);function P({conversation:e,onManageMembers:t}){let n=({children:e,className:n})=>(0,r.jsx)("button",{className:(0,s.A)(n,"transition"),onClick:t,"data-sentry-component":"Button","data-sentry-source-file":"NamedChannelInfo.tsx",children:e});return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"flex flex-grow items-center",children:[(0,r.jsx)(n,{className:"md:p-4","data-sentry-element":"Button","data-sentry-source-file":"NamedChannelInfo.tsx",children:(0,r.jsx)("div",{className:` 2739 flex items-center justify-center w-[50px] h-[50px] rounded-full 2740 bg-[var(--group-button-background-color)] 2741 hover:bg-[var(--group-button-background-hover-color)] 2742 text-[var(--group-button-text-color)] 2743 `,children:(0,r.jsx)(R.A,{className:"size-6","data-sentry-element":"ChatBubbleLeftRightIcon","data-sentry-source-file":"NamedChannelInfo.tsx"})})}),(0,r.jsxs)(n,{className:` 2744 flex flex-col justify-center ml-2 md:ml-4 flex-grow 2745 hover:text-[var(--group-primary-card-text-hover-color)] 2746 `,"data-sentry-element":"Button","data-sentry-source-file":"NamedChannelInfo.tsx",children:[(0,r.jsx)("span",{className:"font-bold",children:e?.name}),e?.participants&&(0,r.jsxs)("span",{className:"text-xs text-gray-500",children:[e.participants.length," ",1===e.participants.length?"member":"members"]})]})]})})}var F=n(80903),B=n(50834);function $({secondParticipants:e,onManageMembers:t}){if(!e)return null;let n=e[0];if(!n)return null;let i=e.slice(0,Math.min(4,e.length)),o=e.length>1,s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"md:p-4",style:{width:o?"7em":"3em"},children:(0,r.jsx)(F.XE,{members:i.map(e=>({id:e.id,name:e.name,photoUrl:e.photo?.thumbUrl})),memberCount:i.length,photoSize:50,containerClassName:"flex",className:"rounded-full ring-2 ring-white",maxDisplay:4,spacing:-25})}),(0,r.jsx)("div",{className:"flex flex-col justify-center ml-2 md:ml-8 font-bold flex-grow",children:(0,r.jsxs)("div",{className:"flex flex-wrap justify-start",children:[(0,r.jsx)("span",{className:"mr-2",children:n.name}),(0,r.jsx)(B.A,{pronouns:n.pronouns}),o&&`+ ${e.length-1} more`]})})]});return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("button",{className:"flex flex-grow",onClick:t,children:s})})}
2746function q(e){let{conversation:t,secondParticipants:n,style:o}=e,s=t?.conversationStyle===y.H.NAMED,[a,l]=(0,i.useState)(!1),[u,c]=(0,i.useState)(!1),[d,h]=(0,i.useState)(!1),[p,f]=(0,i.useState)(!1),[m,g]=(0,i.useState)(y.oR[0].value);async function x(){e.silenceNotifications&&await e.silenceNotifications(m),f(!1)}async function k(){await e.enableNotifications?.()}return(0,r.jsxs)("div",{className:` 2747 ConversationHeader 2748 flex justify-between 2749 border-b border-[var(--group-primary-card-line-color)] 2750 text-[var(--group-primary-card-text-color)] 2751 pb-2 2752 `,style:o,"data-sentry-component":"ConversationHeader","data-sentry-source-file":"ConversationHeader.tsx",children:[(0,r.jsx)(v.HI,{onClick:e.onClose,className:"md:hidden items-start mt-2","data-sentry-element":"BackArrow","data-sentry-source-file":"ConversationHeader.tsx"}),(0,r.jsxs)("div",{className:"flex flex-grow items-center",children:[s?(0,r.jsx)(P,{conversation:t,onManageMembers:e.onManageMembers}):(0,r.jsx)($,{secondParticipants:n,onManageMembers:e.onManageMembers}),e.onManageMembers&&(s||1!==(n&&n[0]?n.length:null))?(0,r.jsx)(L,{onClick:e.onManageMembers,"data-sentry-element":"MembersButton","data-sentry-component":"membersButton","data-sentry-source-file":"ConversationHeader.tsx"}):null,e.onLeaveChannel?(0,r.jsx)(D,{isNamed:s,isSilenced:e.isSilenced,hasSilenceOption:!!e.silenceNotifications,canManageChannel:e.canManageChannel,onLeaveClick:()=>l(!0),onSilenceToggle:e.isSilenced?k:()=>f(!0),onRenameClick:e.onConversationRenamed?()=>h(!0):void 0,onArchiveClick:e.onArchiveChannel?()=>c(!0):void 0,"data-sentry-element":"ChannelEllipsisMenu","data-sentry-component":"ellipsisMenu","data-sentry-source-file":"ConversationHeader.tsx"}):null]}),(0,r.jsx)(_,{isNamed:s,isOpen:a,onClose:()=>l(!1),onLeave:function(){l(!1),e.onLeaveChannel?.()},"data-sentry-element":"LeaveConfirmModal","data-sentry-source-file":"ConversationHeader.tsx"}),(0,r.jsx)(w,{isOpen:u,onClose:()=>c(!1),onArchive:function(){c(!1),e.onArchiveChannel?.()},"data-sentry-element":"ArchiveConfirmModal","data-sentry-source-file":"ConversationHeader.tsx"}),t?.id&&(0,r.jsx)(A,{isOpen:d,onClose:()=>h(!1),conversationId:t.id,currentName:t.name||"",onRenamed:()=>{h(!1),e.onConversationRenamed?.()}}),(0,r.jsx)(b.A,{isOpen:p,onClose:()=>f(!1),onConfirm:x,isSilencing:e.isSilencing||!1,selectedDuration:m,setSelectedDuration:g,"data-sentry-element":"SilenceNotificationsModal","data-sentry-source-file":"ConversationHeader.tsx"})]})}var V=n(80327),z=n(43982),U=n(29428),H=n(56959);let W=(0,l.PA)(function(e){let t,{currentMemberId:n,message:i,moreThanTwo:o}=e,a=i.actorType===y.oi.BOT,l=!a&&i.sender.id===n;t=l?"bg-[var(--group-accent-lighter)] self-end":a?"bg-gray-50 border border-gray-200":"bg-secondary-100";let u=`rounded-lg px-2 py-1 w-auto max-w-[calc(100%-3rem)] mb-1 ${t}`,c=(0,U.I)({onShow:()=>e.onShow?.(i.id),onHide:()=>e.onHide?.(i.id),threshold:1}),d=null;if(null===i.elapsed||i.elapsed>60){let e=(0,z.Mg)(i.insertedAt);d=(0,r.jsx)("div",{className:"text-[var(--group-primary-card-text-color)] text-center mt-4 mb-2 text-sm",children:e})}let h=null;if(o&&!l||a){let e=a?"GroupFlow Support Bot":i.sender.name;h=(0,r.jsxs)("div",{className:(0,s.A)("text-gray-dark text-sm flex items-center gap-1",l?"self-end":null),children:[a&&(0,r.jsx)("span",{children:"\uD83E\uDD16"}),e]})}return(0,r.jsxs)(r.Fragment,{children:[d,h,(0,r.jsxs)("div",{id:`message-${i.id}`,className:(0,s.A)(u,"text-black",(0,s.A)(l?"self-end":""),"user-text w-fit"),children:[i.body&&(0,r.jsx)(V.A,{text:i.body}),i.attachments&&i.attachments.length>0&&(0,r.jsx)(H.A,{attachments:i.attachments})]}),(0,r.jsx)("div",{ref:c,style:{height:"1px"}})]})});function G({messages:e,currentMemberId:t,moreThanTwo:n,messagesElementRef:o,onMessagesVisibilityChange:s}){let a=(0,i.useRef)(new Set);function l(e){a.current.add(e),s?.(Array.from(a.current))}function u(e){a.current.delete(e),s?.(Array.from(a.current))}return(0,r.jsx)("div",{className:"MessageList messages flex flex-col py-2 overflow-y-auto md:px-4",style:{flex:"1 1 100%",overflowWrap:"break-word"},ref:o,"data-sentry-component":"MessageList","data-sentry-source-file":"MessageList.tsx",children:e&&e.map(e=>(0,r.jsx)(W,{message:e,currentMemberId:t,moreThanTwo:n,onShow:l,onHide:u},e.id))})}var K=n(63853),J=n(37267);function Q(e){let{channelStore:t,conversationId:n,className:a,currentMemberId:l,messages:u,messagesLoading:c,newRecipients:d}=e,[h,p]=(0,i.useState)(""),[f,v]=(0,i.useState)(!1),{pendingAttachments:b,addAttachment:x,removeAttachment:_,clearAttachments:w,getImageIds:k,hasUploadsInProgress:C}=(0,J.F)(),{conversations:E}=t,A=null;n&&E&&(A=E.find(e=>e.id===n)||null);let{participants:S}=A||{},T=A?.conversationStyle===y.H.NAMED||S&&S.length>2||!1,j=(0,y.Wg)(u),{messagesElementRef:N}=function({waitingAfterSubmit:e,messages:t}){let n=(0,i.useRef)({isScrolledAtBottom:!1,bodyLastSize:null,conversationLastSize:null,initialLoad:!0}),r=(0,i.useRef)({messages:null}),o=(0,i.useRef)({messages:null}),s=(0,i.useCallback)(()=>{let e=document.querySelector("div.messages");e&&e.scrollTo({top:e.scrollHeight})},[]),a=(0,K.YQ)(s,100),l=(e,t)=>
2752e.inlineSize===t.inlineSize&&e.blockSize===t.blockSize,u=(0,i.useCallback)(e=>{let t=e.target,r=t.scrollTop+t.clientHeight>=t.scrollHeight-1;n.current.isScrolledAtBottom=r},[]),c=(0,K.YQ)(u,100),d=(0,i.useCallback)(e=>{let t=e[0],{contentBoxSize:r}=t,i=r[0];if("BODY"===t.target.tagName){if(n.current.bodyLastSize&&l(n.current.bodyLastSize,i))return;n.current.bodyLastSize=i}else{if(n.current.conversationLastSize&&l(n.current.conversationLastSize,i))return;n.current.conversationLastSize=i,n.current.isScrolledAtBottom&&a()}let o=document.querySelector("body").offsetHeight,s=document.querySelector("div.Conversation");if(s){let e=document.querySelector("section.MessagingPage"),t=e&&getComputedStyle(e),n=t&&parseInt(t.paddingBottom)||0,r=o-s.offsetTop-n;s.style.maxHeight=`${r}px`}},[]),h=(0,K.YQ)(d,100),p=(0,i.useCallback)(e=>{if(!e){r.current.messages&&r.current.messages.disconnect(),r.current.body&&r.current.body.disconnect();return}let t=document.querySelector("div.messages"),n=new ResizeObserver(h).observe(t),i=document.querySelector("body");r.current={messages:n,body:new ResizeObserver(h).observe(i)};let s=e=>{c(e)};o.current.messages=s,t.addEventListener("scroll",s)},[h,c]);return(0,i.useEffect)(()=>{e||n.current.isScrolledAtBottom?a():t&&t.length>0&&n.current.initialLoad&&setTimeout(()=>{n.current.initialLoad=!1,a()},500)},[t,e,a]),{messagesElementRef:p}}({waitingAfterSubmit:f,messages:j});(0,i.useEffect)(()=>{f&&v(!1)},[u]);let O=o.Ay.itemBorder.split(" ").map(e=>`md:${e}`).join(" "),I=A?.participants.filter(e=>e.id!==l)||d?.map(e=>({name:"",pronouns:[],photo:null,title:"",...e.profile,id:e.id}))||null;return l?c&&n?(0,r.jsx)("div",{className:"flex-1 flex justify-center items-center",children:(0,r.jsx)(m.A,{})}):(0,r.jsxs)("div",{className:(0,s.A)("Conversation",o.Ay.primaryCard,O,a,"grow h-full flex flex-col px-4 pt-4 md:pt-0 md:px-0"),"data-sentry-component":"Conversation","data-sentry-source-file":"Conversation.tsx",children:[(0,r.jsx)(q,{conversation:A,canManageChannel:e.canManageChannel,enableNotifications:e.enableNotifications,isEnabling:e.isEnabling,isSilenced:e.isSilenced,isSilencing:e.isSilencing,onArchiveChannel:e.onArchiveChannel,onClose:e.onClose,onConversationRenamed:e.onConversationRenamed,onLeaveChannel:e.onLeaveChannel,onManageMembers:e.onManageMembers,secondParticipants:I,silenceNotifications:e.silenceNotifications,style:{flex:"0 1 auto"},"data-sentry-element":"ConversationHeader","data-sentry-source-file":"Conversation.tsx"}),(0,r.jsx)(G,{messages:j,currentMemberId:l,moreThanTwo:T,messagesElementRef:N,onMessagesVisibilityChange:e.onMessagesVisibilityChange,"data-sentry-element":"MessageList","data-sentry-source-file":"Conversation.tsx"}),(0,r.jsx)(g,{messageText:h,onMessageChange:p,onSubmit:function(t){let n=k();e.onSubmit(t,n.length>0?n:void 0),p(""),w(),v(!0)},style:{flex:"0 1 auto"},autoFocus:!0,pendingAttachments:b,onAttachFile:x,onRemoveAttachment:_,uploading:C,"data-sentry-element":"Compose","data-sentry-source-file":"Conversation.tsx"})]}):null}},86879:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(49995),o=n(72569);function s(e){let{as:t="h3",children:n,className:s,size:a="lg"}=e,l=(0,o.Eh)()===o.Q.ADMIN?"text-primary-950":"text-[var(--group-heading-text-color)]";return(0,r.jsx)(t,{className:(0,i.A)("font-bold","sm"===a?"":"text-[1.4375rem]",l,s),"data-sentry-element":"Component","data-sentry-component":"SectionHeading","data-sentry-source-file":"SectionHeading.tsx",children:n})}},86941:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(14232),i=n(82030),o=n(64671);function s(e){let t=(0,o._)(e),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,i._)(()=>{n.current&&t()})}),[t])}},87089:(e,t,n)=>{"use strict";let r;n.d(t,{yJ:()=>ok});var i,o,s,a,l,u=n(37876),c=n(5811),d=n(72569),h=n(49995),p=n(42383),f=n(47027),m=n(10969),g=n(88992),y=n(31695),v=n(99082),b=n(73382);let x=(0,c.PA)(function(e){let{onClose:t}=e,n=(0,g.mN)({defaultValues:{name:""}}),r=(0,y.X)({form:n,formToParams:function(e){return{type:b.nz.Header}},populateForm:function(e){},onClose:t}),{loading:i,handleSubmit:o,cancelProps:s}=r;return(0,u.jsx)("div",{className:(0,h.A)("max-w-screen-md",m.Ay.formClass),"data-sentry-component":"HeaderManagement","data-sentry-source-file":"HeaderManagement.tsx",children:(0,u.jsxs)("form",{onSubmit:o,className:m.Ay.formClass,children:[(0,u.jsx)(f.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"HeaderManagement.tsx",children:"Currently, there's nothing to configure in the header. The logo is provided by your image settings, and the navigation is managed separately."}),(0,u.jsx)(v.D,{usingContentEdit:r,successMessage:"Header saved","data-sentry-element":"ApiResults","data-sentry-source-file":"HeaderManagement.tsx"}),(0,u.jsx)(p.fC,{cancel:s,saving:i,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"HeaderManagement.tsx"})]})})});var _=n(4374),w=n(48230),k=n.n(w),C=n(13220),E=n(54587),A=n.n(E);
2752let S=(0,c.PA)(function(e){let{contentItem:t}=e,n=(0,C.Jc)(),r=n.logos?.defaultLogo;return(0,u.jsx)("section",{className:(0,h.A)("header-bar flex justify-between items-stretch relative","bg-[var(--group-header-background-color)]",t&&`content-item-${t?.id}`),"data-sentry-component":"HeaderTwoColumn","data-sentry-source-file":"HeaderTwoColumn.tsx",children:(0,u.jsxs)("div",{className:"header-bar-inner flex justify-between items-stretch w-full",children:[(0,u.jsx)(k(),{href:"/",className:"linked-logo block relative flex-1","data-sentry-element":"Link","data-sentry-source-file":"HeaderTwoColumn.tsx",children:r&&(0,u.jsx)(A(),{src:r,alt:"Logo",width:200,height:200,className:"logo absolute w-auto h-full"})}),(0,u.jsx)(_.A,{navMenuSlug:"marketing-primary-nav",className:"navigation","data-sentry-element":"PrimaryNavigation","data-sentry-source-file":"HeaderTwoColumn.tsx"})]})})});var T=n(53257);let j=(0,c.PA)(function(e){let{contentItem:t}=e,n=(0,C.Jc)(),r=n.logos?.defaultLogo;return(0,u.jsx)("section",{className:(0,h.A)("header-bar flex justify-between items-stretch relative","bg-[var(--group-header-background-color)]",t&&`content-item-${t.id}`),"data-sentry-component":"HeaderThreeColumn","data-sentry-source-file":"HeaderThreeColumn.tsx",children:(0,u.jsxs)("div",{className:"header-bar-inner flex justify-between items-stretch w-full",children:[(0,u.jsx)(_.A,{navMenuSlug:"marketing-primary-nav",className:"navigation flex items-center",splitLinksType:T.kZ.GENERIC,"data-sentry-element":"PrimaryNavigation","data-sentry-source-file":"HeaderThreeColumn.tsx"}),(0,u.jsx)(k(),{href:"/",className:"linked-logo flex justify-center items-center relative flex-1","data-sentry-element":"Link","data-sentry-source-file":"HeaderThreeColumn.tsx",children:r&&(0,u.jsx)(A(),{src:r,alt:"Logo",width:200,height:200,className:"logo absolute w-auto h-full"})}),(0,u.jsx)(_.A,{navMenuSlug:"marketing-primary-nav",className:"navigation flex items-center",splitLinksType:T.kZ.SPECIAL,"data-sentry-element":"PrimaryNavigation","data-sentry-source-file":"HeaderThreeColumn.tsx"})]})})}),N=(0,c.PA)(function({contentItem:e}){return"three-column"===e?.attributes?.find(e=>"header-layout"===e.name)?.value?(0,u.jsx)(j,{"data-sentry-element":"HeaderThreeColumn","data-sentry-component":"Header","data-sentry-source-file":"Header.tsx"}):(0,u.jsx)(S,{contentItem:e,"data-sentry-element":"HeaderTwoColumn","data-sentry-component":"Header","data-sentry-source-file":"Header.tsx"})}),O={component:N,type:b.nz.Header,editComponent:x,editLabel:"Header"};var I=n(93755),D=n(14232),M=n(38537),L=n(9095),R=n(52095),P=n(82037),F=n(78950),B=n(99827),$=n(87232),q=n(85819),V=n(6195);let z={"two-column":(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("svg",{width:"160",height:"32",viewBox:"0 0 160 32",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("rect",{x:"0",y:"0",width:"160",height:"32",fill:"#f3f4f6",stroke:"#d1d5db",strokeWidth:"1",rx:"3"}),(0,u.jsx)("rect",{x:"6",y:"7",width:"38",height:"18",fill:"#d1d5db",rx:"2"}),(0,u.jsx)("rect",{x:"50",y:"7",width:"104",height:"18",fill:"#d1d5db",rx:"2"})]}),(0,u.jsx)("span",{children:"Two Column"})]}),"three-column":(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("svg",{width:"160",height:"32",viewBox:"0 0 160 32",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("rect",{x:"0",y:"0",width:"160",height:"32",fill:"#f3f4f6",stroke:"#d1d5db",strokeWidth:"1",rx:"3"}),(0,u.jsx)("rect",{x:"6",y:"7",width:"52",height:"18",fill:"#d1d5db",rx:"2"}),(0,u.jsx)("rect",{x:"64",y:"7",width:"32",height:"18",fill:"#d1d5db",rx:"2"}),(0,u.jsx)("rect",{x:"102",y:"7",width:"52",height:"18",fill:"#d1d5db",rx:"2"})]}),(0,u.jsx)("span",{children:"Three Column"})]})},U=(0,c.PA)(function(e){let{contentItem:t,parentId:n,onClose:r,onSave:i}=e,[o]=(0,q.X)(V.Jt),[s]=(0,q.X)(V.o5),a=(0,M.uV)(),[l,c]=(0,D.useState)(!1),[d,f]=(0,D.useState)(null),y=t?.attributes?.find(e=>"header-layout"===e.name),v=(0,g.mN)({defaultValues:{layout:y?.value||"two-column"}});async function x(e){c(!0),f(null);let l=(t?.attributes??[]).filter(e=>"header-layout"!==e.name),{id:u,...d}={...t?.id?{id:t.id}:{parentId:n},type:b.nz.Header,purpose:"header",attributes:[...l,{name:"header-layout",value:e.layout}]},h=(0,b.Bd)(d),p=u?await s({variables:{id:u,input:h}},"updateContentItem2"):await o({variables:{input:h}},"createContentItem2");c(!1),p.hasError?f("Failed to save layout"):(i(p.data),a.onPageUpdated(),r())}return(0,u.jsxs)("div",{className:(0,h.A)("max-w-screen-md",m.Ay.formClass),"data-sentry-component":"HeaderLayoutManagement","data-sentry-source-file":"HeaderLayoutManagement.tsx",children:[(0,u.jsx)($.A,{title:"Header Layout","data-sentry-element":"ModalHeading","data-sentry-source-file":"HeaderLayoutManagement.tsx"}),(0,u.jsxs)("form",{onSubmit:v.handleSubmit(x),className:m.Ay.formClass,children:[(0,u.jsx)(p.fh,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"HeaderLayoutManagement.tsx",children:(0,u.jsx)(B.A,{options:["two-column","three-column"],renderOption:e=>(0,u.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:z[e]}),selected:v.watch("layout"),setSelected:e=>v.setValue("layout",e),"data-sentry-element":"CardRadioGroup","data-sentry-source-file":"HeaderLayoutManagement.tsx"})}),d&&(0,u.jsx)("p",{className:"text-red-danger text-sm",children:d}),(0,u.jsx)(p.fC,{cancel:{onClick:r},saving:l,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"HeaderLayoutManagement.tsx"})]})]})});var H=n(70544);let W={type:b.nz.Image,purpose:"background-image"},G=(0,c.PA)(function(e){let{onClose:t}=e,[n,r]=(0,D.useState)(!1),i=(0,g.mN)({defaultValues:{backgroundImageUrl:"",backgroundImageId:""}}),o=(0,y.X)({form:i,formToParams:function(e,t){let n={type:b.nz.HeaderWithHero};if(!t){let t={...W};e.backgroundImageId&&(t={...t,photoId:e.backgroundImageId});let r=[{type:b.nz.Header,purpose:"header"},{type:b.nz.Hero,purpose:"hero"},t];return{...n,children:r}}if(e.backgroundImageId){let r=!1,i=t.children.map(t=>"background-image"===t.purpose?(r=!0,{id:t.id,...W,photoId:e.backgroundImageId}):{id:t.id,type:t.type,photoId:t.photoId});return r||(i=[...i,{...W,photoId:e.backgroundImageId}]),{...n,children:i}}return n},populateForm:function(e){let t=e.children?.find(e=>"background-image"===e.purpose);t&&(i.setValue("backgroundImageId",t.photoId||""),i.setValue("backgroundImageUrl",t.photo?.url||""))},onClose:t}),{loading:s,handleSubmit:a,cancelProps:l,contentItem:c,setContentItem:x}=o,_=(0,M.MM)(),w=(0,M.uV)(),{cursor:C}=(0,H.f)(),E=w.contentItems?.filter(e=>e.type===b.nz.Image);return(0,u.jsxs)("div",{className:(0,h.A)("max-w-screen-md",m.Ay.formClass),"data-sentry-component":"HeaderWithHeroManagement","data-sentry-source-file":"HeaderWithHeroManagement.tsx",children:[(0,u.jsxs)("form",{onSubmit:a,className:m.Ay.formClass,children:[(0,u.jsx)(f.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"HeaderWithHeroManagement.tsx",children:"The header-with-hero combines the header bar, a hero section, and a background image."}),(0,u.jsxs)(f.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"HeaderWithHeroManagement.tsx",children:["Note: Your group logo can be changed in"," ",(0,u.jsx)(k(),{href:"/_admin/design/sett
2752ings",className:"a underline","data-sentry-element":"Link","data-sentry-source-file":"HeaderWithHeroManagement.tsx",children:"Design Settings."})]}),c&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(p.fh,{children:[(0,u.jsx)(L.A,{size:"sm",className:"mb-2",children:"Header Layout"}),(0,u.jsx)(P.tA,{type:"button",onClick:()=>r(!0),children:"Edit layout..."})]}),w.navigation?.primaryNav&&(0,u.jsxs)(p.fh,{children:[(0,u.jsx)(L.A,{size:"sm",className:"mb-2",children:"Navigation"}),(0,u.jsx)(P.tA,{type:"button",onClick:function(){let e=o.contentItem,t=w.navigation?.primaryNav;e&&t&&_.open(t.id,{path:[...C?.path??[],(0,b.bN)(e)]})},children:"Edit navigation..."})]}),(0,u.jsxs)(p.fh,{children:[(0,u.jsx)(L.A,{size:"sm",className:"mb-2",children:"Hero"}),(0,u.jsx)(P.tA,{onClick:()=>{!function(){let e,t=o.contentItem;if(!t)return console.error("No content item found");let n=t?.children?.find(e=>"hero"===e.purpose);e=n?{id:n.id,type:b.nz.Hero,purpose:"hero",parentId:t.id}:{type:b.nz.Hero,purpose:"hero",parentId:t.id};let r=[...C?.path??[],(0,b.bN)(t)];e.id?_.open(e.id,{path:r}):_.openNew(e,{path:r})}()},type:"button",children:"Edit hero..."})]}),(0,u.jsxs)(p.fh,{children:[(0,u.jsx)(L.A,{size:"sm",className:"mb-2",children:"Backgroun
2752d image"}),(0,u.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,u.jsxs)("div",{className:"flex-1 flex flex-col gap-y-2",children:["Choose an existing image",(0,u.jsx)("div",{className:"flex flex-wrap gap-4 overflow-scroll max-h-[20rem] p-2 bg-secondary-50 border",style:{boxShadow:"1px 2px 1px 0px rgba(0,0,0,0.2) inset",backgroundImage:"linear-gradient(rgba(255, 255, 255, .90), rgba(255, 255, 255, .90)), url(https://mp1md-pub.s3.amazonaws.com/groupflow/images/checkerboard.png)",backgroundRepeat:"repeat",backgroundSize:"10px"},children:E?.filter(e=>e.photo?.thumbUrl).slice(0,200).map(e=>(0,u.jsx)("button",{type:"button",onClick:()=>{i.setValue("backgroundImageUrl",e.photo?.url||""),i.setValue("backgroundImageId",e.photoId||"")},title:`ContentItem ${e.id}`,children:(0,u.jsx)(A(),{src:e.photo?.thumbUrl||"",alt:e.title,width:100,height:100})},e.id))})]}),(0,u.jsx)("div",{className:"w-[5rem] text-center",children:"-OR-"}),(0,u.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,u.jsx)("div",{children:"Upload a new image"}),(0,u.jsx)(R.A,{form:i,name:"backgroundImageUrl",idName:"backgroundImageId"})]})]})]})]}),!c&&(0,u.jsx)(f.A,{backgroundType:d.Sh.PRIMARY_CARD,children:"After initial creation, the content can be edited."}),(0,u.jsx)(v.D,{usingContentEdit:o,successMessage:"Header with hero saved","data-sentry-element":"ApiResults","data-sentry-source-file":"HeaderWithHeroManagement.tsx"}),(0,u.jsx)(p.fC,{cancel:l,saving:s,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"HeaderWithHeroManagement.tsx"})]}),c&&(0,u.jsx)(F.A,{isOpen:n,onClose:()=>r(!1),children:(0,u.jsx)(U,{contentItem:c.children?.find(e=>e.type===b.nz.Header),parentId:c.id,onClose:()=>r(!1),onSave:function(e){if(!c)return;let t=c.children??[],n=t.some(t=>t.id===e.id)?t.map(t=>t.id===e.id?e:t):[...t,e];x({...c,children:n})}})})]})});var K=n(65416),J=n(31009),Q=n(37483),Y=n(72954);let X={component:(0,c.PA)(function(e){let{className:t,postSlug:n}=e,{getPostListBySlug:r}=(0,K.j6)(),i=(0,M.uV)(),o=e.contentItem||(n?r(n):void 0),s=(0,b.Ql)(o,i),a=s?.children?.find(e=>"hero"===e.purpose),l=s?.children?.find(e=>"background-image"===e.purpose),c=s?.children?.find(e=>"header"===e.purpose);return(0,u.jsxs)(Y.A,{as:"header",className:(0,h.A)("header-with-hero relative text-[var(--group-header-text-color)]",t),editById:s?{id:s?.id,type:s.type??void 0}:void 0,"data-sentry-element":"EditableSection","data-sentry-component":"HeaderWithHero","data-sentry-source-file":"HeaderWithHero.tsx",children:[(0,u.jsx)(J.A,{contentItem:l,"data-sentry-element":"BackgroundMedia","data-sentry-source-file":"HeaderWithHero.tsx"}),(0,u.jsx)("div",{className:"background-opacity absolute inset w-full h-full opacity-[var(--group-hero-background-opacity)] bg-[var(--group-page-background)]"}),(0,u.jsx)(N,{contentItem:c,"data-sentry-element":"Header","data-sentry-source-file":"HeaderWithHero.tsx"}),a&&(0,u.jsx)(Q.A,{contentItem:a})]})}),type:b.nz.HeaderWithHero,editComponent:G,editLabel:"Header with Hero",wrapWithEditable:!1,containerOpts:{as:"header"}};var Z=n(81002),ee=n(39114),et=n(22611),en=n(32678),er=n(80229),ei=n(32513),eo=n(34728),es=n(77859);function ea(e,t,n){return{classIdentifier:(0,b.dE)(e)||"",content:e?(0,er.aY)(e.content,(0,b.xs)(e)??"MARKDOWN"):"",isPublished:!e||e.status===b.Hi.Published,slug:e?e.slug:t?.slug??null,textFormat:"HTML",title:e?.title||t?.title||n}}function el(e){let{contentItem:t,defaultName:n,initialParams:r,isDeveloper:i,onSave:o,saving:s}=e,a=(0,g.mN)({mode:"all",defaultValues:ea(t,r,n)}),{formState:l,handleSubmit:c,register:d,reset:h}=a;return(0,D.useEffect)(()=>{h(ea(t,r,n))},[h,t,r,n]),(0,u.jsxs)("form",{onSubmit:c(function(e){o(function(e,t,n){let r=t.classIdentifier.trim()!==((0,b.dE)(e)||"");return{title:t.title,content:t.content,textFormat:"HTML",status:t.isPublished?b.Hi.Published:b.Hi.Draft,...n?{slug:t.slug}:{},...n&&r?{attributes:(0,b.AL)(e,t.classIdentifier)}:{}}}(t,e,i))}),className:"flex flex-col gap-6","data-sentry-component":"BlockEditForm","data-sentry-source-file":"BlockEditForm.tsx",children:[(0,u.jsxs)(p.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"BlockEditForm.tsx",children:[(0,u.jsxs)(p.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"BlockEditForm.tsx",children:["Name",(0,u.jsx)(et.A,{"data-sentry-element":"RequiredFieldAsterisk","data-sentry-source-file":"BlockEditForm.tsx"})]}),(0,u.jsx)(p.ks,{register:d("title",{required:!0}),"data-sentry-element":"TextInput","data-sentry-source-file":"BlockEditForm.tsx"}),(0,u.jsx)(p.Kw,{name:"title",errors:l.errors,"data-sentry-element":"ErrorMessage","data-sentry-source-file":"BlockEditForm.tsx"})]}),i&&(0,u.jsx)(eo.A,{title:"Indexing options (developer only)",children:(0,u.jsx)(es.A,{hookForm:a})}),(0,u.jsxs)(p.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"BlockEditForm.tsx",children:[(0,u.jsx)(p.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"BlockEditForm.tsx",children:"Text content"}),(0,u.jsx)(ei.A,{featureSet:"web",register:d("content"),hookForm:a,"data-sentry-element":"ContentTextArea","data-sentry-source-file":"BlockEditForm.tsx"}),l.errors.content&&(0,u.jsxs)("div",{className:"text-red-danger",children:["Error: ",l.errors.content.message]})]}),(0,u.jsx)(p.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"BlockEditForm.tsx",children:(0,u.jsxs)("div",{children:[(0,u.jsx)("input",{type:"checkbox",...d("isPublished"),id:"isPublished"}),(0,u.jsx)("label",{htmlFor:"isPublished",className:"flex-grow ml-2",children:"Make published"})]})}),(l.errors.slug||l.errors.classIdentifier)&&(0,u.jsx)("div",{className:"text-red-danger",children:"Correct the indexing options before saving."}),(0,u.jsx)(en.A,{saving:s,withGroupFlow:!0,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"BlockEditForm.tsx",children:"Save"})]})}
2752let eu={editComponent:(0,c.PA)(function(){let{cursor:e,contentItem:t,refresh:n}=(0,H.f)(),r=(0,M.MM)(),i=(0,M.uV)(),o=(0,C.IG)(),s=!!o&&(0,ee.hN)(o,"developer"),[a,l]=(0,q.X)(V.Jt),[c,d]=(0,q.X)(V.o5),[h,p]=(0,D.useState)();async function f(e){p(void 0),t?await m(t.id,e):await g(e)}async function m(e,t){(await c({variables:{id:e,input:(0,b.Bd)(t)}},"updateContentItem2")).hasError?p({type:"error",message:"Failed to save the block"}):(n(),p({type:"success",message:"Saved the block"}))}async function g(t){let n=(0,b.Bd)((0,y.C)({...t,type:b.nz.Text},e?.initialParams)),o=await a({variables:{input:n}},"createContentItem2");o.hasError||!o.data?p({type:"error",message:"Failed to save the block"}):(i.onPageUpdated(),p({type:"success",message:"Saved the block"}),r?.open(o.data.id,{path:e?.path??[]}))}if(!e||e.contentId&&!t)return null;let v=t?.parent;return(0,u.jsxs)("div",{className:"flex flex-col gap-4","data-sentry-component":"BlockEdit","data-sentry-source-file":"BlockEdit.tsx",children:[(0,u.jsx)(Z.A,{mutationResult:h,"data-sentry-element":"SaveResult","data-sentry-source-file":"BlockEdit.tsx"}),(0,u.jsx)(el,{contentItem:t,defaultName:(0,b.iS)(v?.children??[]),initialParams:e.initialParams,isDeveloper:s,onSave:f,saving:l.loading||d.loading,"data-sentry-element":"BlockEditForm","data-sentry-source-file":"BlockEdit.tsx"})]})}),editLabel:"Text Block",type:b.nz.Text};var ec=n(22488),ed=n(61745),eh=n(41591);function ep(e){let{contentItem:t}=e,n=t.label,r=(0,b.iY)(t)||void 0;return(0,u.jsx)(eh.A,{label:n,href:r,className:(0,h.A)("inline-block",e.className),"data-sentry-element":"SharedButton","data-sentry-component":"Button","data-sentry-source-file":"Button.tsx"})}let ef={component:ep,editComponent:function(e){let{onClose:t}=e,n=(0,g.mN)({defaultValues:{label:"",uri:""}}),{register:r}=n,i=(0,y.X)({form:n,formToParams:function(e){return{label:e.label,href:e.uri,type:b.nz.Button}},populateForm:function(e){n.setValue("label",e.label),n.setValue("uri",(0,b.iY)(e)||"")},onClose:t}),{loading:o,handleSubmit:s,cancelProps:a}=i;return(0,u.jsxs)("div",{className:(0,h.A)("max-w-screen-md",m.Ay.formClass),"data-sentry-component":"ButtonEditor","data-sentry-source-file":"ButtonEditor.tsx",children:[(0,u.jsx)(f.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"ButtonEditor.tsx",children:"A button that links to a page."}),(0,u.jsxs)("form",{onSubmit:s,className:m.Ay.formClass,children:[(0,u.jsxs)(ec.A,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"ButtonEditor.tsx",children:[(0,u.jsx)(L.A,{size:"sm","data-sentry-element":"SectionHeading","data-sentry-source-file":"ButtonEditor.tsx",children:"Button Label"}),(0,u.jsx)(ed.A,{register:r("label"),"data-sentry-element":"TextInput","data-sentry-source-file":"ButtonEditor.tsx"})]}),(0,u.jsxs)(ec.A,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"ButtonEditor.tsx",children:[(0,u.jsx)(L.A,{size:"sm","data-sentry-element":"SectionHeading","data-sentry-source-file":"ButtonEditor.tsx",children:"Link address"}),(0,u.jsx)(ed.A,{register:r("uri"),"data-sentry-element":"TextInput","data-sentry-source-file":"ButtonEditor.tsx"})]}),(0,u.jsx)(v.D,{usingContentEdit:i,successMessage:"Button saved","data-sentry-element":"ApiResults","data-sentry-source-file":"ButtonEditor.tsx"}),(0,u.jsx)(p.fC,{cancel:a,saving:o,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"ButtonEditor.tsx"})]})]})},editLabel:"Button",type:b.nz.Button},em={component:(0,c.PA)(function(e){let{className:t}=e,n=(0,M.uV)(),r=(0,b.Ql)(e.contentItem,n),i=r?.children;if(!i)return null;let o=i.filter(e=>e.type===b.nz.Button);return 0===o.length?null:(0,u.jsx)("div",{className:(0,h.A)("flex justify-center flex-wrap gap-4 my-8",t),"data-sentry-component":"ButtonRow","data-sentry-source-file":"ButtonRow.tsx",children:o.map(e=>(0,u.jsx)(ep,{contentItem:e,className:m.Ay.actionButtonColor},e.id))})}),editComponent:function(e){let{onClose:t}=e,n=(0,g.mN)({defaultValues:{children:[{label:"",uri:""}]}}),{register:r}=n,i=(0,y.X)({form:n,formToParams:function(e){return{type:b.nz.ButtonRow,children:e.children.map(e=>({type:b.nz.Button,label:e.label,href:e.uri}))}},populateForm:function(e){let t=e.children;t&&n.setValue("children",t.map(e=>({label:e.label,uri:(0,b.iY)(e)||""})))},onClose:t}),{loading:o,handleSubmit:s,cancelProps:a}=i;return(0,u.jsxs)("div",{className:(0,h.A)("max-w-screen-md",m.Ay.formClass),"data-sentry-component":"ButtonRowEditor","data-sentry-source-file":"ButtonRowEditor.tsx",children:[(0,u.jsx)(f.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"ButtonRowEditor.tsx",children:"A row, c
2752ontaining a button that links to a page."}),(0,u.jsxs)("form",{onSubmit:s,className:m.Ay.formClass,children:[(0,u.jsxs)(ec.A,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"ButtonRowEditor.tsx",children:[(0,u.jsx)(L.A,{size:"sm","data-sentry-element":"SectionHeading","data-sentry-source-file":"ButtonRowEditor.tsx",children:"Button Label"}),(0,u.jsx)(ed.A,{register:r("children.0.label"),"data-sentry-element":"TextInput","data-sentry-source-file":"ButtonRowEditor.tsx"})]}),(0,u.jsxs)(ec.A,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"ButtonRowEditor.tsx",children:[(0,u.jsx)(L.A,{size:"sm","data-sentry-element":"SectionHeading","data-sentry-source-file":"ButtonRowEditor.tsx",children:"Link address"}),(0,u.jsx)(ed.A,{register:r("children.0.uri"),"data-sentry-element":"TextInput","data-sentry-source-file":"ButtonRowEditor.tsx"})]}),(0,u.jsx)(v.D,{usingContentEdit:i,successMessage:"Button saved","data-sentry-element":"ApiResults","data-sentry-source-file":"ButtonRowEditor.tsx"}),(0,u.jsx)(p.fC,{cancel:a,saving:o,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"ButtonRowEditor.tsx"})]})]})},editLabel:"Button Row",type:b.nz.ButtonRow};var eg=n(88129),ey=n(63945),ev=n(19857),eb=n(77052),ex=n(87782),e_=n(99410);let ew=(0,c.PA)(function(e){let t=(0,M.MM)(),{cursor:n}=(0,H.f)(),[r,i]=(0,D.useState)(null),o=(0,g.mN)({defaultValues:{children:[]}}),s=(0,y.X)({form:o,formToParams:function(e){return{type:b.nz.ColumnContainer,children:e.children.map(e=>e.params)}},populateForm:function(e){o.reset({children:(e.children??[]).map(ex.W9)})},onClose:e.onClose}),{contentItem:a,handleSubmit:l,loading:c,save:d}=s,h=(0,e_.A)({onReorder:function(e){x((0,ex.Hp)(o.watch("children"),e))},onInsert:function(e,t){let n=m.find(t=>t.key===e);n&&_(n,t)}}),{isDirty:f}=o.formState,m=(0,ex.UT)(b.nz.ColumnContainer,(0,b.dW)(n?.path,a));function x(e){o.setValue("children",e,{shouldDirty:!0})}function _(e,t){if(c)return;let n=o.watch("children"),r=(0,ex.zj)(e,b.nz.ColumnContainer,n);x((0,ex.RU)(n,r,t))}async function w(e){if(!t||!a)return;let r=o.watch("children").findIndex(t=>t.id===e.id);if(-1===r||f&&!await d())return;let i=o.watch("children")[r];!i||i.id.startsWith(ex.xh)||t.open(i.id,{path:[...n?.path??[],(0,b.bN)(a)]})}return a?(0,u.jsxs)("div",{style:{maxWidth:"500px"},className:"mx-auto","data-sentry-component":"ColumnContainerEdit","data-sentry-source-file":"ColumnContainerEdit.tsx",children:[(0,u.jsxs)("form",{onSubmit:l,className:"space-y-6",children:[(0,u.jsxs)("div",{children:[(0,u.jsx)("h3",{className:"text-lg font-medium mb-3",children:"Column Elements"}),(0,u.jsx)(eb.A,{busy:c,elements:o.watch("children"),emptyMessage:"This column is empty. Add an element from the library below.",listId:"column-elements-list",menuItems:function(e){return[{label:"Delete element",icon:eg.A,handleClick:()=>i(e),danger:!0,disabled:c}]},onOpen:w,sortable:h,"data-sentry-element":"ElementList","data-sentry-source-file":"ColumnContainerEdit.tsx"})]}),(0,u.jsx)(ev.A,{busy:c,elements:m,help:"Tap an element to add it to the end of this column, or drag it by the + into the list above.",onAdd:function(e){_(e,o.watch("children").length)},sortable:h,"data-sentry-element":"ElementLibrary","data-sentry-source-file":"ColumnContainerEdit.tsx"}),(0,u.jsx)(v.D,{usingContentEdit:s,successMessage:"Column saved","data-sentry-element":"ApiResults","data-sentry-source-file":"ColumnContainerEdit.tsx"}),(0,u.jsx)("div",{className:"flex justify-end pt-4 border-t",children:(0,u.jsx)(p.rA,{type:"submit",className:"px-6",disabled:c,"data-sentry-element":"ActionButton","data-sentry-source-file":"ColumnContainerEdit.tsx",children:"Save Elements"})})]}),(0,u.jsx)(ey.A,{deleting:!!r,onClose:()=>i(null),onDelete:function(){r&&(x((0,ex.jE)((0,ex.Nz)(o.watch("children"),r.id),b.nz.ColumnContainer)),i(null))},prompt:`Are you sure you want to remove "${r?.name}" from this column?`,"data-sentry-element":"ConfirmDelete","data-sentry-source-file":"ColumnContainerEdit.tsx"})]}):null}),ek={type:b.nz.ColumnContainer,editComponent:ew,editLabel:"Column"};var eC=n(31167),eE=n(64177),eA=n(83070),eS=n(54595),eT=n(46338),ej=n(3558),eN=n(67994),eO=n(75803),eI=n(48303),eD=n(2844),eM=n(85081),eL=n(20437),eR=n(1889),eP=function(e){return e.Team="team",e.Member="member",e}(eP||{});let eF=[{value:"team",title:"A Team",description:"Submissions are emailed to everyone on the selected team."},{value:"member",title:"A Member",description:"Submissions are emailed to one specific member."}];function eB(){return{active:!0,component:{tagName:"FieldRow",id:(0,eM.A)(),field:{tagName:"TextField",id:(0,eM.A)(),required:!0,maxLength:eS.PO},label:{tagName:"RowLabel",value:"Your Email"},text:null},id:`#new-${(0,eM.A)()}`,linkToId:null,memberVisible:!0,ordinal:0,purpose:eS.D5.contact_form,sectionId:null,
2752specialField:eS._4.email}}var e$=Array.isArray,eV=Array.prototype.indexOf,ez=Array.prototype.includes,eU=Array.from,eH=Object.keys,eW=Object.defineProperty,eG=Object.getOwnPropertyDescriptor,eK=Object.getOwnPropertyDescriptors,eJ=Object.prototype,eQ=Array.prototype,eY=Object.getPrototypeOf,eX=Object.isExtensible;let eZ=()=>{};function e0(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}let e1=Symbol("$state"),e2=Symbol("legacy props"),e5=Symbol(""),e3=Symbol("attributes"),e4=Symbol("class"),e8=Symbol("style"),e6=Symbol("text"),e7=Symbol("form reset"),e9=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},te=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function tt(e){return e===this.v}function tn(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function tr(e){return!tn(e,this.v)}let ti={},to=Symbol("uninitialized"),ts="http://www.w3.org/1999/xhtml",ta=null;function tl(e,t=!1,n){ta={p:ta,i:!1,c:null,e:null,s:e,x:null,r:nw,l:null}}function tu(e){var t=ta,n=t.e;if(null!==n)for(var r of(t.e=null,n))nV(r);return void 0!==e&&(t.x=e),t.i=!0,ta=t.p,e??{}}let tc=[];function td(){var e=tc;tc=[];for(var t=0;t<e.length;t++)e[t]()}function th(e){if(0===tc.length&&!tK){var t=tc;queueMicrotask(()=>{t===tc&&td()})}tc.push(e)}function tp(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let tf=!1;function tm(e){if(null===e)throw tp(),ti;return r=e}function tg(){return tm(tA(r))}function ty(e){if(tf){if(null!==tA(r))throw tp(),ti;r=e}}function tv(e=1){if(tf){for(var t=e,n=r;t--;)n=tA(n);r=n}}function tb(e=!0){for(var t=0,n=r;;){if(8===n.nodeType){var i=n.data;if("]"===i){if(0===t)return n;t-=1}else"["!==i&&"[!"!==i&&("["!==i[0]||isNaN(Number(i.slice(1))))||(t+=1)}var o=tA(n);e&&n.remove(),n=o}}function tx(e){if(!e||8!==e.nodeType)throw tp(),ti;return e.data}function t_(e){if("object"!=typeof e||null===e||e1 in e)return e;let t=eY(e);if(t!==eJ&&t!==eQ)return e;var n=new Map,r=e$(e),i=nc(0),o=nN,s=e=>{if(nN===o)return e();var t=nx,n=nN;nx=null,nN=o;var r=e();return nx=t,nN=n,r};return r&&n.set("length",nc(e.length)),new Proxy(e,{defineProperty(e,t,r){"value"in r&&!1!==r.configurable&&!1!==r.enumerable&&!1!==r.writable||function(){throw Error("https://svelte.dev/e/state_descriptors_fixed")}();var i=n.get(t);return void 0===i?s(()=>{var e=nc(r.value);return n.set(t,e),e}):nh(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(void 0===r){if(t in e){let e=s(()=>nc(to));n.set(t,e),nf(i)}}else nh(r,to),nf(i);return!0},get(t,r,i){if(r===e1)return e;var o=n.get(r),a=r in t;if(void 0===o&&(!a||eG(t,r)?.writable)&&(o=s(()=>nc(t_(a?t[r]:to))),n.set(r,o)),void 0!==o){var l=nR(o);return l===to?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&"value"in r){var i=n.get(t);i&&(r.value=nR(i))}else if(void 0===r){var o=n.get(t),s=o?.v;if(void 0!==o&&s!==to)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return r},has(e,t){if(t===e1)return!0;var r=n.get(t),i=void 0!==r&&r.v!==to||Reflect.has(e,t);return(!(void 0!==r||null!==nw&&(!i||eG(e,t)?.writable))||(void 0===r&&(r=s(()=>nc(i?t_(e[t]):to)),n.set(t,r)),nR(r)!==to))&&i},set(e,t,o,a){var l=n.get(t),u=t in e;if(r&&"length"===t)for(var c=o;c<l.v;c+=1){var d=n.get(c+"");void 0!==d?nh(d,to):c in e&&(d=s(()=>nc(to)),n.set(c+"",d))}void 0===l?(!u||eG(e,t)?.writable)&&(nh(l=s(()=>nc(void 0)),t_(o)),n.set(t,l)):(u=l.v!==to,nh(l,s(()=>t_(o))));var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(a,o),!u){if(r&&"string"==typeof t){var p=n.get("length"),f=Number(t);Number.isInteger(f)&&f>=p.v&&nh(p,f+1)}nf(i)}return!0},ownKeys(e){nR(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return void 0===t||t.v!==to});for(var[r,o]of n)o.v===to||r in e||t.push(r);return t},setPrototypeOf(){throw Error("https://svelte.dev/e/state_prototype_fixed")}})}function tw(e){try{if(null!==e&&"object"==typeof e&&e1 in e)return e[e1]}catch{}return e}function tk(){if(void 0===i){i=window,o=document,s=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;a=eG(t,"firstChild").get,l=eG(t,"nextSibling").get,eX(e)&&(e[e4]=void 0,e[e3]=null,e[e8]=void 0,e.__e=void 0),eX(n)&&(n[e6]=void 0)}}function tC(e=""){return document.createTextNode(e)}function tE(e){return a.call(e)}function tA(e){return l.call(e)}function tS(e,t){if(!tf)return tE(e);var n=tE(r);if(null===n)n=r.appendChild(tC());else if(t&&3!==n.nodeType){var i=tC();return n?.before(i),tm(i),i}return t&&tO(n),tm(n),n}function tT(e,t=!1){if(!tf){var n=tE(e);return n instanceof Comment&&""===n.data?tA(n):n}if(t){if(r?.nodeType!==3){var i=tC();return r?.before(i),tm(i),i}tO(r)}return r}function tj(e,t=1,n=!1){let i=tf?r:e;for(;t--;)o=i,i=tA(i);if(!tf)return i;if(n){if(i?.nodeType!==3){var o,s=tC();return null===i?o?.after(s):i.before(s),tm(s),s}tO(i)}return tm(i),i}function tN(e,t,n){return document.createElementNS(t??ts,e,void 0)}function tO(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;null!==t&&3===t.nodeType;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function tI(e){var t=nw;
2752if(null===t)return nx.f|=8388608,e;if((32768&t.f)==0&&(4&t.f)==0)throw e;tD(e,t)}function tD(e,t){for(;null!==t;){if((128&t.f)!=0){if((32768&t.f)==0)throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}function tM(e,t){e.f=-7169&e.f|t}function tL(e){(512&e.f)!=0||null===e.deps?tM(e,1024):tM(e,4096)}function tR(e,t,n){(2048&e.f)!=0?t.add(e):(4096&e.f)!=0&&n.add(e),function e(t){if(null!==t)for(let n of t)(2&n.f)!=0&&(65536&n.f)!=0&&(n.f^=65536,e(n.deps))}(e.deps),tM(e,1024)}function tP(e,t,n){if(null==e)return t(void 0),eZ;let r=nP(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}let tF=[];function tB(e){let t;return tP(e,e=>t=e)(),t}let t$=Symbol("unmounted");function tq(e,t,n){let r=n[t]??={store:null,source:nd(void 0),unsubscribe:eZ};if(r.store!==e&&!(t$ in n))if(r.unsubscribe(),r.store=e??null,null==e)r.source.v=void 0,r.unsubscribe=eZ;else{var i=!0;r.unsubscribe=tP(e,e=>{i?r.source.v=e:nh(r.source,e)}),i=!1}return e&&t$ in n?tB(e):nR(r.source)}let tV=null,tz=null,tU=null,tH=null,tW=null,tG=null,tK=!1,tJ=!1,tQ=null,tY=null;var tX=0;let tZ=1;class t0{id=tZ++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#i=new Set;#o=new Set;#s=0;#a=new Map;#l=null;#u=[];#c=[];#d=new Set;#h=new Set;#p=new Map;#f=new Set;is_fork=!1;#m=!1;#g(){if(this.is_fork)return!0;for(let n of this.#a.keys()){for(var e=n,t=!1;null!==e.parent;){if(this.#p.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#p.has(e)||this.#p.set(e,{d:[],m:[]}),this.#f.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#p.get(e);if(n){for(var r of(this.#p.delete(e),n.d))tM(r,2048),t(r);for(r of n.m)tM(r,4096),t(r)}this.#f.add(e)}#y(){if(this.#e=!0,tX++>1e3&&(this.#v(),function(){try{throw Error("https://svelte.dev/e/effect_update_depth_exceeded")}catch(e){tD(e,tG)}}()),!this.#g()){for(let e of this.#d)this.#h.delete(e),tM(e,2048),this.schedule(e);for(let e of this.#h)tM(e,4096),this.schedule(e)}let e=this.#u;this.#u=[],this.apply();var t=tQ=[],n=[],r=tY=[];for(let r of e)try{this.#b(r,t,n)}catch(e){throw function e(t){tM(t,1024);for(var n=t.first;null!==n;)e(n),n=n.next}(r),e}if(tU=null,r.length>0){var i=t0.ensure();for(let e of r)i.schedule(e)}if(tQ=null,tY=null,this.#g()){for(let[e,r]of(this.#x(n),this.#x(t),this.#p))!function e(t,n){if((32&t.f)==0||(1024&t.f)==0){(2048&t.f)!=0?n.d.push(t):(4096&t.f)!=0&&n.m.push(t),tM(t,1024);for(var r=t.first;null!==r;)e(r,n),r=r.next}}(e,r);r.length>0&&tU.#y();return}let o=this.#_();if(o)return void o.#w(this);for(let e of(this.#d.clear(),this.#h.clear(),this.#r))e(this);this.#r.clear(),tH=this,t5(n),t5(t),tH=null,this.#l?.resolve();var s=tU;if(this.linked&&0===this.#s&&this.#v(),this.#u.length>0){null===s&&(s=this,this.#k());let e=s;e.#u.push(...this.#u.filter(t=>!e.#u.includes(t)))}null!==s&&s.#y()}#b(e,t,n){e.f^=1024;for(var r=e.first;null!==r;){var i=r.f,o=(96&i)!=0;if(!(o&&(1024&i)!=0||(8192&i)!=0||this.#p.has(r))&&null!==r.fn){o?r.f^=1024:(4&i)!=0?t.push(r):nO(r)&&((16&i)!=0&&this.#h.add(r),nM(r));var s=r.first;if(null!==s){r=s;continue}}for(;null!==r;){var a=r.next;if(null!==a){r=a;break}r=r.parent}}}#_(){for(var e=this.#t;null!==e;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#w(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve)}let t=e=>{var n=e.reactions;if(null!==n)for(let e of n){var r=e.f;(2&r)!=0?t(e):4194320&r&&!this.async_deriveds.has(e)&&(this.#h.delete(e),tM(e,2048),this.schedule(e))}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#v(),tU=this,this.#y()}#x(e){for(var t=0;t<e.length;t+=1)tR(e[t],this.#d,this.#h)}capture(e,t,n=!1){e.v===to||this.previous.has(e)||this.previous.set(e,e.v),(8388608&e.f)==0&&(this.current.set(e,[t,n]),tW?.set(e,t)),this.is_fork||(e.v=t)}activate(){tU=this}deactivate(){tU=null,tW=null}flush(){try{tJ=!0,tU=this,this.#y()}finally{tX=0,tG=null,tQ=null,tY=null,tJ=!1,tU=null,tW=null,na.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear(),this.#o.clear(),this.#v()}register_created_effect(e){this.#c.push(e)}#C(){this.#v();for(let u=tV;null!==u;u=u.#n){var e=u.id<this.id,t=[];for(let[r,[i,o]]of this.current){if(u.current.has(r)){var n=u.current.get(r)[0];if(!e||i===n)continue;u.current.set(r,[i,o])}t.push(r)}if(e)for(let[e,t]of this.async_deriveds){let n=u.async_deriveds.get(e);n&&t.promise.then(n.resolve)}if(u.#e){var r=[...u.current.keys()].filter(e=>!this.current.has(e));if(0===r.length)e&&u.discard();else if(t.length>0){if(e)for(let e of this.#f)u.unskip_effect(e,e=>{(4194320&e.f)!=0?u.schedule(e):u.#x([e])});u.activate();var i=new Set,o=new Map;for(var s of t)!function e(t,n,r,i){if(!r.has(t)&&(r.add(t),null!==t.reactions))for(let o of t.reactions){let t=
2752o.f;(2&t)!=0?e(o,n,r,i):(4194320&t)!=0&&(2048&t)==0&&t3(o,n,i)&&(tM(o,2048),t4(o))}}(s,r,i,o);o=new Map;var a=[...u.current.keys()].filter(e=>!this.current.has(e)||this.current.get(e)[0]!==e.v);if(a.length>0)for(let e of this.#c)(155648&e.f)==0&&t3(e,a,o)&&((4194320&e.f)!=0?(tM(e,2048),u.schedule(e)):u.#d.add(e));if(u.#u.length>0){for(var l of(u.apply(),u.#u))u.#b(l,[],[]);u.#u=[]}u.deactivate()}}}}increment(e,t){if(this.#s+=1,e){let e=this.#a.get(t)??0;this.#a.set(t,e+1)}}decrement(e,t){if(this.#s-=1,e){let e=this.#a.get(t)??0;1===e?this.#a.delete(t):this.#a.set(t,e-1)}this.#m||(this.#m=!0,th(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#d.add(t);for(let e of t)this.#h.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#o.add(e)}run_fork_commit_callbacks(){for(let e of this.#o)e(this);this.#o.clear()}settled(){return(this.#l??=e0()).promise}static ensure(){if(null===tU){let e=tU=new t0;e.#k(),tJ||tK||th(()=>{e.#e||e.flush()})}return tU}apply(){tW=null}schedule(e){if(tG=e,e.b?.is_pending&&(0x100000c&e.f)!=0&&(32768&e.f)==0)return void e.b.defer_effect(e);for(var t=e;null!==t.parent;){var n=(t=t.parent).f;if(null!==tQ&&t===nw&&(null===nx||(2&nx.f)==0))return;if((96&n)!=0){if((1024&n)==0)return;t.f^=1024}}this.#u.push(t)}#k(){null===tz?tV=tz=this:(tz.#n=this,this.#t=tz),tz=this}#v(){var e=this.#t,t=this.#n;null===e?tV=t:e.#n=t,null===t?tz=e:t.#t=e,this.linked=!1}}function t1(e){var t,n=tK;tK=!0;try{for(;;){for(;tc.length>0;)td();if(null===tU)return t;tU.flush()}}finally{tK=n}}let t2=null;function t5(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if((24576&r.f)==0&&nO(r)&&(t2=new Set,nM(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&nX(r),t2?.size>0)){for(let e of(na.clear(),t2)){if((24576&e.f)!=0)continue;let t=[e],n=e.parent;for(;null!==n;)t2.has(n)&&(t2.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];(24576&n.f)==0&&nM(n)}}t2.clear()}}t2=null}}function t3(e,t,n){let r=n.get(e);if(void 0!==r)return r;if(null!==e.deps)for(let r of e.deps){if(ez.call(t,r))return!0;if((2&r.f)!=0&&t3(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function t4(e){tU.schedule(e)}class t8{parent;is_pending=!1;transform_error;#E;#A=tf?r:null;#S;#T;#j;#N=null;#O=null;#I=null;#D=null;#M=0;#L=0;#R=!1;#d=new Set;#h=new Set;#P=null;#F=(function(e){let t,n=0,r=nu(0);return()=>{nB()&&(nR(r),nz(()=>(0===n&&(t=nP(()=>e(()=>nf(r)))),n+=1,()=>{th(()=>{0==(n-=1)&&(t?.(),t=void 0,nf(r))})})))}})(()=>(this.#P=nu(this.#M),()=>{this.#P=null}));constructor(e,t,n,i){this.#E=e,this.#S=t,this.#T=e=>{var t=nw;t.b=this,t.f|=128,n(e)},this.parent=nw.b,this.transform_error=i??this.parent?.transform_error??(e=>e),this.#j=nH(()=>{if(tf){let e=this.#A;tg();let t="[!"===e.data;if(e.data.startsWith("[?")){let t=JSON.parse(e.data.slice(2));this.#B(t)}else t?this.#$():this.#q()}else this.#V()},589824),tf&&(this.#E=r)}#q(){try{this.#N=nG(()=>this.#T(this.#E))}catch(e){this.error(e)}}#B(e){let t=this.#S.failed;t&&(this.#I=nG(()=>{t(this.#E,()=>e,()=>()=>{})}))}#$(){let e=this.#S.pending;e&&(this.is_pending=!0,this.#O=nG(()=>e(this.#E)),th(()=>{var e=this.#D=document.createDocumentFragment(),t=tC();e.append(t),this.#N=this.#z(()=>nG(()=>this.#T(t))),0===this.#L&&(this.#E.before(e),this.#D=null,nZ(this.#O,()=>{this.#O=null}),this.#U(tU))}))}#V(){try{if(this.is_pending=this.has_pending_snippet(),this.#L=0,this.#M=0,this.#N=nG(()=>{this.#T(this.#E)}),this.#L>0){var e=this.#D=document.createDocumentFragment();n0(this.#N,e);let t=this.#S.pending;this.#O=nG(()=>t(this.#E))}else this.#U(tU)}catch(e){this.error(e)}}#U(e){this.is_pending=!1,e.transfer_effects(this.#d,this.#h)}defer_effect(e){tR(e,this.#d,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#S.pending}#z(e){var t=nw,n=nx,r=ta;nw=this.#j,nx=this.#j,ta=this.#j.ctx;try{return t0.ensure(),e()}catch(e){return tI(e),null}finally{nw=t,nx=n,ta=r}}#H(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#H(e,t);return}this.#L+=e,0===this.#L&&(this.#U(t),this.#O&&nZ(this.#O,()=>{this.#O=null}),this.#D&&(this.#E.before(this.#D),this.#D=null))}update_pending_count(e,t){this.#H(e,t),this.#M+=e,this.#P&&!this.#R&&(this.#R=!0,th(()=>{this.#R=!1,this.#P&&np(this.#P,this.#M)}))}get_effect_pending(){return this.#F(),nR(this.#P)}error(e){if(!this.#S.onerror&&!this.#S.failed)throw e;tU?.is_fork?(this.#N&&tU.skip_effect(this.#N),this.#O&&tU.skip_effect(this.#O),this.#I&&tU.skip_effect(this.#I),tU.on_fork_commit(()=>{this.#W(e)})):this.#W(e)}#W(e){this.#N&&(nQ(this.#N),this.#N=null),this.#O&&(nQ(this.#O),this.#O=null),this.#I&&(nQ(this.#I),this.#I=null),tf&&(tm(this.#A),tv(),tm(tb()));var t=this.#S.onerror;let n=this.#S.failed;var r=!1,i=!1;let o=()=>
2752{if(r)return void console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");r=!0,i&&function(){throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#I&&nZ(this.#I,()=>{this.#I=null}),this.#z(()=>{this.#V()})},s=e=>{try{i=!0,t?.(e,o),i=!1}catch(e){tD(e,this.#j&&this.#j.parent)}n&&(this.#I=this.#z(()=>{try{return nG(()=>{var t=nw;t.b=this,t.f|=128,n(this.#E,()=>e,()=>o)})}catch(e){return tD(e,this.#j.parent),null}}))};th(()=>{var t;try{t=this.transform_error(e)}catch(e){tD(e,this.#j&&this.#j.parent);return}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(s,e=>tD(e,this.#j&&this.#j.parent)):s(t)})}}function t6(e,t,n,r){var i,o,s,a,l=e.filter(e=>!e.settled);if(0===n.length&&0===l.length)return void r(t.map(ne));var u=nw,c=(i=nw,o=nx,s=ta,a=tU,function(e=!0){(function(e){nw=e})(i),function(e){nx=e}(o),ta=s,e&&(16384&i.f)==0&&(a?.activate(),a?.apply())}),d=1===l.length?l[0].promise:l.length>1?Promise.all(l.map(e=>e.promise)):null;function h(e){if((16384&u.f)==0){c();try{r(e)}catch(e){tD(e,u)}t7()}}var p=t9();if(0===n.length)return void d.then(()=>h(t.map(ne))).finally(p);function f(){Promise.all(n.map(e=>{var t,n,r,i,o;let s;return t=e,null===(s=nw)&&function(){throw Error("https://svelte.dev/e/async_derived_orphan")}(),n=void 0,r=nu(to),i=!nx,o=new Set,nF(4718592,()=>{var e=nw,a=e0();n=a.promise;try{Promise.resolve(t()).then(a.resolve,e=>{e!==e9&&a.reject(e)}).finally(t7)}catch(e){a.reject(e),t7()}var l=tU;if(i){if((32768&e.f)!=0)var u=t9();if(s.b.is_rendered())l.async_deriveds.get(e)?.reject(nt);else for(let e of o.values())e.reject(nt);o.add(a),l.async_deriveds.set(e,a)}let c=(e,t)=>{u?.(),o.delete(a),t!==nt&&(l.activate(),t?(r.f|=8388608,np(r,t)):((8388608&r.f)!=0&&(r.f^=8388608),np(r,e)),l.deactivate())};a.promise.then(c,e=>c(null,e||"unknown"))}),n$(()=>{for(let e of o)e.reject(nt)}),new Promise(e=>{!function t(i){function o(){i===n?e(r):t(n)}i.then(o,o)}(n)})})).then(e=>h([...t.map(ne),...e])).catch(e=>tD(e,u)).finally(p)}d?d.then(()=>{c(),f(),t7()}):f()}function t7(e=!0){nw=null,nx=null,ta=null,e&&tU?.deactivate()}function t9(){var e=nw,t=e.b,n=tU,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}function ne(e){return null!==nw&&(nw.f|=524288),{ctx:ta,deps:null,effects:null,equals:tt,f:2050,fn:e,reactions:null,rv:0,v:to,wv:0,parent:nw,ac:null}}let nt=Symbol("obsolete");function nn(e){let t=ne(e);return nC(t),t}function nr(e){var t,n=nw,r=e.parent;if(!nb&&null!==r&&e.v!==to&&(24576&r.f)!=0)return console.warn("https://svelte.dev/e/derived_inert"),e.v;nw=r;try{e.f&=-65537;var i=e.effects;if(null!==i){e.effects=null;for(var o=0;o<i.length;o+=1)nQ(i[o])}t=nI(e)}finally{nw=n}return t}function ni(e){var t=nr(e);if(!e.equals(t)&&(e.wv=++nT,!tU?.is_fork||null===e.deps)&&(null!==tU?(tU.capture(e,t,!0),tH?.capture(e,t,!0)):e.v=t,null===e.deps))return void tM(e,1024);!nb&&(null!==tW?(nB()||tU?.is_fork)&&tW.set(e,t):tL(e))}function no(e){if(null!==e.effects)for(let t of e.effects)t.teardown&&null!==t.fn&&nM(t)}let ns=new Set,na=new Map,nl=!1;function nu(e,t){return{f:0,v:e,reactions:null,equals:tt,rv:0,wv:0}}function nc(e,t){let n=nu(e);return nC(n),n}function nd(e,t=!1,n=!0){let r=nu(e);return t||(r.equals=tr),r}function nh(e,t,n=!1){return null===nx||n_&&(131072&nx.f)==0||(4325394&nx.f)==0||null!==nk&&ez.call(nk,e)||function(){throw Error("https://svelte.dev/e/state_unsafe_mutation")}(),np(e,n?t_(t):t,tY)}function np(e,t,n=null){if(!e.equals(t)){na.set(e,nb?t:e.v);var r=t0.ensure();r.capture(e,t),(2&e.f)!=0&&((2048&e.f)!=0&&nr(e),null===tW&&tL(e)),e.wv=++nT,function e(t,n,r){var i=t.reactions;if(null!==i)for(var o=i.length,s=0;s<o;s++){var a=i[s],l=a.f,u=(2048&l)==0;u&&tM(a,n),(131072&l)!=0?ns.add(a):(2&l)!=0?(tW?.delete(a),(65536&l)==0&&(512&l&&(null===nw||(2097152&nw.f)==0)&&(a.f|=65536),e(a,4096,r))):u&&((16&l)!=0&&null!==t2&&t2.add(a),null!==r?r.push(a):t4(a))}}(e,2048,n),null!==nw&&(1024&nw.f)!=0&&(96&nw.f)==0&&(null===nS?nS=[e]:nS.push(e)),r.is_fork||!(ns.size>0)||nl||function(){for(let e of(nl=!1,ns)){let t;(1024&e.f)!=0&&tM(e,4096);try{t=nO(e)}catch{t=!0}t&&nM(e)}ns.clear()}()}return t}function nf(e){nh(e,e.v+1)}let nm=!1;function ng(){nm||(nm=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>
2752{if(!e.defaultPrevented)for(let t of e.target.elements)t[e7]?.()})},{capture:!0}))}function ny(e){var t=nx,n=nw;nx=null,nw=null;try{return e()}finally{nx=t,nw=n}}let nv=!1,nb=!1,nx=null,n_=!1,nw=null,nk=null;function nC(e){null!==nx&&(null===nk?nk=[e]:nk.push(e))}let nE=null,nA=0,nS=null,nT=1,nj=0,nN=0;function nO(e){var t=e.f;if((2048&t)!=0)return!0;if(2&t&&(e.f&=-65537),(4096&t)!=0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var o=n[i];if(nO(o)&&ni(o),o.wv>e.wv)return!0}(512&t)!=0&&null===tW&&tM(e,1024)}return!1}function nI(e){var t=nE,n=nA,r=nS,i=nx,o=nk,s=ta,a=n_,l=nN,u=e.f;nE=null,nA=0,nS=null,nx=(96&u)==0?e:null,nk=null,ta=e.ctx,n_=!1,nN=++nj,null!==e.ac&&(ny(()=>{e.ac.abort(e9)}),e.ac=null);try{e.f|=2097152;var c,d=(0,e.fn)();e.f|=32768;var h=e.deps,p=tU?.is_fork;if(null!==nE){if(p||nD(e,nA),null!==h&&nA>0)for(c=0,h.length=nA+nE.length;c<nE.length;c++)h[nA+c]=nE[c];else e.deps=h=nE;if(nB()&&(512&e.f)!=0)for(c=nA;c<h.length;c++)(h[c].reactions??=[]).push(e)}else!p&&null!==h&&nA<h.length&&(nD(e,nA),h.length=nA);if(null!==nS&&!n_&&null!==h&&(6146&e.f)==0)for(c=0;c<nS.length;c++)!function e(t,n,r=!0){var i=t.reactions;if(null!==i&&!(null!==nk&&ez.call(nk,t)))for(var o=0;o<i.length;o++){var s=i[o];(2&s.f)!=0?e(s,n,!1):n===s&&(r?tM(s,2048):(1024&s.f)!=0&&tM(s,4096),t4(s))}}(nS[c],e);if(null!==i&&i!==e){if(nj++,null!==i.deps)for(let e=0;e<n;e+=1)i.deps[e].rv=nj;if(null!==t)for(let e of t)e.rv=nj;null!==nS&&(null===r?r=nS:r.push(...nS))}return(8388608&e.f)!=0&&(e.f^=8388608),d}catch(e){return tI(e)}finally{e.f^=2097152,nE=t,nA=n,nS=r,nx=i,nk=o,ta=s,n_=a,nN=l}}function nD(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)!function(e,t){let n=t.reactions;if(null!==n){var r=eV.call(n,e);if(-1!==r){var i=n.length-1;0===i?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(null===n&&(2&t.f)!=0&&(null===nE||!ez.call(nE,t))){(512&t.f)!=0&&(t.f^=512,t.f&=-65537),t.v!==to&&tL(t);if(null!==t.effects)for(let e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(e9),null!==e.fn&&(e.teardown=eZ),e.ac=null,nD(e,0),nJ(e));nD(t,0)}}(e,n[r])}function nM(e){var t=e.f;if((16384&t)==0){tM(e,1024);var n=nw,r=nv;nw=e,nv=!0;try{(0x1000010&t)!=0?function(e){for(var t=e.first;null!==t;){var n=t.next;(32&t.f)==0&&nQ(t),t=n}}(e):nJ(e),nK(e);var i=nI(e);e.teardown="function"==typeof i?i:null,e.wv=nT}finally{nv=r,nw=n}}}async function nL(){await Promise.resolve(),t1()}function nR(e){var t=e.f;if(null!==nx&&!n_&&(null===nw||(16384&nw.f)==0)&&(null===nk||!ez.call(nk,e))){var n=nx.deps;if((2097152&nx.f)!=0)e.rv<nj&&(e.rv=nj,null===nE&&null!==n&&n[nA]===e?nA++:null===nE?nE=[e]:nE.push(e));else{(nx.deps??=[]).push(e);var r=e.reactions;null===r?e.reactions=[nx]:ez.call(r,nx)||r.push(nx)}}if(nb&&na.has(e))return na.get(e);if((2&t)!=0){if(nb){var i=e.v;return((1024&e.f)==0&&null!==e.reactions||function e(t){if(t.v===to)return!0;if(null===t.deps)return!1;for(let n of t.deps)if(na.has(n)||(2&n.f)!=0&&e(n))return!0;return!1}(e))&&(i=nr(e)),na.set(e,i),i}var o=(512&e.f)==0&&!n_&&null!==nx&&(nv||(512&nx.f)!=0),s=(32768&e.f)==0;nO(e)&&(o&&(e.f|=512),ni(e)),o&&!s&&(no(e),function e(t){if(t.f|=512,null!==t.deps)for(let n of t.deps)(n.reactions??=[]).push(t),(2&n.f)!=0&&(512&n.f)==0&&(no(n),e(n))}(e))}if(tW?.has(e))return tW.get(e);if((8388608&e.f)!=0)throw e.v;return e.v}function nP(e){var t=n_;try{return n_=!0,e()}finally{n_=t}}function nF(e,t){var n=nw;null!==n&&(8192&n.f)!=0&&(e|=8192);var r={ctx:ta,deps:null,nodes:null,f:2048|e|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};tU?.register_created_effect(r);var i=r;if((4&e)!=0)null!==tQ?tQ.push(r):t0.ensure().schedule(r);else if(null!==t){try{nM(r)}catch(e){throw nQ(r),e}null===i.deps&&null===i.teardown&&null===i.nodes&&i.first===i.last&&(524288&i.f)==0&&(i=i.first,(16&e)!=0&&(65536&e)!=0&&null!==i&&(i.f|=65536))}if(null!==i&&(i.parent=n,null!==n&&(o=i,null===(s=n.last)?n.last=n.first=o:(s.next=o,o.prev=s,n.last=o)),null!==nx&&(2&nx.f)!=0&&(64&e)==0)){var o,s,a=nx;(a.effects??=[]).push(i)}return r}function nB(){return null!==nx&&!n_}function n$(e){let t=nF(8,null);return tM(t,1024),t.teardown=e,t}function nq(e){if(null===nw)throw null===nx&&function(){throw Error("https://svelte.dev/e/effect_orphan")}(),Error("https://svelte.dev/e/effect_in_unowned_derived");nb&&function(){throw Error("https://svelte.dev/e/effect_in_teardown")}();var t=nw.f;if(!(!nx&&(32&t)!=0&&(32768&t)==0))return nV(e);var n=ta;(n.e??=[]).push(e)}function nV(e){return nF(1048580,e)}
2752function nz(e,t=0){return nF(8|t,e)}function nU(e,t=[],n=[],r=[]){t6(r,t,n,t=>{nF(8,()=>e(...t.map(nR)))})}function nH(e,t=0){return nF(16|t,e)}function nW(e,t=0){return nF(0x1000000|t,e)}function nG(e){return nF(524320,e)}function nK(e){var t=e.teardown;if(null!==t){let e=nb,n=nx;nb=!0,nx=null;try{t.call(null)}finally{nb=e,nx=n}}}function nJ(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){let e=n.ac;null!==e&&ny(()=>{e.abort(e9)});var r=n.next;(64&n.f)!=0?n.parent=null:nQ(n,t),n=r}}function nQ(e,t=!0){var n=!1;(t||(262144&e.f)!=0)&&null!==e.nodes&&null!==e.nodes.end&&(nY(e.nodes.start,e.nodes.end),n=!0),tM(e,0x2000000),nJ(e,t&&!n),nD(e,0);var r=e.nodes&&e.nodes.t;if(null!==r)for(let e of r)e.stop();nK(e),e.f^=0x2000000,e.f|=16384;var i=e.parent;null!==i&&null!==i.first&&nX(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function nY(e,t){for(;null!==e;){var n=e===t?null:tA(e);e.remove(),e=n}}function nX(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function nZ(e,t,n=!0){var r=[];!function e(t,n,r){if((8192&t.f)==0){t.f^=8192;var i=t.nodes&&t.nodes.t;if(null!==i)for(let e of i)(e.is_global||r)&&n.push(e);for(var o=t.first;null!==o;){var s=o.next;if((64&o.f)==0){var a=(65536&o.f)!=0||(32&o.f)!=0&&(16&t.f)!=0;e(o,n,!!a&&r)}o=s}}}(e,r,!0);var i=()=>{n&&nQ(e),t&&t()},o=r.length;if(o>0){var s=()=>--o||i();for(var a of r)a.out(s)}else i()}function n0(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var i=n===r?null:tA(n);t.append(n),n=i}}function n1(e){let t={get:e=>tB(t.store)[e],set:(e,n)=>{"string"==typeof e?Object.assign(tB(t.store),{[e]:n}):Object.assign(tB(t.store),e),t.store.set(tB(t.store))},store:function(e,t=eZ){let n=null,r=new Set;function i(t){if(tn(e,t)&&(e=t,n)){let t=!tF.length;for(let t of r)t[1](),tF.push(t,e);if(t){for(let e=0;e<tF.length;e+=2)tF[e][0](tF[e+1]);tF.length=0}}}function o(t){i(t(e))}return{set:i,update:o,subscribe:function(s,a=eZ){let l=[s,a];return r.add(l),1===r.size&&(n=t(i,o)||eZ),s(e),()=>{r.delete(l),0===r.size&&n&&(n(),n=null)}}}}(e)};return t}globalThis.$altcha=globalThis.$altcha||{algorithms:new Map,defaults:n1({}),i18n:n1({}),instances:new Set,plugins:new Set},globalThis.$altcha.i18n.set("en",{ariaLinkLabel:"Altcha (official website)",cancel:"Cancel",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",enterCodeFromImage:"To proceed, please enter the code from the image below.",error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:'Protected by <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (official website)">ALTCHA</a>',getAudioChallenge:"Get an audio challenge",label:"I'm not a robot",loading:"Loading...",reload:"Reload",verify:"Verify",verificationRequired:"Verification required!",verified:"Verified",verifying:"Verifying...",waitAlert:"Verifying... please wait."}),"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");let n2=Symbol("events"),n5=new Set,n3=new Set;function n4(e,t,n,r={}){function i(e){if(r.capture||n9.call(t,e),!e.cancelBubble)return ny(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?th(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function n8(e,t,n,r,i){var o={capture:r,passive:i},s=n4(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&n$(()=>{t.removeEventListener(e,s,o)})}function n6(e,t,n){(t[n2]??={})[e]=n}function n7(e){for(var t=0;t<e.length;t++)n5.add(e[t]);for(var n of n3)n(e)}function n9(e){var t=this.ownerDocument,n=e.type,r=e.composedPath?.()||[],i=r[0]||e.target,o=0,s=e==e&&e[n2];if(s){var a=r.indexOf(s);if(-1!==a&&(this===document||this===window)){e[n2]=this;return}var l=r.indexOf(this);if(-1===l)return;a<=l&&(o=a)}if((i=r[o]||e.target)!==this){eW(e,"currentTarget",{configurable:!0,get:()=>i||t});var u=nx,c=nw;nx=null,nw=null;try{for(var d,h=[];null!==i;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var f=i[n2]?.[n];null==f||i.disabled&&e.target!==i||f.call(i,e)}catch(e){d?h.push(e):d=e}if(e.cancelBubble||p===this||null===p)break;i=p}if(d){for(let e of h)queueMicrotask(()=>{throw e});throw d}}finally{e[n2]=this,delete e.currentTarget,nx=u,nw=c}}}let re=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function rt(e){var t,n=tN("template");return t=e.replaceAll("<!>","\x3c!----\x3e"),n.innerHTML=re?.createHTML(t)??t,n.content}function rn(e,t){var n=nw;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function rr(e,t){var n,i=(1&t)!=0,o=(2&t)!=0,a=!e.startsWith("<!>");return()=>{if(tf)return rn(r,null),r;void 0===n&&(n=rt(a?e:"<!>"+e),i||(n=tE(n)));var t=o||s?document.importNode(n,!0):n.cloneNode(!0);return i?rn(tE(t),t.lastChild):rn(t,t),t}}function ri(e,t){return function(e,t,n="svg"){var i,o=!e.startsWith("<!>"),s=`<${n}>${o?e:"<!>"+e}</${n}>`;return()=>{if(tf)return rn(r,null),r;if(!i){var e=tE(rt(s));i=tE(e)}var t=i.cloneNode(!0);return rn(t,t),t}}(e,0,"svg")}function ro(e=""){if(!tf){var t=tC(e+"");return rn(t,t),t}var n=r;return 3!==n.nodeType?(n.before(n=tC()),tm(n)):tO(n),rn(n,n),n}function rs(){if(tf)return rn(r,null),r;var e=document.createDocumentFragment(),t=document.createComment(""),n=tC();return e.append(t,n),rn(t,n),e}function ra(e,t){if(tf){var n=nw;((32768&n.f)==0||null===n.nodes.end)&&(n.nodes.end=r),tg();return}null!==e&&e.before(t)}let rl=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"],ru={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInl
2752ine",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"},rc=["touchstart","touchmove"];function rd(e,t){var n=null==t?"":"object"==typeof t?`${t}`:t;n!==(e[e6]??=e.nodeValue)&&(e[e6]=n,e.nodeValue=`${n}`)}let rh=new Map;function rp(e,{target:t,anchor:n,props:i={},events:o,context:s,intro:a=!0,transformError:l}){tk();var u=void 0,c=function(e){t0.ensure();let t=nF(524352,e);return (e={})=>new Promise(n=>{e.outro?nZ(t,()=>{nQ(t),n(void 0)}):(nQ(t),n(void 0))})}(()=>{var a=n??t.appendChild(tC());new t8(a,{pending:()=>{}},t=>{tl({});var n=ta;if(s&&(n.c=s),o&&(i.$$events=o),tf&&rn(t,null),u=e(t,i)||{},tf&&(nw.nodes.end=r,null===r||8!==r.nodeType||"]"!==r.data))throw tp(),ti;tu()},l);var c=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!c.has(r)){c.add(r);var i=rc.includes(r);for(let e of[t,document]){var o=rh.get(e);void 0===o&&(o=new Map,rh.set(e,o));var s=o.get(r);void 0===s?(e.addEventListener(r,n9,{passive:i}),o.set(r,1)):o.set(r,s+1)}}}};return d(eU(n5)),n3.add(d),()=>{for(var e of c)for(let n of[t,document]){var r=rh.get(n),i=r.get(e);0==--i?(n.removeEventListener(e,n9),r.delete(e),0===r.size&&rh.delete(n)):r.set(e,i)}n3.delete(d),a!==n&&a.parentNode?.removeChild(a)}});return rf.set(u,c),u}let rf=new WeakMap;class rm{anchor;#G=new Map;#K=new Map;#J=new Map;#Q=new Set;#Y=!0;constructor(e,t=!0){this.anchor=e,this.#Y=t}#C=e=>{if(this.#G.has(e)){var t=this.#G.get(e),n=this.#K.get(t);if(n)(function e(t,n){if((8192&t.f)!=0){t.f^=8192,(1024&t.f)==0&&(tM(t,2048),t0.ensure().schedule(t));for(var r=t.first;null!==r;){var i=r.next,o=(65536&r.f)!=0||(32&r.f)!=0;e(r,!!o&&n),r=i}var s=t.nodes&&t.nodes.t;if(null!==s)for(let e of s)(e.is_global||n)&&e.in()}})(n,!0),this.#Q.delete(t);else{var r=this.#J.get(t);r&&(this.#K.set(t,r.effect),this.#J.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#G){if(this.#G.delete(t),t===e)break;let r=this.#J.get(n);r&&(nQ(r.effect),this.#J.delete(n))}for(let[e,r]of this.#K){if(e===t||this.#Q.has(e))continue;let i=()=>{if(Array.from(this.#G.values()).includes(e)){var t=document.createDocumentFragment();n0(r,t),t.append(tC()),this.#J.set(e,{effect:r,fragment:t})}else nQ(r);this.#Q.delete(e),this.#K.delete(e)};this.#Y||!n?(this.#Q.add(e),nZ(r,i,!1)):i()}}};#X=e=>{this.#G.delete(e);let t=Array.from(this.#G.values());for(let[e,n]of this.#J)t.includes(e)||(nQ(n.effect),this.#J.delete(e))};ensure(e,t){var n=tU;if(t&&!this.#K.has(e)&&!this.#J.has(e))if(1)this.#K.set(e,nG(()=>t(this.anchor)));else{var i=document.createDocumentFragment(),o=tC();i.append(o),this.#J.set(e,{effect:nG(()=>t(o)),fragment:i})}this.#G.set(n,e),tf&&(this.anchor=r),this.#C(n)}}function rg(e){null===ta&&function(){throw Error("https://svelte.dev/e/lifecycle_outside_component")}(),nq(()=>{let t=nP(e);if("function"==typeof t)return t})}
2752function ry(e,t,n=!1){tf&&(i=r,tg());var i,o=new rm(e);function s(e,t){if(tf&&e!==parseInt(tx(i).substring(1))){var n=tb();tm(n),o.anchor=n,tf=!1,o.ensure(e,t),tf=!0;return}o.ensure(e,t)}nH(()=>{var e=!1;t((t,n=0)=>{e=!0,s(n,t)}),e||s(-1,null)},65536*!!n)}let rv=Symbol("NaN");function rb(e,t,n=!1,i=!1,o=!1,s=!1){var a=e,l="";if(n){var u=e;tf&&(a=tm(tE(u)))}nU(()=>{var e=nw;if(l===(l=t()??"")){tf&&tg();return}if(n&&!tf){e.nodes=null,u.innerHTML=l,""!==l&&rn(tE(u),u.lastChild);return}if(null!==e.nodes&&(nY(e.nodes.start,e.nodes.end),e.nodes=null),""!==l){if(tf){r.data;for(var s=tg(),c=s;null!==s&&(8!==s.nodeType||""!==s.data);)c=s,s=tA(s);if(null===s)throw tp(),ti;rn(r,c),a=tm(s);return}var d=tN(i?"svg":o?"math":"template",i?"http://www.w3.org/2000/svg":o?"http://www.w3.org/1998/Math/MathML":void 0);d.innerHTML=l;var h=i||o?d:d.content;if(rn(tE(h),h.lastChild),i||o)for(;tE(h);)a.before(tE(h));else a.before(h)}})}let rx=[..." \n\r\f\xa0\v\uFEFF"];function r_(e,t=!1){var n=t?" !important;":";",r="";for(var i of Object.keys(e)){var o=e[i];null!=o&&""!==o&&(r+=" "+i+": "+o+n)}return r}function rw(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function rk(e,t={},n,r){for(var i in n){var o=n[i];t[i]!==o&&(null==n[i]?e.style.removeProperty(i):e.style.setProperty(i,o,r))}}function rC(e,t,n=!1){if(e.multiple){if(void 0==t)return;if(!e$(t))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");for(var r of e.options)r.selected=t.includes(rE(r));return}for(r of e.options){var i;if(i=rE(r),Object.is(tw(i),tw(t))){r.selected=!0;return}}n&&void 0===t||(e.selectedIndex=-1)}function rE(e){return"__value"in e?e.__value:e.value}let rA=Symbol("class"),rS=Symbol("style"),rT=Symbol("is custom element"),rj=Symbol("is html"),rN=te?"link":"LINK",rO=te?"input":"INPUT",rI=te?"option":"OPTION",rD=te?"select":"SELECT",rM=te?"progress":"PROGRESS";function rL(e){if(tf){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;rR(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var r=e.checked;rR(e,"checked",null),e.checked=r}}};e[e7]=n,th(n),ng()}}function rR(e,t,n,r){var i=rF(e);tf&&(i[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&e.nodeName===rN)||i[t]!==(i[t]=n)&&("loading"===t&&(e[e5]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&r$(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function rP(e,t,n=[],r=[],i=[],o,s=!1,a=!1){t6(i,n,r,n=>{var r=void 0,i={},l=e.nodeName===rD,u=!1;nW(()=>{var c=t(...n.map(nR)),d=function(e,t,n,r,i=!1,o=!1){tf&&i&&e.nodeName===rO&&(("checkbox"===e.type?"defaultChecked":"defaultValue")in n||rL(e));var s=rF(e),a=s[rT],l=!s[rj];let u=tf&&a;u&&(tf=!1);var c=t||{},d=e.nodeName===rI;for(var h in t)h in n||(n[h]=null);n.class?n.class="object"==typeof(y=n.class)?function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}(y):y??"":n[rA]&&(n.class=null),n[rS]&&(n.style??=null);var p=r$(e);for(let r in n){let i=n[r];if(d&&"value"===r&&null==i){e.value=e.__value="",c[r]=i;continue}if("class"===r){var f="http://www.w3.org/1999/xhtml"===e.namespaceURI;!function(e,t,n,r,i,o){var s=e[e4];if(tf||s!==n||void 0===s){var a=function(e,t,n){var r=null==e?"":""+e;if(n){for(var i of Object.keys(n))if(n[i])r=r?r+" "+i:i;else if(r.length)for(var o=i.length,s=0;(s=r.indexOf(i,s))>=0;){var a=s+o;(0===s||rx.includes(r[s-1]))&&(a===r.length||rx.includes(r[a]))?r=(0===s?"":r.substring(0,s))+r.substring(a+1):s=a}}return""===r?null:r}(n,0,o);tf&&a===e.getAttribute("class")||(null==a?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e[e4]=n}else if(o&&i!==o)for(var l in o){var u=!!o[l];(null==i||!!i[l]!==u)&&e.classList.toggle(l,u)}}(e,f,i,0,t?.[rA],n[rA]),c[r]=i,c[rA]=n[rA];continue}if("style"===r){!function(e,t,n,r){var i=e[e8];if(tf||i!==t){var o=function(e,t){if(t){var n,r,i="";if(Array.isArray(t)?(n=t[0],r=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,a=!1,l=[];n&&l.push(...Object.keys(n).map(rw)),r&&l.push(...Object.keys(r).map(rw));var u=0,c=-1;let t=e.length;for(var d=0;d<t;d++){var h=e[d];if(a?"/"===h&&"*"===e[d-1]&&(a=!1):o?o===h&&(o=!1):"/"===h&&"*"===e[d+1]?a=!0:'"'===h||"'"===h?o=h:"("===h?s++:")"===h&&s--,!a&&!1===o&&0===s){if(":"===h&&-1===c)c=d;else if(";"===h||d===t-1){if(-1!==c){var p=rw(e.substring(u,c).trim());l.includes(p)||(";"!==h&&d++,i+=" "+e.substring(u,d).trim()+";")}u=d+1,c=-1}}}}return n&&(i+=r_(n)),r&&(i+=r_(r,!0)),""===(i=i.trim())?null:i}return null==e?null:String(e)}(t,r);tf&&o===e.getAttribute("style")||(null==o?e.removeAttribute("style"):e.style.cssText=o),e[e8]=t}
2752else r&&(Array.isArray(r)?(rk(e,n?.[0],r[0]),rk(e,n?.[1],r[1],"important")):rk(e,n,r))}(e,i,t?.[rS],n[rS]),c[r]=i,c[rS]=n[rS];continue}var m=c[r];if(i!==m||void 0===i&&e.hasAttribute(r)){c[r]=i;var g=r[0]+r[1];if("$$"!==g)if("on"===g){let t={},n="$$"+r,o=r.slice(2);var y,v,b,x=(v=o,rl.includes(v));if((b=o).endsWith("capture")&&"gotpointercapture"!==b&&"lostpointercapture"!==b&&(o=o.slice(0,-7),t.capture=!0),!x&&m){if(null!=i)continue;e.removeEventListener(o,c[n],t),c[n]=null}if(x)n6(o,e,i),n7([o]);else if(null!=i){let i=function(e){c[r].call(this,e)};c[n]=n4(o,e,i,t)}}else if("style"===r)rR(e,r,i);else if("autofocus"===r)!function(e,t){if(t){let t=document.body;e.autofocus=!0,th(()=>{document.activeElement===t&&e.focus()})}}(e,!!i);else if(a||"__value"!==r&&("value"!==r||null==i))if("selected"===r&&d)i?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected");else{var _,w=r;l||(w=ru[_=(_=w).toLowerCase()]??_);var k="defaultValue"===w||"defaultChecked"===w;if(null!=i||a||k)k||p.includes(w)&&(a||"string"!=typeof i)?(e[w]=i,w in s&&(s[w]=to)):"function"!=typeof i&&rR(e,w,i);else if(s[r]=null,"value"===w||"checked"===w){let n=void 0===t;if("value"===w){let t=e.defaultValue;e.removeAttribute(w),e.defaultValue=t,e.value=e.__value=n?t:null}else{let t=e.defaultChecked;e.removeAttribute(w),e.defaultChecked=t,e.checked=!!n&&t}}else e.removeAttribute(r)}else e.value=e.__value=i}}return u&&(tf=!0),c}(e,r,c,o,s,a);for(let t of(u&&l&&"value"in c&&rC(e,c.value),Object.getOwnPropertySymbols(i)))c[t]||nQ(i[t]);for(let t of Object.getOwnPropertySymbols(c)){var h=c[t];"@attach"!==t.description||r&&h===r[t]||(i[t]&&nQ(i[t]),i[t]=nG(()=>(function(e,t){var n,r=void 0;nW(()=>{r!==(r=t())&&(n&&(nQ(n),n=null),r&&(n=nG(()=>{nF(4,()=>r(e))})))})})(e,()=>h))),d[t]=h}r=d}),l&&nF(4,()=>{var t;rC(e,r.value,!0),(t=new MutationObserver(()=>{rC(e,e.__value)})).observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),n$(()=>{t.disconnect()})}),u=!0})}function rF(e){return e[e3]??={[rT]:e.nodeName.includes("-"),[rj]:e.namespaceURI===ts}}var rB=new Map;function r$(e){var t,n=e.getAttribute("is")||e.nodeName,r=rB.get(n);if(r)return r;rB.set(n,r=[]);for(var i=e,o=Element.prototype;o!==i;){for(var s in t=eK(i))t[s].set&&"innerHTML"!==s&&"textContent"!==s&&"innerText"!==s&&r.push(s);i=eY(i)}return r}function rq(e){var t=e.type;return"number"===t||"range"===t}function rV(e){return""===e?null:+e}function rz(e,t){return e===t||e?.[e1]===t}function rU(e={},t,n,r){var i=ta.r,o=nw;return nF(4,()=>{var r,s;return nz(()=>{r=s,s=[],nP(()=>{!rz(n(...s),e)&&(t(e,...s),r&&rz(n(...r),e)&&t(null,...r))})}),()=>{let r=o;for(;r!==i&&null!==r.parent&&0x2000000&r.parent.f;)r=r.parent;let a=r.teardown;r.teardown=()=>{s&&rz(n(...s),e)&&t(null,...s),a?.()}}}),e}let rH={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set:(e,t)=>!1,getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))};function rW(e,t,n){return new Proxy({props:e,exclude:t},rH)}function rG(e,t,n,r){var i=r,o=!0,s=()=>(o&&(o=!1,i=r),i);void 0===e[t]&&void 0!==r&&s();var a=!1,l=ne(()=>{var n;return a=!1,void 0===(n=e[t])?s():(o=!0,n)}),u=nw;return function(e,t){if(arguments.length>0){let n=t?nR(l):e;return nh(l,n),a=!0,void 0!==i&&(i=n),e}return nb&&a||(16384&u.f)!=0?l.v:nR(l)}}class rK{#Z;#ee;constructor(e){var t=new Map,n=(e,n)=>{var r=nd(n,!1,!1);return t.set(e,r),r};let i=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>nR(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===e2||(nR(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,i)=>(nh(t.get(r)??n(r,i),i),Reflect.set(e,r,i))});for(let t of(this.#ee=(e.hydrate?function(e,t){tk(),t.intro=t.intro??!1;let n=t.target,i=tf,o=r;try{for(var s=tE(n);s&&(8!==s.nodeType||"["!==s.data);)s=tA(s);if(!s)throw ti;tf=!0,tm(s);let r=rp(e,{...t,anchor:s});return tf=!1,r}catch(r){if(r instanceof Error&&r.message.split("\n").some(e=>e.startsWith("https://svelte.dev/e/")))throw r;return r!==ti&&console.warn("Failed to hydrate: ",r),!1===t.recover&&function(){throw Error("https://svelte.dev/e/hydration_failed")}(),tk(),n.textContent="",tf=!1,rp(e,t)}finally{tf=i,tm(o)}}:function(e,t){return rp(e,t)})(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),e?.props?.$$host&&!1!==e.sync||t1(),this.#Z=i.$$events,Object.keys(this.#ee)))"$set"!==t&&"$destroy"!==t&&"$on"!==t&&eW(this,t,{get(){return this.#ee[t]},set(e){this.#ee[t]=e},enumerable:!0});this.#ee.$set=e=>{Object.assign(i,e)},this.#ee.$destroy=()=>{!function(e,t){let n=rf.get(e);n?(rf.delete(e),n(void 0)):Promise.resolve()}(this.#ee)}}$set(e){this.#ee.$set(e)}$on(e,t){this.#Z[e]=this.#Z[e]||[];let n=(...e)=>t.call(this,...e);return this.#Z[e].push(n),()=>{this.#Z[e]=this.#Z[e].filter(e=>e!==n)}}$destroy(){this.#ee.$destroy()}}let rJ=class{};function rQ(e,t,n,r){let i=n[e]?.type;if(t="Boolean"===i&&"boolean"!=typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function rY(e,t,n,r,i,o){let s=class extends rJ{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return eH(t).map(e=>(t[e].attribute||e).toLowerCase())}};
2752return eH(t).forEach(e=>{eW(s.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=rQ(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(eG(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{eW(s.prototype,e,{get(){return this.$$c?.[e]}})}),e.element=s,s}"function"==typeof HTMLElement&&(rJ=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(e){return t=>{let n=tN("slot");"default"!==e&&(n.name=e),ra(t,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=function(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}(this);for(let r of this.$$s)r in n&&("default"!==r||this.$$d.children?t[r]=e(r):(this.$$d.children=e(r),t.default=!0));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=rQ(t,e.value,this.$$p_d,"toProp"))}for(let e in this.$$p_d)e in this.$$d||void 0===this[e]||(this.$$d[e]=this[e],delete this[e]);for(let e in this.$$c=new rK({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=function(e){t0.ensure();let t=nF(524352,e);return()=>{nQ(t)}}(()=>{nz(()=>{for(let e of(this.$$r=!0,eH(this.$$c))){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=rQ(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})}),this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=rQ(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return eH(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});var rX=rr('<div class="altcha-checkbox"><input/> <svg aria-hidden="true" width="12" height="9" viewBox="0 0 12 9"><polyline points="1 5 4 8 11 1"></polyline></svg> <div class="altcha-spinner altcha-checkbox-spinner" aria-hidden="true"></div></div>');function rZ(e,t){let n;tl(t,!0);let r=rG(t,"loading"),i=rW(t,["$$slots","$$events","$$legacy","$$host","loading"]);var o=rX(),s=tS(o);rP(s,()=>({type:"checkbox",...i}),void 0,void 0,void 0,void 0,!0),rU(s,e=>n=e,()=>n);var a=tj(s,2);return tv(2),ty(o),nU(()=>rR(o,"data-loading",r())),n6("click",a,function(){n?.click()}),ra(e,o),tu({get loading(){return r()},set loading($$value){r($$value),t1()}})}n7(["click"]),rY(rZ,{loading:{}},[],[],{mode:"open"});var r0=rr('<div class="altcha-checkbox-native"><input/> <div class="altcha-spinner altcha-checkbox-native-spinner"></div></div>');function r1(e,t){tl(t,!0);let n=rG(t,"loading"),r=rW(t,["$$slots","$$events","$$legacy","$$host","loading"]);var i=r0();return rP(tS(i),()=>({type:"checkbox",...r}),void 0,void 0,void 0,void 0,!0),tv(2),ty(i),nU(()=>rR(i,"data-loading",n())),ra(e,i),tu({get loading(){return n()},set loading($$value){n($$value),t1()}})}rY(r1,{loading:{}},[],[],{mode:"open"});var r2=rr('<div><a target="_blank" class="altcha-logo" aria-hidden="true" tabindex="-1"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>');function r5(e,t){tl(t,!0);let n=rG(t,"strings");var r=r2(),i=tS(r);return rR(i,"href","https://altcha.org"),ty(r),nU(()=>
vendor: 7,463 bytes, line 2752
2752rR(i,"aria-label",n().ariaLinkLabel)),ra(e,r),tu({get strings(){return n()},set strings($$value){n($$value),t1()}})}rY(r5,{strings:{}},[],[],{mode:"open"});var r3=rr('<div class="altcha-footer"><p></p> <!></div>');function r4(e,t){tl(t,!0);let n=rG(t,"logo"),r=rG(t,"strings");var i=r3(),o=tS(i);rb(o,()=>r().footer,!0),ty(o);var s=tj(o,2),a=e=>{r5(e,{get strings(){return r()}})};return ry(s,e=>{n()&&e(a)}),ty(i),ra(e,i),tu({get logo(){return n()},set logo($$value){n($$value),t1()},get strings(){return r()},set strings($$value){r($$value),t1()}})}rY(r4,{logo:{},strings:{}},[],[],{mode:"open"});var r8=rr('<div class="altcha-switch"><input/> <div class="altcha-switch-toggle"><div class="altcha-spinner altcha-switch-spinner"></div></div></div>');function r6(e,t){let n;tl(t,!0);let r=rG(t,"loading"),i=rW(t,["$$slots","$$events","$$legacy","$$host","loading"]);var o=r8(),s=tS(o);rP(s,()=>({type:"checkbox",...i}),void 0,void 0,void 0,void 0,!0),rU(s,e=>n=e,()=>n);var a=tj(s,2);return ty(o),nU(()=>rR(o,"data-loading",r())),n6("click",a,function(){n?.click()}),ra(e,o),tu({get loading(){return r()},set loading($$value){r($$value),t1()}})}n7(["click"]),rY(r6,{loading:{}},[],[],{mode:"open"});var r7=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(r7||{}),r9=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(r9||{}),ie=rr('<div class="altcha-code-challenge-title"> </div>'),it=rr('<div class="altcha-spinner"></div>'),ir=ri('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'),ii=ri('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'),io=ri('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'),is=rr('<button type="button" class="altcha-button altcha-button-secondary"><!></button>'),ia=rr('<audio hidden="" autoplay=""></audio>'),il=rr('<div class="altcha-code-challenge"><form data-code-challenge="true"><!> <div class="altcha-code-challenge-text"> </div> <img class="altcha-code-challenge-image" alt=""/> <div class="altcha-code-challenge-row"><input type="text" class="altcha-input" autocomplete="off" name="" required=""/> <!> <button type="button" class="altcha-button altcha-button-secondary"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <div class="altcha-code-challenge-buttons"><button type="submit" class="altcha-button"> </button> <button type="button" class="altcha-button altcha-button-secondary"> </button></div></form> <!></div>');function iu(e,t){tl(t,!0);let n=rG(t,"audioUrl"),r=rG(t,"codeChallenge"),i=rG(t,"config"),o=rG(t,"imageUrl"),s=rG(t,"onCancel"),a=rG(t,"onReload"),l=rG(t,"onSubmit"),u=rG(t,"strings"),c=nc(void 0),d=nc(void 0),h=nc(void 0),p=nc(!1),f=nc(""),m=nc(!1);function g(){nh(c,r7.PAUSED,!0)}function y(e){nh(c,r7.ERROR,!0)}function v(){nh(c,r7.READY,!0)}function b(){nh(c,r7.LOADING,!0)}function x(){nh(c,r7.PLAYING,!0)}function _(){nh(c,r7.PAUSED,!0)}function w(){nR(d)?nR(c)===r7.LOADING||(nR(d).paused?(n()&&nR(d).src!==n()&&(nR(d).src=n()),nR(d).currentTime=0,nR(d).play()):nR(d).pause()):(nh(m,!0),requestAnimationFrame(()=>{nR(d)&&n()&&(nR(d).src=n(),nR(d).play())}))}rg(()=>(i().disableAutoFocus||nL().then(()=>{nR(h)?.focus()}),()=>{nR(d)&&(nR(d).pause(),nh(d,void 0))}));var k=il(),C=tS(k),E=tS(C),A=e=>{var t=ie(),n=tS(t,!0);ty(t),nU(()=>rd(n,u().verificationRequired)),ra(e,t)};ry(E,e=>{"standard"!==i().codeChallengeDisplay&&e(A)});var S=tj(E,2),T=tS(S,!0);ty(S);var j=tj(S,2),N=tj(j,2),O=tS(N);rL(O),O.disabled=nR(p),rU(O,e=>nh(h,e),()=>nR(h));var I=tj(O,2),D=e=>{var t=is(),n=tS(t),r=e=>{ra(e,it())},i=e=>{ra(e,ir())},o=e=>{ra(e,ii())},s=e=>{ra(e,io())};ry(n,e=>{nR(c)===r7.LOADING?e(r):nR(c)===r7.ERROR?e(i,1):nR(c)===r7.PLAYING?e(o,2):e(s,-1)}),ty(t),nU(()=>{rR(t,"title",u().getAudioChallenge),t.disabled=nR(c)===r7.LOADING||nR(c)===r7.ERROR,rR(t,"aria-label",nR(c)===r7.LOADING?u().loading:u().getAudioChallenge)}),n8("click",t,()=>w(),!0),ra(e,t)};ry(I,e=>{r().audio&&e(D)});var M=tj(I,2);ty(N);var L=tj(N,2),R=tS(L),P=tS(R,!0);ty(R);var F=tj(R,2),B=tS(F,!0);ty(F),ty(L),ty(C);var $=tj(C,2),q=e=>{var t=ia();rU(t,e=>nh(d,e),()=>nR(d)),n8("error",t,y),n8("loadstart",t,b),n8("canplay",t,v),n8("pause",t,_),n8("playing",t,x),n8("ended",t,g),ra(e,t)};return ry($,e=>{nR(m)&&e(q)}),ty(k),nU(()=>{rd(T,u().enterCodeFromImage),rR(j,"src",o()),rR(O,"minlength",r().length||1),rR(O,"maxlength",r().length),rR(O,"placeholder",u().enterCode),rR(O,"aria-label",nR(c)===r7.LOADING?u().loading:nR(c)===r7.PLAYING?"":u().enterCodeAria),rR(O,"aria-live",nR(c)?"assertive":"polite"),rR(O,"aria-busy",nR(c)===r7.LOADING),rR(M,"title",u().reload),rR(M,"aria-label",u().reload),rR(R,"aria-label",u().verify),rd(P,u().verify),rR(F,"aria-label",u().cancel),rd(B,u().cancel)}),n8("submit",C,function(e){e.preventDefault(),e.stopPropagation(),l()?.(nR(f))},!0),n6("keydown",O,function(e){"Space"===e.code?(e.preventDefault(),e.stopPropagation(),w()):"Escape"===e.code&&(e.preventDefault(),e.stopPropagation(),s()?.())}),!function(e,t,n=t){var r=new WeakSet;!function(e,t,n,r=n){e.addEventListener(t,()=>ny(n));let i=e[e7];i?e[e7]=()=>{i(),r(!0)}:e[e7]=()=>r(!0),ng()}(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(n(o=rq(e)?rV(o):o),null!==tU&&r.add(tU),await nL(),o!==(o=t())){var s=e.selectionStart,a=e.selectionEnd,l=e.value.length;if(e.value=o??"",null!==a){var u=e.value.length;s===a&&a===l&&u>l?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=s,e.selectionEnd=Math.min(a,u))}}}),(tf&&e.defaultValue!==e.value||null==nP(t)&&e.value)&&(n(rq(e)?rV(e.value):e.value),null!==tU&&r.add(tU)),nz(()=>{var n=t();if(e===document.activeElement){var i=tU;if(r.has(i))return}(!rq(e)||n!==rV(e.value))&&("date"!==e.type||n||e.value)&&n!==e.value&&(e.value=n??"")})}(O,()=>nR(f),e=>nh(f,e)),n8("click",M,()=>a()?.(),!0),n8("click",F,()=>s()?.(),!0),ra(e,k),tu({get audioUrl(){return n()},set audioUrl($$value){n($$value),t1()}
2752,get codeChallenge(){return r()},set codeChallenge($$value){r($$value),t1()},get config(){return i()},set config($$value){i($$value),t1()},get imageUrl(){return o()},set imageUrl($$value){o($$value),t1()},get onCancel(){return s()},set onCancel($$value){s($$value),t1()},get onReload(){return a()},set onReload($$value){a($$value),t1()},get onSubmit(){return l()},set onSubmit($$value){l($$value),t1()},get strings(){return u()},set strings($$value){u($$value),t1()}})}n7(["keydown"]),rY(iu,{audioUrl:{},codeChallenge:{},config:{},imageUrl:{},onCancel:{},onReload:{},onSubmit:{},strings:{}},[],[],{mode:"open"});var ic=rr('<div class="altcha-popover-backdrop" data-backdrop=""></div>'),id=rr('<div class="altcha-popover-arrow"></div>'),ih=rr('<div role="button" class="altcha-popover-close">×</div>'),ip=rr('<!> <div><!> <!> <div class="altcha-popover-content"><!></div></div>',1);function im(e,t){tl(t,!0);let n=rG(t,"anchor"),r=rG(t,"children"),o=rG(t,"display",7,"standard"),s=rG(t,"backdrop",7,!1),a=rG(t,"onClickOutside"),l=rG(t,"onClickOutsideDelay",7,600),u=rG(t,"onClose"),c=rG(t,"placement",7,"auto"),d=rG(t,"updateUISignal"),h=rG(t,"variant",7,"neutral"),p=rW(t,["$$slots","$$events","$$legacy","$$host","anchor","children","display","backdrop","onClickOutside","onClickOutsideDelay","onClose","placement","updateUISignal","variant"]),f=nc(void 0),m=nc(void 0),g=nc(!1),y=nc(0);function v(){u()?.()}function b(){if(n()&&"auto"===c()&&nR(f)){let e=n().getBoundingClientRect(),t=document.documentElement.clientHeight-(e.top+e.height)<nR(f).clientHeight;nR(g)!==t&&nh(g,t)}}nq(()=>{"auto"!==c()&&nh(g,"top"===c())}),nq(()=>{d()&&b()}),rg(()=>{let e="bottomsheet"===o()||"overlay"===o();return e&&(nR(m)&&document.body.append(nR(m)),nR(f)&&document.body.append(nR(f))),b(),nL().then(()=>{nh(y,Date.now(),!0)}),()=>{e&&(nR(m)&&document.body.removeChild(nR(m)),nR(f)&&document.body.removeChild(nR(f)))}});var x=ip();n8("click",i,function(e){let t=e.target;!nR(f)?.contains(t)&&(!l()||nR(y)+l()<Date.now())&&a()?.()},!0),n8("resize",i,function(){b()}),n8("scroll",i,function(){b()});var _=tT(x),w=e=>{var t=ic();rU(t,e=>nh(m,e),()=>nR(m)),ra(e,t)};ry(_,e=>{s()&&e(w)});var k=tj(_,2);rP(k,()=>({...p,class:`altcha-popover ${(t.class||"")??""}`,"data-popover":!0,"data-variant":h(),"data-top":nR(g),"data-display":o()}));var C=tS(k),E=e=>{ra(e,id())};ry(C,e=>{"standard"===o()&&e(E)});var A=tj(C,2),S=e=>{var t=ih();n8("click",t,v,!0),ra(e,t)};ry(A,e=>{"standard"!==o()&&e(S)});var T=tj(A,2);return!function(e,t,...n){var r=new rm(e);nH(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},65536)}(tS(T),()=>r()??eZ),ty(T),ty(k),rU(k,e=>nh(f,e),()=>nR(f)),ra(e,x),tu({get anchor(){return n()},set anchor($$value){n($$value),t1()},get children(){return r()},set children($$value){r($$value),t1()},get display(){return o()},set display($$value="standard"){o($$value),t1()},get backdrop(){return s()},set backdrop($$value=!1){s($$value),t1()},get onClickOutside(){return a()},set onClickOutside($$value){a($$value),t1()},get onClickOutsideDelay(){return l()},set onClickOutsideDelay($$value=600){l($$value),t1()},get onClose(){return u()},set onClose($$value){u($$value),t1()},get placement(){return c()},set placement($$value="auto"){c($$value),t1()},get updateUISignal(){return d()},set updateUISignal($$value){d($$value),t1()},get variant(){return h()},set variant($$value="neutral"){h($$value),t1()}})}async function ig(e){let{challenge:t,concurrency:n=navigator.hardwareConcurrency,controller:r=new AbortController,createWorker:i,onOutOfMemory:o=e=>e>1?Math.floor(e/2):0,counterMode:s,timeout:a=9e4}=e,l=Math.min(16,Math.max(1,n)),u=[],c=()=>{for(let e of u)e.terminate()};for(let e=0;e<l;e++)u.push(await i(t.parameters.algorithm));let d=null;try{d=await Promise.race(u.map((e,n)=>(r.signal.addEventListener("abort",()=>{e.postMessage({type:"abort"})}),new Promise((r,i)=>{e.addEventListener("error",e=>{i(e)}),e.addEventListener("message",t=>{if(t.data){for(let t of u)t!==e&&t.postMessage({type:"abort"});if(t.data.error)return i(Error(t.data.error))}r(t.data)}),e.postMessage({challenge:t,counterMode:s,counterStart:n,counterStep:l,timeout:a,type:"work"})}))))}catch(n){if(n instanceof Error&&n?.message?.includes("Out of memory")&&o){c();let n=o(l);if(n)return ig({...e,challenge:t,controller:r,concurrency:n,createWorker:i})}throw n}finally{c()}return r.signal.aborted?null:d||null}rY(im,{anchor:{},children:{},display:{},backdrop:{},onClickOutside:{},onClickOutsideDelay:{},onClose:{},placement:{},updateUISignal:{},variant:{}},[],[],{mode:"open"});class iy{TAG_CODES={INPUT:1,TEXTAREA:2,SELECT:3,BUTTON:4,A:5,DETAILS:6,SUMMARY:7,IFRAME:8,VIDEO:9,AUDIO:10};maxSamples;sampleInterval;target;focusStartTime=0;focusInteraction=0;focusInteractionTimer=null;lastPointerSample=0;lastTouchSample=0;lastScrollSample=0;
2752pendingPointer=null;pendingTouch=null;focus=[];pointer=[];scroll=[];touch=[];constructor(e={}){let{maxSamples:t=60,sampleInterval:n=50,target:r=window}=e;this.maxSamples=t,this.sampleInterval=n,this.target=r,this.attach()}destroy(){let e={capture:!0};this.target.removeEventListener("focusin",this.onFocus,e),this.target.removeEventListener("keydown",this.onInteraction,e),this.target.removeEventListener("pointerdown",this.onInteraction,e),this.target.removeEventListener("pointermove",this.onPointer,e),this.target.removeEventListener("scroll",this.onScroll,e),this.target.removeEventListener("touchmove",this.onTouchMove,e)}export(){return{focus:this.focus,maxTouchPoints:navigator.maxTouchPoints||0,pointer:this.pointer,scroll:this.scroll,time:Date.now(),touch:this.touch}}attach(){let e={passive:!0,capture:!0};this.target.addEventListener("focusin",this.onFocus,e),this.target.addEventListener("keydown",this.onInteraction,e),this.target.addEventListener("pointerdown",this.onInteraction,e),this.target.addEventListener("pointermove",this.onPointer,e),this.target.addEventListener("scroll",this.onScroll,e),this.target.addEventListener("touchmove",this.onTouchMove,e)}evict(e){e.length>this.maxSamples&&e.splice(0,e.length-this.maxSamples)}onFocus=e=>{if(2===this.focusInteraction)return;let t=e.target;if(!(t instanceof Element))return;let n=performance.now();0===this.focusStartTime&&(this.focusStartTime=n),this.focus.push([Math.round(n-this.focusStartTime),t.tabIndex,this.TAG_CODES[t.tagName]??0,+!!this.focusInteraction]),this.evict(this.focus)};onInteraction=e=>{this.focusInteraction="keyCode"in e?1:2,this.focusInteractionTimer&&clearTimeout(this.focusInteractionTimer),this.focusInteractionTimer=setTimeout(()=>{this.focusInteraction=0},100)};onPointer=e=>{if("touch"===e.pointerType)return;let t=e.timeStamp||performance.now();this.pendingPointer=[Math.round(e.clientX),Math.round(e.clientY),Math.round(t)],t-this.lastPointerSample>=this.sampleInterval&&(this.pointer.push(this.pendingPointer),this.lastPointerSample=t,this.pendingPointer=null,this.evict(this.pointer))};onScroll=()=>{let e=performance.now();e-this.lastScrollSample<this.sampleInterval||(this.scroll.push([Math.round(window.scrollY),Math.round(e)]),this.lastScrollSample=e,this.evict(this.scroll))};onTouchMove=e=>{let t=e.timeStamp||performance.now(),n=e.touches[0];n&&(this.pendingTouch=[Math.round(n.clientX),Math.round(n.clientY),Math.round(t),Math.round(1e3*n.force)/1e3,Math.round(n.radiusX||0),Math.round(n.radiusY||0)],t-this.lastTouchSample>=this.sampleInterval&&(this.touch.push(this.pendingTouch),this.lastTouchSample=t,this.pendingTouch=null,this.evict(this.touch)))}}var iv=rr('<div class="altcha-overlay-backdrop" data-backdrop=""></div>'),ib=rr('<div class="altcha-overlay-content"></div>'),ix=rr('<div role="button" class="altcha-overlay-close">×</div> <!>',1),i_=rr('<div class="altcha-floating-arrow"></div>'),iw=rr('<input type="hidden"/>'),ik=rr('<div class="altcha-error">Secure context (HTTPS) required.</div>'),iC=rr('<div class="altcha-error"> </div>'),iE=rr('<div class="altcha-error"> </div>'),iA=rr("<!> <!>",1),iS=rr('<!> <div class="altcha"><!> <div class="altcha-main"><div><div class="altcha-checkbox-wrap"><!> <label><!></label></div> <!></div> <!> <!> <!></div> <!></div>',1);"undefined"!=typeof window&&window.customElements&&!customElements.get("altcha-widget")&&customElements.define("altcha-widget",rY(function(e,t){tl(t,!0);let[n,s]=function(){let e={};return[e,function(){n$(()=>{for(var t in e)e[t].unsubscribe();eW(e,t$,{enumerable:!1,value:!0})})}]}(),a=["ar","fa","he","ur"],{isSecureContext:l}=globalThis,{store:u}=globalThis.$altcha.defaults,c=navigator.hardwareConcurrency||2,d=navigator.deviceMemory||0,h=d&&d<=4?Math.min(4,c):c,p=globalThis.$altcha.i18n.store,f=t.$$host,m=(e,t)=>{nL().then(()=>{f?.dispatchEvent(new CustomEvent(e,{detail:t}))})},g=null,y=nc(t_(new URL(location.origin))),v=nc(!1),b=nc(null),x=nc(null),_=nc(null),w=nc(t_(r9.UNVERIFIED)),k=nc(void 0),C=nc(void 0),E=nc(null),A=nc(void 0),S=nc(null),T=nc(null),j=nc(null),N=nc(null),O=nc(t_([])),I=nc(0),D=nc(t_({})),M=nc(!0),L=nn(()=>({fetch:(e,t)=>fetch(e,t),audioChallengeLanguage:"",auto:"off",barPlacement:"bottom",challenge:"",codeChallenge:null,codeChallengeDisplay:"standard",credentials:null,debug:!1,disableAutoFocus:!1,display:"standard",floatingAnchor:"",floatingOffset:8,floatingPersist:!1,floatingPlacement:"auto",hideFooter:!1,hideLogo:!1,humanInteractionSignature:!0,language:"",mockError:!1,minDuration:500,overlayContent:"",name:"altcha",popoverPlacement:"auto",retryOnOutOfMemoryError:!0,setCookie:null,serverVerificationFields:!1,serverVerificationTimeZone:!1,test:!1,timeout:9e4,type:"checkbox",validationMessage:"",verifyFunction:null,verifyUrl:"",workers:h,...tq(u,"$altchaDefaults",n),...nR(D)})),R=nn(()=>`altcha-checkbox-${t.id||Math.floor(1e12*Math.random()).toString(16)}`),P=nn(()=>(function(e){switch(e){case"checkbox":return rZ;case"switch":return r6;default:return r1}})(nR(L).type)),F=nn(()=>nR(L).auto),B=nn(()=>nR(w)===r9.VERIFYING),$=nn(()=>!nR(L).hideFooter),q=nn(()=>!nR(L).hideLogo&&"bar"!==nR(L).display),V=nn(()=>(function(e,t){let n=Object.keys(e).map(e=>e.toLowerCase()),r=t.reduce((t,r)=>(r=r.toLowerCase(),t||(e[r]?r:null)||n.find(e=>r.split("-")[0]===e.split("-")[0])||null),null);return e[r||""]||(r="en"),{language:r,strings:e[r]}})(tq(p,"$altchaI18nStore",n),[nR(L).language,document.documentElement.lang,...navigator.languages])),z=nn(()=>a.includes(nR(V).language)?"rtl":void 0),U=nn(()=>({...nR(V).strings})),H=nn(()=>nR(b)?.audio?.match(/^(https?:)?\//)?Y(nR(b).audio,nR(y),{language:nR(L).audioChallengeLanguage||nR(V).language}).toString():nR(b)?.audio),W=nn(()=>nR(b)?.image?.match(/^(https?:)?\//)?Y(nR(b).image,nR(y)):nR(b)?.image);async function G(e,...t){let n;for(let r of nR(O))n=await r[e].call(r,...t);return n}async function K(e){await new Promise(t=>setTimeout(t,e))}async function J(e=nR(L).challenge,t){var n,r;let i=await G("onFetchChallenge",e),o=null;if(void 0!==i)return i;if("string"==typeof e)if(e.startsWith("{")){ed("parsing JSON challenge");try{o=JSON.parse(e)}catch{throw Error("Unable to parse JSON challenge.")}}else{ed("fetching challenge from",t?.method||"GET",e),nh(y,new URL(e,location.origin),!0);let n=await nR(L).fetch(e,{credentials:nR(L).credentials||void 0,...t});await ea(n);let r=n.headers.get("x-altcha-config");r&&function(e){try{let t=JSON.parse(e);t&&"object"==typeof t&&eu({serverVerificationFields:t?.sentinel?.fields,serverVerificationTimeZone:t?.sentinel?.timeZone,verifyUrl:t.verifyurl,...t})}catch(e){ed("unable to configure from x-altcha-config header",e)}}(r);let i=await n.json();if(i&&"his"in i&&i.his){if(ed("requested HIS"),!g)throw Error("Server requested HIS data but collector is disabled.");return J(Y(i.his.url,nR(y)),{body:JSON.stringify({his:g.export()}),headers:{"content-type":"application/json"},method:"POST"})}i&&"hisResult"in i&&i.hisResult&&ed("HIS result",i.hisResult),o=i}else if(e&&"object"==typeof e)try{o=JSON.parse(JSON.stringify(e))}catch{throw Error("Unable to parse JSON challenge.")}if("object"==typeof(n=o)&&"challenge"in n&&(o=function(e){let[t,n]=e.salt.split("?"),r={};if(n)try{Object.assign(r,Object.fromEntries(new URLSearchParams(n).entries()))}catch{}let i={codeChallenge:e.codeChallenge,parameters:{algorithm:e.algorithm,cost:1,data:r,expiresAt:r?.expires?parseInt(r.expires,10):void 0,keyLength:"SHA-512"===e.algorithm?64:"SHA-384"===e.algorithm?48:32,nonce:Array.from(new Uint8Array(new TextEncoder().encode(e.salt))).map(e=>e.toString(16).padStart(2,"0")).join(""),keyPrefix:e.challenge,salt:""},signature:e.signature};return Object.defineProperties(i,{_originalSalt:{enumerable:!1,value:e.salt,writable:!1},_version:{enumerable:!1,value:1,writable:!1}}),i}(o)),!((r=o)&&"object"==typeof r&&"parameters"in r&&r.parameters&&"object"==typeof r.parameters&&"algorithm"in r.parameters&&"nonce"in r.parameters&&"salt"in r.parameters&&"keyPrefix"in r.parameters))throw Error("Challenge validation failed.");return o}function Q(){return document.getElementById(nR(R))}function Y(e,t,n){let r=new URL(e,t);if(r.search||(r.search=t.search),n)for(let e in n)void 0!==n[e]&&null!==n[e]&&r.searchParams.set(e,n[e]);return r.toString()}function X(e){!nR(v)&&e.currentTarget.checked?(e.preventDefault(),e.currentTarget.checked=!1,nR(w)!==r9.VERIFYING&&eg()):e.currentTarget.checked||(e.preventDefault(),eh())}function Z(e){nR(w)===r9.VERIFYING?e.currentTarget.setCustomValidity(nR(U).waitAlert):nR(L).val
2752idationMessage&&e.currentTarget.setCustomValidity(nR(L).validationMessage)}function ee(){es(nR(L).display),eh()}function et(e){"onfocus"===nR(F)&&nR(w)===r9.UNVERIFIED&&eg()}function en(){es(nR(L).display),eh()}function er(e){let t=e.target;t?.getAttribute("data-code-challenge")!=="true"&&"onsubmit"===nR(F)&&nR(w)===r9.UNVERIFIED&&(e.preventDefault(),e.stopPropagation(),nh(S,e.submitter,!0),ef(),eg().then(e=>{e&&!nR(b)&&nL().then(()=>{eo(nR(S))})}))}async function ei(e,t){let n=await G("onRequestServerVerification",e,t);if(void 0!==n)return n;if(ed("requesting server verification from",nR(L).verifyUrl),!nR(L).verifyUrl)throw Error("Parameter verifyUrl must be set for server verification.");let r=await nR(L).fetch(Y(nR(L).verifyUrl,nR(y)),{body:JSON.stringify({code:t,fields:nR(L).serverVerificationFields?[...nR(E)?.querySelectorAll('input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')||[]].reduce((e,t)=>{let n=t.name,r=t.value;return n&&r&&(e[n]=/\n/.test(r)?r.replace(RegExp("(?<!\\r)\\n","g"),"\r\n"):r),e},{}):void 0,payload:e,timeZone:nR(L).serverVerificationTimeZone?function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}():void 0}),credentials:nR(L).credentials||void 0,headers:{"Content-Type":"application/json"},method:"POST"});await ea(r);let i=await r.json();return i&&"object"==typeof i&&"payload"in i&&i.payload&&m("serververification",i),i}function eo(e){nR(E)&&"requestSubmit"in nR(E)?nR(E).requestSubmit(e):nR(E)?.reportValidity()&&(e?e.click():nR(E).submit())}function es(e){switch(e){case"bar":case"floating":case"overlay":ec(),nR(F)&&"off"!==nR(F)||(nR(D).auto="onsubmit");break;case"standard":ef()}nR(_)!==e&&nh(_,e,!0)}async function ea(e){if(e.status>=400){if(e.headers.get("content-type")?.includes("/json")){let t;try{t=await e.json()}catch{}if(t&&"error"in t)throw Error(`Server responded with ${e.status} - ${t.error}`)}throw Error(`Server responded with ${e.status}.`)}let t=e.headers.get("content-type");if(!t||!t.includes("/json"))throw Error(`Server responded with invalid content-type. Expected application/json, received ${t}.`)}async function el(e){if(!nR(N))return void ep(r9.ERROR,"Cannot verify code challenge without PoW payload.");ep(r9.VERIFYING);let t=null;if(nR(L).verifyUrl)t=await ei(nR(N),e);else{if(!nR(L).verifyFunction)return void ep(r9.ERROR,"Parameter verifyUrl is required for code challenge verification.");t=await nR(L).verifyFunction(nR(N),e)}t?.payload&&(nh(N,t.payload,!0),ed("server payload",nR(N))),t?.verified===!0?(ed("verified"),ep(r9.VERIFIED),m("verified",{payload:nR(N)}),"onsubmit"===nR(F)&&nL().then(()=>{eo(nR(S))})):ep(r9.ERROR,t?.reason||"Verification failed."),nR(L).disableAutoFocus||Q()?.focus()}function eu(e){Object.assign(nR(D),{...Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t))})}function ec(){nh(M,!1)}function ed(...e){(nR(L).debug||e.some(e=>e instanceof Error))&&console[e[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${nR(L).name}]`,...e)}function eh(e=r9.UNVERIFIED,t=null){nh(v,!1),nh(T,t,!0),nh(N,null),nR(x)&&nR(x).abort(),nR(j)&&(clearTimeout(nR(j)),nh(j,null)),ep(e)}function ep(e,t=null){nh(w,e,!0),nh(T,t,!0),m("statechange",{payload:nR(N),state:nR(w)})}function ef(){nh(M,!0),nL().then(()=>{em()})}function em(){if("floating"===nR(L).display)return function(e=20){if(!nR(A))return;let t=nR(L).floatingPlacement;if(!nR(C)&&(nh(C,(nR(L).floatingAnchor instanceof HTMLElement?nR(L).floatingAnchor:nR(L).floatingAnchor?document.querySelector(nR(L).floatingAnchor):nR(E)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||nR(E),!0),!nR(C)))return void ed("unable to find floating anchor element");let n=parseInt(nR(L).floatingOffset,10)||12,r=nR(C).getBoundingClientRect(),i=nR(A).getBoundingClientRect(),o=document.documentElement.clientHeight,s=document.documentElement.clientWidth,a=t&&"auto"!==t?"top"===t:r.bottom+i.height+n+e>o,l=Math.max(e,Math.min(s-e-i.width,r.left+r.width/2-i.width/2));if(nR(A).style.setProperty("--altcha-floating-left",`${l}px`),nR(A).style.setProperty("--altcha-floating-top",a?`${r.top-(i.height+n)}px`:`${r.bottom+n}px`),nR(A).setAttribute("data-floating-position",a?"top":"bottom"),nR(k)){let e=nR(k).getBoundingClientRect();nR(k).style.left=r.left-l+r.width/2-e.width/2+"px"}}();nh(I,nR(I)+1)}async function eg(e={}){let{concurrency:t=Math.max(1,nR(L).workers),controller:n=new AbortController,minDuration:r=nR(L).minDuration}=e,i=performance.now(),o=null,s=null,a=!1,u=await G("onVerify",e);if(void 0!==u)return u;eh(r9.VERIFYING),nh(x,n,!0);try{if(!l)throw Error("Secure context (HTTPS) required.");
2752if(nR(L).mockError)throw Error("Mock error.");if(nR(L).test){if(ed("running test mode with null challenge"),await K(Math.max(0,r-(performance.now()-i))),nR(x)?.signal.aborted)return eh(),null;return nh(N,btoa(JSON.stringify({challenge:null,solution:null,test:!0})),!0),ed("verified"),ep(r9.VERIFIED),m("verified",{payload:nR(N)}),{payload:nR(N)}}if(!(o=await J()))throw Error("Failed to fetch challenge.");ed("challenge",o),"configuration"in o&&(ed("re-configuring from challenge",o.configuration),eu(o.configuration)),o.parameters.expiresAt&&function(e){nR(j)&&clearTimeout(nR(j));let t=()=>{nR(w)!==r9.UNVERIFIED?(nh(v,!1),ep(r9.EXPIRED)):eh(),m("expired")},n=1e3*e-Date.now();n>=1?nh(j,setTimeout(t,n),!0):t()}(o.parameters.expiresAt),a="_version"in o&&1===o._version;let e=globalThis.$altcha.algorithms.get(o.parameters.algorithm);if(!e)throw Error(`Unsupported algorithm ${o.parameters.algorithm}.`);if(s=await ig({challenge:o,concurrency:t,controller:n,createWorker:e,counterMode:a?"string":"uint32",onOutOfMemory:e=>{if(ed("out of memory error received"),m("outofmemory"),nR(L).retryOnOutOfMemoryError&&e>1){let t=Math.floor(e/2);return ed(`retrying with ${t} workers...`),t}},timeout:nR(L).timeout}),nR(x)?.signal.aborted)return eh(),null;if(!s)throw Error("Failed to find solution.");if(ed("solution",s),await K(Math.max(0,r-(performance.now()-i))),nh(b,o.codeChallenge||nR(L).codeChallenge||null,!0),a){var c,d;nh(N,btoa(JSON.stringify((c=o,d=s,{algorithm:c.parameters.algorithm,challenge:c.parameters.keyPrefix,number:d.counter,salt:"_originalSalt"in c?c._originalSalt:c.parameters.nonce,signature:c.signature,took:d.time||0}))),!0)}else nh(N,btoa(JSON.stringify({challenge:{parameters:o.parameters,signature:o.signature},solution:s})),!0);nR(b)?(ed("requesting code verification"),ep(r9.CODE),m("codechallenge",{codeChallenge:nR(b)})):nR(L).verifyUrl?await el():(ed("verified"),ep(r9.VERIFIED),m("verified",{payload:nR(N)}))}catch(e){return ed("verification failed",e),ep(r9.ERROR,String(e)),null}finally{nh(x,null)}return{challenge:o,payload:nR(N),solution:s}}nq(()=>{eu({auto:t.auto,challenge:t.challenge,display:t.display,language:t.language,name:t.name,type:t.type,workers:t.workers})}),nq(()=>{if(t.configuration)try{eu(JSON.parse(t.configuration))}catch{ed("unable to parse the `configuration` attribute (JSON expected)")}}),nq(()=>{nR(_)!==nR(L).display&&es(nR(L).display)}),nq(()=>{nR(v)&&nR(w)===r9.VERIFYING&&nh(v,!1)}),nq(()=>{nR(v)||nR(w)!==r9.VERIFIED||nh(v,!0)}),nq(()=>{if(!nR(v)){let e=Q();e&&e.checked&&(e.checked=!1)}}),nq(()=>{nR(w)===r9.VERIFIED&&Q()?.setCustomValidity("")}),nq(()=>{if("onload"===nR(F)){let e=setTimeout(()=>{eg()},1);return()=>{e&&clearTimeout(e)}}}),nq(()=>{nR(T)&&ed("error:",nR(T))}),nq(()=>{nR(N)&&nR(L).setCookie&&function(e,t={}){let{domain:n,name:r=nR(L).name,maxAge:i,path:o,sameSite:s,secure:a}=t,l=`${encodeURIComponent(r)}=${encodeURIComponent(e)}`;n&&(l+=`; Domain=${n}`),null!=i&&(l+=`; Max-Age=${i}`),o&&(l+=`; Path=${o}`),s&&(l+=`; SameSite=${s}`),a&&(l+="; Secure"),document.cookie=l}(nR(N),nR(L).setCookie)}),rg(()=>(ed("mounted","3.2.0"),f&&globalThis.$altcha.instances.add(f),nh(E,nR(A)?.closest("form"),!0),nR(E)?.addEventListener("reset",en),nR(E)?.addEventListener("submit",er,{capture:!0}),nR(E)?.addEventListener("focusin",et),function(){for(let e of(nh(O,[...globalThis.$altcha.plugins].map(e=>new e(f)),!0),ed("activating plugins",nR(O).map(e=>e.constructor.name)),nR(O)))e.activate()}(),nR(L).humanInteractionSignature&&(ed("human interaction signature enabled"),g=new iy),m("load"),l||ed("secure context (HTTPS) required"),()=>{(function(){for(let e of nR(O))e.destroy()})(),f&&globalThis.$altcha.instances.delete(f),nR(j)&&clearTimeout(nR(j)),nR(E)?.removeEventListener("reset",en),nR(E)?.removeEventListener("submit",er,{capture:!0}),nR(E)?.removeEventListener("focusin",et),g?.destroy()}));var ey,ev,eb,ex=iS();n8("scroll",o,function(){em()}),n8("click",o,function(e){let t=e.target;"floating"!==nR(L).display||!t||f?.contains(t)||t.hasAttribute("data-backdrop")||t.closest("[data-popover]")||nR(w)===r9.VERIFIED||nR(L).floatingPersist||ec()}),n8("pageshow",i,function(e){e.persisted&&(es(nR(L).display),eh())}),n8("resize",i,function(){em()});var e_=tT(ex),ew=e=>{ra(e,iv())};ry(e_,e=>{"overlay"===nR(L).display&&nR(M)&&e(ew)});var ek=tj(e_,2),eC=tS(ek),eE=e=>{var t=ix(),n=tT(t),r=tj(n,2),i=e=>{var t=ib();rb(t,()=>document.querySelector(nR(L).overlayContent)?.innerHTML,!0),ty(t),ra(e,t)};ry(r,e=>{nR(L).overlayContent&&e(i)}),n8("click",n,ee,!0),ra(e,t)};ry(eC,e=>{"overlay"===nR(L).display&&nR(M)&&e(eE)});var eA=tj(eC,2),eS=tS(eA),eT=tS(eS),ej=tS(eT);{let e=nn(()=>"standard"===nR(L).display&&"onsubmit"!==nR(F)||nR(w)===r9.VERIFYING);ey=(t,n)=>{n(t,{get id(){return nR(R)},name:"",get required(){return nR(e)},get loading(){return nR(B)},get checked(){return nR(v)},onchange:X,oninvalid:Z})},tf&&(ev=r,tg()),eb=new rm(ej),nH(()=>{var e=(()=>nR(P))()??null;if(tf&&"["===tx(ev)!=(null!==e)){var t=tb();tm(t),eb.anchor=t,tf=!1,eb.ensure(e,e&&(t=>ey(t,e))),tf=!0;return}eb.ensure(e,e&&(t=>ey(t,e)))},65536)}var eN=tj(ej,2),eO=tS(eN),eI=e=>{var t=ro();nU(()=>rd(t,nR(U).verificationRequired)),ra(e,t)},eD=e=>{var t=ro();nU(()=>rd(t,nR(U).verifying)),ra(e,t)},eM=e=>{var t=ro();nU(()=>rd(t,nR(U).verified)),ra(e,t)},eL=e=>{var t=ro();nU(()=>rd(t,nR(U).label)),ra(e,t)};ry(eO,e=>{nR(w)===r9.CODE&&nR(b)?e(eI):nR(w)===r9.VERIFYING?e(eD,1):nR(w)===r9.VERIFIED?e(eM,2):e(eL,-1)}),ty(eN),ty(eT);var eR=tj(eT,2),eP=e=>{r5(e,{get strings(){return nR(U)}})};ry(eR,e=>{nR(q)&&e(eP)}),ty(eS);var eF=tj(eS,2),eB=e=>{{let t=nn(()=>"bar"===nR(L).display&&nR(q));r4(e,{get logo(){return nR(t)},get strings(){return nR(U)}})}};ry(eF,e=>{nR($)&&e(eB)});var e$=tj(eF,2),eV=e=>{var t=i_();rU(t,e=>nh(k,e),()=>nR(k)),ra(e,t)};ry(e$,e=>{"floating"===nR(L).display&&e(eV)});var ez=tj(e$,2),eU=e=>{var t=iw();rL(t),nU(()=>{var e,n;rR(t,"name",nR(L).name),e=nR(N),(n=rF(t)).value!==(n.value=e??void 0)&&(t.value!==e||0===e&&t.nodeName===rM)&&(t.value=e??"")}),ra(e,t)};ry(ez,e=>{nR(L).setCookie||e(eU)}),ty(eA);var eH=tj(eA,2),eG=e=>{im(e,{get anchor(){return nR(A)},onClickOutside:()=>{l&&eh()},get placement(){return nR(L).popoverPlacement},role:"alert",variant:"error",get dir(){return nR(z)},get updateUISignal(){return nR(I)},children:(e,t)=>{var n=rs(),r=tT(n),i=e=>{ra(e,ik())},o=e=>{var t=iC(),n=tS(t,!0);ty(t),nU(()=>rd(n,nR(U).expired)),ra(e,t)},s=e=>{var t=iE(),n=tS(t,!0);ty(t),nU(()=>{rR(t,"title",nR(T)),rd(n,nR(U).error)}),ra(e,t)};ry(r,e=>{nR(T)||l?nR(T)||nR(w)!==r9.EXPIRED?e(s,-1):e(o,1):e(i)}),ra(e,n)},$$slots:{default:!0}})},eK=e=>{var t,n,r,i=rs();t=tT(i),n=e=>{{let t=nn(()=>"standard"!==nR(L).codeChallengeDisplay);im(e,{get anchor(){return nR(A)},get backdrop(){return nR(t)},get display(){return nR(L).codeChallengeDisplay},onClose:()=>{eh()},get placement(){return nR(L).popoverPlacement},role:"dialog",get"aria-label"(){return nR(U).verificationRequired},get dir(){return nR(z)},get updateUISignal(){return nR(I)},children:(e,t)=>{var n=iA(),r=tT(n);iu(r,{get audioUrl(){return nR(H)},get imageUrl(){return nR(W)},onCancel:()=>eh(),onReload:()=>eg(),onSubmit:e=>
2752el(e),get codeChallenge(){return nR(b)},get config(){return nR(L)},get strings(){return nR(U)}});var i=tj(r,2),o=e=>{r4(e,{get logo(){return nR(q)},get strings(){return nR(U)}})};ry(i,e=>{nR($)&&"standard"!==nR(L).codeChallengeDisplay&&e(o)}),ra(e,n)},$$slots:{default:!0}})}},tf&&tg(),r=new rm(t),nH(()=>{var e=(()=>nR(b))();e!=e&&(e=rv),r.ensure(e,n)}),ra(e,i)};ry(eH,e=>{nR(T)||nR(w)===r9.EXPIRED||!l?e(eG):nR(b)&&nR(w)===r9.CODE&&e(eK,1)}),ty(ek),rU(ek,e=>nh(A,e),()=>nR(A)),nU(e=>{rR(ek,"data-state",nR(w)),rR(ek,"data-display",nR(L).display||void 0),rR(ek,"data-placement",e),rR(ek,"data-visible",nR(M)||void 0),rR(ek,"dir",nR(z)),rR(eN,"for",nR(R)),ek.dir=ek.dir},[()=>(function(e){switch(e){case"bar":return nR(L).barPlacement||"bottom";case"floating":return nR(L).floatingPlacement||"auto";default:return}})(nR(L).display)]),ra(e,ex);var eJ=tu({configure:eu,getConfiguration:function(){return{...nR(L)}},getState:function(){return nR(w)},hide:ec,log:ed,reset:eh,setState:ep,show:ef,updateUI:em,verify:eg});return s(),eJ},{auto:{type:"String"},challenge:{type:"String"},configuration:{type:"String"},display:{type:"String"},language:{type:"String"},name:{type:"String"},theme:{type:"String"},type:{type:"String"},workers:{type:"Number"}},[],["configure","getConfiguration","getState","hide","log","reset","setState","show","updateUI","verify"]));let iT=`(function() { 2753 "use strict"; 2754 function bufferStartsWith(buffer, prefix) { 2755 if (prefix.length > buffer.length) { 2756 return false; 2757 } 2758 for (let i = 0; i < prefix.length; i++) { 2759 if (buffer[i] !== prefix[i]) { 2760 return false; 2761 } 2762 } 2763 return true; 2764 } 2765 function bufferToHex(buffer) { 2766 return Array.from(new Uint8Array(buffer)).map((b) => b.toString(16).padStart(2, "0")).join(""); 2767 } 2768 function concatBuffers(a, b) { 2769 const out = new Uint8Array(a.length + b.length); 2770 out.set(a, 0); 2771 out.set(b, a.length); 2772 return out; 2773 } 2774 function hexToBuffer(hex) { 2775 if (hex.length % 2 !== 0) { 2776 throw new Error(\`Hex string must have an even length. Got: \${hex}\`); 2777 } 2778 const buffer = new ArrayBuffer(hex.length / 2); 2779 const view = new DataView(buffer); 2780 for (let i = 0; i < hex.length; i += 2) { 2781 const byteString = hex.substring(i, i + 2); 2782 const byteValue = parseInt(byteString, 16); 2783 view.setUint8(i / 2, byteValue); 2784 } 2785 return new Uint8Array(buffer); 2786 } 2787 async function delay(ms) { 2788 await new Promise((resolve) => setTimeout(resolve, ms)); 2789 } 2790 function timeDuration(start) { 2791 return Math.floor((performance.now() - start) * 10) / 10; 2792 } 2793 class PasswordBuffer { 2794 constructor(nonce, mode = "uint32") { 2795 this.nonce = nonce; 2796 this.mode = mode; 2797 this.buffer = new Uint8Array(this.nonce.length + this.COUNTER_BYTES); 2798 this.buffer.set(this.nonce, 0); 2799 this.dataView = new DataView(this.buffer.buffer); 2800 } 2801 nonce; 2802 mode; 2803 COUNTER_BYTES = 4; 2804 buffer; 2805 dataView; 2806 encoder = new TextEncoder(); 2807 /** 2808 * Appends the counter to the nonce buffer. 2809 * In 'string' mode, encodes the counter as a UTF-8 string. 2810 * In 'uint32' mode, writes the counter as a big-endian 32-bit integer. 2811 */ 2812 setCounter(n) { 2813 if (this.mode === "string") { 2814 return concatBuffers(this.nonce, this.encoder.encode(n.toString())); 2815 } 2816 this.dataView.setUint32(this.nonce.length, n, false); 2817 return this.buffer; 2818 } 2819 } 2820 async function solveChallenge(options) { 2821 const { 2822 challenge, 2823 controller, 2824 counterMode = "uint32", 2825 counterStart = 0, 2826 counterStep = 1, 2827 deriveKey: deriveKey2, 2828 timeout = 9e4 2829 } = options; 2830 const { nonce, keyPrefix, salt } = challenge.parameters; 2831 const nonceBuf = hexToBuffer(nonce); 2832 const saltBuf = hexToBuffer(salt); 2833 const keyPrefixBuf = keyPrefix.length % 2 === 0 ? hexToBuffer(keyPrefix) : null; 2834 const password = new PasswordBuffer(nonceBuf, counterMode); 2835 const start = performance.now(); 2836 let counter = counterStart; 2837 let iterations = 0; 2838 let derivedKeyHex = ""; 2839 let lastYield = start; 2840 while (true) { 2841 if (controller?.signal.aborted || timeout && iterations % 10 === 0 && performance.now() - start > timeout) { 2842 return null; 2843 } 2844 const { derivedKey } = await deriveKey2( 2845 challenge.parameters, 2846 saltBuf, 2847 password.setCounter(counter) 2848 ); 2849 if (iterations % 10 === 0 && performance.now() - lastYield > 200) { 2850 await delay(0); 2851 lastYield = performance.now(); 2852 } 2853 if (keyPrefixBuf ? bufferStartsWith(derivedKey, keyPrefixBuf) : bufferToHex(derivedKey).startsWith(keyPrefix)) { 2854 derivedKeyHex = bufferToHex(derivedKey); 2855 break; 2856 } 2857 counter = counter + counterStep; 2858 iterations = iterations + 1; 2859 } 2860 return { 2861 counter, 2862 derivedKey: derivedKeyHex, 2863 time: timeDuration(start) 2864 }; 2865 } 2866 function handler(options) { 2867 const { deriveKey: deriveKey2 } = options;
vendor: 4,591 bytes, lines 2868-3013
2868 let controller = void 0; 2869 self.onmessage = async (message) => { 2870 const { challenge, counterMode, counterStart, counterStep, timeout, type } = message.data; 2871 if (type === "abort") { 2872 controller?.abort(); 2873 } else if (type === "work") { 2874 controller = new AbortController(); 2875 let solution; 2876 try { 2877 solution = await solveChallenge({ 2878 challenge, 2879 controller, 2880 counterStart, 2881 counterStep, 2882 deriveKey: deriveKey2, 2883 counterMode, 2884 timeout 2885 }); 2886 } catch (err) { 2887 return self.postMessage({ error: err }); 2888 } 2889 self.postMessage(solution); 2890 } 2891 }; 2892 } 2893 function getDigest(algorithm) { 2894 switch (algorithm) { 2895 case "PBKDF2/SHA-512": 2896 return "SHA-512"; 2897 case "PBKDF2/SHA-384": 2898 return "SHA-384"; 2899 case "PBKDF2/SHA-256": 2900 default: 2901 return "SHA-256"; 2902 } 2903 } 2904 async function deriveKey(parameters, salt, password) { 2905 const { algorithm, cost, keyLength = 32 } = parameters; 2906 const passwordKey = await crypto.subtle.importKey( 2907 "raw", 2908 password, 2909 { name: "PBKDF2" }, 2910 false, 2911 ["deriveKey"] 2912 ); 2913 const derivedKey = await crypto.subtle.deriveKey( 2914 { 2915 name: "PBKDF2", 2916 salt, 2917 iterations: cost, 2918 hash: getDigest(algorithm) 2919 }, 2920 passwordKey, 2921 { name: "AES-GCM", length: keyLength * 8 }, 2922 true, 2923 ["encrypt"] 2924 ); 2925 return { 2926 derivedKey: new Uint8Array(await crypto.subtle.exportKey("raw", derivedKey)) 2927 }; 2928 } 2929 handler({ 2930 deriveKey 2931 }); 2932})(); 2933`,ij="undefined"!=typeof self&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",iT],{type:"text/javascript;charset=utf-8"});function iN(e){let t;try{if(!(t=ij&&(self.URL||self.webkitURL).createObjectURL(ij)))throw"";let n=new Worker(t,{name:e?.name});return n.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch(t){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(iT),{name:e?.name})}}let iO=`(function() { 2934 "use strict"; 2935 function bufferStartsWith(buffer, prefix) { 2936 if (prefix.length > buffer.length) { 2937 return false; 2938 } 2939 for (let i = 0; i < prefix.length; i++) { 2940 if (buffer[i] !== prefix[i]) { 2941 return false; 2942 } 2943 } 2944 return true; 2945 } 2946 function bufferToHex(buffer) { 2947 return Array.from(new Uint8Array(buffer)).map((b) => b.toString(16).padStart(2, "0")).join(""); 2948 } 2949 function concatBuffers(a, b) { 2950 const out = new Uint8Array(a.length + b.length); 2951 out.set(a, 0); 2952 out.set(b, a.length); 2953 return out; 2954 } 2955 function hexToBuffer(hex) { 2956 if (hex.length % 2 !== 0) { 2957 throw new Error(\`Hex string must have an even length. Got: \${hex}\`); 2958 } 2959 const buffer = new ArrayBuffer(hex.length / 2); 2960 const view = new DataView(buffer); 2961 for (let i = 0; i < hex.length; i += 2) { 2962 const byteString = hex.substring(i, i + 2); 2963 const byteValue = parseInt(byteString, 16); 2964 view.setUint8(i / 2, byteValue); 2965 } 2966 return new Uint8Array(buffer); 2967 } 2968 async function delay(ms) { 2969 await new Promise((resolve) => setTimeout(resolve, ms)); 2970 } 2971 function timeDuration(start) { 2972 return Math.floor((performance.now() - start) * 10) / 10; 2973 } 2974 class PasswordBuffer { 2975 constructor(nonce, mode = "uint32") { 2976 this.nonce = nonce; 2977 this.mode = mode; 2978 this.buffer = new Uint8Array(this.nonce.length + this.COUNTER_BYTES); 2979 this.buffer.set(this.nonce, 0); 2980 this.dataView = new DataView(this.buffer.buffer); 2981 } 2982 nonce; 2983 mode; 2984 COUNTER_BYTES = 4; 2985 buffer; 2986 dataView; 2987 encoder = new TextEncoder(); 2988 /** 2989 * Appends the counter to the nonce buffer. 2990 * In 'string' mode, encodes the counter as a UTF-8 string. 2991 * In 'uint32' mode, writes the counter as a big-endian 32-bit integer. 2992 */ 2993 setCounter(n) { 2994 if (this.mode === "string") { 2995 return concatBuffers(this.nonce, this.encoder.encode(n.toString())); 2996 } 2997 this.dataView.setUint32(this.nonce.length, n, false); 2998 return this.buffer; 2999 } 3000 } 3001 async function solveChallenge(options) { 3002 const { 3003 challenge, 3004 controller, 3005 counterMode = "uint32", 3006 counterStart = 0, 3007 counterStep = 1, 3008 deriveKey: deriveKey2, 3009 timeout = 9e4 3010 } = options; 3011 const { nonce, keyPrefix, salt } = challenge.parameters; 3012 const nonceBuf = hexToBuffer(nonce); 3013 const saltBuf = hexToBuffer(salt);
vendor: 3,306 bytes, lines 3014-3098
3014 const keyPrefixBuf = keyPrefix.length % 2 === 0 ? hexToBuffer(keyPrefix) : null; 3015 const password = new PasswordBuffer(nonceBuf, counterMode); 3016 const start = performance.now(); 3017 let counter = counterStart; 3018 let iterations = 0; 3019 let derivedKeyHex = ""; 3020 let lastYield = start; 3021 while (true) { 3022 if (controller?.signal.aborted || timeout && iterations % 10 === 0 && performance.now() - start > timeout) { 3023 return null; 3024 } 3025 const { derivedKey } = await deriveKey2( 3026 challenge.parameters, 3027 saltBuf, 3028 password.setCounter(counter) 3029 ); 3030 if (iterations % 10 === 0 && performance.now() - lastYield > 200) { 3031 await delay(0); 3032 lastYield = performance.now(); 3033 } 3034 if (keyPrefixBuf ? bufferStartsWith(derivedKey, keyPrefixBuf) : bufferToHex(derivedKey).startsWith(keyPrefix)) { 3035 derivedKeyHex = bufferToHex(derivedKey); 3036 break; 3037 } 3038 counter = counter + counterStep; 3039 iterations = iterations + 1; 3040 } 3041 return { 3042 counter, 3043 derivedKey: derivedKeyHex, 3044 time: timeDuration(start) 3045 }; 3046 } 3047 function handler(options) { 3048 const { deriveKey: deriveKey2 } = options; 3049 let controller = void 0; 3050 self.onmessage = async (message) => { 3051 const { challenge, counterMode, counterStart, counterStep, timeout, type } = message.data; 3052 if (type === "abort") { 3053 controller?.abort(); 3054 } else if (type === "work") { 3055 controller = new AbortController(); 3056 let solution; 3057 try { 3058 solution = await solveChallenge({ 3059 challenge, 3060 controller, 3061 counterStart, 3062 counterStep, 3063 deriveKey: deriveKey2, 3064 counterMode, 3065 timeout 3066 }); 3067 } catch (err) { 3068 return self.postMessage({ error: err }); 3069 } 3070 self.postMessage(solution); 3071 } 3072 }; 3073 } 3074 async function deriveKey(parameters, salt, password) { 3075 const { algorithm, keyLength = 32 } = parameters; 3076 const iterations = Math.max(1, parameters.cost); 3077 let data = void 0; 3078 let derivedKey = void 0; 3079 for (let i = 0; i < iterations; i++) { 3080 if (i === 0) { 3081 data = concatBuffers(salt, password); 3082 } else { 3083 data = derivedKey; 3084 } 3085 derivedKey = new Uint8Array( 3086 (await crypto.subtle.digest(algorithm, data)).slice(0, keyLength) 3087 ); 3088 } 3089 return { 3090 parameters: {}, 3091 derivedKey 3092 }; 3093 } 3094 handler({ 3095 deriveKey 3096 }); 3097})(); 3098`,iI="undefined"!=typeof self&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",iO],{type:"text/javascript;charset=utf-8"});function iD(e){let t;try{if(!(t=iI&&(self.URL||self.webkitURL).createObjectURL(iI)))throw"";let n=new Worker(t,{name:e?.name});return n.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch(t){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(iO),{name:e?.name})}}!function(e,t="altcha-css",n){if("undefined"!=typeof document&&document&&!document.getElementById(t)){let n=document.createElement("style");n.id=t,n.textContent=e;let r=document.currentScript?.nonce??document.querySelector('meta[name="csp-nonce"]')?.content;r&&(n.nonce=r),document.head.appendChild(n)}}(
vendor: 18,326 bytes, line 3098
3098':root {\n --altcha-border-color: var(--altcha-color-neutral);\n --altcha-border-width: 1px;\n --altcha-border-radius: 6px;\n --altcha-color-base: light-dark(oklch(100% 0.00011 271.152), oklch(20.904% 0.00002 271.152));\n --altcha-color-base-content: light-dark(\n oklch(20.904% 0.00002 271.152),\n oklch(100% 0.00011 271.152)\n );\n --altcha-color-error: oklch(51.284% 0.20527 28.678);\n --altcha-color-error-content: oklch(100% 0.00011 271.152);\n --altcha-color-neutral: light-dark(oklch(83.591% 0.0001 271.152), oklch(46.04% 0.00005 271.152));\n --altcha-color-neutral-content: light-dark(\n oklch(46.76% 0.00005 271.152),\n oklch(100% 0.00011 271.152)\n );\n --altcha-color-primary: oklch(40.279% 0.2449 268.131);\n --altcha-color-primary-content: oklch(100% 0.00011 271.152);\n --altcha-color-success: oklch(55.748% 0.18968 142.511);\n --altcha-color-success-content: oklch(100% 0.00011 271.152);\n --altcha-checkbox-border-color: light-dark(\n oklch(66.494% 0.00233 15.434),\n oklch(51.028% 0.00006 271.152)\n );\n --altcha-checkbox-border-radius: 5px;\n --altcha-checkbox-border-width: var(--altcha-border-width);\n --altcha-checkbox-outline: 2px solid var(--altcha-checkbox-outline-color);\n --altcha-checkbox-outline-color: -webkit-focus-ring-color;\n --altcha-checkbox-outline-offset: 2px;\n --altcha-checkbox-size: 22px;\n --altcha-checkbox-transition-duration: var(--altcha-transition-duration);\n --altcha-input-background-color: var(--altcha-color-base);\n --altcha-input-border-radius: 3px;\n --altcha-input-border-width: 1px;\n --altcha-input-color: var(--altcha-color-base-content);\n --altcha-max-width: 320px;\n --altcha-padding: 0.75rem;\n --altcha-popover-arrow-size: 6px;\n --altcha-popover-color: var(--altcha-border-color);\n --altcha-shadow: drop-shadow(3px 3px 6px oklch(0% 0 0 / 0.2));\n --altcha-spinner-color: var(--altcha-color-base-content);\n --altcha-switch-background-color: var(--altcha-color-neutral);\n --altcha-switch-border-radius: calc(infinity * 1px);\n --altcha-switch-height: var(--altcha-checkbox-size);\n --altcha-switch-padding: 0.25rem;\n --altcha-switch-width: calc(var(--altcha-checkbox-size) * 1.75);\n --altcha-switch-toggle-border-radius: 100%;\n --altcha-switch-toggle-color: var(--altcha-color-neutral-content);\n --altcha-switch-toggle-size: calc(\n var(--altcha-switch-height) - calc(var(--altcha-switch-padding) * 2)\n );\n --altcha-transition-duration: 0.6s;\n --altcha-z-index: 99999999;\n --altcha-z-index-popover: 999999999;\n}\n\n@supports (-moz-appearance: none) {\n :root {\n --altcha-checkbox-outline-color: var(--altcha-color-primary);\n }\n}\n.altcha {\n all: revert-layer;\n display: none;\n font-family: inherit;\n font-size: inherit;\n position: relative;\n}\n.altcha[data-visible] {\n display: block;\n}\n.altcha-popover, .altcha-popover * {\n all: revert-layer;\n box-sizing: border-box;\n font-family: inherit;\n font-size: inherit;\n line-height: 1.25;\n}\n.altcha * {\n all: revert-layer;\n box-sizing: border-box;\n font-family: inherit;\n font-size: inherit;\n line-height: 1.25;\n}\n.altcha a, .altcha-popover a {\n color: currentColor;\n text-decoration: none;\n}\n.altcha a:hover, .altcha-popover a:hover {\n color: currentColor;\n}\n.altcha-main {\n align-items: start;\n background-color: var(--altcha-color-base);\n border: var(--altcha-border-width, 1px) solid var(--altcha-border-color);\n border-radius: var(--altcha-border-radius, 0);\n color: var(--altcha-color-base-content);\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n justify-content: space-between;\n padding: var(--altcha-padding);\n max-width: var(--altcha-max-width, 100%);\n}\n.altcha-main > * {\n display: flex;\n width: 100%;\n}\n.altcha-main > *:first-child {\n flex-grow: 1;\n}\n.altcha-checkbox-wrap {\n align-items: center;\n display: flex;\n flex-direction: row;\n flex-grow: 1;\n gap: 0.5rem;\n}\n.altcha-checkbox-wrap > * {\n display: flex;\n}\n.altcha-logo {\n opacity: 0.7;\n}\n.altcha-footer {\n align-items: center;\n display: flex;\n flex-grow: 1;\n gap: 0.5rem;\n justify-content: flex-end;\n font-size: 0.7rem;\n opacity: 0.7;\n}\n.altcha-footer p {\n margin: 0;\n padding: 0;\n}\n.altcha-error {\n font-size: 0.85rem;\n}\n.altcha-button {\n align-items: center;\n background: var(--altcha-color-primary);\n border: var(--altcha-input-border-width) solid var(--altcha-color-primary);\n border-radius: var(--altcha-input-border-radius);\n color: var(--altcha-color-primary-content);\n cursor: pointer;\n display: flex;\n font-size: 0.9rem;\n gap: 0.5rem;\n padding: 0.35rem;\n}\n.altcha-button:focus {\n border-color: var(--altcha-color-primary);\n outline: var(--altcha-checkbox-outline);\n outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-button > .altcha-spinner, .altcha-button > svg {\n height: 20px;\n width: 20px;\n}\n.altcha-button-secondary {\n background: transparent;\n border-color: var(--altcha-color-neutral);\n color: var(--altcha-color-neutral-content);\n}\n.altcha-input {\n background: var(--altcha-input-background-color);\n border: var(--altcha-input-border-width) solid var(--altcha-color-neutral);\n border-radius: var(--altcha-input-border-radius);\n color: var(--altcha-input-color);\n flex-grow: 1;\n font-size: 1rem;\n min-width: 0;\n padding: 0.25rem;\n width: auto;\n}\n.altcha-input:focus {\n border-color: var(--altcha-color-primary);\n outline: var(--altcha-checkbox-outline);\n outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-spinner {\n animation: altcha-rotate 0.6s linear infinite;\n border-radius: 100%;\n border: var(--altcha-checkbox-border-width) solid var(--altcha-spinner-color);\n border-bottom-color: transparent;\n border-right-color: transparent;\n opacity: 0.7;\n}\n.altcha-popover {\n background-color: var(--altcha-color-base);\n border: var(--altcha-border-width) solid var(--altcha-border-color);\n border-radius: var(--altcha-border-radius);\n color: var(--altcha-color-base-content);\n filter: var(--altcha-shadow);\n position: absolute;\n left: calc(var(--altcha-padding) / 2);\n max-width: calc(var(--altcha-max-width) - var(--altcha-padding));\n top: calc(var(--altcha-padding) + var(--altcha-checkbox-size) + var(--altcha-popover-arrow-size));\n z-index: var(--altcha-z-index-popover);\n}\n.altcha-popover-arrow {\n border: var(--altcha-popover-arrow-size) solid transparent;\n border-bottom-color: var(--altcha-popover-color);\n content: "";\n height: 0;\n left: calc(var(--altcha-checkbox-size) / 2);\n position: absolute;\n top: calc(var(--altcha-popover-arrow-size) * -2);\n width: 0;\n}\n.altcha-popover-content {\n max-height: 100dvh;\n overflow: auto;\n padding: var(--altcha-padding);\n}\n.altcha-popover[data-top=true][data-display=standard] {\n bottom: calc(100% - (var(--altcha-padding) - var(--altcha-popover-arrow-size)));\n top: auto;\n}\n.altcha-popover[data-top=true][data-display=standard] .altcha-popover-arrow {\n border-bottom-color: transparent;\n border-top-color: var(--altcha-popover-color);\n bottom: calc(var(--altcha-popover-arrow-size) * -2);\n top: auto;\n}\n.altcha-popover[data-variant=error] {\n --altcha-popover-color: var(--altcha-color-error);\n background-color: var(--altcha-color-error);\n border-color: var(--altcha-color-error);\n color: var(--altcha-color-error-content);\n}\n.altcha-popover[data-variant=error] .altcha-popover-content {\n padding: calc(var(--altcha-padding) / 1.5) var(--altcha-padding);\n}\n.altcha-popover[data-display=overlay] {\n animation: altcha-overlay-slidein 0.5s forwards;\n left: 50%;\n position: fixed;\n top: 45%;\n transform: translate(-50%, -50%);\n width: var(--altcha-max-width);\n z-index: var(--altcha-z-index);\n}\n.altcha-popover[data-display=bottomsheet] {\n animation: altcha-bottomsheet-slideup 0.5s forwards;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom: 0;\n bottom: -100%;\n left: 50%;\n position: fixed;\n top: auto;\n transform: translate(-50%, 0);\n width: var(--altcha-max-width);\n z-index: var(--altcha-z-index);\n}\n.altcha-popover[data-display=bottomsheet] .altcha-popover-content {\n padding-bottom: calc(var(--altcha-padding) * 2);\n}\n.altcha-popover-backdrop {\n background: var(--altcha-color-base-content);\n bottom: 0;\n left: 0;\n opacity: 0.1;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity 0.5s;\n z-index: var(--altcha-z-index);\n}\n.altcha-popover-close {\n color: var(--altcha-color-base-content);\n cursor: pointer;\n display: inline-block;\n font-size: 1rem;\n height: 1.25rem;\n line-height: 0.95;\n position: absolute;\n right: 0;\n text-align: center;\n text-shadow: 0 0 1px var(--altcha-color-base);\n top: -1.5rem;\n width: 1.25rem;\n z-index: var(--altcha-z-index);\n}\n[dir=rtl] .altcha-popover {\n left: auto;\n right: calc(var(--altcha-padding) / 2);\n}\n[dir=rtl] .altcha-popover-arrow {\n left: auto;\n right: calc(var(--altcha-checkbox-size) / 2);\n}\n[dir=rtl] .altcha-popover-close {\n left: 0;\n right: auto;\n}\n.altcha-popover[data-display=bottomsheet] .altcha-footer, .altcha-popover[data-display=overlay] .altcha-footer {\n align-items: center;\n justify-content: center;\n padding-top: 1rem;\n gap: 0.5rem;\n}\n.altcha-popover[data-display=bottomsheet] .altcha-footer svg, .altcha-popover[data-display=overlay] .altcha-footer svg {\n height: 18px;\n width: 18px;\n vertical-align: middle;\n}\n.altcha-code-challenge > form {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n.altcha-code-challenge-title {\n font-weight: 600;\n}\n.altcha-code-challenge-text {\n font-size: 0.85rem;\n}\n.altcha-code-challenge-image {\n background: white;\n border: var(--altcha-input-border-width) solid var(--altcha-color-neutral);\n border-radius: var(--altcha-input-border-radius);\n object-fit: contain;\n height: 50px;\n}\n.altcha-code-challenge-row {\n display: flex;\n gap: 0.5rem;\n}\n.altcha-code-challenge-buttons {\n align-items: center;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n margin-top: var(--altcha-padding);\n justify-content: space-between;\n}\n.altcha-code-challenge-buttons button {\n justify-content: center;\n width: 100%;\n}\n.altcha-checkbox {\n cursor: pointer;\n height: var(--altcha-checkbox-size);\n position: relative;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox input {\n appearance: none;\n background: var(--altcha-input-background-color);\n border: var(--altcha-checkbox-border-width, 2px) solid var(--altcha-checkbox-border-color);\n border-radius: var(--altcha-checkbox-border-radius);\n cursor: pointer;\n height: var(--altcha-checkbox-size);\n left: 0;\n margin: 0;\n padding: 0;\n position: absolute;\n top: 0;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox input:before {\n border-radius: var(--altcha-checkbox-border-radius);\n content: "";\n width: 100%;\n height: 100%;\n background: var(--altcha-color-neutral);\n display: block;\n transform: scale(0);\n}\n.altcha-checkbox input:checked {\n background-color: var(--altcha-color-success);\n border-color: var(--altcha-color-success);\n}\n.altcha-checkbox input:checked::before {\n background-color: var(--altcha-color-success);\n opacity: 0;\n transform: scale(2.2);\n transition: all var(--altcha-checkbox-transition-duration) ease;\n transition-delay: 0.1s;\n}\n.altcha-checkbox svg {\n --altcha-radio-svg-size: calc(var(--altcha-checkbox-size) * 0.5);\n --altcha-radio-svg-offset: calc(var(--altcha-checkbox-size) * 0.25);\n fill: none;\n left: var(--altcha-radio-svg-offset);\n height: var(--altcha-radio-svg-size);\n opacity: 0;\n position: absolute;\n stroke: currentColor;\n stroke-width: 2;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-dasharray: 16px;\n stroke-dashoffset: 16px;\n top: var(--altcha-radio-svg-offset);\n transform: translate3d(0, 0, 0);\n width: var(--altcha-radio-svg-size);\n}\n.altcha-checkbox input:checked + svg {\n color: var(--altcha-color-success-content);\n opacity: 1;\n stroke-dashoffset: 0;\n transition: all var(--altcha-checkbox-transition-duration) ease;\n transition-delay: 0.1s;\n}\n.altcha-checkbox-spinner {\n display: none;\n left: 0;\n height: var(--altcha-checkbox-size);\n position: absolute;\n top: 0;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox[data-loading=true] input {\n appearance: none;\n opacity: 0;\n pointer-events: none;\n}\n.altcha-checkbox[data-loading=true] .altcha-checkbox-spinner {\n display: block;\n}\n.altcha-checkbox-native {\n height: var(--altcha-checkbox-size);\n position: relative;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native input {\n height: var(--altcha-checkbox-size);\n margin: 0;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native-spinner {\n display: none;\n left: 0;\n height: var(--altcha-checkbox-size);\n position: absolute;\n top: 0;\n width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native[data-loading=true] input {\n appearance: none;\n opacity: 0;\n pointer-events: none;\n}\n.altcha-checkbox-native[data-loading=true] .altcha-checkbox-native-spinner {\n display: block;\n}\n.altcha-switch {\n align-items: center;\n border-radius: var(--altcha-switch-border-radius);\n background-color: var(--altcha-switch-background-color);\n display: flex;\n height: var(--altcha-switch-height);\n padding: var(--altcha-switch-padding);\n position: relative;\n width: var(--altcha-switch-width);\n}\n.altcha-switch:focus-within {\n outline: var(--altcha-checkbox-outline);\n outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-switch input {\n appearance: none;\n cursor: pointer;\n height: 100%;\n left: 0;\n opacity: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n.altcha-switch-toggle {\n align-items: center;\n background-color: var(--altcha-switch-toggle-color);\n border-radius: var(--altcha-switch-toggle-border-radius);\n cursor: pointer;\n display: flex;\n height: var(--altcha-switch-toggle-size);\n justify-content: center;\n left: var(--altcha-switch-padding);\n position: absolute;\n transition: width 150ms ease-out, left 150ms ease-out;\n width: var(--altcha-switch-toggle-size);\n}\n.altcha-switch-spinner {\n display: none;\n height: var(--altcha-switch-toggle-size);\n width: var(--altcha-switch-toggle-size);\n}\n.altcha-switch[data-loading=true] {\n pointer-events: none;\n}\n.altcha-switch[data-loading=true] .altcha-switch-spinner {\n display: block;\n}\n.altcha-switch[data-loading=true] .altcha-switch-toggle {\n background-color: transparent;\n left: calc(50% - var(--altcha-switch-toggle-size) / 2);\n}\n[data-state=verified] .altcha-switch {\n --altcha-switch-background-color: var(--altcha-color-success);\n}\n[data-state=verified] .altcha-switch-toggle {\n background-color: var(--altcha-color-success-content);\n left: calc(100% - var(--altcha-switch-height) + var(--altcha-switch-padding));\n}\n[dir=rtl] .altcha-switch-toggle {\n left: calc(100% - var(--altcha-switch-height) + var(--altcha-switch-padding));\n}\n[dir=rtl][data-state=verified] .altcha-switch-toggle {\n left: var(--altcha-switch-padding);\n}\n.altcha-floating-arrow {\n border: 6px solid transparent;\n border-bottom-color: var(--altcha-border-color);\n content: "";\n height: 0;\n left: 12px;\n position: absolute;\n top: -12px;\n width: 0;\n}\n.altcha-overlay-backdrop {\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n transition: opacity var(--altcha-transition-duration);\n z-index: var(--altcha-z-index);\n}\n.altcha-overlay-close {\n display: inline-block;\n color: currentColor;\n cursor: pointer;\n font-size: 1rem;\n height: 1rem;\n line-height: 0.85;\n position: absolute;\n right: 0;\n text-align: center;\n text-shadow: 0 0 1px var(--altcha-color-base);\n top: -1.5rem;\n width: 1rem;\n z-index: var(--altcha-z-index);\n}\n.altcha[data-display=overlay] {\n animation: altcha-overlay-slidein var(--altcha-transition-duration) forwards;\n filter: var(--altcha-shadow);\n left: 50%;\n opacity: 0;\n position: fixed;\n top: 45%;\n transform: translate(-50%, -50%);\n z-index: var(--altcha-z-index);\n}\n.altcha[data-display=overlay] .altcha-main {\n width: var(--altcha-max-width);\n}\n.altcha[data-display=floating] {\n display: none;\n filter: var(--altcha-shadow);\n left: var(--altcha-floating-left, -100%);\n position: fixed;\n top: var(--altcha-floating-top, -100%);\n z-index: var(--altcha-z-index);\n}\n.altcha[data-display=floating] .altcha-main {\n width: var(--altcha-max-width);\n}\n.altcha[data-display=floating][data-floating-position=top] .altcha-floating-arrow {\n border-bottom-color: transparent;\n border-top-color: var(--altcha-border-color);\n bottom: -12px;\n top: auto;\n}\n.altcha[data-display=floating][data-visible] {\n display: flex;\n}\n.altcha[data-display=bar] {\n bottom: -100%;\n filter: var(--altcha-shadow);\n left: 0;\n position: fixed;\n right: 0;\n transition: bottom var(--altcha-transition-duration), top var(--altcha-transition-duration);\n z-index: var(--altcha-z-index);\n}\n.altcha[data-display=bar] .altcha-main {\n align-items: center;\n border-radius: 0;\n border-width: var(--altcha-border-width) 0 0 0;\n flex-direction: row;\n max-width: 100% !important;\n}\n.altcha[data-display=bar] .altcha-main > * {\n width: auto;\n}\n.altcha[data-display=bar][data-placement=top] {\n bottom: auto;\n top: -100%;\n}\n.altcha[data-display=bar][data-placement=top] .altcha-main {\n border-width: 0 0 var(--altcha-border-width) 0;\n}\n.altcha[data-display=bar][data-placement=bottom]:not([data-state=unverified]) {\n bottom: 0;\n}\n.altcha[data-display=bar][data-placement=top]:not([data-state=unverified]) {\n top: 0;\n}\n.altcha[data-display=invisible] {\n display: none;\n}\n\n@keyframes altcha-rotate {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes altcha-bottomsheet-slideup {\n 100% {\n bottom: 0;\n }\n}\n@keyframes altcha-overlay-slidein {\n 100% {\n opacity: 1;\n top: 50%;\n }\n}'
3098),$altcha.algorithms.set("SHA-256",()=>new iD),$altcha.algorithms.set("SHA-384",()=>new iD),$altcha.algorithms.set("SHA-512",()=>new iD),$altcha.algorithms.set("PBKDF2/SHA-256",()=>new iN),$altcha.algorithms.set("PBKDF2/SHA-384",()=>new iN),$altcha.algorithms.set("PBKDF2/SHA-512",()=>new iN);let iM=function(e){let{challengeJson:t,onVerified:n}=e,r=(0,D.useRef)(null);(0,D.useEffect)(()=>{let e=r.current;if(!e)return;let t=e=>{let t=e.detail?.payload;t&&n(t)};return e.addEventListener("statechange",t),e.addEventListener("verified",t),()=>{e.removeEventListener("statechange",t),e.removeEventListener("verified",t)}},[n]);let i=JSON.stringify({challenge:JSON.parse(t),auto:"onload"});return(0,u.jsx)("div",{className:"my-4","data-sentry-component":"Captcha","data-sentry-source-file":"Captcha.tsx",children:D.createElement("altcha-widget",{ref:r,configuration:i})})};var iL=n(57560);let iR="Thank you! Your message has been sent.",iP={component:(0,c.PA)(function(e){let{className:t,contentItem:n}=e,r=n.sectionId||"",i=(0,g.mN)({defaultValues:{answers:{_:{}}}}),[o,s]=(0,D.useState)(!1),[a,l]=(0,D.useState)(!1),[c,d]=(0,D.useState)(null),[f,y]=(0,D.useState)(""),[v,b]=(0,D.useState)(""),{data:x}=(0,eC.I)(eT.yV,{variables:{id:r},skip:!r}),_=x?.getFormSection,{data:w}=(0,eC.I)(eT.b2),k=w?.captchaChallenge||null,C=!k||!!f,[E,A]=(0,eE.n)(eT.xY),S=_?[..._.questions||[]].sort((e,t)=>e.ordinal-t.ordinal):[],T=S.map(e=>({id:e.id,ordinal:e.ordinal,active:e.active,specialField:e.specialField?e.specialField.toLowerCase():null,component:(0,eS.dJ)(e.camelizedComponent),purpose:"contact_form",sectionId:r,linkToId:null,memberVisible:!0}));async function j(){d(null);let e=S.map(e=>({questionId:e.id,arrayValue:(0,eS.BR)(i.getValues(`answers.q_${e.id}.value`))}));try{let t=await E({variables:{input:{sectionId:r,answers:e,captchaPayload:f||null,honeypot:v}}});t.data?.submitContactForm?(s(!0),l(!0)):d("Something went wrong. Please try again.")}catch(e){d((e instanceof eA.K4?e.graphQLErrors[0]?.message:null)||"Something went wrong. Please try again.")}}return o?(0,u.jsxs)("div",{className:(0,h.A)("my-8",t),children:[(0,u.jsx)(F.A,{isOpen:a,onClose:()=>l(!1),title:"Message sent",children:(0,u.jsx)("p",{className:"text-lg",children:iR})}),(0,u.jsx)("p",{children:iR})]}):0===S.length?(0,u.jsxs)("div",{className:(0,h.A)("my-8 rounded border border-dashed border-[var(--group-page-background-border-color)] p-6 text-center",t),children:[n.title&&(0,u.jsx)("h2",{className:"text-2xl font-semibold",children:n.title}),(0,u.jsx)("p",{className:"text-[var(--group-page-background-text-color-muted)]",children:"(No form fields added yet)"})]}):(0,u.jsxs)("form",{onSubmit:i.handleSubmit(j),className:(0,h.A)("my-8 flex flex-col gap-4",t),"data-sentry-component":"ContactForm","data-sentry-source-file":"ContactForm.tsx",children:[n.title&&(0,u.jsx)("h2",{className:"text-2xl font-semibold",children:n.title}),(0,u.jsx)(ej.A,{questions:T,hookForm:i,version:2,"data-sentry-element":"DynamicFormRows","data-sentry-source-file":"ContactForm.tsx"}),(0,u.jsx)("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off","aria-hidden":"true",value:v,onChange:e=>b(e.target.value),style:{position:"absolute",left:"-9999px",width:1,height:1,opacity:0}}),k&&(0,u.jsx)(iM,{challengeJson:k,onVerified:y}),c&&(0,u.jsx)(iL.A,{children:c}),(0,u.jsx)("div",{className:"flex justify-end",children:(0,u.jsx)(p.rA,{type:"submit",disabled:A.loading||!C,className:m.Ay.actionButtonColor,"data-sentry-element":"ActionButton","data-sentry-source-file":"ContactForm.tsx",children:A.loading?"Sendingâ¦":"Send"})})]})}),editComponent:function(e){let{onClose:t}=e,n=(0,d.Eh)(),r=(0,m.CI)(n),i=(0,g.mN)({defaultValues:{sectionId:"",title:"Contact Us",emailDestinationSelection:"team",sendToTeam:"",sendToMemberId:"",questions:[eB(),{active:!0,component:{tagName:"FieldRow",id:(0,eM.A)(),field:{tagName:"TextArea",id:(0,eM.A)(),required:!0},label:{tagName:"RowLabel",value:"Message"},text:null},id:`#new-${(0,eM.A)()}`,linkToId:null,memberVisible:!0,ordinal:1,purpose:eS.D5.contact_form,sectionId:null,specialField:null}]}}),{register:o,watch:s}=i,[a,l]=(0,D.useState)(""),[c,x]=(0,D.useState)(null),_=(0,eN.m)(),w=(0,eL.q)(),k=(0,eC.I)(eR.kL),C=(k.data?.listTeams||[]).map(e=>({value:e.slug.toLowerCase(),label:`${e.name} (${e.memberCount} ${1===e.memberCount?"member":"members"})`}));(0,D.useEffect)(()=>{!i.getValues("sendToTeam")&&C.length>0&&i.setValue("sendToTeam",C[0].value)},[k.data]);let E=(0,y.X)({form:i,formToParams:function(e){return{type:b.nz.ContactForm,title:e.title,sectionId:e.sectionId}},populateForm:function(e){let t=e.sectionId||"";l(t),i.setValue("sectionId",t),e.title&&i.setValue("title",e.title)},onClose:t}),{loading:A}=E;async function S(e){let t=e.questions.map(({purpose:e,...t})=>t),n={id:a||void 0,name:e.title,purpose:eS.D5.contact_form,active:!0,memberVisible:!0,ordinal:0,contactAction:eS.Lf.Email,emailDestinationSelection:e.emailDestinationSelection,sendToTeam:"team"===e.emailDestinationSelection&&e.sendToTeam||null,sendToMemberId:"member"===e.emailDestinationSelection?e.sendToMemberId:null,questions:t},r=await w.wrapCall(e=>(0,eT.Gr)(e,n));return r.error||!r.data?null:(l(r.data.id),r.data.id)}async function T(e){if(e.preventDefault(),!await i.trigger())return;let t=i.getValues(),n=await S(t);n&&(i.setValue("sectionId",n),await E.handleSubmit(),await _.refetchQueries({include:[eT.CN]}))}(0,eC.I)(eT.CN,{variables:{id:a},skip:!a,onCompleted:e=>{let t=e?.getFormSection;t&&(i.setValue("title",t.name||"Contact Us"),i.setValue("emailDestinationSelection",t.emailDestinationSelection?.toLowerCase()==="member"?"member":"team"),i.setValue("sendToTeam",(t.sendToTeam||"").toLowerCase()),i.setValue("sendToMemberId",t.sendToMemberId||""),x(t.sendToMember||null),i.setValue("questions",function(e){let t=[...e.questions||[]].sort((e,t)=>
3098e.ordinal-t.ordinal).map(t=>({active:t.active,component:(0,eS.dJ)(t.camelizedComponent),id:t.id,linkToId:null,memberVisible:!0,ordinal:t.ordinal,purpose:eS.D5.contact_form,sectionId:e.id,specialField:t.specialField?t.specialField.toLowerCase():null}));return[...t.some(e=>e.specialField===eS._4.email)?[]:[eB()],...t]}(t)))}});let j=s("emailDestinationSelection");return(0,u.jsxs)("div",{className:(0,h.A)("max-w-screen-md",m.Ay.formClass),"data-sentry-component":"ContactFormEditor","data-sentry-source-file":"ContactFormEditor.tsx",children:[(0,u.jsx)(f.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"ContactFormEditor.tsx",children:"A form that visitors can fill out. Submissions are emailed to the selected team or member."}),(0,u.jsxs)("form",{onSubmit:T,className:m.Ay.formClass,children:[(0,u.jsxs)(ec.A,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"ContactFormEditor.tsx",children:[(0,u.jsx)(L.A,{size:"sm","data-sentry-element":"SectionHeading","data-sentry-source-file":"ContactFormEditor.tsx",children:"Form Title"}),(0,u.jsx)(ed.A,{register:o("title"),"data-sentry-element":"TextInput","data-sentry-source-file":"ContactFormEditor.tsx"})]}),(0,u.jsx)(eD.A,{hookForm:i,purpose:eS.D5.contact_form,labelRequired:!0,"data-sentry-element":"SectionFieldsEditor","data-sentry-source-file":"ContactFormEditor.tsx"}),(0,u.jsxs)(ec.A,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"ContactFormEditor.tsx",children:[(0,u.jsx)(L.A,{size:"sm","data-sentry-element":"SectionHeading","data-sentry-source-file":"ContactFormEditor.tsx",children:"Send Submissions To"}),(0,u.jsx)(B.A,{ariaLabel:"Send submissions to",className:"grid grid-cols-1 gap-2 sm:grid-cols-2",options:eF.map(e=>e.value),selected:j,setSelected:e=>i.setValue("emailDestinationSelection",e),renderOption:e=>{let t=eF.find(t=>t.value===e);return(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{className:"font-bold",children:t?.title}),(0,u.jsx)("div",{className:(0,h.A)("text-sm",r.cardMutedTextColor),children:t?.description})]})},"data-sentry-element":"CardRadioGroup","data-sentry-source-file":"ContactFormEditor.tsx"})]}),"team"===j&&(0,u.jsxs)(ec.A,{withSpacing:!0,children:[(0,u.jsx)(L.A,{size:"sm",children:"Team"}),(0,u.jsx)("select",{className:"border rounded p-2",...o("sendToTeam"),children:C.map(e=>(0,u.jsx)("option",{value:e.value,children:e.label},e.value))})]}),"member"===j&&(0,u.jsxs)(ec.A,{withSpacing:!0,children:[(0,u.jsx)(L.A,{size:"sm",children:"Member"}),c&&(0,u.jsx)("div",{className:"mb-2",children:(0,u.jsx)(eI.A,{member:c,asLink:!1})}),(0,u.jsx)(eO.A,{searchPlaceholder:"Search by nameâ¦",onSelected:e=>{x(e),i.setValue("sendToMemberId",e.id)}})]}),w.renderApiErrors(),(0,u.jsx)(v.D,{usingContentEdit:E,successMessage:"Contact form saved","data-sentry-element":"ApiResults","data-sentry-source-file":"ContactFormEditor.tsx"}),(0,u.jsx)(p.fC,{cancel:{onClick:t},saving:A||w.processing,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"ContactFormEditor.tsx"})]})]})},editLabel:"Contact Form",type:b.nz.ContactForm};var iF=n(70485);let iB=[{value:b.pR.Regular,label:"Standard",hint:"768px"},{value:b.pR.Wide,label:"Wide",hint:"1024px"},{value:b.pR.Full,label:"Full width",hint:"No maximum"}];function i$(e){let{onChange:t,value:n}=e,r=(0,m.CI)((0,d.Eh)());return(0,u.jsxs)("fieldset",{"data-sentry-component":"PageRowWidthField","data-sentry-source-file":"PageRowWidthField.tsx",children:[(0,u.jsx)("legend",{className:"font-medium mb-2",children:"Width"}),(0,u.jsx)("div",{className:"flex flex-col gap-2",children:iB.map(e=>(0,u.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer",children:[(0,u.jsx)("input",{type:"radio",name:"page-row-item-width",value:e.value,checked:n===e.value,onChange:()=>t(e.value)}),(0,u.jsx)("span",{className:"w-24",children:e.label}),(0,u.jsx)("span",{className:(0,h.A)("text-sm",r.cardMutedTextColor),children:e.hint})]},e.value))})]})}function iq(e){return{type:b.nz.Image,label:e.label,photoId:e.photoId||void 0,styles:(0,b.r3)(e.styles,e.
3098width)}}function iV(e){return e?.photo?.url}let iz={component:function(e){let{className:t,contentItem:n}=e,r=iV(n);return r?(0,u.jsx)("img",{src:r,alt:(0,b.NM)(n,""),className:(0,h.A)("max-w-full",t),"data-sentry-component":"Image","data-sentry-source-file":"Image.tsx"}):null},editComponent:function(e){let{onClose:t}=e,{cursor:n}=(0,H.f)(),r=(0,g.mN)({defaultValues:function(e){let t=e?.styles||[];return{imageUrl:"",label:"",photoId:"",styles:t,width:(0,b.Zf)(t)}}(n?.initialParams)}),{register:i}=r,o=(0,y.X)({form:r,formToParams:iq,populateForm:function(e){let t=function(e){let t=e.styles||[];return{imageUrl:e.photo?.url||"",label:e.label||"",photoId:e.photo?.id||"",styles:t,width:(0,b.Zf)(t)}}(e);r.setValue("imageUrl",t.imageUrl),r.setValue("photoId",t.photoId),r.setValue("label",t.label),r.setValue("styles",t.styles),r.setValue("width",t.width)},onClose:t}),{loading:s,handleSubmit:a,cancelProps:l}=o;return(0,u.jsxs)("div",{className:(0,h.A)("max-w-screen-md",m.Ay.formClass),"data-sentry-component":"ImageEditor","data-sentry-source-file":"ImageEditor.tsx",children:[(0,u.jsx)(f.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"ImageEditor.tsx",children:"An image. Its alt text is read aloud by screen readers and shown in place of the image if it cannot load."}),(0,u.jsxs)("form",{onSubmit:a,className:m.Ay.formClass,children:[(0,u.jsxs)(ec.A,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"ImageEditor.tsx",children:[(0,u.jsx)(L.A,{size:"sm","data-sentry-element":"SectionHeading","data-sentry-source-file":"ImageEditor.tsx",children:"Image"}),(0,u.jsx)(R.A,{form:r,name:"imageUrl",idName:"photoId","data-sentry-element":"ImageField","data-sentry-source-file":"ImageEditor.tsx"})]}),(0,u.jsxs)(ec.A,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"ImageEditor.tsx",children:[(0,u.jsx)(L.A,{size:"sm","data-sentry-element":"SectionHeading","data-sentry-source-file":"ImageEditor.tsx",children:"Alt text"}),(0,u.jsx)(ed.A,{register:i("label"),"data-sentry-element":"TextInput","data-sentry-source-file":"ImageEditor.tsx"})]}),(0,u.jsx)(ec.A,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"ImageEditor.tsx",children:(0,u.jsx)(i$,{value:r.watch("width"),onChange:e=>r.setValue("width",e),"data-sentry-element":"PageRowWidthField","data-sentry-source-file":"ImageEditor.tsx"})}),(0,u.jsx)(v.D,{usingContentEdit:o,successMessage:"Image saved","data-sentry-element":"ApiResults","data-sentry-source-file":"ImageEditor.tsx"}),(0,u.jsx)(p.fC,{cancel:l,saving:s,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"ImageEditor.tsx"})]})]})},editLabel:"Image",isEmpty:e=>!iV(e),type:b.nz.Image};var iU=n(69460);let iH={component:function(){return(0,u.jsxs)("div",{className:"logo-and-copyright flex flex-col items-center gap-2","data-sentry-component":"LogoAndCopyright","data-sentry-source-file":"LogoAndCopyright.tsx",children:[(0,u.jsx)("div",{className:"logo-wrapper",children:(0,u.jsx)(iU.gu,{logoType:"FOOTER","data-sentry-element":"Logo","data-sentry-source-file":"LogoAndCopyright.tsx"})}),(0,u.jsx)(iU.nf,{className:"text-sm","data-sentry-element":"GroupCopyright","data-sentry-source-file":"LogoAndCopyright.tsx"})]})},type:b.nz.LogoAndCopyright,wrapWithEditable:!1};var iW=n(69080);let iG={component:(0,c.PA)(function(e){return(0,u.jsx)(iW.A,{...e,"data-sentry-element":"BaseNavigation","data-sentry-component":"Navigation","data-sentry-source-file":"Navigation.tsx"})}),type:b.nz.NavMenu,wrapWithEditable:!1};var iK=n(60530),iJ=n(46378),iQ=n(47952);let iY={component:(0,c.PA)(function(e){let t=(0,M.uV)(),{contentItem:n}=e,r=(0,b.Ql)(n,t),i=(0,b.kA)(r),o=i?.photo?.url,s=r?.children?.find(b._F);return(0,u.jsxs)(Y.A,{className:(0,h.A)("primary-quote",e.className),as:"section",editById:r?{id:r?.id,type:r.type??void 0}:void 0,"data-sentry-element":"EditableSection","data-sentry-component":"PrimaryQuote","data-sentry-source-file":"PrimaryQuote.tsx",children:[(0,u.jsx)("div",{className:"ImageWrapper",children:(0,u.jsx)("img",{src:o,className:"Image",alt:(0,b.NM)(i,"quote image")})}),(0,u.jsxs)("div",{className:"TextContent bg-[var(--group-quote-background-color)] text-[var(--group-quote-text-color)]",children:[(0,u.jsx)("h2",{className:"Title",children:r?.title}),(0,u.jsx)(iQ.A,{className:"BodyText",content:r?.content,"data-sentry-element":"MarkdownContent","data-sentry-source-file":"PrimaryQuote.tsx"}),s&&(0,u.jsx)("div",{className:"ButtonWrapper",children:(0,u.jsx)(k(),{href:(0,b.iY)(s)||"/",className:"Button",children:s.label})})]})]})}),type:b.nz.PrimaryQuote,wrapWithEditable:!1};var iX=n(79316);function iZ(e){let{className:t,contentItem:n}=e;return(0,u.jsx)("div",{className:(0,h.A)("public-events-list",`content-item-${n.id}`,t),"data-sentry-component":"PublicEvents","data-sentry-source-file":"PublicEvents.tsx",children:(0,u.jsx)(iX.A,{"data-sentry-element":"PublicEventsList","data-sentry-source-file":"PublicEvents.tsx"})})}(0,c.PA)(iZ);let i0={component:iZ,type:b.nz.PublicEventsList,wrapWithEditable:!1};var i1=n(17261),i2=n(8571),i5=n(20872),i3=n(79642),i4=n(18783),i8=n(4044),i6=n(7585),i7=n(82355
3098);let i9=[{name:"Instagram",slug:"instagram",component:i5.A},{name:"Facebook",slug:"facebook",component:i3.A},{name:"Bluesky",slug:"bluesky",component:i4.A},{name:"Discord",slug:"discord",component:i8.A},{name:"X-Twitter",slug:"x-twitter",component:i6.A},{name:"FetLife",slug:"fetlife",component:i7.A}],oe=(0,c.PA)(function(e){let t=(0,d.Eh)(),n=(0,m.CI)(t),[r,i]=(0,D.useState)(null),[o,s]=(0,D.useState)(null),a=(0,g.mN)({defaultValues:{socialLinks:[]}}),{register:l,formState:c,watch:x,setValue:_}=a,w=(0,y.X)({form:a,formToParams:function(e){if(!k)return{type:b.nz.SocialLinks};let t=e.socialLinks.map(e=>({id:e.id.startsWith("new:")?void 0:e.id,type:b.nz.SocialLink,purpose:e.platform,content:e.url,order:e.position}));return{type:b.nz.SocialLinks,children:t}},populateForm:function(e){let t=e.children?.map((e,t)=>({id:e.id,platform:e.purpose||"unknown",url:e.content||"",position:t}))||[];a.reset({socialLinks:t})},onClose:e.onClose}),{contentItem:k,handleSubmit:C}=w;function E(){let e=x("socialLinks"),t={id:`new:link-${Date.now()}-${Math.random().toString(36).substring(2,11)}`,platform:"instagram",url:"",position:e.length};_("socialLinks",[...e,t]),s(t.id),setTimeout(()=>s(null),1500)}let A=e=>i9.find(t=>t.slug===e);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"space-y-6",children:(()=>{let e=x("socialLinks");return(0,u.jsxs)("form",{onSubmit:C,className:"space-y-6","data-sentry-component":"renderSocialLinksEditor","data-sentry-source-file":"SocialLinksEdit.tsx",children:[(0,u.jsxs)("div",{children:[(0,u.jsx)("h3",{className:"text-lg font-medium mb-3",children:"Social Links"}),(0,u.jsx)(f.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"SocialLinksEdit.tsx",children:"Add social media links for your organization. Each link will be displayed with the appropriate platform icon."}),0===e.length?(0,u.jsx)("div",{className:(0,h.A)("text-center py-8 border-2 border-dashed rounded-lg",n.cardMutedTextColor,n.cardLineColor),children:'No social links added yet. Click "Add Social Link" to get started.'}):(0,u.jsx)("div",{className:"space-y-4",children:e.sort((e,t)=>e.position-t.position).map((e,r)=>{let s=A(e.platform);return(0,u.jsxs)("div",{className:(0,h.A)("flex items-center gap-4 p-4 border rounded-lg",n.cardLineColor,e.id===o&&"animate-highlight-flash"),children:[(0,u.jsx)("div",{className:"flex-shrink-0",children:s&&(0,u.jsx)(s.component,{className:(0,h.A)("w-6 h-6 fill-current",n.cardMutedTextColor)})}),(0,u.jsxs)("div",{className:"w-40",children:[(0,u.jsx)("label",{htmlFor:`platform-${e.id}`,className:"block text-sm font-medium mb-1",children:"Platform"}),(0,u.jsx)("select",{id:`platform-${e.id}`,value:e.platform,onChange:t=>{var n,r;return n=e.id,r=t.target.value,void _("socialLinks",x("socialLinks").map(e=>e.id===n?{...e,platform:r}:e))},className:(0,h.A)((0,m.mL)(t),"block w-full px-3 py-2 rounded-md shadow-sm sm:text-sm"),children:i9.map(e=>(0,u.jsx)("option",{value:e.slug,children:e.name},e.slug))})]}),(0,u.jsxs)("div",{className:"flex-1",children:[(0,u.jsx)("label",{htmlFor:`url-${e.id}`,className:"block text-sm font-medium mb-1",children:"URL"}),(0,u.jsx)(p.ks,{id:`url-${e.id}`,placeholder:`Enter ${s?.name} URL...`,value:e.url,onChange:t=>{var n,r;return n=e.id,r=t.target.value,void _("socialLinks",x("socialLinks").map(e=>e.id===n?{...e,url:r}:e))},register:l(`socialLinks.${r}.url`,{required:"URL is required",pattern:{value:/^https?:\/\/.+/,message:"Please enter a valid URL"}})}),(0,u.jsx)(p.Kw,{name:`socialLinks.${r}.url`,errors:c.errors})]}),(0,u.jsx)("button",{type:"button",onClick:()=>{i(e)},className:(0,h.A)("p-2 transition-colors hover:text-red-danger",n.cardMutedTextColor),title:"Remove social link",children:(0,u.jsx)(i2.A,{className:"w-5 h-5 fill-current"})})]},e.id)})})]}),(0,u.jsx)("div",{children:(0,u.jsxs)("button",{type:"button",onClick:E,className:(0,h.A)("inline-flex items-center px-4 py-2 border rounded-md text-sm font-medium","focus:outline-none focus:ring-2 focus:ring-offset-2",n.focusRingColor,n.cardLineColor,n.cardMutedTextColor,n.accentBorderHoverColor,n.accentTextHoverColor),children:[(0,u.jsx)("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","data-sentry-element":"svg","data-sentry-source-file":"SocialLinksEdit.tsx",children:(0,u.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4","data-sentry-element":"path","data-sentry-source-file":"SocialLinksEdit.tsx"})}),"Add Social Link"]})}),(0,u.jsx)(v.D,{usingContentEdit:w,successMessage:"Social links saved","data-sentry-element":"ApiResults","data-sentry-source-file":"SocialLinksEdit.tsx"}),(0,u.jsx)("div",{className:"flex justify-end pt-4 border-t",children:(0,u.jsx)(p.rA,{type:"submit",className:"px-6","data-sentry-element":"ActionButton","data-sentry-source-file":"SocialLinksEdit.tsx",children:"Save Social Links"})})]})})()}),(0,u.jsx)(ey.A,{deleting:!!r,onClose:()=>i(null),onDelete:function(){r&&(_("socialLinks",x("socialLinks").filter(e=>e.id!==r.id).map((e,t)=>({...e,position:t}))),i(null))},prompt:`Are you sure you want to remove this ${r?A(r.platform)?.name:"social"} link?`,"data-sentry-element":"ConfirmDelete","data-sentry-source-file":"SocialLinksEdit.tsx"})]})}
3098),ot={component:(0,c.PA)(function(e){let{contentItem:t}=e,n=t.id;return(0,u.jsx)("ul",{className:`social-links content-item-${n} flex justify-center items-center gap-6 h-12 relative overflow-hidden`,"data-sentry-component":"SocialLinks","data-sentry-source-file":"SocialLinks.tsx",children:(0,u.jsx)(i1.A,{"data-sentry-element":"InnerSocialLinks","data-sentry-source-file":"SocialLinks.tsx"})})}),type:b.nz.SocialLinks,editComponent:oe,editLabel:"Social Links"};var on=n(98345),or=n(94829),oi=n(62086),oo=n(6884);let oa=[{value:b.d_.Tight,label:"Tight",hint:"320px"},{value:b.d_.Narrow,label:"Narrow",hint:"512px"},{value:b.d_.Wide,label:"Wide",hint:"704px"}];function ol(e){let{onChange:t,value:n}=e,r=(0,m.CI)((0,d.Eh)());return(0,u.jsxs)("fieldset",{"data-sentry-component":"TwoColumnsStackBelowField","data-sentry-source-file":"TwoColumnsStackBelowField.tsx",children:[(0,u.jsx)("legend",{className:"font-medium mb-2",children:"Stack the columns below"}),(0,u.jsx)("div",{className:"flex flex-col gap-2",children:oa.map(e=>(0,u.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer",children:[(0,u.jsx)("input",{type:"radio",name:"two-columns-stack-below",value:e.value,checked:n===e.value,onChange:()=>t(e.value)}),(0,u.jsx)("span",{className:"w-24",children:e.label}),(0,u.jsx)("span",{className:(0,h.A)("text-sm",r.cardMutedTextColor),children:e.hint})]},e.value))})]})}function ou(e){let{colorClass:t,fixed:n,name:r,readout:i}=e,o=(0,m.CI)((0,d.Eh)());return(0,u.jsxs)("div",{"data-testid":"two-columns-preview-column",className:"relative min-w-0 min-h-[96px] p-2 flex flex-col justify-between text-xs overflow-hidden rounded","data-sentry-component":"PreviewColumn","data-sentry-source-file":"TwoColumnsWidthPreview.tsx",children:[(0,u.jsx)("span",{"aria-hidden":"true",className:(0,h.A)("absolute inset-0 rounded border border-current",n&&"border-dashed",t),children:(0,u.jsx)("span",{className:(0,h.A)("absolute inset-0",n?"opacity-40 [background-image:repeating-linear-gradient(135deg,currentColor_0_2px,transparent_2px_8px)]":"bg-current opacity-20")})}),(0,u.jsx)("b",{className:"relative font-semibold",children:r}),(0,u.jsx)("span",{className:(0,h.A)("relative tabular-nums",o.cardMutedTextColor),children:i})]})}function oc(e){let{widths:t}=e,n=(0,m.CI)((0,d.Eh)()),[r,i]=function(e){switch(e.layout){case b.Yy.Column1Fixed:return[`${e.size}px fixed`,"fill"];case b.Yy.Column2Fixed:return["fill",`${e.size}px fixed`];default:return[`${e.size}%`,`${100-e.size}%`]}}(t),o=t.layout===b.Yy.Column2Fixed;return(0,u.jsx)("div",{className:(0,h.A)("border border-dashed rounded-md p-2",n.cardLineColor),"data-sentry-component":"TwoColumnsWidthPreview","data-sentry-source-file":"TwoColumnsWidthPreview.tsx",children:(0,u.jsxs)("div",{className:"grid gap-2",style:{gridTemplateColumns:(0,b.St)(t)},children:[(0,u.jsx)(ou,{name:"Column 1",readout:r,fixed:t.layout===b.Yy.Column1Fixed,colorClass:o?n.cardMutedTextColor:n.accentTextColor,"data-sentry-element":"PreviewColumn","data-sentry-source-file":"TwoColumnsWidthPreview.tsx"}),(0,u.jsx)(ou,{name:"Column 2",readout:i,fixed:o,colorClass:o?n.accentTextColor:n.cardMutedTextColor,"data-sentry-element":"PreviewColumn","data-sentry-source-file":"TwoColumnsWidthPreview.tsx"})]})})}function od(e){return{layout:e.layout,size:e.layout===b.Yy.Column1Percent?e.percent:e.px}}let oh=[80,240,480];function op(e){let{className:t,width:n,x:r}=e;return(0,u.jsx)("rect",{x:r,y:"3",width:n,height:"14",rx:"1.5",fill:"currentColor",className:t,"data-sentry-element":"rect","data-sentry-component":"FilledColumn","data-sentry-source-file":"TwoColumnsWidthField.tsx"})}function of(e){let{className:t,x:n}=e;return(0,u.jsxs)("g",{className:t,stroke:"currentColor","data-sentry-element":"g","data-sentry-component":"FixedColumn","data-sentry-source-file":"TwoColumnsWidthField.tsx",children:[(0,u.jsx)("rect",{x:n+.5,y:"3.5",width:"9",height:"13",rx:"1.5",fill:"none","data-sentry-element":"rect","data-sentry-source-file":"TwoColumnsWidthField.tsx"}),(0,u.jsx)("path",{d:`M${n+3} 16 ${n+9} 6M${n+.5} 10 ${n+5} 3.5M${n+5} 16.5 ${n+9.5} 10`,opacity:".6","data-sentry-element":"path","data-sentry-source-file":"TwoColumnsWidthField.tsx"})]})}function om(e){let{layout:t}=e,n=(0,m.CI)((0,d.Eh)()),r=t===b.Yy.Column2Fixed,i=r?n.cardMutedTextColor:n.accentTextColor,o=r?n.accentTextColor:n.cardMutedTextColor;return(0,u.jsxs)("svg",{viewBox:"0 0 34 20","aria-hidden":"true",className:"w-[34px] h-5 flex-none","data-sentry-element":"svg","data-sentry-component":"ModeIcon","data-sentry-source-file":"TwoColumnsWidthField.tsx",children:[t===b.Yy.Column1Percent&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(op,{className:i,x:1,width:10}),(0,u.jsx)(op,{className:o,x:14,width:19})]}),t===b.Yy.Column1Fixed&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(of,{className:i,x:1}),(0,u.jsx)(op,{className:o,x:14,width:19})]}),t===b.Yy.Column2Fixed&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(op,{className:i,x:1,width:19}),(0,u.jsx)(of,{className:o,x:23})]})]})}let og=[[{layout:b.Yy.Column1Percent,label:"Column 1: %"}],[{layout:b.Yy.Column1Fixed,label:"Column 1: fixed"},{layout:b.Yy.Column2Fixed,label:"Column 2: fixed"}]];function oy(e){let{onChange:t,value:n}=e,r=(0,m.CI)((0,d.Eh)()),i=n.layout===b.Yy.Column1Percent,o=Math.max(0,b.iK.findIndex(e=>e.percent===n.percent)),[s,a]=(0,D.useState)(String(n.px)),l=(0,D.useId)(),c=(0,D.useId)();function p(e){let r=(0,b.Ld)(e);a(String(r)),t({...n,px:r})}(0,D.useEffect)(()=>{a(String(n.px))},[n.px]);let f=n.layout===b.Yy.Column2Fixed,g=n.layout===b.Yy.Column2Fixed?"Column 2 width":"Column 1 width",y="focus-visible:outline focus-visible:outline-2 focus-visible:outline-current";return(0,u.jsxs)("fieldset",{className:"flex flex-col gap-4 min-w-0","data-sentry-component":"TwoColumnsWidthField","data-sentry-source-file":"TwoColumnsWidthField.tsx",children:[(0,u.jsx)("legend",{className:"font-medium mb-2",children:"Column widths"}),(0,u.jsx)("div",{role:"radiogroup","aria-label":"Width mode",className:(0,h.A)("flex flex-col self-start max-w-full gap-1 p-1 border rounded-lg",r.cardLineColor),children:og.map(e=>(0,u.jsx)("div",{className:"flex gap-1",children:e.map(e=>{let i=n.layout===e.layout;return(0,u.jsxs)("label",{className:(0,h.A)("relative flex items-center gap-2 py-1.5 pl-2 pr-3 border rounded-md text-sm font-medium cursor-pointer","has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-1",i?[r.accentBorderColor,r.cardTintedBackgroun
3098dColor]:["border-transparent",r.cardMutedTextColor,r.cardTintedHoverColor]),children:[(0,u.jsx)("input",{type:"radio",name:"two-columns-layout",value:e.layout,checked:i,onChange:()=>t({...n,layout:e.layout}),className:"absolute inset-0 m-0 opacity-0 cursor-pointer"}),(0,u.jsx)(om,{layout:e.layout}),e.label]},e.layout)})},e[0].layout))}),(0,u.jsxs)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-3",children:[(0,u.jsxs)("div",{className:"flex-[1_1_240px] grid gap-0.5",children:[(0,u.jsx)("label",{htmlFor:l,id:c,children:g}),(0,u.jsx)("input",{id:l,type:"range",min:i?0:b.YI.min,max:i?b.iK.length-1:b.YI.max,step:i?1:b.YI.step,value:i?o:n.px,dir:f?"rtl":"ltr","aria-valuetext":i?`${n.percent}%`:`${n.px} pixels`,onChange:e=>{var r;return r=Number(e.target.value),void(i?t({...n,percent:b.iK[r].percent}):p(r))},className:(0,h.A)("w-full mt-1 focus-visible:outline-offset-4",y)}),(0,u.jsx)("div",{"aria-hidden":"true",className:(0,h.A)("relative h-4 text-[11px]",r.cardMutedTextColor),children:i?b.iK.map((e,t)=>(0,u.jsxs)("span",{className:(0,h.A)("absolute -translate-x-1/2 tabular-nums",t===o&&(0,h.A)("font-medium",r.accentTextColor)),style:{left:`calc(8px + (100% - 16px) * ${t/(b.iK.length-1)})`},children:[e.percent,"%"]},e.percent)):oh.map(e=>(0,u.jsx)("span",{className:"absolute -translate-x-1/2 tabular-nums",style:{left:`calc(8px + (100% - 16px) * ${function(e){let t=(e-b.YI.min)/(b.YI.max-b.YI.min);return f?1-t:t}(e)})`},children:e},e))})]}),i?(0,u.jsxs)("span",{"aria-live":"polite",className:"min-w-[4ch] text-right text-xl font-medium tabular-nums",children:[n.percent,"%"]}):(0,u.jsxs)("div",{className:(0,h.A)("inline-flex items-stretch border rounded-md overflow-hidden",r.cardLineColor),children:[(0,u.jsx)("button",{type:"button","aria-label":"Decrease by 10 pixels",onClick:()=>p(n.px-b.YI.step),className:(0,h.A)("w-8 text-base focus-visible:-outline-offset-2",r.cardTintedHoverColor,y),children:"â"}),(0,u.jsx)("input",{type:"number",inputMode:"numeric",min:b.YI.min,max:b.YI.max,step:b.YI.step,value:s,"aria-labelledby":c,onChange:e=>(function(e){a(e);let r=Number(e);""!==e&&r>=b.YI.min&&r<=b.YI.max&&t({...n,px:Math.round(r)})})(e.target.value),onBlur:()=>p(Number(s)),onKeyDown:e=>{"Enter"===e.key&&p(Number(s))},className:(0,h.A)("w-[72px] px-2 py-1.5 border-x bg-transparent text-right font-medium tabular-nums focus-visible:-outline-offset-2",r.cardLineColor,y)}),(0,u.jsx)("span",{className:(0,h.A)("flex items-center pl-1.5 pr-2.5 text-sm",r.cardMutedTextColor),children:"px"}),(0,u.jsx)("button",{type:"button","aria-label":"Increase by 10 pixels",onClick:()=>p(n.px+b.YI.step),className:(0,h.A)("w-8 text-base focus-visible:-outline-offset-2",r.cardTintedHoverColor,y),children:"+"})]})]}),(0,u.jsx)(oc,{widths:od(n),"data-sentry-element":"TwoColumnsWidthPreview","data-sentry-source-file":"TwoColumnsWidthField.tsx"})]})}function ov(e,t,n,r){return{width:e,columnWidths:function(e){let t=e.layout===b.Yy.Column1Percent;return{layout:e.layout,percent:t?e.size:b.Z,px:t?b.CQ:e.size}}({layout:t,size:n}),stackBelow:r}}function ob(e){let{className:t,offersWidth:n,onSave:r,saving:i,styles:o}=e,s=(0,b.Zf)(o),{layout:a,size:l}=(0,b.Ah)(o),c=(0,b.FK)(o),d=(0,g.mN)({defaultValues:ov(s,a,l,c)}),{reset:p}=d;return(0,D.useEffect)(()=>{p(ov(s,a,l,c))},[p,s,a,l,c]),(0,u.jsx)(eo.A,{title:"Layout options",className:t,"data-sentry-element":"EditorOptionsSection","data-sentry-component":"TwoColumnsLayoutOptions","data-sentry-source-file":"TwoColumnsLayoutOptions.tsx",children:(0,u.jsxs)("form",{onSubmit:d.handleSubmit(function(e){let t=n?(0,b.r3)(o,e.width):o,i=(0,b.pf)(t,od(e.columnWidths));r((0,b.rg)(i,e.stackBelow))}),children:[n&&(0,u.jsx)(i$,{value:d.watch("width"),onChange:e=>d.setValue("width",e)}),(0,u.jsx)("div",{className:(0,h.A)(n&&"mt-6"),children:(0,u.jsx)(oy,{value:d.watch("columnWidths"),onChange:e=>d.setValue("columnWidths",e),"data-sentry-element":"TwoColumnsWidthField","data-sentry-source-file":"TwoColumnsLayoutOptions.tsx"})}),(0,u.jsx)("div",{className:"mt-6",children:(0,u.jsx)(ol,{value:d.watch("stackBelow"),onChange:e=>d.setValue("stackBelow",e),"data-sentry-element":"TwoColumnsStackBelowField","data-sentry-source-file":"TwoColumnsLayoutOptions.tsx"})}),(0,u.jsx)(en.A,{saving:i,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"TwoColumnsLayoutOptions.tsx"})]})})}let ox=(0,c.PA)(function(){let e=(0,d.Eh)(),t=(0,m.CI)(e),n=(0,M.MM)(),{cursor:r,contentItem:i,refresh:o}=(0,H.f)(),[s]=(0,q.X)(V.Wv),[a,l]=(0,q.X)(V.o5),[c,p]=(0,D.useState)(),{listRef:g,dragProps:y,getItemClass:v,getGripSortable:
3098x}=(0,e_.A)({onReorder:C}),_=[...i?.children??[]].sort((e,t)=>e.order-t.order),w=_.map((e,t)=>({column:e,...(0,b.zP)(e,t)}));function k(e){if(!n||!i)return;let t=[...r?.path??[],(0,b.bN)(i)];n.open(e.id,{path:t})}async function C(e){p(void 0),(await s({variables:{input:{items:e.map((e,t)=>({id:e,order:t}))}}},"bulkUpdateContentItems2")).hasError?p({type:"error",message:"Failed to reorder the columns"}):(o(),p({type:"success",message:"Reordered the columns"}))}async function E(e){i&&(p(void 0),(await a({variables:{id:i.id,input:(0,b.Bd)({styles:e})}},"updateContentItem2")).hasError?p({type:"error",message:"Failed to save the layout options"}):(o(),p({type:"success",message:"Saved the layout options"})))}if(!i)return null;let A=(0,oo.MD)((0,b.s5)(r?.path,i),oo.DQ.MaxWidth);return(0,u.jsxs)("div",{style:{maxWidth:"500px"},className:"mx-auto","data-sentry-component":"TwoColumnsEdit","data-sentry-source-file":"TwoColumnsEdit.tsx",children:[(0,u.jsx)(f.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"TwoColumnsEdit.tsx",children:"Two blocks of text, side by side when there is room and stacked when there is not. Select a column to edit it, or drag to change which comes first."}),(0,u.jsx)(Z.A,{mutationResult:c,className:"my-4","data-sentry-element":"SaveResult","data-sentry-source-file":"TwoColumnsEdit.tsx"}),(0,u.jsx)(ob,{styles:i.styles,offersWidth:A,onSave:E,saving:l.loading,className:"mt-4","data-sentry-element":"TwoColumnsLayoutOptions","data-sentry-source-file":"TwoColumnsEdit.tsx"}),(0,u.jsx)("h3",{className:"text-lg font-medium mt-6 mb-3",children:"Columns"}),(0,u.jsx)("div",{ref:g,className:"space-y-2",children:w.map(({column:e,name:n,openTarget:r,addLabel:i})=>(0,u.jsxs)("div",{id:e.id,"data-sort-item":!0,"data-sort-item-id":e.id,...y,className:(0,h.A)("flex gap-3 px-3 border rounded-lg",t.cardLineColor,t.cardTintedHoverColor,v(e.id)),children:[(0,u.jsx)("div",{...x(e.id),"data-sort-item-id":e.id,className:(0,h.A)("flex items-center py-3 cursor-move touch-none",t.cardMutedTextColor,t.cardTextHoverColor),title:"Drag to reorder",children:(0,u.jsx)(oi.A,{className:"w-4 h-4 fill-current"})}),(0,u.jsx)("button",{type:"button",onClick:()=>k(r),className:"flex flex-1 items-center py-3 text-left font-medium",children:n}),(0,u.jsx)("div",{className:"flex shrink-0 items-center py-3",children:(0,u.jsx)(P.tA,{onClick:()=>k(e),children:i})})]},e.id))}),2!==_.length&&(0,u.jsxs)(or.A,{type:"warning",className:"mt-4",children:["This two-column section has ",_.length," columns rather than two. It will not render as intended until that is corrected."]})]})}),o_={wrapWithEditable:!1,component:(0,c.PA)(e=>{let{className:t}=e,n=(0,M.uV)(),r=(0,b.Ql)(e.contentItem,n);if(!r)return null;let i=r.children.map(e=>(0,b.Ql)(e,n)).filter(e=>!!e),o={"--two-columns-template":(0,b.St)((0,b.Ah)(r.styles))};return(0,u.jsx)("div",{className:(0,h.A)((0,b.BW)(r.styles),t),"data-sentry-component":"TwoColumns","data-sentry-source-file":"TwoColumns.tsx",children:(0,u.jsx)("section",{style:o,className:(0,b.nn)(r.styles),children:i.map(e=>(0,u.jsx)("div",{children:(0,b.YC)(e).map(e=>(0,u.jsx)(Q.A,{contentItem:e},e.id))},e.id))})})}),type:b.nz.TwoColumns,editComponent:ox,editLabel:"Two Columns"},ow=new Map([eu,ef,em,ek,iP,iF.W,O,X,I.r,iz,iH,iG,iK.M,iJ.q,iY,i0,ot,on.C,o_].map(e=>[e.type,e]));function ok(e){let t=e.type?ow.get(e.type):void 0;if(!t?.pageType||t.pageType===e.pageType)return t}},87157:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>n6,QS:()=>function e(t){if(t&&"object"==typeof t){if(Array.isArray(t))return t.map(e);let n={};for(let r in t)"__typename"!==r&&(n[r]=e(t[r]));return n}return t}});var r,i,o,s=n(4902),a=n(75093);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(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 c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var d=function(){return"function"==typeof Symbol},h=function(e){return d()&&!!Symbol[e]},p=function(e){return h(e)?Symbol[e]:"@@"+e};d()&&!h("observable")&&(Symbol.observable=Symbol("observable"));var f=p("iterator"),m=p("observable"),g=p("species");function y(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw TypeError(n+" is not a function");return n}}function v(e){var t=e.constructor;return void 0!==t&&null===(t=t[g])&&(t=void 0),void 0!==t?t:S}function b(e){b.log?b.log(e):setTimeout(function(){throw e})}function x(e){Promise.resolve().then(function(){try{e()}catch(e){b(e)}})}function _(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=y(t,"unsubscribe");n&&n.call(t)}}catch(e){b(e)}}function w(e){e._observer=void 0,e._queue=void 0,e._state="closed"}
3098function k(e,t,n){e._state="running";var r=e._observer;try{var i=y(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(w(e),i)i.call(r,n);else throw n;break;case"complete":w(e),i&&i.call(r)}}catch(e){b(e)}"closed"===e._state?_(e):"running"===e._state&&(e._state="ready")}function C(e,t,n){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:n});if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:n}],x(function(){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(k(e,t[n].type,t[n].value),"closed"!==e._state);++n);}});return}k(e,t,n)}}var E=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new A(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(w(this),_(this))},c(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),A=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){C(this._subscription,"next",e)},t.error=function(e){C(this._subscription,"error",e)},t.complete=function(){C(this._subscription,"complete")},c(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),S=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new E(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if("function"!=typeof e)return void r(TypeError(e+" is not a function"));function i(){o.unsubscribe(),n()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),o.unsubscribe()}},error:r,complete:n})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(v(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(v(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=v(this),r=arguments.length>1,i=!1,o=arguments[1],s=o;return new n(function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{s=e(s,t)}catch(e){return n.error(e)}else s=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError("Cannot reduce an empty sequence"));n.next(s),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=v(this);return new i(function(t){var r,o=0;return!function e(s){r=s.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=v(this);return new n(function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),s()}});i.push(o)},error:function(e){r.error(e)},complete:function(){s()}});function s(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[m]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var r=y(t,m);if(r){var i=r.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof S&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(h("iterator")&&(r=y(t,f)))return new n(function(e){x(function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){x(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){x(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},c(e,null,[{key:g,get:function(){return this}}]),e}();d()&&Object.defineProperty(S,Symbol("extensions"),{value:{symbol:m,hostReportError:b},configurable:!0});var T=n(93957);function j(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new a.zU("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new a.zU(44);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(__DEV__?(0,a.V1)(1===r.length,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,a.V1)(1===r.length,45),n=r[0].name.value),(0,s.Cl)((0,s.Cl)({},e),{definitions:(0,s.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function N(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function O(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return __DEV__?(0,a.V1)(r,"No fragment named ".concat(n)):(0,a.V1)(r,46),r||null;default:return null}}function I(e){return{__ref:String(e)}}function D(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function M(e,t,n,r){if("IntValue"===n.kind||"FloatValue"===n.kind)e[t.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[t.value]=n.value;else if("ObjectValue"===n.kind){var i={};n.fields.map(function(e){return M(i,e.name,e.value,r)}),e[t.value]=i}
3098else if("Variable"===n.kind){var o=(r||{})[n.name.value];e[t.value]=o}else if("ListValue"===n.kind)e[t.value]=n.values.map(function(e){var n={};return M(n,t,e,r),n[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else if("NullValue"===n.kind)e[t.value]=null;else throw __DEV__?new a.zU('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new a.zU(55)}var L=["connection","include","skip","client","rest","export"],R=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(!n.connection.filter||!(n.connection.filter.length>0))return n.connection.key;else{var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(P(i),")")}var o=e;if(t){var s=P(t);o+="(".concat(s,")")}return n&&Object.keys(n).forEach(function(e){-1===L.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(P(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=P;return P=e,t}}),P=function(e){return JSON.stringify(e,F)};function F(e,t){return(0,T.U)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function B(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return M(n,e.name,e.value,t)}),n}return null}function $(e){return e.alias?e.alias.value:e.name.value}function q(e,t,n){for(var r,i=0,o=t.selections;i<o.length;i++){var s=o[i];if(V(s)){if("__typename"===s.name.value)return e[$(s)]}else r?r.push(s):r=[s]}if("string"==typeof e.__typename)return e.__typename;if(r)for(var a=0,l=r;a<l.length;a++){var s=l[a],u=q(e,O(s,n).selectionSet,n);if("string"==typeof u)return u}}function V(e){return"Field"===e.kind}function z(e){__DEV__?(0,a.V1)(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,a.V1)(e&&"Document"===e.kind,47);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new a.zU('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new a.zU(48);return e});return __DEV__?(0,a.V1)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):(0,a.V1)(t.length<=1,49),e}function U(e){return z(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function H(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function W(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function G(e){var t=U(e);return __DEV__?(0,a.V1)(t&&"query"===t.operation,"Must contain a query definition."):(0,a.V1)(t&&"query"===t.operation,50),t}function K(e){z(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new a.zU("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new a.zU(54)}function J(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&M(t,e.variable.name,e.defaultValue)}),t}function Q(e,t){return t?t(e):S.of()}function Y(e){return"function"==typeof e?new ee(e):e}function X(e){return e.request.length<=1}var Z=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return(0,s.C6)(t,e),t}(Error),ee=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return S.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(Y).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=Y(n),o=Y(r||new e(Q));return new e(X(i)&&X(o)?function(e){return t(e)?i.request(e)||S.of():o.request(e)||S.of()}:function(e,n){return t(e)?i.request(e,n)||S.of():o.request(e,n)||S.of()})},e.execute=function(e,t){var n,r,i,o,l;return e.request((i=t.context,(r={variables:(n=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(0>t.indexOf(i))throw __DEV__?new a.zU("illegal argument: ".concat(i)):new a.zU(27)}return e}(t)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(r.operationName="string"!=typeof r.query?H(r.query)||void 0:""),o=r,l=(0,s.Cl)({},i),Object.defineProperty(o,"setContext",{enumerable:!1,value:function(e){l="function"==typeof e?(0,s.Cl)((0,s.Cl)({},l),e(l)):(0,s.Cl)((0,s.Cl)({},l),e)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function(){return(0,s.Cl)({},l)}}),o))||S.of()},e.concat=function(t,n){var r=Y(t);if(X(r))return __DEV__&&a.V1.warn(new Z("You are calling concat on a terminating link, which will have no effect",r)),r;var i=Y(n);return new e(X(i)?function(e){return r.request(e,function(e){return i.request(e)||S.of()})||S.of()}:function(e,t){return r.request(e,function(e){return i.request(e,t)||S.of()})||S.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Q)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new a.zU("request is not implemented"):new a.zU(22)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),et=n(58287),en=n(77016),er=n(86158),ei=n(94587);let eo=Object.freeze({});function es(e,t,n=er.aD){let r,i,o,s=new Map;for(let e of Object.values(ei.b))s.set(e,function(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let a=Array.isArray(e),l=[e],u=-1,c=[],d=e,h=[],p=[];do{var f,m,g;let e,y=++u===l.length,v=y&&0!==c.length;if(y){if(i=0===p.length?void 0:h[h.length-1],d=o,o=p.pop(),v)if(a){d=d.slice();let e=0;for(let[t,n]of c){let r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else for(let[e,t]of(d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d)),c))d[e]=t;u=r.index,l=r.keys,c=r.edits,a=r.inArray,r=r.prev}else if(o){if(null==(d=o[i=a?u:l[u]]))continue;h.push(i)}
3098if(!Array.isArray(d)){(0,er.Ll)(d)||(0,et.U)(!1,`Invalid AST Node: ${(0,en.N)(d)}.`);let n=y?null==(f=s.get(d.kind))?void 0:f.leave:null==(m=s.get(d.kind))?void 0:m.enter;if((e=null==n?void 0:n.call(t,d,i,o,h,p))===eo)break;if(!1===e){if(!y){h.pop();continue}}else if(void 0!==e&&(c.push([i,e]),!y))if((0,er.Ll)(e))d=e;else{h.pop();continue}}void 0===e&&v&&c.push([i,d]),y?h.pop():(r={inArray:a,index:u,keys:l,edits:c,prev:r},l=(a=Array.isArray(d))?d:null!=(g=n[d.kind])?g:[],u=-1,c=[],o&&p.push(o),o=d)}while(void 0!==r);return 0!==c.length?c[c.length-1][1]:e}function ea(e,t){var n,r,i=e.directives;return!i||!i.length||(r=[],(n=i)&&n.length&&n.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,n=e.arguments,i=e.name.value;__DEV__?(0,a.V1)(n&&1===n.length,"Incorrect number of arguments for the @".concat(i," directive.")):(0,a.V1)(n&&1===n.length,41);var o=n[0];__DEV__?(0,a.V1)(o.name&&"if"===o.name.value,"Invalid argument for the @".concat(i," directive.")):(0,a.V1)(o.name&&"if"===o.name.value,42);var s=o.value;__DEV__?(0,a.V1)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):(0,a.V1)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),43),r.push({directive:e,ifArgument:o})}}),r).every(function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?(0,a.V1)(void 0!==i,"Invalid variable referenced in @".concat(n.name.value," directive.")):(0,a.V1)(void 0!==i,40)):i=r.value.value,"skip"===n.name.value?!i:i})}function el(e,t,n){var r=new Set(e),i=r.size;return es(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return eo}}),n?!r.size:r.size<i}var eu=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new a.zU("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new a.zU(24);throw r.parseError=e,r}return n},ec=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")},ed=n(80542);function eh(e){var t={next:function(){return e.read()}};return ed.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}var ep=function(e,t,n){var r=Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},ef=n(83070),em=n(35785),eg=Object.prototype.hasOwnProperty;function ey(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ev(e)}function ev(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new ex,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var eb=function(e,t,n){return this.merge(e[n],t[n])},ex=function(){function e(e){void 0===e&&(e=eb),this.reconciler=e,this.isObject=T.U,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return(0,T.U)(t)&&(0,T.U)(e)?(Object.keys(t).forEach(function(i){if(eg.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,(0,s.fX)([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,T.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,s.Cl)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function e_(e){return"incremental"in e}function ew(e,t){var n=e,r=new ex;return e_(t)&&(0,em.E)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var s=i[o],a=isNaN(+s)?{}:[];a[s]=t,t=a}n=r.merge(n,t)}),n}var ek=Object.prototype.hasOwnProperty;function eC(e,t){e.status>=300&&ep(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(n){throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function eE(e,t){var n,r;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null==(n=t.next)||n.call(t,e.result)),null==(r=t.error)||r.call(t,e))}var eA=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new a.zU("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new a.zU(23)},eS=n(47518);let eT=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ej(e){return eN[e.charCodeAt(0)]}let eN=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function eO(e){return es(e,eI)}let eI={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eD(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=eL("(",eD(e.variableDefinitions,", "),")"),n=eD([e.operation,eD([e.name,t]),eD(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+eL(" = ",n)+eL(" ",eD(r," "))},SelectionSet:{leave:({selections:e})=>eM(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=eL("",e,": ")+t,s=o+eL("(",eD(n,", "),")");return s.length>80&&(s=o+eL("(\n",eR(eD(n,"\n")),"\n)")),eD([s,eD(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+eL(" ",eD(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>eD(["...",eL("on ",e),eD(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${eL("(",eD(n,", "),")")} on ${t} ${eL("",eD(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
3098,StringValue:{leave:({value:e,block:t})=>t?(0,eS.yo)(e):`"${e.replace(eT,ej)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eD(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eD(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+eL("(",eD(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>eL("",e,"\n")+eD(["schema",eD(t," "),eM(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>eL("",e,"\n")+eD(["scalar",t,eD(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eL("",e,"\n")+eD(["type",t,eL("implements ",eD(n," & ")),eD(r," "),eM(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>eL("",e,"\n")+t+(eP(n)?eL("(\n",eR(eD(n,"\n")),"\n)"):eL("(",eD(n,", "),")"))+": "+r+eL(" ",eD(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>eL("",e,"\n")+eD([t+": "+n,eL("= ",r),eD(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eL("",e,"\n")+eD(["interface",t,eL("implements ",eD(n," & ")),eD(r," "),eM(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>eL("",e,"\n")+eD(["union",t,eD(n," "),eL("= ",eD(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>eL("",e,"\n")+eD(["enum",t,eD(n," "),eM(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>eL("",e,"\n")+eD([t,eD(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>eL("",e,"\n")+eD(["input",t,eD(n," "),eM(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>eL("",e,"\n")+"directive @"+t+(eP(n)?eL("(\n",eR(eD(n,"\n")),"\n)"):eL("(",eD(n,", "),")"))+(r?" repeatable":"")+" on "+eD(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eD(["extend schema",eD(e," "),eM(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eD(["extend scalar",e,eD(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eD(["extend type",e,eL("implements ",eD(t," & ")),eD(n," "),eM(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eD(["extend interface",e,eL("implements ",eD(t," & ")),eD(n," "),eM(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>eD(["extend union",e,eD(t," "),eL("= ",eD(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>eD(["extend enum",e,eD(t," "),eM(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>eD(["extend input",e,eD(t," "),eM(n)]," ")}};function eD(e,t=""){var n;return null!=(n=null==e?void 0:e.filter(e=>e).join(t))?n:""}function eM(e){return eL("{\n",eR(eD(e,"\n")),"\n}")}function eL(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function eR(e){return eL(" ",e.replace(/\n/g,"\n "))}function eP(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var eF={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},eB=function(e,t){return t(e)},e$=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function eV(e){return new S(function(t){t.error(e)})}var ez=(0,a.no)(function(){return fetch}),eU=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,o=void 0===i?eB:i,l=e.includeExtensions,u=e.preserveHeaderCase,c=e.useGETForQueries,d=e.includeUnusedVariables,h=void 0!==d&&d,p=(0,s.Tt)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&eA(r||ez);var f={http:{includeExtensions:l,preserveHeaderCase:u},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new ee(function(e){var t,i,l=ec(e,n),u=e.getContext(),d={};if(u.clientAwareness){var p=u.clientAwareness,m=p.name,g=p.version;m&&(d["apollographql-client-name"]=m),g&&(d["apollographql-client-version"]=g)}var y=(0,s.Cl)((0,s.Cl)({},d),u.headers),v=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};
3098n.forEach(function(e){i=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},i),e.options),{headers:(0,s.Cl)((0,s.Cl)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=(0,s.Cl)((0,s.Cl)({},o),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var n=Object.create(null);return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r=Object.create(null);Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}(i.headers,o.preserveHeaderCase));var a=e.operationName,l=e.extensions,u=e.variables,c=e.query,d={operationName:a,variables:u};return o.includeExtensions&&(d.extensions=l),o.includeQuery&&(d.query=t(c,eO)),{options:i,body:d}}(e,o,eF,f,{http:u.http,options:u.fetchOptions,credentials:u.credentials,headers:y}),b=v.options,x=v.body;if(x.variables&&!h){var _=new Set(Object.keys(x.variables));es(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&_.delete(e.name.value)}}),_.size&&(x.variables=(0,s.Cl)({},x.variables),_.forEach(function(e){delete x.variables[e]}))}if(!b.signal){var w=e$(),k=w.controller,C=w.signal;(i=k)&&(b.signal=C)}var E="OperationDefinition"===(t=K(e.query)).kind&&"subscription"===t.operation,A=el(["defer"],e.query);if(c&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(b.method="GET"),A||E){b.headers=b.headers||{};var j="multipart/mixed;";E&&A&&__DEV__&&a.V1.warn("Multipart-subscriptions do not support @defer"),E?j+="boundary=graphql;subscriptionSpec=1.0,application/json":A&&(j+="deferSpec=20220824,application/json"),b.headers.accept=j}if("GET"===b.method){var N=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=eu(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=eu(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var s="",a=e,l=e.indexOf("#");-1!==l&&(s=e.substr(l),a=e.substr(0,l));var u=-1===a.indexOf("?")?"?":"&";return{newURI:a+u+n.join("&")+s}}(l,x),O=N.newURI,I=N.parseError;if(I)return eV(I);l=O}else try{b.body=eu(x,"Payload")}catch(e){return eV(e)}return new S(function(t){return(r||(0,a.no)(function(){return fetch})||ez)(l,b).then(function(n){e.setContext({response:n});var r,i,o=null==(i=n.headers)?void 0:i.get("content-type");if(null!==o&&/^multipart\/mixed/i.test(o))return function(e,t){var n,r,i,o,a;return(0,s.sH)(this,void 0,void 0,function(){var l,u,c,d,h,p,f,m,g,y,v,b,x,_,w,k,C,E,A,S,j,N;return(0,s.YH)(this,function(O){switch(O.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");l=new TextDecoder("utf-8"),u=null==(n=e.headers)?void 0:n.get("content-type"),c="boundary=",d=(null==u?void 0:u.includes(c))?null==u?void 0:u.substring((null==u?void 0:u.indexOf(c))+c.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",h="\r\n--".concat(d),p="",f=function(e){var t,n,r,i,o,s,a=e;if(e.body&&(a=e.body),t=a,ed.uJ&&t[Symbol.asyncIterator])return r=a[Symbol.asyncIterator](),(n={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},n;if(a.getReader)return eh(a.getReader());if(a.stream)return eh(a.stream().getReader());if(a.arrayBuffer)return i=a.arrayBuffer(),o=!1,s={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},ed.uJ&&(s[Symbol.asyncIterator]=function(){return this}),s;if(a.pipe)return function(e){var t=null,n=null,r=!1,i=[],o=[];function s(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function a(e){n=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function l(){r=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",a),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",s),e.on("error",a),e.on("end",l),e.on("finish",l),e.on("close",l);var u={next:function(){return new Promise(function(e,t){return n?t(n):i.length?e({value:i.shift(),done:!1}):r?e({value:void 0,done:!0}):void o.push([e,t])})}};return ed.uJ&&(u[Symbol.asyncIterator]=function(){return this}),u}(a);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),m=!0,O.label=1;case 1:if(!m)return[3,3];return[4,f.next()];case 2:for(y=(g=O.sent()).value,v=g.done,b="string"==typeof y?y:l.decode(y),x=p.length-h.length+1,m=!v,p+=b,_=p.indexOf(h,x);_>-1;){if(w=void 0,w=(j=[p.slice(0,_),p.slice(_+h.length)])[0],p=j[1],k=w.indexOf("\r\n\r\n"),(C=function(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}(w.slice(0,k))["content-type"])&&-1===C.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
3098if(E=w.slice(k))try{if(A=eC(e,E),Object.keys(A).length>1||"data"in A||"incremental"in A||"errors"in A||"payload"in A)(0,T.U)(A)&&"payload"in A?(S={},"payload"in A&&(S=(0,s.Cl)({},A.payload)),"errors"in A&&(S=(0,s.Cl)((0,s.Cl)({},S),{extensions:(0,s.Cl)((0,s.Cl)({},"extensions"in S?S.extensions:null),((N={})[ef.K$]=A.errors,N))})),null==(r=t.next)||r.call(t,S)):null==(i=t.next)||i.call(t,A);else 1===Object.keys(A).length&&"hasNext"in A&&!A.hasNext&&(null==(o=t.complete)||o.call(t))}catch(e){eE(e,t)}_=p.indexOf(h)}return[3,1];case 3:return null==(a=t.complete)||a.call(t),[2]}})})}(n,t);(r=e,function(e){return e.text().then(function(t){return eC(e,t)}).then(function(t){return e.status>=300&&ep(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||ek.call(t,"data")||ek.call(t,"errors")||ep(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map(function(e){return e.operationName}):r.operationName,"'.")),t})})(n).then(function(e){var n,r;null==(n=t.next)||n.call(t,e),null==(r=t.complete)||r.call(t)}).catch(function(e){return eE(e,t)})}).catch(function(e){return eE(e,t)}),function(){i&&i.abort()}})})},eH=ee.execute,eW=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,eU(t).request)||this;return n.options=t,n}return(0,s.C6)(t,e),t}(ee),eG=n(20996);let eK=()=>Object.create(null),{forEach:eJ,slice:eQ}=Array.prototype,{hasOwnProperty:eY}=Object.prototype;class eX{constructor(e=!0,t=eK){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return eJ.call(e,e=>t=t.getChildTrie(e)),eY.call(t,"data")?t.data:t.data=this.makeData(eQ.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){let r=this.weakness&&eZ(e[n])?t.weak:t.strong;t=r&&r.get(e[n])}return t&&t.data}getChildTrie(e){let t=this.weakness&&eZ(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=t.get(e);return n||t.set(e,n=new eX(this.weakness,this.makeData)),n}}function eZ(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var e0=function(){function e(){this.known=new(ed.En?WeakSet:Set),this.pool=new eX(ed.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,T.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,T.U)(e)){var t=(0,T.U)(e)?(0,em.c)(e)?e.slice(0):(0,s.Cl)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,T.U)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return!i.array&&(this.known.add(i.array=r),__DEV__&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),s=[o],a=this.sortedKeys(e);s.push(a.json);var l=s.length;a.sorted.forEach(function(n){s.push(t.admit(e[n]))});var i=this.pool.lookupArray(s);if(!i.object){var u=i.object=Object.create(o);this.known.add(u),a.sorted.forEach(function(e,t){u[e]=s[l+t]}),__DEV__&&Object.freeze(u)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),e1=Object.assign(function(e){if((0,T.U)(e)){void 0===r&&e2();var t=r.admit(e),n=i.get(t);return void 0===n&&i.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:e2});function e2(){r=new e0,i=new(ed.et?WeakMap:Map)}function e5(e,t,n){return new S(function(r){var i=r.next,o=r.error,s=r.complete,a=0,l=!1,u={then:function(e){return new Promise(function(t){return t(e())})}};function c(e,t){return e?function(t){++a;var n=function(){return e(t)};u=u.then(n,n).then(function(e){--a,i&&i.call(r,e),l&&d.complete()},function(e){throw--a,e}).catch(function(e){o&&o.call(r,e)})}:function(e){return t&&t.call(r,e)}}var d={next:c(t,i),error:c(n,o),complete:function(){l=!0,!a&&s&&s.call(r)}},h=e.subscribe(d);return function(){return h.unsubscribe()}})}function e3(e){var t=e4(e);return(0,em.E)(t)}function e4(e){var t=(0,em.E)(e.errors)?e.errors.slice(0):[];return e_(e)&&(0,em.E)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var e8={kind:ei.b.FIELD,name:{kind:ei.b.NAME,value:"__typename"}};function e6(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function e7(e,t){for(var n,r,i,o,l=e6(""),u=e6(""),c=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!(0,em.c)(n)){if(n.kind===ei.b.OPERATION_DEFINITION)return l(n.name&&n.name.value);if(n.kind===ei.b.FRAGMENT_DEFINITION)return u(n.name.value)}return __DEV__&&a.V1.error("Could not find operation or fragment"),null},d=0,h=t.definitions.length-1;h>=0;--h)t.definitions[h].kind===ei.b.OPERATION_DEFINITION&&++d;var p=(n=new Set,r=[],e.forEach(function(e){e.name?n.add(e.name):e.test&&r.push(e.test)}),function(e){return n.has(e.name.value)||r.some(function(t){return t(e)})}),f=e.some(function(e){return e.remove}),m=function(e){return f&&e&&e.some(p)},g=new Map,y=!1,v={enter:function(e){if(m(e.directives))return y=!0,null}},b=es(t,{Field:v,InlineFragment:v,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var o=c(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(m(e.directives))return y=!0,null;var o=c(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){g.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===g.get(JSON.stringify(r))?e:d>0&&e.selectionSet.selections.every(function(e){return e.kind===ei.b.FIELD&&"__typename"===e.name.value})?(u(e.name.value).removed=!0,y=!0,null):void 0}},Directive:{leave:function(e){if(p(e))return y=!0,null}}});if(!y)return t;var x=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){x(u(t)).transitiveVars.forEac
3098h(function(t){e.transitiveVars.add(t)})})),e},_=new Set;b.definitions.forEach(function(e){e.kind===ei.b.OPERATION_DEFINITION?x(l(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){_.add(e)}):e.kind!==ei.b.FRAGMENT_DEFINITION||0!==d||u(e.name.value).removed||_.add(e.name.value)}),_.forEach(function(e){x(u(e)).fragmentSpreads.forEach(function(e){_.add(e)})});var w={enter:function(e){var t;if(t=e.name.value,!_.has(t)||u(t).removed)return null}};return!function e(t,n){return!t||t.selectionSet.selections.every(function(t){return t.kind===ei.b.FRAGMENT_SPREAD&&e(n[t.name.value],n)})}(U(i=es(b,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=x(l(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,s.Cl)((0,s.Cl)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))||(__DEV__?(0,a.V1)("Document"===i.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,a.V1)("Document"===i.kind,51),__DEV__?(0,a.V1)(i.definitions.length<=1,"Fragment must have exactly one definition."):(0,a.V1)(i.definitions.length<=1,52),o=i.definitions[0],__DEV__?(0,a.V1)("FragmentDefinition"===o.kind,"Must be a fragment definition."):(0,a.V1)("FragmentDefinition"===o.kind,53),o),N(W(i)))?i:null}var e9=Object.assign(function(e){return es(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==ei.b.OPERATION_DEFINITION){var r=e.selections;if(!(!r||r.some(function(e){return V(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!(V(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return(0,s.Cl)((0,s.Cl)({},e),{selections:(0,s.fX)((0,s.fX)([],r,!0),[e8],!1)})}}}})},{added:function(e){return e===e8}}),te={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&a.V1.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}},tt=new Map;function tn(e){var t=tt.get(e)||1;return tt.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function tr(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function ti(e){function t(t){Object.defineProperty(e,t,{value:S})}return ed.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}function to(e){return e&&"function"==typeof e.then}var ts=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),tr(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),tr(n.observers,"error",e))},complete:function(){var e=n.sub,t=n.sources;if(null!==e){var r=(void 0===t?[]:t).shift();r?to(r)?r.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=r.subscribe(n.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),tr(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new S(t)]),to(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,s.C6)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;
3098n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(S);ti(ts);var ta=n(66434),tl=Object.prototype.toString;function tu(e,t){switch(tl.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,r){n[r]=tu(e,t)}),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=tu(e[n],t)}),r;default:return e}}var tc=n(79760),td=Object.assign,th=Object.hasOwnProperty,tp=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=tm)}catch(e){}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch(function(){}),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=r,o.queryManager=n,o.isTornDown=!1;var a=n.defaultOptions.watchQuery,l=(void 0===a?{}:a).fetchPolicy,u=void 0===l?"cache-first":l,c=i.fetchPolicy,d=void 0===c?u:c,h=i.initialFetchPolicy,p=void 0===h?"standby"===d?u:d:h;o.options=(0,s.Cl)((0,s.Cl)({},i),{initialFetchPolicy:p,fetchPolicy:d}),o.queryId=r.queryId||n.generateQueryId();var f=U(o.query);return o.queryName=f&&f.name&&f.name.value,o}return(0,s.C6)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||ta.p.ready,r=(0,s.Cl)((0,s.Cl)({},t),{loading:(0,ta.b)(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if("network-only"===o||"no-cache"===o||"standby"===o||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),(0,eG.L)(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,a.complete&&r.networkStatus===ta.p.loading&&("cache-first"===o||"cac
3098he-only"===o)&&(r.networkStatus=ta.p.ready,r.loading=!1)):r.partial=!0,!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||tg(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!(0,eG.L)(this.last.result,e)||t&&!(0,eG.L)(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||(0,eG.L)(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if("cache-and-network"===r?n.fetchPolicy=r:"no-cache"===r?n.fetchPolicy="no-cache":n.fetchPolicy="network-only",__DEV__&&e&&th.call(e,"variables")){var i=G(this.query),o=i.variableDefinitions;(!o||!o.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&a.V1.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null==(t=i.name)?void 0:t.value)||JSON.stringify(i),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,eG.L)(this.options.variables,e)&&(n.variables=this.options.variables=(0,s.Cl)((0,s.Cl)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,ta.p.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,s.Cl)((0,s.Cl)({},e.query?e:(0,s.Cl)((0,s.Cl)((0,s.Cl)((0,s.Cl)({},this.options),{query:this.query}),e),{variables:(0,s.Cl)((0,s.Cl)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId(),i=this.queryInfo,o=i.networkStatus;i.networkStatus=ta.p.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var a=new Set;return this.queryManager.fetchQuery(r,n,ta.p.fetchMore).then(function(s){return t.queryManager.removeQuery(r),i.networkStatus===ta.p.fetchMore&&(i.networkStatus=o),t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:s.data,variables:n.variables})}):r.writeQuery({query:n.query,variables:n.variables,data:s.data})},onWatchUpdated:function(e){a.add(e.query)}}),s}).finally(function(){a.has(t.query)||tf(t)})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,{subscriptionData:n,variables:t.variables})})},error:function(t){if(e.onError)return void e.onError(t);__DEV__&&a.V1.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,eG.L)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},ta.p.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==n){__DEV__?(0,a.V1)(n,"Attempted to start a polling query without a polling interval."):(0,a.V1)(n,13),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&((0,ta.b)(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},ta.p.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,s.Cl)((0,s.Cl)({},this.last),{result:this.queryManager.assumeImmutableResults?e:tu(e),variables:t}),(0,em.E)(e.errors)||delete this.last.error,this.last},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var r=t===ta.p.refetch||t===ta.p.fetchMore||t===ta.p.poll,i=this.options.variables,o=this.options.fetchPolicy,a=(0,tc.o)(this.options,e||{}),l=r?a:td(this.options,a);!r&&(this.updatePolling(),e&&e.variables&&!(0,eG.L)(e.variables,i)&&"standby"!==l.fetchPolicy&&l.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",l),void 0===t&&(t=ta.p.setVariables)));var u=l.variables&&(0,s.Cl)({},l.variables),c=this.fetch(l,t),d=c.concast,h=c.fromLink,p={next:function(e){n.reportResult(e,u)},error:function(e){n.reportError(e,u)}};return!r&&h&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=p),d.addObserver(p),d},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e,t))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),tr(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=(0,s.Cl)((0,s.Cl)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:ta.p.error,loading:!1});this.updateLastResult(n,t),tr(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(S);function tf(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=r,"function"==typeof r)?r.apply(this,arguments):n}}):e.reobserve()}function tm(e){__DEV__&&a.V1.error("Unhandled error",e.message,e.stack)}function tg(e){__DEV__&&e&&__DEV__&&a.V1.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}function ty(e){return e.kind===ei.b.FIELD||e.kind===ei.b.FRAGMENT_SPREAD||e.kind===ei.b.INLINE_FRAGMENT}ti(tp);var tv=function(){return Object.create(null)},tb=Array.prototype,tx=tb.forEach,t_=tb.slice,tw=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=tv),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return tx.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(t_.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}();let tk=null,tC={},tE=1;function tA(e){try{return e()}catch(e){}}let tS="@wry/context:Slot",tT=tA(()=>globalThis)||tA(()=>global)||Object.create(null),tj=tT[tS]||Array[tS]||function(e){try{Object.defineProperty(tT,tS,{value:e,enumerable:!1,writable:!1,
3098configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",tE++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=tk;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===tC)break;return e!==tk&&(tk.slots[this.id]=t),!0}return tk&&(tk.slots[this.id]=tC),!1}getValue(){if(this.hasValue())return tk.slots[this.id]}withValue(e,t,n,r){let i={__proto__:null,[this.id]:e},o=tk;tk={parent:o,slots:i};try{return t.apply(r,n)}finally{tk=o}}static bind(e){let t=tk;return function(){let n=tk;try{return tk=t,e.apply(this,arguments)}finally{tk=n}}}static noContext(e,t,n){if(!tk)return e.apply(n,t);{let r=tk;try{return tk=null,e.apply(n,t)}finally{tk=r}}}}),{bind:tN,noContext:tO}=tj;function tI(){}var tD=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=tI),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),tM=new tj,tL=Object.prototype.hasOwnProperty,tR=void 0===(o=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:o;function tP(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var tF=[];function tB(e,t){if(!e)throw Error(t||"assertion failure")}function t$(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var tq=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!tU(this))return tV(this),this.value[0]},e.prototype.recompute=function(e){var t,n,r;return tB(!this.recomputing,"already recomputing"),tV(this),tU(this)?(t=this,n=e,tJ(t),tM.withValue(t,tz,[t,n]),function(e,t){if("function"==typeof e.subscribe)try{tP(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,n)&&((r=t).dirty=!1,tU(r)||function(e){tH(e,tG)}(r)),t$(t.value)):t$(this.value)},e.prototype.setDirty=function(){var e;this.dirty||(this.dirty=!0,this.value.length=0,e=this,tH(e,tW),tP(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),tJ(this),tH(this,function(t,n){t.setDirty(),tQ(t,e)})},e.prototype.forget=function(){this.dispose()}
3098,e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=tF.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(tR(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),tF.push(this.deps),this.deps=null)},e.count=0,e}();function tV(e){var t=tM.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),tU(e)?tW(t,e):tG(t,e),t}function tz(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function tU(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function tH(e,t){var n=e.parents.size;if(n)for(var r=tR(e.parents),i=0;i<n;++i)t(r[i],e)}function tW(e,t){tB(e.childValues.has(t)),tB(tU(t));var n=!tU(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=tF.pop()||new Set;e.dirtyChildren.add(t),n&&tH(e,tW)}function tG(e,t){tB(e.childValues.has(t)),tB(!tU(t));var n,r,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(n=t.value,(r=i.length)>0&&r===n.length&&i[r-1]===n[r-1]||e.setDirty()),tK(e,t),tU(e)||tH(e,tG)}function tK(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(tF.length<100&&tF.push(n),e.dirtyChildren=null))}function tJ(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){tQ(e,n)}),e.forgetDeps(),tB(null===e.dirtyChildren)}function tQ(e,t){t.parents.delete(e),e.childValues.delete(t),tK(e,t)}var tY={setDirty:!0,dispose:!0,forget:!0};function tX(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=tM.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(tP(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&tL.call(tY,n)?n:"setDirty";tR(r).forEach(function(e){return e[i]()}),t.delete(e),tP(r)}},r}function tZ(){var e=new tw("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}tZ();var t0=new Set;function t1(e,t){void 0===t&&(t=Object.create(null));var n=new tD(t.max||65536,function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||tZ(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var s=n.get(o);s||(n.set(o,s=new tq(e)),s.subscribe=t.subscribe,s.forget=function(){return n.delete(o)});var a=s.recompute(Array.prototype.slice.call(arguments));return n.set(o,s),t0.add(n),tM.hasValue()||(t0.forEach(function(e){return e.clean()}),t0.clear()),a};function s(e){var t=n.get(e);t&&t.setDirty()}function a(e){var t=n.get(e);if(t)return t.peek()}function l(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=s,o.dirty=function(){s(i.apply(null,arguments))},o.peekKey=a,o.peek=function(){return a(i.apply(null,arguments))},o.forgetKey=l,o.forget=function(){return l(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var t2=new tj,t5=new WeakMap;function t3(e){var t=t5.get(e);return t||t5.set(e,t={vars:new Set,dep:tX()}),t}function t4(e){t3(e).vars.forEach(function(t){return t.forgetCache(e)})}function t8(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){var t;t3(e).dep.dirty(r),(t=e).broadcastWatches&&t.broadcastWatches()});var s=Array.from(n);n.clear(),s.forEach(function(t){return t(e)})}}else{var a=t2.getValue();a&&(i(a),t3(a).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),t3(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var t6=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=ey(t.resolvers,e)}):this.resolvers=ey(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then(function(e){return(0,s.Cl)((0,s.Cl)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return el(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return z(e),e7([{test:function(e){return"client"===e.name.value},remove:!0}],e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,s.Cl)((0,s.Cl)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,s.sH)(this,void 0,void 0,function(){return(0,s.YH)(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,s.Cl)((0,s.Cl)({},t),e.exportedVariables)})]:[2,(0,s.Cl)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return es(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return eo}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===K(e).operation?e:es(e,{OperationDefinition:{enter:function(e){return(0,s.Cl)((0,s.Cl)({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,s.sH)(this,void 0,void 0,function(){var a,l,u,c,d,h,p,f,m;return(0,s.YH)(this,function(g){return a=K(e),l=N(W(e)),u=this.collectSelectionsToResolve(a,l),d=(c=a.operation)?c.charAt(0).toUpperCase()+c.slice(1):"Query",h=this,p=h.cache,f=h.client,m={fragmentMap:l,context:(0,s.Cl)((0,s.Cl)({}
3098,n),{cache:p,client:f}),variables:r,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,!1,t,m).then(function(e){return{result:e,exportedVariables:m.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,r){return(0,s.sH)(this,void 0,void 0,function(){var i,o,l,u,c,d=this;return(0,s.YH)(this,function(h){return i=r.fragmentMap,o=r.context,l=r.variables,u=[n],c=function(e){return(0,s.sH)(d,void 0,void 0,function(){var c,d;return(0,s.YH)(this,function(s){return(t||r.selectionsToResolve.has(e))&&ea(e,l)?V(e)?[2,this.resolveField(e,t,n,r).then(function(t){var n;void 0!==t&&u.push(((n={})[$(e)]=t,n))})]:("InlineFragment"===e.kind?c=e:(c=i[e.name.value],__DEV__?(0,a.V1)(c,"No fragment named ".concat(e.name.value)):(0,a.V1)(c,11)),c&&c.typeCondition&&(d=c.typeCondition.name.value,r.fragmentMatcher(n,d,o)))?[2,this.resolveSelectionSet(c.selectionSet,t,n,r).then(function(e){u.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return ev(u)})]})})},e.prototype.resolveField=function(e,t,n,r){return(0,s.sH)(this,void 0,void 0,function(){var i,o,a,l,u,c,d,h,p,f=this;return(0,s.YH)(this,function(s){return n?(i=r.variables,l=(o=e.name.value)!==(a=$(e)),c=Promise.resolve(u=n[a]||n[o]),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=n.__typename||r.defaultOperationType,(h=this.resolvers&&this.resolvers[d])&&(p=h[l?o:a])&&(c=Promise.resolve(t2.withValue(this.cache,p,[n,B(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,c.then(function(n){if(void 0===n&&(n=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)})}),!e.selectionSet||null==n)return n;var i,o,s=null!=(o=null==(i=e.directives)?void 0:i.some(function(e){return"client"===e.name.value}))&&o;return Array.isArray(n)?f.resolveSubSelectedArray(e,t||s,n,r):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t||s,n,r):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(i){if(!r.has(i)){var o=new Set;r.set(i,o),es(i,{Directive:function(e,t,r,i,s){"client"===e.name.value&&s.forEach(function(e){n(e)&&ty(e)&&o.add(e)})},FragmentSpread:function(r,i,s,l,u){var c=t[r.name.value];__DEV__?(0,a.V1)(c,"No fragment named ".concat(r.name.value)):(0,a.V1)(c,12);var d=e(c);d.size>0&&(u.forEach(function(e){n(e)&&ty(e)&&o.add(e)}),o.add(r),d.forEach(function(e){o.add(e)}))}})}return r.get(i)}(e)},e}(),t7=new(ed.et?WeakMap:Map);function t9(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return t7.set(e,(t7.get(e)+1)%1e15),n.apply(this,arguments)})}function ne(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var nt=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;t7.has(n)||(t7.set(n,0),t9(n,"evict"),t9(n,"modify"),t9(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||ta.p.loading;return this.variables&&this.networkStatus!==ta.p.loading&&!(0,eG.L)(this.variables,e.variables)&&(t=ta.p.setVariables),(0,eG.L)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){ne(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,eG.L)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,eG.L)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():tf(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
3098ne(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,ta.b)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=(0,s.Cl)((0,s.Cl)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,eG.L)(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===t7.get(this.cache)&&(0,eG.L)(t,n.variables)&&(0,eG.L)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new ex,s=(0,em.E)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,em.E)(e.incremental)){var a=ew(this.getDiff().result,e);e.data=a}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=o.merge(l.result,e.data)}this.graphQLErrors=s,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(nn(e,n.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:t7.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var s=i.getDiffOptions(n.variables),a=o.diff(s);i.stopped||i.updateWatch(n.variables),i.updateLastDiff(a,s),a.complete&&(e.data=a.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ta.p.ready},e.prototype.markError=function(e){return this.networkStatus=ta.p.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function nn(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!e3(e);return!r&&n&&e.data&&(r=!0),r}var nr=Object.prototype.hasOwnProperty,ni=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,s=e.ssrMode,a=e.clientAwareness,l=e.localState,u=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(ed.et?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===a?{}:a,this.localState=l||new t6({cache:t}),this.ssrMode=void 0!==s&&s,this.assumeImmutableResults=!!u,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(__DEV__?new a.zU("QueryManager stopped while query was in flight"):new a.zU(14))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,r=e.mutation,i=e.variables,o=e.optimisticResponse,l=e.updateQueries,u=e.refetchQueries,c=void 0===u?[]:u,d=e.awaitRefetchQueries,h=void 0!==d&&d,p=e.update,f=e.onQueryUpdated,m=e.fetchPolicy,g=void 0===m?(null==(t=this.defaultOptions.mutate)?void 0:t.fetchPolicy)||"network-only":m,y=e.errorPolicy,v=void 0===y?(null==(n=this.defaultOptions.mutate)?void 0:n.errorPolicy)||"none":y,b=e.keepRootFields,x=e.context;return(0,s.sH)(this,void 0,void 0,function(){var e,t,n,u,d,m;return(0,s.YH)(this,function(y){switch(y.label){case 0:if(__DEV__?(0,a.V1)(r,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,a.V1)(r,15),__DEV__?(0,a.V1)("network-only"===g||"no-cache"===g,"Mutations supp
3098ort only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,a.V1)("network-only"===g||"no-cache"===g,16),e=this.generateMutationId(),n=(t=this.transform(r)).document,u=t.hasClientExports,r=this.cache.transformForLink(n),i=this.getVariables(r,i),!u)return[3,2];return[4,this.localState.addExportedVariables(r,i,x)];case 1:i=y.sent(),y.label=2;case 2:return d=this.mutationStore&&(this.mutationStore[e]={mutation:r,variables:i,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:r,variables:i,fetchPolicy:g,errorPolicy:v,context:x,updateQueries:l,update:p,keepRootFields:b}),this.broadcastQueries(),m=this,[2,new Promise(function(t,n){return e5(m.getObservableFromLink(r,(0,s.Cl)((0,s.Cl)({},x),{optimisticResponse:o}),i,!1),function(t){if(e3(t)&&"none"===v)throw new ef.K4({graphQLErrors:e4(t)});d&&(d.loading=!1,d.error=null);var n=(0,s.Cl)({},t);return"function"==typeof c&&(c=c(n)),"ignore"===v&&e3(n)&&delete n.errors,m.markMutationResult({mutationId:e,result:n,document:r,variables:i,fetchPolicy:g,errorPolicy:v,context:x,update:p,updateQueries:l,awaitRefetchQueries:h,refetchQueries:c,removeOptimistic:o?e:void 0,onQueryUpdated:f,keepRootFields:b})}).subscribe({next:function(e){m.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){d&&(d.loading=!1,d.error=t),o&&m.cache.removeOptimistic(e),m.broadcastQueries(),n(t instanceof ef.K4?t:new ef.K4({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&nn(r,e.errorPolicy)){if(e_(r)||i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),e_(r)&&(0,em.E)(r.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),l=void 0;a.result&&(l=ew(a.result,r)),void 0!==l&&(r.data=l,i.push({result:l,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,o){var s=e.observableQuery,a=s&&s.queryName;if(a&&nr.call(u,a)){var l=u[a],c=n.queries.get(o),d=c.document,h=c.variables,p=t.diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),f=p.result;if(p.complete&&f){var m=l(f,{mutationResult:r,queryName:d&&H(d)||void 0,queryVariables:h});m&&i.push({result:m,dataId:"ROOT_QUERY",query:d,variables:h})}}})}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var a,l=e.update,u=!(e_(a=r)||"hasNext"in a&&"data"in a)||e_(r)&&!r.hasNext;if(l){if(!o){var c=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(r=(0,s.Cl)((0,s.Cl)({},r),{data:c.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}u&&l(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return c.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(function(){return r})}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult((0,s.Cl)((0,s.Cl)({},t),{result:{data:r}}),e)}catch(e){__DEV__&&a.V1.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=e7([te],z(n)),i=this.localState.clientQuery(n),o=r&&this.localState.serverQuery(r),a={document:n,hasClientExports:n&&el(["client","export"],n,!0),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:i,serverQuery:o,defaultVars:J(U(n)),asQuery:(0,s.Cl)((0,s.Cl)({},n),{definitions:n.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,s.Cl)((0,s.Cl)({},e),{operation:"query"}):e})})},l=function(e){e&&!t.has(e)&&t.set(e,a)};
3098l(e),l(n),l(i),l(o)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,s.Cl)((0,s.Cl)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,s.Cl)((0,s.Cl)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new nt(this),n=new tp({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:n.query,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,a.V1)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,a.V1)(e.query,17),__DEV__?(0,a.V1)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,a.V1)("Document"===e.query.kind,18),__DEV__?(0,a.V1)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,a.V1)(!e.returnPartialData,19),__DEV__?(0,a.V1)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,a.V1)(!e.pollInterval,20),this.fetchQuery(t,e).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new a.zU("Store reset while query was in flight (not completed in link chain)"):new a.zU(21)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=ta.p.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)r.set(e,!1);else(0,T.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)?r.set(t.transform(e).document,!1):(0,T.U)(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,s=t.document;if(o){if("all"===e)return void n.set(i,o);var a=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||a&&r.has(a)||s&&r.has(s))&&(n.set(i,o),a&&r.set(a,!0),s&&r.set(s,!0))}}),i.size&&i.forEach(function(e){var r=tn("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new tp({queryManager:t,queryInfo:i,options:(0,s.Cl)((0,s.Cl)({},e),{fetchPolicy:"network-only"})});(0,a.V1)(o.queryId===r),i.setObservableQuery(o),n.set(r,o)}),__DEV__&&r.size&&r.forEach(function(e,t){!e&&__DEV__&&a.V1.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,s=e.context,a=void 0===s?{}:s;n=this.transform(n).document,o=this.getVariables(n,o);var l=function(e){return t.getObservableFromLink(n,a,e).map(function(o){"no-cache"!==r&&(nn(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var s=e3(o),a=(0,ef.uR)(o);if(s||a){var l={};throw s&&(l.graphQLErrors=o.errors),a&&(l.protocolErrors=o.extensions[ef.K$]),new ef.K4(l)}return o})};if(this.transform(n).hasClientExports){var u=this.localState.addExportedVariables(n,o,a).then(l);return new S(function(e){var t=null;return u.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return l(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEac
3098h(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!=(i=null==t?void 0:t.queryDeduplication)?i:this.queryDeduplication);var l=this.transform(e).serverQuery;if(l){var u=this.inFlightLinkObservables,c=this.link,d={query:l,variables:n,operationName:H(l)||void 0,context:this.prepareContext((0,s.Cl)((0,s.Cl)({},t),{forceFetch:!r}))};if(t=d.context,r){var h=u.get(l)||new Map;u.set(l,h);var p=e1(n);if(!(o=h.get(p))){var f=new ts([eH(c,d)]);h.set(p,o=f),f.beforeNext(function(){h.delete(p)&&h.size<1&&u.delete(l)})}}else o=new ts([eH(c,d)])}else o=new ts([S.of({data:{}})]),t=this.prepareContext(t);var m=this.transform(e).clientQuery;return m&&(o=e5(o,function(e){return a.localState.runResolvers({document:m,remoteResult:e,context:t,variables:n})})),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(e.document).document);return e5(this.getObservableFromLink(i,n.context,n.variables),function(o){var s=e4(o),a=s.length>0;if(r>=e.lastRequestId){if(a&&"none"===n.errorPolicy)throw e.markError(new ef.K4({graphQLErrors:s}));e.markResult(o,i,n,t),e.markReady()}var l={data:o.data,loading:!1,networkStatus:ta.p.ready};return a&&"ignore"!==n.errorPolicy&&(l.errors=s,l.networkStatus=ta.p.error),l},function(t){var n=(0,ef.Mn)(t)?t:new ef.K4({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast},e.prototype.fetchConcastWithInfo=function(e,t,n){var r,i,o=this;void 0===n&&(n=ta.p.loading);var s=this.transform(t.query).document,a=this.getVariables(s,t.variables),l=this.getQuery(e),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,d=void 0===c?u&&u.fetchPolicy||"cache-first":c,h=t.errorPolicy,p=void 0===h?u&&u.errorPolicy||"none":h,f=t.returnPartialData,m=t.notifyOnNetworkStatusChange,g=t.context,y=Object.assign({},t,{query:s,variables:a,fetchPolicy:d,errorPolicy:p,returnPartialData:void 0!==f&&f,notifyOnNetworkStatusChange:void 0!==m&&m,context:void 0===g?{}:g}),v=function(e){y.variables=e;var r=o.fetchQueryByPolicy(l,y,n);return"standby"!==y.fetchPolicy&&r.sources.length>0&&l.observableQuery&&l.observableQuery.applyNextFetchPolicy("after-fetch",t),r},b=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return r.cancel(e)})}),this.transform(y.query).hasClientExports)r=new ts(this.localState.addExportedVariables(y.query,y.variables,y.context).then(v).then(function(e){return e.sources})),i=!0;else{var x=v(y.variables);i=x.fromLink,r=new ts(x.sources)}return r.promise.then(b,b),{concast:r,fromLink:i}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,s=e.removeOptimistic,a=void 0===s?o?tn("refetchQueries"):void 0:s,l=e.onQueryUpdated,u=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){u.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var c=new Map;return n&&this.cache.batch({update:n,optimistic:o&&a||!1,removeOptimistic:a,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof nt&&e.watcher.observableQuery;if(r){if(l){u.delete(r.queryId);var i=l(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&c.set(r,i),i}null!==l&&u.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),u.size&&u.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,s=e.diff;if(l){if(!s){var a=i.queryInfo;a.reset(),s=a.getDiff()}r=l(i,s,o)}l&&!0!==r||(r=i.refetch()),!1!==r&&c.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),a&&this.cache.removeOptimistic(a),c},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,l=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,d=t.context,h=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:this.transform(i).document,variables:o,networkStatus:n});var f=function(){return e.getDiff(o)},m=function(t,n){void 0===n&&(n=e.networkStatus||ta.p.loading);var a=t.result;!__DEV__||c||(0,eG.L)(a,{})||tg(t.missing);var l=function(e){return S.of((0,s.Cl)({data:e,loading:(0,ta.b)(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:d,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return l(e.data||void 0)}):"none"===u&&n===ta.p.refetch&&Array.isArray(t.missing)?l(void 0):l(a)},g="no-cache"===a?0:n===ta.p.refetch&&"merge"!==l?1:2,y=function(){return r.getResultsFromLink(e,g,{variables:o,context:d,fetchPolicy:a,errorPolicy:u})},v=h&&"number"==typeof p&&p!==n&&(0,ta.b)(n);switch(a){default:case"cache-first":var b=f();if(b.complete)return{fromLink:!1,sources:[m(b,e.markReady())]};if(c||v)return{fromLink:!0,sources:[m(b),y()]};return{fromLink:!0,sources:[y()]};case"cache-and-network":var b=f();if(b.complete||c||v)return{fromLink:!0,sources:[m(b),y()]};return{fromLink:!0,sources:[y()]};case"cache-only":return{fromLink:!1,sources:[m(f(),e.markReady())]};case"network-only":if(v)return{fromLink:!0,sources:[m(f()),y()]};return{fromLink:!0,sources:[y()]};case"no-cache":if(v)return{fromLink:!0,sources:[m(e.getDiff()),y()]};return{fromLink:!0,sources:[y()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new nt(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,s.Cl)((0,s.Cl)({},t),{clientAwareness:this.clientAwareness})},e}(),no=n(18877),ns=!1,na=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,s=e.ssrMode,l=void 0!==s&&s,u=e.ssrForceFetchDelay,c=void 0===u?0:u,d=e.connectToDevTools,h=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:d,p=e.queryDeduplication,f=void 0===p||p,m=e.defaultOptions,g=e.assumeImmutableResults,y=e.resolvers,v=e.typeDefs,b=e.fragmentMatcher,x=e.name,_=e.version,w=e.link;if(w||(w=n?new eW({uri:n,credentials:r,headers:i}):ee.empty()),!o)throw __DEV__?new a.zU("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new a.zU(9);
3098if(this.link=w,this.cache=o,this.disableNetworkFetches=l||c>0,this.queryDeduplication=f,this.defaultOptions=m||Object.create(null),this.typeDefs=v,c&&setTimeout(function(){return t.disableNetworkFetches=!1},c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),h&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!ns&&h&&__DEV__&&(ns=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var k=window.navigator,C=k&&k.userAgent,E=void 0;"string"==typeof C&&(C.indexOf("Chrome/")>-1?E="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":C.indexOf("Firefox/")>-1&&(E="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),E&&__DEV__&&a.V1.log("Download the Apollo DevTools for a better development experience: "+E)}this.version="3.7.16",this.localState=new t6({cache:o,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new ni({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:f,ssrMode:l,clientAwareness:{name:x,version:_},localState:this.localState,assumeImmutableResults:void 0!==g&&g,onBroadcast:h?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,no.l)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,s.Cl)((0,s.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,no.l)(this.defaultOptions.query,e)),__DEV__?(0,a.V1)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,a.V1)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,s.Cl)((0,s.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,no.l)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return eH(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var i=Promise.all(r);return i.queries=n,i.results=r,i.catch(function(e){__DEV__&&a.V1.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),nl=function(){function e(){this.getFragmentDoc=t1(j)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.o
3098ptimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,s.Cl)((0,s.Cl)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,s.Cl)((0,s.Cl)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=(0,s.Tt)(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=(0,s.Tt)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery((0,s.Cl)((0,s.Cl)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment((0,s.Cl)((0,s.Cl)({},e),{data:i})),i)}})},e}(),nu=function(e){function t(n,r,i,o){var s,a=e.call(this,n)||this;if(a.message=n,a.path=r,a.query=i,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var l=a.path.length-1;l>=0;--l)(s={})[a.path[l]]=a.missing,a.missing=s}else a.missing=a.path;return a.__proto__=t.prototype,a}return(0,s.C6)(t,e),t}(Error),nc=n(21500),nd=Object.prototype.hasOwnProperty;function nh(e){return null==e}function np(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=nh(r)?nh(i)?void 0:{_id:i}:{id:r}),nh(r)&&!nh(i)&&(r=i),!nh(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var nf={dataIdFromObject:np,addTypename:!0,resultCaching:!0,canonizeResults:!1};function nm(e){var t=e.canonizeResults;return void 0===t?nf.canonizeResults:t}var ng=/^[_a-z][_0-9a-z]*/i;function ny(e){var t=e.match(ng);return t?t[0]:e}function nv(e){return(0,T.U)(e)&&!D(e)&&!(0,em.c)(e)}function nb(e,t){var n=N(W(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var nx=Object.create(null),n_=function(){return nx},nw=Object.create(null),nk=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,nc.G)(D(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return D(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return I(e);if(D(e))return e;var r=n.policies.identify(e)[0];if(r){var i=I(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,s.Cl)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),nd.call(this.data,e)){var n=this.data[e];if(n&&nd.call(n,t))return n[t]}return"__typename"===t&&nd.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof nA?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),nd.call(this.data,e))?this.data[e]:this instanceof nA?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;D(e)&&(e=e.__ref),D(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?(0,a.V1)("string"==typeof n,"store.merge expects a string ID"):(0,a.V1)("string"==typeof n,1);var s=new ex(nT).merge(i,o);if(this.data[n]=s,s!==i&&(delete this.refs[n],this.group.caching)){var l=Object.create(null);
3098i||(l.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){l[e]=1;var t=ny(e);t===e||r.policies.hasKeyArgs(s.__typename,t)||(l[t]=1),void 0!==s[e]||r instanceof nA||delete s[e]}}),l.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===s.__typename&&delete l.__typename,Object.keys(l).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,l={DELETE:nx,INVALIDATE:nw,isReference:D,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||I(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(u){var c=ny(u),d=r[u];if(void 0!==d){var h="function"==typeof t?t:t[u]||t[c];if(h){var p=h===n_?nx:h((0,nc.G)(d),(0,s.Cl)((0,s.Cl)({},l),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));p===nw?n.group.dirty(e,u):(p===nx&&(p=void 0),p!==d&&(i[u]=p,o=!0,d=p))}void 0!==d&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof nA?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),s=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,s?((r={})[s]=n_,r):n_)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(nd.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof nA&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){nd.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&nd.call(e,n)||t.delete(n)}),e){var n=e.__META,r=(0,s.Tt)(e,["__META"]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof nA?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){nd.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof nA;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!nd.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){D(e)&&(t[e.__ref]=!0),(0,T.U)(e)&&Object.keys(e).forEach(function(t){var n=e[t];(0,T.U)(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),nC=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?tX():null,this.keyMaker=new eX(ed.et)}
3098,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var n=ny(t);n!==t&&this.d(n+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function nE(e,t){nj(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=t.seed,o=e.call(this,n,new nC(void 0===r||r))||this;return o.stump=new nS(o),o.storageTrie=new eX(ed.et),i&&o.replace(i),o}return(0,s.C6)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(nk||(nk={}));var nA=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,s.C6)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){(0,eG.L)(r[n],i[n])||t.group.dirty(e,n)}
3098):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,s.Cl)((0,s.Cl)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return nd.call(this.data,t)?(0,s.Cl)((0,s.Cl)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(nk),nS=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new nC(t.group.caching,t.group))||this}return(0,s.C6)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(nA);function nT(e,t,n){var r=e[n],i=t[n];return(0,eG.L)(r,i)?r:i}function nj(e){return!!(e instanceof nk&&e.group.caching)}function nN(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var nO=function(){function e(e){var t=this;this.knownResults=new(ed.et?WeakMap:Map),this.config=(0,tc.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:nm(e)}),this.canon=e.canon||new e0,this.executeSelectionSet=t1(function(e){var n,r=e.context.canonizeResults,i=nN(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?(0,s.Cl)((0,s.Cl)({},o),{result:t.canon.admit(o.result)}):o:(nE(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:nN,makeCacheKey:function(e,t,n,r){if(nj(n.store))return n.store.makeCacheKey(e,D(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=t1(function(e){return nE(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(nj(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new e0},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,r=e.query,i=e.rootId,o=e.variables,a=e.returnPartialData,l=e.canonizeResults,u=void 0===l?this.config.canonizeResults:l,c=this.config.cache.policies;o=(0,s.Cl)((0,s.Cl)({},J(G(r))),o);var d=I(void 0===i?"ROOT_QUERY":i),h=this.executeSelectionSet({selectionSet:K(r).selectionSet,objectOrReference:d,enclosingRef:d,context:(0,s.Cl)({store:n,query:r,policies:c,variables:o,varString:e1(o),canonizeResults:u},nb(r,this.config.fragments))});if(h.missing&&(t=[new nu(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(h.missing),h.missing,r,o)],!(void 0===a||a)))throw t[0];return{result:h.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,r){if(nj(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,n=this,r=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,s=e.context;if(D(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var l=s.variables,u=s.policies,c=s.store.getFieldValue(i,"__typename"),d=[],h=new ex;function p(e,n){var r;return e.missing&&(t=h.merge(t,((r={})[n]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof c&&!u.rootIdsByTypename[c]&&d.push({__typename:c});var f=new Set(r.selections);f.forEach(function(e){var r,m;if(ea(e,l))if(V(e)){var g=u.readField({fieldName:e.name.value,field:e,variables:s.variables,from:i},s),y=$(e);void 0===g?e9.added(e)||(t=h.merge(t,((r={})[y]="Can't find field '".concat(e.name.value,"' on ").concat(D(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),r))):(0,em.c)(g)?g=p(n.executeSubSelectedArray({field:e,array:g,enclosingRef:o,context:s}),y):e.selectionSet?null!=g&&(g=p(n.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:g,enclosingRef:D(g)?g:o,context:s}),y)):s.canonizeResults&&(g=n.canon.pass(g)),void 0!==g&&d.push(((m={})[y]=g,m))}else{var v=O(e,s.lookupFragment);if(!v&&e.kind===ei.b.FRAGMENT_SPREAD)throw __DEV__?new a.zU("No fragment named ".concat(e.name.value)):new a.zU(5);v&&u.fragmentMatches(v,c)&&v.selectionSet.selections.forEach(f.add,f)}});var m={result:ev(d),missing:t},g=s.canonizeResults?this.canon.admit(m):(0,nc.G)(m);return g.result&&this.knownResults.set(g.result,r),g},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,s=e.context,l=new ex;function u(e,n){var r;return e.missing&&(t=l.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,em.c)(e)?u(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:s}),t):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:D(e)?e:o,context:s}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){(0,T.U)(n)&&(__DEV__?(0,a.V1)(!D(n),"Missing selection set for object of type ".concat(D(n)?e.get(n.__ref,"__typename"):n&&n.__typename," returned for query field ").concat(t.name.value)):(0,a.V1)(!D(n),6),Object.values(n).forEac
3098h(r.add,r))})}}(s.store,r,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),nI=Object.create(null);function nD(e){var t=JSON.stringify(e);return nI[t]||(nI[t]=Object.create(null))}function nM(e){var t=nD(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=nR(e,function(e){var i=nF(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&nd.call(t,e[0])&&(i=nF(t,e,nP)),__DEV__?(0,a.V1)(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,a.V1)(void 0!==i,2),i});return"".concat(n.typename,":").concat(JSON.stringify(i))})}function nL(e){var t=nD(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,s=JSON.stringify(nR(e,function(e){var n=e[0],o=n.charAt(0);if("@"===o){if(r&&(0,em.E)(r.directives)){var s=n.slice(1),a=r.directives.find(function(e){return e.name.value===s}),l=a&&B(a,i);return l&&nF(l,e.slice(1))}return}if("$"===o){var u=n.slice(1);if(i&&nd.call(i,u)){var c=e.slice(0);return c[0]=u,nF(i,c)}return}if(t)return nF(t,e)}));return(t||"{}"!==s)&&(o+=":"+s),o})}function nR(e,t){var n=new ex;return(function e(t){var n=nD(t);if(!n.paths){var r=n.paths=[],i=[];t.forEach(function(n,o){(0,em.c)(n)?(e(n).forEach(function(e){return r.push(i.concat(e))}),i.length=0):(i.push(n),(0,em.c)(t[o+1])||(r.push(i.slice(0)),i.length=0))})}return n.paths})(e).reduce(function(e,r){var i,o=t(r);if(void 0!==o){for(var s=r.length-1;s>=0;--s)(i={})[r[s]]=o,o=i;e=n.merge(e,o)}return e},Object.create(null))}function nP(e,t){return e[t]}function nF(e,t,n){return n=n||nP,function e(t){return(0,T.U)(t)?(0,em.c)(t)?t.map(e):nR(Object.keys(t).sort(),function(e){return nF(t,e)}):t}(t.reduce(function e(t,r){return(0,em.c)(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function nB(e){return void 0!==e.args?e.args:e.field?B(e.field,e.variables):null}R.setStringify(e1);var n$=function(){},nq=function(e,t){return t.fieldName},nV=function(e,t,n){return(0,n.mergeObjects)(e,t)},nz=function(e,t){return t},nU=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,s.Cl)({dataIdFromObject:np},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r,i=this,o=t&&(t.typename||(null==(n=t.storeObject)?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=t&&t.storeObject||e,l=(0,s.Cl)((0,s.Cl)({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=nW(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),c=u&&u.keyFn||this.config.dataIdFromObject;c;){var d=c((0,s.Cl)((0,s.Cl)({},e),a),l);if((0,em.c)(d))c=nM(d);else{r=d;break}}return r=r?String(r):void 0,l.keyObject?[r,l.keyObject]:[r]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,l=(0,s.Tt)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),nd.call(t.toBeAdded,n)?t.toBeAdded[n].push(l):t.toBeAdded[n]=[l]})},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?nV:!1===t?nz:e.merge}s(r,t.merge),r.keyFn=!1===i?n$:(0,em.c)(i)?nM(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var a=i.keyArgs,l=i.read,u=i.merge;r.keyFn=!1===a?nq:(0,em.c)(a)?nL(a):"function"==typeof a?a:r.keyFn,"function"==typeof l&&(r.read=l),s(r,u)}r.read&&r.merge&&(r.keyFn=r.keyFn||nq)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?(0,a.V1)(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):(0,a.V1)(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEac
3098h(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(ng);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!nd.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields;Object.assign(n,(0,s.Tt)(r,["fields"])),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),l=[s],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>l.indexOf(t)&&l.push(t)},c=!!(n&&this.fuzzySubtypes.size),d=!1,h=0;h<l.length;++h){var p=l[h];if(p.has(o))return s.has(o)||(d&&__DEV__&&a.V1.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),s.add(o)),!0;p.forEach(u),c&&h===l.length-1&&function e(t,n,r){return!!(0,T.U)(n)&&((0,em.c)(n)?n.every(function(n){return e(t,n,r)}):t.selections.every(function(t){if(V(t)&&ea(t,r)){var i=$(t);return nd.call(n,i)&&(!t.selectionSet||e(t.selectionSet,n[i],r))}return!0}))}(e.selectionSet,n,r)&&(c=!1,d=!0,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&u(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n,r,i,o,s=e.typename,a=e.fieldName,l=this.getFieldPolicy(s,a,!1),u=l&&l.keyFn;if(u&&s)for(var c={typename:s,fieldName:a,field:e.field||null,variables:e.variables},d=nB(e);u;){var h=u(d,c);if((0,em.c)(h))u=nL(h);else{o=h||a;break}}return(void 0===o&&(o=e.field?(t=e.field,n=e.variables,r=null,t.directives&&(r={},t.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(t){var i=t.name,o=t.value;return M(r[e.name.value],i,o,n)})})),i=null,t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(function(e){var t=e.name,r=e.value;return M(i,t,r,n)})),R(t.name.value,i,r)):R(a,nB(e))),!1===o)?a:a===ny(o)?o:a+":"+o},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=ny(i),s=t.store.getFieldValue(n,i),a=this.getFieldPolicy(e.typename,o,!1),l=a&&a.read;if(l){var u=nH(this,n,e,t,t.store.getStorage(D(n)?n.__ref:n,i));return t2.withValue(this.cache,l,[s,u])}return s}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,s=n.typename,a=n.merge;return a===nV?nG(r.store)(e,t):a===nz?t:(r.overwrite&&(e=void 0),a(e,t,nH(this,void 0,{typename:s,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function nH(e,t,n,r,i){var o=e.getStoreFieldName(n),s=ny(o),a=n.variables||r.variables,l=r.store,u=l.toReference,c=l.canRead;return{args:nB(n),field:n.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:D,toReference:u,storage:i,cache:e.cache,canRead:c,readField:function(){return e.readField(nW(arguments,t,a),r)},mergeObjects:nG(r.store)}}function nW(e,t,n){var r,i,o,l=e[0],u=e[1],c=e.length;return"string"==typeof l?o={fieldName:l,from:c>1?u:t}:(o=(0,s.Cl)({},l),nd.call(o,"from")||(o.from=t)),__DEV__&&void 0===o.from&&__DEV__&&a.V1.warn("Undefined 'from' passed to readField with arguments ".concat((r=Array.from(e),i=tn("stringifyForDisplay"),JSON.stringify(r,function(e,t){return void 0===t?i:t}).split(JSON.stringify(i)).join("<undefined>")))),void 0===o.variables&&(o.variables=n),o}function nG(e){return function(t,n){if((0,em.c)(t)||(0,em.c)(n))throw __DEV__?new a.zU("Cannot automatically merge arrays"):new a.zU(4);if((0,T.U)(t)&&(0,T.U)(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(D(t)&&nv(n))return e.merge(t.__ref,n),t;if(nv(t)&&D(n))return e.merge(t,n.__ref),n;if(nv(t)&&nv(n))return(0,s.Cl)((0,s.Cl)({},t),n)}return n}}function nK(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:(0,s.Cl)((0,s.Cl)({},e),{clientOnly:t,deferred:n})),i}var nJ=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,l=t.variables,u=t.overwrite,c=U(r),d=new ex;l=(0,s.Cl)((0,s.Cl)({},J(c)),l);var h=(0,s.Cl)((0,s.Cl)({store:e,written:Object.create(null),merge:function(e,t){return d.merge
3098(e,t)},variables:l,varString:e1(l)},nb(r,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:h});if(!D(p))throw __DEV__?new a.zU("Could not identify object ".concat(JSON.stringify(i))):new a.zU(7);return h.incomingById.forEach(function(t,r){var i=t.storeObject,o=t.mergeTree,s=t.fieldNodeSet,l=I(r);if(o&&o.map.size){var u=n.applyMerges(o,l,i,h);if(D(u))return;i=u}if(__DEV__&&!h.overwrite){var c=Object.create(null);s.forEach(function(e){e.selectionSet&&(c[e.name.value]=!0)});var d=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==c[ny(e)]||d(e)||function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var s=i(t);if(!(!s||D(o)||(0,eG.L)(o,s)||Object.keys(o).every(function(e){return void 0!==r.getFieldValue(s,e)}))){var l=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=ny(n),c="".concat(l,".").concat(u);if(!n0.has(c)){n0.add(c);var d=[];
3098(0,em.c)(o)||(0,em.c)(s)||[o,s].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||d.includes(t)||d.push(t)}),__DEV__&&a.V1.warn("Cache data may be lost when replacing the ".concat(u," field of a ").concat(l," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(c," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(s).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(l,i,e,h.store)})}e.merge(r,i)}),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,l=e.mergeTree,u=this.cache.policies,c=Object.create(null),d=n&&u.rootTypenamesById[n]||q(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof d&&(c.__typename=d);var h=function(){var e=nW(arguments,c,o.variables);if(D(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=u.readField((0,s.Cl)((0,s.Cl)({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return u.readField(e,o)},p=new Set;this.flattenFields(i,r,o,d).forEach(function(e,n){var i,o=r[$(n)];if(p.add(n),void 0!==o){var s=u.getStoreFieldName({typename:d,fieldName:n.name.value,field:n,variables:e.variables}),f=nY(l,s),m=t.processFieldValue(o,n,n.selectionSet?nK(e,!1,!1):e,f),g=void 0;n.selectionSet&&(D(m)||nv(m))&&(g=h("__typename",m));var y=u.getMergeFunction(d,n.name.value,g);y?f.info={field:n,typename:d,merge:y}:nZ(l,s),c=e.merge(c,((i={})[s]=m,i))}else __DEV__&&!e.clientOnly&&!e.deferred&&!e9.added(n)&&!u.getReadFunction(d,n.name.value)&&__DEV__&&a.V1.error("Missing field '".concat($(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))});try{var f=u.identify(r,{typename:d,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:c,readField:h}),m=f[0],g=f[1];n=n||m,g&&(c=o.merge(c,g))}catch(e){if(!n)throw e}if("string"==typeof n){var y=I(n),v=o.written[n]||(o.written[n]=[]);if(v.indexOf(i)>=0||(v.push(i),this.reader&&this.reader.isFresh(r,y,i,o)))return y;var b=o.incomingById.get(n);return b?(b.storeObject=o.merge(b.storeObject,c),b.mergeTree=function e(t,n){if(t===n||!n||nX(n))return t;if(!t||nX(t))return n;var r=t.info&&n.info?(0,s.Cl)((0,s.Cl)({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,o={info:r,map:i?new Map:t.map.size?t.map:n.map};if(i){var a=new Set(n.map.keys());t.map.forEach(function(t,r){o.map.set(r,e(t,n.map.get(r))),a.delete(r)}),a.forEach(function(r){o.map.set(r,e(n.map.get(r),t.map.get(r)))})}return o}(b.mergeTree,l),p.forEach(function(e){return b.fieldNodeSet.add(e)})):o.incomingById.set(n,{storeObject:c,mergeTree:nX(l)?void 0:l,fieldNodeSet:p}),y}return c},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?(0,em.c)(e)?e.map(function(e,o){var s=i.processFieldValue(e,t,n,nY(r,o));return nZ(r,o),s}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?tu(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=q(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,s=new eX(!1);return!function e(l,u){var c=s.lookup(l,u.clientOnly,u.deferred);c.visited||(c.visited=!0,l.selections.forEach(function(s){if(ea(s,n.variables)){var l=u.clientOnly,c=u.deferred;if(!(l&&c)&&(0,em.E)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(l=!0),"defer"===t){var r=B(e,n.variables);r&&!1===r.if||(c=!0)}}),V(s)){var d=i.get(s);d&&(l=l&&d.clientOnly,c=c&&d.deferred),i.set(s,nK(n,l,c))}else{var h=O(s,n.lookupFragment);if(!h&&s.kind===ei.b.FRAGMENT_SPREAD)throw __DEV__?new a.zU("No fragment named ".concat(s.name.value)):new a.zU(8);h&&o.fragmentMatches(h,r,t,n.variables)&&e(h.selectionSet,nK(n,l,c))}}}))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o=this;if(e.map.size&&!D(n)){var l,u,c=!(0,em.c)(n)&&(D(t)||nv(t))?t:void 0,d=n;c&&!i&&(i=[D(c)?c.__ref:c]);var h=function(e,t){return(0,em.c)(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};
3098e.map.forEach(function(e,t){var n=h(c,t),s=h(d,t);if(void 0!==s){i&&i.push(t);var l=o.applyMerges(e,n,s,r,i);l!==s&&(u=u||new Map).set(t,l),i&&(0,a.V1)(i.pop()===t)}}),u&&(n=(0,em.c)(d)?d.slice(0):(0,s.Cl)({},d),u.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(l=r.store).getStorage.apply(l,i)):n},e}(),nQ=[];function nY(e,t){var n=e.map;return n.has(t)||n.set(t,nQ.pop()||{map:new Map}),n.get(t)}function nX(e){return!e||!(e.info||e.map.size)}function nZ(e,t){var n=e.map,r=n.get(t);r&&nX(r)&&(nQ.push(r),n.delete(t))}var n0=new Set,n1=function(e){function t(t){void 0===t&&(t={});var n,r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=t8,r.txCount=0,n=t,r.config=(0,tc.o)(nf,n),r.addTypename=!!r.config.addTypename,r.policies=new nU({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,s.C6)(t,e),t.prototype.init=function(){var e=this.data=new nk.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new nJ(this,this.storeReader=new nO({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:nm(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=t1(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(nj(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,e1({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,s.Cl)((0,s.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof nu)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(nd.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,s.Cl)((0,s.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||(t=this,t3(t).vars.forEach(function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&t4(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){e1.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(D(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&a.V1.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(nd.call(e,"id"))return!1;e=(0,s.Cl)((0,s.Cl)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),e1.reset(),e&&e.discardWatches?(this.watches.forEac
3098h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),t4(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,l=e.onWatchUpdated,u=function(e){var i=n.data,o=n.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=i,n.optimisticData=o}},c=new Set;return l&&!this.txCount&&this.broadcastWatches((0,s.Cl)((0,s.Cl)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,u):!1===o?u(this.data):u(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),l&&c.size?(this.broadcastWatches((0,s.Cl)((0,s.Cl)({},e),{onWatchUpdated:function(e,t){var n=l.call(this,e,t);return!1!==n&&c.delete(e),n}})),c.size&&c.forEach(function(e){return n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=e9(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,r,n)))&&(n&&(0,eG.L)(n.result,r.result)||e.callback(e.lastDiff=r,n))},t}(nl),n2=n(14330),n5=n(94674),n3=n(39324),n4=n.n(n3),n8=n(14232);function n6(e){let{apiBaseUrl:t,jwtStore:n,groupSlug:r,sessionId:i}=e,o=(0,n8.useRef)(void 0);return r&&!o.current&&(o.current=function(e,t,n,r){var i;let{release:o}=n9.publicRuntimeConfig,a=eU({uri:e+"/gql",fetch:(e,t)=>{let r=t.headers["gql-operation"];e+=`?group=${n}&op=${r}`;let i=new AbortController,o=setTimeout(()=>i.abort(),2e4);return t.signal?.addEventListener("abort",()=>i.abort()),fetch(e,{...t,signal:i.signal}).then(n=>((0,n2.nv)(n,e,t),n)).finally(()=>clearTimeout(o))}}),l=(i=(e,i)=>{let{headers:s}=i,a=t.jwtValue,l={...s,Accept:"application/json","gf-client":"gf-web","gf-web-version":o,"gql-operation":e.operationName,"gf-group":n,...(0,n5.GG)(r)};return a&&(l={...l,Authorization:a?`Bearer ${a}`:""}),{headers:l}},new ee(function(e,t){var n=(0,s.Tt)(e,[]);return new S(function(r){var o,s=!1;return Promise.resolve(n).then(function(t){return i(t,e.getContext())}).then(e.setContext).then(function(){s||(o=t(e).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}))}).catch(r.error.bind(r)),function(){s=!0,o&&o.unsubscribe()}})}));return new na({link:ee.from([n7,l,a]),cache:new n1})}(t,n,r,i)),o.current}let n7=new ee((e,t)=>(e.variables&&(e.variables=JSON.parse(JSON.stringify(e.variables),(e,t)=>"__typename"===e?void 0:t)),t(e).map(e=>e))),n9=n4()()},87232:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(72569),o=n(34011);function s(e){let{title:t}=e;return"admin"===(0,i.jz)(e.themeArea)?(0,r.jsx)(o.A,{children:t}):(0,r.jsx)("h2",{className:"text-xl font-bold text-center text-[var(--group-heading-text-color)] mb-4","data-sentry-component":"ModalHeading","data-sentry-source-file":"ModalHeading.tsx",children:t})}},87559:function(e){var t;t=function(){function e(t,n,r){return this.id=++e.highestId,this.name=t,this.symbols=n,this.postprocess=r,this}function t(e,t,n,r){this.rule=e,this.dot=t,this.reference=n,this.data=[],this.wantedBy=r,this.isComplete=this.dot===e.symbols.length}function n(e,t){this.grammar=e,this.index=t,this.states=[],this.wants={},this.scannable=[],this.completed={}}function r(e,t){this.rules=e,this.start=t||this.rules[0].name;var n=this.byName={};
3098this.rules.forEach(function(e){n.hasOwnProperty(e.name)||(n[e.name]=[]),n[e.name].push(e)})}function i(){this.reset("")}function o(e,t,o){if(e instanceof r)var s=e,o=t;else var s=r.fromCompiled(e,t);for(var a in this.grammar=s,this.options={keepHistory:!1,lexer:s.lexer||new i},o||{})this.options[a]=o[a];this.lexer=this.options.lexer,this.lexerState=void 0;var l=new n(s,0);this.table=[l],l.wants[s.start]=[],l.predict(s.start),l.process(),this.current=0}function s(e){var t=typeof e;if("string"===t)return e;if("object"===t)if(e.literal)return JSON.stringify(e.literal);else if(e instanceof RegExp)return e.toString();else if(e.type)return"%"+e.type;else if(e.test)return"<"+String(e.test)+">";else throw Error("Unknown symbol type: "+e)}return e.highestId=0,e.prototype.toString=function(e){var t=void 0===e?this.symbols.map(s).join(" "):this.symbols.slice(0,e).map(s).join(" ")+" â "+this.symbols.slice(e).map(s).join(" ");return this.name+" â "+t},t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(e){var n=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return n.left=this,n.right=e,n.isComplete&&(n.data=n.build(),n.right=void 0),n},t.prototype.build=function(){var e=[],t=this;do e.push(t.right.data),t=t.left;while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,o.fail))},n.prototype.process=function(e){for(var t=this.states,n=this.wants,r=this.completed,i=0;i<t.length;i++){var s=t[i];if(s.isComplete){if(s.finish(),s.data!==o.fail){for(var a=s.wantedBy,l=a.length;l--;){var u=a[l];this.complete(u,s)}if(s.reference===this.index){var c=s.rule.name;(this.completed[c]=this.completed[c]||[]).push(s)}}}else{var c=s.rule.symbols[s.dot];if("string"!=typeof c){this.scannable.push(s);continue}if(n[c]){if(n[c].push(s),r.hasOwnProperty(c))for(var d=r[c],l=0;l<d.length;l++){var h=d[l];this.complete(s,h)}}else n[c]=[s],this.predict(c)}}},n.prototype.predict=function(e){for(var n=this.grammar.byName[e]||[],r=0;r<n.length;r++){var i=n[r],o=this.wants[e],s=new t(i,0,this.index,o);this.states.push(s)}},n.prototype.complete=function(e,t){var n=e.nextState(t);this.states.push(n)},r.fromCompiled=function(t,n){var i=t.Lexer;t.ParserStart&&(n=t.ParserStart,t=t.ParserRules);var t=t.map(function(t){return new e(t.name,t.symbols,t.postprocess)}),o=new r(t,n);return o.lexer=i,o},i.prototype.reset=function(e,t){this.buffer=e,this.index=0,this.line=t?t.line:1,this.lastLineBreak=t?-t.col:0},i.prototype.next=function(){if(this.index<this.buffer.length){var e=this.buffer[this.index++];return"\n"===e&&(this.line+=1,this.lastLineBreak=this.index),{value:e}}},i.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},i.prototype.formatError=function(e,t){var n=this.buffer;if("string"!=typeof n)return t+" at index "+(this.index-1);var r=n.split("\n").slice(Math.max(0,this.line-5),this.line),i=n.indexOf("\n",this.index);-1===i&&(i=n.length);var o=this.index-this.lastLineBreak,s=String(this.line).length;return t+=" at line "+this.line+" col "+o+":\n\n",t+=r.map(function(e,t){return a(this.line-r.length+t+1,s)+" "+e},this).join("\n"),t+="\n"+a("",s+o)+"^\n";function a(e,t){var n=String(e);return Array(t-n.length+1).join(" ")+n}},o.fail={},o.prototype.feed=function(e){var t,r=this.lexer;for(r.reset(e,this.lexerState);;){try{if(!(t=r.next()))break}catch(e){var o=new n(this.grammar,this.current+1);this.table.push(o);var s=Error(this.reportLexerError(e));throw s.offset=this.current,s.token=e.token,s}var a=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var l=this.current+1,o=new n(this.grammar,l);this.table.push(o);for(var u=void 0!==t.text?t.text:t.value,c=r.constructor===i?t.value:t,d=a.scannable,h=d.length;h--;){var p=d[h],f=p.rule.symbols[p.dot];if(f.test?f.test(c):f.type?f.type===t.type:f.literal===u){var m=p.nextState({data:c,token:t,isToken:!0,reference:l-1});o.states.push(m)}}if(o.process(),0===o.states.length){var s=Error(this.reportError(t));throw s.offset=this.current,s.token=t,s}this.options.keepHistory&&(a.lexerState=r.save()),this.current++}return a&&(this.lexerState=r.save()),this.results=this.finish(),this},o.prototype.reportLexerError=function(e){var t,n,r=e.token;return r?(t="input "+JSON.stringify(r.text[0])+" (lexer error)",n=this.lexer.formatError(r,"Syntax error")):(t="input (lexer error)",n=e.message),this.reportErrorCommon(n,t)},o.prototype.reportError=function(e){var t=(e.type?e.type+" token: ":"")+JSON.stringify(void 0!==e.value?e.value:e),n=this.lexer.formatError(e,"Syntax error");return this.reportErrorCommon(n,t)},o.prototype.reportErrorCommon=function(e,t){var n=[];n.push(e);var r=this.table.length-2,i=this.table[r],o=i.states.filter(function(e){var t=e.rule.symbols[e.dot];return t&&"string"!=typeof t});return 0===o.length?(n.push("Unexpected "+t+". I did not expect any more input. Here is the state of my parse table:\n"),this.displayStateStack(i.states,n)):(n.push("Unexpected "+t+". Instead, I was expecting to see one of the following:\n"),o.map(function(e){return this.buildFirstStateStack(e,[])||[e]}
3098,this).forEach(function(e){var t=e[0],r=t.rule.symbols[t.dot],i=this.getSymbolDisplay(r);n.push("A "+i+" based on:"),this.displayStateStack(e,n)},this)),n.push(""),n.join("\n")},o.prototype.displayStateStack=function(e,t){for(var n,r=0,i=0;i<e.length;i++){var o=e[i],s=o.rule.toString(o.dot);s===n?r++:(r>0&&t.push(" ^ "+r+" more lines identical to this"),r=0,t.push(" "+s)),n=s}},o.prototype.getSymbolDisplay=function(e){var t=e,n=typeof t;if("string"===n)return t;if("object"===n)if(t.literal)return JSON.stringify(t.literal);else if(t instanceof RegExp)return"character matching "+t;else if(t.type)return t.type+" token";else if(t.test)return"token matching "+String(t.test);else throw Error("Unknown symbol type: "+t)},o.prototype.buildFirstStateStack=function(e,t){if(-1!==t.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var n=e.wantedBy[0],r=[e].concat(t),i=this.buildFirstStateStack(n,r);return null===i?null:[e].concat(i)},o.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},o.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},o.prototype.rewind=function(e){if(!this.options.keepHistory)throw Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},o.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(n){n.rule.name===t&&n.dot===n.rule.symbols.length&&0===n.reference&&n.data!==o.fail&&e.push(n)}),e.map(function(e){return e.data})},{Parser:o,Grammar:r,Rule:e}},e.exports?e.exports=t():this.nearley=t()},87585:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(25240),o=n(63686);function s(e){let t,{errors:n,hookForm:s,name:a,messages:l}=e,u=e.validationConstrains||{},c=(0,i.A)(n,a);if(!c||!c.type||"itemRequired"===c.type)return null;if(c.message)t=c.message;else if(l&&l[c.type])t=l[c.type];else if("itemRequired"===c.type)t="required";else if("maxLength"===c.type&&s&&e.field&&"number"==typeof e.field.maxLength){let n=e.field,r=s.watch(a);"string"==typeof r&&(t=`Maximum number of characters is ${n.maxLength}. Current length is ${r.length}.`)}else t="max"===c.type?u.max?`Maximum value is ${u.max}`:"Maximum value exceeded":"min"===c.type?u.min?`Minimum value is ${u.min}`:"Minimum value not met":`${c.type}`;return(0,r.jsx)(o.A,{className:e.className,message:t,"data-sentry-element":"SimpleFieldError","data-sentry-component":"ErrorMessage","data-sentry-source-file":"ErrorMessage.tsx"})}},87782:(e,t,n)=>{"use strict";n.d(t,{HF:()=>p,Hp:()=>b,Nz:()=>x,RU:()=>y,UT:()=>c,W9:()=>h,WH:()=>v,jE:()=>_,xh:()=>s,zj:()=>g});var r=n(73382),i=n(6884);let o={name:"page-row-item-width",value:"regular"},s="new:element-",a={textFormat:"HTML",type:r.nz.Text,styles:[o]};function l(e){return{type:r.nz.ColumnContainer,order:e,title:(0,r.Zp)(e),children:[{...a,title:(0,r.iS)([])}]}}let u=[{type:r.nz.Text,key:"text-block",name:"Text Block",description:"A simple block of text",params:a},{type:r.nz.PostList,key:"posts",name:"Posts",description:"A sortable list of posts, each with an image, heading, block of text, and an optional button.",params:{type:r.nz.PostList,styles:[o,r.YH]}},{type:r.nz.TwoColumns,key:"two-columns",name:"Two Columns",description:"Two blocks of text, side by side when there is room and stacked when there is not.",params:{type:r.nz.TwoColumns,styles:[o],children:[l(0),l(1)]}},{type:r.nz.PrimaryQuote,key:"quote",name:"Quote",description:"A quotation block, accompanied by an image. Can be used for a mission statement, or other important short burst of text.",params:{type:r.nz.PrimaryQuote}},{type:r.nz.PublicEventsList,key:"public-events-list",name:"Public Events List",description:"A list of upcoming public events.",params:{type:r.nz.PublicEventsList,styles:[o]}},{type:r.nz.ButtonRow,key:"button-row",name:"Button Row",description:"A row of buttons.",params:{type:r.nz.ButtonRow,styles:[o],children:[{label:"New Button",type:r.nz.Button,href:"/"}]}},{type:r.nz.ContactForm,key:"contact-form",name:"Contact Form",description:"A contact form that visitors can fill out. Submissions are emailed to a team or a member.",params:{type:r.nz.ContactForm,styles:[o]}}
3098,{type:r.nz.Image,key:"image",name:"Image",description:"A single image, with alt text describing it.",params:{type:r.nz.Image,styles:[o]}}];function c(e,t=[]){return u.filter(n=>(0,i.lJ)(e,n.type)&&(0,i.TU)(n.type,t))}function d(e){let t=u.find(t=>t.type===e.type);t||console.warn(`Unsupported element type: ${e.type}`);let n=t?.name;return e.title?n?`${n} - ${e.title}`:e.title:n||e.type||"Unsupported element type"}function h(e,t){return{id:e.id,type:e.type,name:d(e),title:e.title,params:{id:e.id,order:t,status:e.status,type:e.type}}}function p(e){return(e.params.status??r.Hi.Published)===r.Hi.Published}function f(e){return[...e].sort((e,t)=>e.params.order-t.params.order)}function m(e){return e.map((e,t)=>({...e,params:{...e.params,order:t}}))}function g(e,t,n){let o=e.type===r.nz.Text?(0,r.iS)(n):null,a=function(e,t){let{params:n}=e;if(e.type!==r.nz.TwoColumns)return n;let o=t===r.nz.Main?r.d_.Wide:r.d_.Narrow,s=(0,r.rg)(n.styles??[],o);return{...n,styles:(0,i.MD)(t,i.DQ.MaxWidth)?s:(0,r.r3)(s,r.pR.Full)}}(e,t);return{id:`${s}${Date.now()}-${Math.random().toString(36).substring(2,11)}`,type:e.type,name:d({type:e.type,title:o??""}),title:o,params:o?{...a,title:o}:a,purpose:e.key}}function y(e,t,n){let r=f(e);return m([...r.slice(0,n),t,...r.slice(n)])}function v(e,t,n){let r=f(e),i=r.findIndex(e=>e.id===t);return -1===i?null:y(r,n,i+1)}function b(e,t){return t.map((t,n)=>{let r=e.find(e=>e.id===t);if(!r)throw Error(`Component with id ${t} not found`);return{...r,params:{...r.params,order:n}}})}function x(e,t){return m(f(e).filter(e=>e.id!==t))}function _(e,t){if(e.length>0)return e;let n=u.find(e=>e.type===r.nz.Text);return n?y([],g(n,t,[]),0):e}},88129:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))})},88220:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),s=o[0],a=o[1],u=new i((s+a)*3/4-a),c=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=0,a=r-i;s<a;s+=16383)o.push(function(e,t,r){for(var i,o=[],s=t;s<r;s+=3)i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>
vendor: 18,577 bytes, line 3098
30980x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e){var r=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(r,i),l=s(o),u=l.write(r,i);return u!==o&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),a.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return a.from(c,t,n);var f=function(e){if(a.isBuffer(e)){var t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(f)return f;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=s(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)};function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return E(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return S(e).length;default:if(i)return r?-1:E(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,n){var i,o,s,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=N[e[o]];return i}(this,t,n);case"utf8":case"utf-8":return v(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=this,o=t,s=n,0===o&&s===i.length?r.fromByteArray(i):r.fromByteArray(i.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){var o;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(o=n*=1)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return y(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;s=2,a/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else -1!==c&&(o-=o-c),c=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(u(e,o+h)!==u(t,h)){d=!1;break}if(d)return o}return -1}a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(j(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(j(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):f.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,n,r,i){if(j(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,l=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(u[d]!==c[d]){o=u[d],s=c[d];break}return o<s?-1:+(s<o)},a.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)};function v(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}var h=r,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var f="",m=0;m<p;)f+=String.fromCharCode.apply(String,h.slice(m,m+=4096));return f}function b(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function _(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function w(e,t,n,r,o){return t*=1,n>>>=0,o||_(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,o){return t*=1,n>>>=0,o||_(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,l,u,c,d,h=this.length-t;if((void 0===n||n>h)&&(n=h),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var p=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a,l=parseInt(t.substr(2*s,2),16);if((a=l)!=a)break;e[n+s]=l}return s}(this,e,t,n);case"utf8":case"utf-8":return i=t,o=n,T(E(e,this.length-i),this,i,o);case"ascii":return s=t,a=n,T(A(e),this,s,a);case"latin1":case"binary":return function(e,t,n,r){return T(A(t),e,n,r)}(this,e,t,n);case"base64":return l=t,u=n,T(S(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=n,T(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var o=1,s=0;for(this[t]=255&e;++s<n&&(o*=256);)this[t+s]=e/o&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var o=n-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return w(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return w(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=a.isBuffer(e)?e:a.from(e,r),l=s.length;
3098if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%l]}return this};var C=/[^+/0-9A-Za-z-_]/g;function E(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319||s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function A(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function S(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var N=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,u=l>>1,c=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+e[t+d],d+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=u}return(p?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,h=5960464477539062e-23*(23===i),p=r?0:o-1,f=r?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=c?(a=0,s=c):s+d>=1?(a=(t*l-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+p]=255&a,p+=f,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+p]=255&s,p+=f,s/=256,u-=8);e[n+p-f]|=128*m}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//",e.exports=r(72)}()},88247:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(33881),o=n(95305);function s(e){return e.mutationInfo||e.mutationResult?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.A,{mutationInfo:e.mutationInfo,mutationResult:e.mutationResult,"data-sentry-element":"AshMutationErrors","data-sentry-source-file":"AshMutationResult.tsx"}),(0,r.jsx)(o.A,{mutationInfo:e.mutationInfo,mutationResult:e.mutationResult,message:e.successMessage,"data-sentry-element":"AshMutationSuccess","data-sentry-source-file":"AshMutationResult.tsx"})]}):null}},88427:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(37876),i=n(42383),o=n(14232),s=n(14668),a=n(89681),l=n(1815),u=n(13220);function c(e){let{imageRef:t,name:n="fileUpload",fileBroadTypes:c,anyFileType:d,onError:h,preserveOriginal:p}=e,f=(0,u.QU)(),m=(0,o.useRef)(null);async function g(n){let r=t&&t.current;r&&(0,a.Ec)(r,n);let i={file:n};e.imagePurpose&&(i={...i,uploadType:e.imagePurpose});let o=await (0,l.wK)(f,i);if(e.imageUploaded&&e.imageUploaded(o.url),e.imageUploaded2){let t={id:o.photoId,url:o.url};e.imageUploaded2(t)}return!0}return(0,r.jsxs)("div",{"data-sentry-component":"FileUpload","data-sentry-source-file":"FileUpload.tsx",children:[(0,r.jsx)(i.zp,{onChange:g,className:"hidden",name:n,inputRef:m,fileBroadTypes:c,anyFileType:d,onError:h,preserveOriginal:p,"data-sentry-element":"FileInput","data-sentry-source-file":"FileUpload.tsx"}),(0,r.jsx)(s.A,{onClick:()=>m.current?.click(),"data-sentry-element":"SecondaryButton","data-sentry-source-file":"FileUpload.tsx",children:"Select file..."})]})}},88765:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.143 17.082a24.248 24.248 0 003.844.148m-3.844-.148a23.856 23.856 0 01-5.455-1.31 8.964 8.964 0 002.3-5.542m3.155 6.852a3 3 0 005.667 1.97m1.965-2.277L21 21m-4.225-4.225a23.81 23.81 0 003.536-1.003A8.967 8.967 0 0118 9.75V9A6 6 0 006.53 6.53m10.245 10.245L6.53 6.53M3 3l3.53 3.53"}))})},88992:(e,t,n)=>{"use strict";n.d(t,{FH:()=>A,Gb:()=>I,Jt:()=>p,as:()=>N,hZ:()=>j,mN:()=>ea,xI:()=>O});var r=n(14232),i=e=>e instanceof Date,o=e=>null==e,s=e=>!o(e)&&!Array.isArray(e)&&"object"==typeof e&&!i(e),a=e=>s(e)&&e.target?"checkbox"===e.target.type?e.target.checked:e.target.value:e,l=(e,t)=>
3098e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),u="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function c(e){let t,n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(u&&(e instanceof Blob||e instanceof FileList))&&(n||s(e))))return e;else if(t=n?[]:{},n||(e=>{let t=e.constructor&&e.constructor.prototype;return s(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(let n in e)e.hasOwnProperty(n)&&(t[n]=c(e[n]));else t=e;return t}var d=e=>Array.isArray(e)?e.filter(Boolean):[],h=e=>void 0===e,p=(e,t,n)=>{if(!t||!s(e))return n;let r=d(t.split(/[,[\].]+?/)).reduce((e,t)=>o(e)?e:e[t],e);return h(r)||r===e?h(e[t])?n:e[t]:r};let f={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},m={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},g={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},y=r.createContext(null),v=()=>r.useContext(y);var b=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==m.all&&(t._proxyFormState[o]=!r||m.all),n&&(n[o]=!0),e[o])});return i},x=e=>s(e)&&!Object.keys(e).length,_=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return x(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||m.all))},w=e=>Array.isArray(e)?e:[e],k=(e,t,n)=>n&&t?e===t:!e||!t||e===t||w(e).some(e=>e&&(e.startsWith(t)||t.startsWith(e)));function C(e){let t=r.useRef(e);t.current=e,r.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var E=(e,t,n,r,i)=>"string"==typeof e?(r&&t.watch.add(e),p(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),p(n,e))):(r&&(t.watchAll=!0),n);function A(e){let t=v(),{control:n=t.control,name:i,defaultValue:o,disabled:s,exact:a}=e||{},l=r.useRef(i);l.current=i,C({disabled:s,subject:n._subjects.values,next:e=>{k(l.current,e.name,a)&&d(c(E(l.current,n._names,e.values||n._formValues,!1,o)))}});let[u,d]=r.useState(n._getWatch(i,o));return r.useEffect(()=>n._removeUnmounted()),u}var S=e=>/^\w*$/.test(e),T=e=>d(e.replace(/["|']|\]/g,"").split(/\.|\[/));function j(e,t,n){let r=-1,i=S(t)?[t]:T(t),o=i.length,a=o-1;for(;++r<o;){let t=i[r],o=n;if(r!==a){let n=e[t];o=s(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}e[t]=o,e=e[t]}return e}function N(e){let t=v(),{name:n,control:i=t.control,shouldUnregister:o}=e,s=l(i._names.array,n),u=A({control:i,name:n,defaultValue:p(i._formValues,n,p(i._defaultValues,n,e.defaultValue)),exact:!0}),d=function(e){let t=v(),{control:n=t.control,disabled:i,name:o,exact:s}=e||{},[a,l]=r.useState(n._formState),u=r.useRef(!0),c=r.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=r.useRef(o);return d.current=o,C({disabled:i,next:e=>u.current&&k(d.current,e.name,s)&&_(e,c.current,n._updateFormState)&&l({...n._formState,...e}),subject:n._subjects.state}),r.useEffect(()=>(u.current=!0,c.current.isValid&&n._updateValid(!0),()=>{u.current=!1}),[n]),b(a,n,c.current,!1)}({control:i,name:n}),m=r.useRef(i.register(n,{...e.rules,value:u}));return m.current=i.register(n,e.rules),r.useEffect(()=>{let e=i._options.shouldUnregister||o,t=(e,t)=>{let n=p(i._fields,e);n&&(n._f.mount=t)};if(t(n,!0),e){let e=c(p(i._options.defaultValues,n));j(i._defaultValues,n,e),h(p(i._formValues,n))&&j(i._formValues,n,e)}return()=>{(s?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,s,o]),{field:{name:n,value:u,onChange:r.useCallback(e=>m.current.onChange({target:{value:a(e),name:n},type:f.CHANGE}),[n]),onBlur:r.useCallback(()=>m.current.onBlur({target:{value:p(i._formValues,n),name:n},type:f.BLUR}),[n,i]),ref:e=>{let t=p(i._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:d,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!p(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!p(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!p(d.touchedFields,n)},error:{enumerable:!0,get:()=>p(d.errors,n)}})}}let O=e=>e.render(N(e));var I=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let D=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=p(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}else if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else s(r)&&D(r,t)}}};var M=e=>({isOnSubmit:!e||e===m.onSubmit,isOnBlur:e===m.onBlur,isOnChange:e===m.onCh
3098ange,isOnAll:e===m.all,isOnTouch:e===m.onTouched}),L=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),R=(e,t,n)=>{let r=d(p(e,n));return j(r,"root",t[n]),j(e,n,r),e},P=e=>"function"==typeof e,F=e=>{if(!u)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},B=e=>"string"==typeof e;let $={value:!1,isValid:!1},q={value:!0,isValid:!0};var V=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!h(e[0].attributes.value)?h(e[0].value)||""===e[0].value?q:{value:e[0].value,isValid:!0}:q:$}return $};let z={isValid:!1,value:null};var U=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,z):z;function H(e,t,n="validate"){if(B(e)||Array.isArray(e)&&e.every(B)||"boolean"==typeof e&&!e)return{type:n,message:B(e)?e:"",ref:t}}var W=e=>!s(e)||e instanceof RegExp?{value:e,message:""}:e,G=async(e,t,n,r,i)=>{let{ref:a,refs:l,required:u,maxLength:c,minLength:d,min:f,max:m,pattern:y,validate:v,name:b,valueAsNumber:_,mount:w,disabled:k}=e._f,C=p(t,b);if(!w||k)return{};let E=l?l[0]:a,A=e=>{r&&E.reportValidity&&(E.setCustomValidity("boolean"==typeof e?"":e||""),E.reportValidity())},S={},T="radio"===a.type,j="checkbox"===a.type,N=(_||"file"===a.type)&&h(a.value)&&h(C)||F(a)&&""===a.value||""===C||Array.isArray(C)&&!C.length,O=I.bind(null,b,n,S),D=(e,t,n,r=g.maxLength,i=g.minLength)=>{let o=e?t:n;S[b]={type:e?r:i,message:o,ref:a,...O(e?r:i,o)}};if(i?!Array.isArray(C)||!C.length:u&&(!(T||j)&&(N||o(C))||"boolean"==typeof C&&!C||j&&!V(l).isValid||T&&!U(l).isValid)){let{value:e,message:t}=B(u)?{value:!!u,message:u}:W(u);if(e&&(S[b]={type:g.required,message:t,ref:E,...O(g.required,t)},!n))return A(t),S}if(!N&&(!o(f)||!o(m))){let e,t,r=W(m),i=W(f);if(o(C)||isNaN(C)){let n=a.valueAsDate||new Date(C),o=e=>new Date(new Date().toDateString()+" "+e),s="time"==a.type,l="week"==a.type;"string"==typeof r.value&&C&&(e=s?o(C)>o(r.value):l?C>r.value:n>new Date(r.value)),"string"==typeof i.value&&C&&(t=s?o(C)<o(i.value):l?C<i.value:n<new Date(i.value))}else{let n=a.valueAsNumber||(C?+C:C);o(r.value)||(e=n>r.value),o(i.value)||(t=n<i.value)}if((e||t)&&(D(!!e,r.message,i.message,g.max,g.min),!n))return A(S[b].message),S}if((c||d)&&!N&&("string"==typeof C||i&&Array.isArray(C))){let e=W(c),t=W(d),r=!o(e.value)&&C.length>+e.value,i=!o(t.value)&&C.length<+t.value;if((r||i)&&(D(r,e.message,t.message),!n))return A(S[b].message),S}if(y&&!N&&"string"==typeof C){let{value:e,message:t}=W(y);if(e instanceof RegExp&&!C.match(e)&&(S[b]={type:g.pattern,message:t,ref:a,...O(g.pattern,t)},!n))return A(t),S}if(v){if(P(v)){let e=H(await v(C,t),E);if(e&&(S[b]={...e,...O(g.validate,e.message)},!n))return A(e.message),S}else if(s(v)){let e={};for(let r in v){if(!x(e)&&!n)break;let i=H(await v[r](C,t),E,r);i&&(e={...i,...O(r,i.message)},A(i.message),n&&(S[b]=e))}if(!x(e)&&(S[b]={ref:E,...e},!n))return S}}return A(!0),S};function K(e,t){let n=Array.isArray(t)?t:S(t)?[t]:T(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;)e=h(e)?r++:e[t[r++]];return e}(e,n),i=n.length-1,o=n[i];return r&&delete r[o],0!==i&&(s(r)&&x(r)||Array.isArray(r)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!h(e[t]))return!1;return!0}(r))&&K(e,n.slice(0,-1)),e}function J(){let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var Q=e=>o(e)||"object"!=typeof e;function Y(e,t){if(Q(e)||Q(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o of n){let n=e[o];if(!r.includes(o))return!1;if("ref"!==o){let e=t[o];if(i(n)&&i(e)||s(n)&&s(e)||Array.isArray(n)&&Array.isArray(e)?!Y(n,e):n!==e)return!1}}return!0}var X=e=>F(e)&&e.isConnected,Z=e=>{for(let t in e)if(P(e[t]))return!0;return!1};function ee(e,t={}){let n=Array.isArray(e);if(s(e)||n)for(let n in e)Array.isArray(e[n])||s(e[n])&&!Z(e[n])?(t[n]=Array.isArray(e[n])?[]:{}
3098,ee(e[n],t[n])):o(e[n])||(t[n]=!0);return t}var et=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(s(t)||i)for(let i in t)Array.isArray(t[i])||s(t[i])&&!Z(t[i])?h(n)||Q(r[i])?r[i]=Array.isArray(t[i])?ee(t[i],[]):{...ee(t[i])}:e(t[i],o(n)?{}:n[i],r[i]):r[i]=!Y(t[i],n[i]);return r})(e,t,ee(t)),en=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>h(e)?e:t?""===e?NaN:e?+e:e:n&&"string"==typeof e?new Date(e):r?r(e):e;function er(e){let t=e.ref;if(e.refs?!e.refs.every(e=>e.disabled):!t.disabled)return"file"===t.type?t.files:"radio"===t.type?U(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?V(e.refs).value:en(h(t.value)?e.ref.value:t.value,e)}var ei=e=>h(e)?e:e instanceof RegExp?e.source:s(e)?e.value instanceof RegExp?e.value.source:e.value:e;function eo(e,t,n){let r=p(e,n);if(r||S(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=p(t,r),s=p(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(s&&s.type)return{name:r,error:s};i.pop()}return{name:n}}let es={mode:m.onSubmit,reValidateMode:m.onChange,shouldFocusError:!0};function ea(e={}){let t=r.useRef(),[n,g]=r.useState({isDirty:!1,isValidating:!1,isLoading:P(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:P(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...es,...e},g={submitCount:0,isDirty:!1,isLoading:P(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},y={},v=(s(r.defaultValues)||s(r.values))&&c(r.defaultValues||r.values)||{},b=r.shouldUnregister?{}:c(v),_={action:!1,mount:!1,watch:!1},k={mount:new Set,unMount:new Set,array:new Set,watch:new Set},C=0,A={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},S={values:J(),array:J(),state:J()},T=e.resetOptions&&e.resetOptions.keepDirtyValues,N=M(r.mode),O=M(r.reValidateMode),I=r.criteriaMode===m.all,B=async e=>{if(A.isValid||e){let e=r.resolver?x((await z()).errors):await H(y,!0);e!==g.isValid&&S.state.next({isValid:e})}},$=e=>A.isValidating&&S.state.next({isValidating:e}),q=(e,t,n,r)=>{let i=p(y,e);if(i){let o=p(b,e,h(n)?p(v,e):n);h(o)||r&&r.defaultChecked||t?j(b,e,t?o:er(i._f)):ee(e,o),_.mount&&B()}},V=(e,t,n,r,i)=>{let o=!1,s=!1,a={name:e};if(!n||r){A.isDirty&&(s=g.isDirty,g.isDirty=a.isDirty=W(),o=s!==a.isDirty);let n=Y(p(v,e),t);s=p(g.dirtyFields,e),n?K(g.dirtyFields,e):j(g.dirtyFields,e,!0),a.dirtyFields=g.dirtyFields,o=o||A.dirtyFields&&!n!==s}if(n){let t=p(g.touchedFields,e);t||(j(g.touchedFields,e,n),a.touchedFields=g.touchedFields,o=o||A.touchedFields&&t!==n)}return o&&i&&S.state.next(a),o?a:{}},z=async e=>r.resolver(b,r.context,((e,t,n,r)=>{let i={};for(let n of e){let e=p(t,n);e&&j(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}})(e||k.mount,y,r.criteriaMode,r.shouldUseNativeValidation)),U=async e=>{let{errors:t}=await z();if(e)for(let n of e){let e=p(t,n);e?j(g.errors,n,e):K(g.errors,n)}else g.errors=t;return t},H=async(e,t,n={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=k.array.has(e.name),s=await G(o,b,I,r.shouldUseNativeValidation&&!t,i);if(s[e.name]&&(n.valid=!1,t))break;t||(p(s,e.name)?i?R(g.errors,s,e.name):j(g.errors,e.name,s[e.name]):K(g.errors,e.name))}i&&await H(i,t,n)}}return n.valid},W=(e,t)=>(e&&t&&j(b,e,t),!Y(ed(),v)),Z=(e,t,n)=>E(e,k,{..._.mount?b:h(t)?v:"string"==typeof e?{[e]:t}:t},n,t),ee=(e,t,n={})=>{let r=p(y,e),i=t;if(r){let n=r._f;n&&(n.disabled||j(b,e,en(t,n)),i=F(n.ref)&&o(t)?"":t,"select-multiple"===n.ref.type?[...n.ref.options].forEach(e=>e.selected=i.includes(e.value)):n.refs?"checkbox"===n.ref.type?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find(t=>t===e.value):i===e.value)):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach(e=>e.checked=e.value===i):"file"===n.ref.type?n.ref.value="":(n.ref.value=i,n.ref.type||S.values.next({name:e,values:{...b}})))}(n.shouldDirty||n.shouldTouch)&&V(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ec(e)},ea=(e,t,n)=>{for(let r in t){let o=t[r],s=`${e}.${r}`,a=p(y,s);!k.array.has(e)&&Q(o)&&(!a||a._f)||i(o)?ee(s,o,n):ea(s,o,n)}},el=(e,n,r={})=>{let i=p(y,e),s=k.array.has(e),a=c(n);j(b,e,a),s?(S.array.next({name:e,values:{...b}}),(A.isDirty||A.dirtyFields)&&r.shouldDirty&&S.state.next({name:e,dirtyFields:et(v,b),isDirty:W(e,a)})):!i||i._f||o(a)?ee(e,a,r):ea(e,a,r),L(e,k)&&S.state.next({...g}),S.values.next({name:e,values:{...b}}),_.mount||t()},eu=async t=>{let i=t.target,o=i.name,s=!0,l=p(y,o);if(l){let E,T,D,M=i.type?er(l._f):a(t),R=t.type===f.BLUR||t.type===f.FOCUS_OUT,P=!((D=l._f).mount&&(D.required||D.min||D.max||D.maxLength||D.minLength||D.pattern||D.validate))&&!r.resolver&&!p(g.errors,o)&&!l._f.deps||(u=R,c=p(g.touchedFields,o),d=g.isSubmitted,h=O,!(m=N).isOnAll&&(!d&&m.isOnTouch?!(c||u):(d?h.isOnBlur:m.isOnBlur)?!u:(d?!h.isOnChange:!m.isOnChange)||u)),F=L(o,k,R);j(b,o,M),R?(l._f.onBlur&&l._f.onBlur(t),n&&n(0)):l._f.onChange&&l._f.onChange(t);let q=V(o,M,R,!1),U=!x(q)||F;if(R||S.values.next({name:o,type:t.type,values:{...b}}),P)return A.isValid&&B(),U&&S.state.next({name:o,...F?{}:q});if(!R&&F&&S.state.next({...g}),$(!0),r.resolver){let{errors:e}=await z([o]),t=eo(g.errors,y,o),n=eo(e,y,t.name||o);E=n.error,o=n.name,T=x(e)}else E=(await G(l,b,I,r.shouldUseNativeValidation))[o],(s=isNaN(M)||M===p(b,o,M))&&(E?T=!1:A.isValid&&
3098(T=await H(y,!0)));if(s){l._f.deps&&ec(l._f.deps);var u,c,d,h,m,v=o,_=T,w=E;let t=p(g.errors,v),r=A.isValid&&"boolean"==typeof _&&g.isValid!==_;if(e.delayError&&w){let t;t=()=>{j(g.errors,v,w),S.state.next({errors:g.errors})},(n=e=>{clearTimeout(C),C=setTimeout(t,e)})(e.delayError)}else clearTimeout(C),n=null,w?j(g.errors,v,w):K(g.errors,v);if((w?!Y(t,w):t)||!x(q)||r){let e={...q,...r&&"boolean"==typeof _?{isValid:_}:{},errors:g.errors,name:v};g={...g,...e},S.state.next(e)}$(!1)}}},ec=async(e,t={})=>{let n,i,o=w(e);if($(!0),r.resolver){let t=await U(h(e)?e:o);n=x(t),i=e?!o.some(e=>p(t,e)):n}else e?((i=(await Promise.all(o.map(async e=>{let t=p(y,e);return await H(t&&t._f?{[e]:t}:t)}))).every(Boolean))||g.isValid)&&B():i=n=await H(y);return S.state.next({..."string"!=typeof e||A.isValid&&n!==g.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:g.errors,isValidating:!1}),t.shouldFocus&&!i&&D(y,e=>e&&p(g.errors,e),e?o:k.mount),i},ed=e=>{let t={...v,..._.mount?b:{}};return h(e)?t:"string"==typeof e?p(t,e):e.map(e=>p(t,e))},eh=(e,t)=>({invalid:!!p((t||g).errors,e),isDirty:!!p((t||g).dirtyFields,e),isTouched:!!p((t||g).touchedFields,e),error:p((t||g).errors,e)}),ep=(e,t,n)=>{let r=(p(y,e,{_f:{}})._f||{}).ref;j(g.errors,e,{...t,ref:r}),S.state.next({name:e,errors:g.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},ef=(e,t={})=>{for(let n of e?w(e):k.mount)k.mount.delete(n),k.array.delete(n),t.keepValue||(K(y,n),K(b,n)),t.keepError||K(g.errors,n),t.keepDirty||K(g.dirtyFields,n),t.keepTouched||K(g.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||K(v,n);S.values.next({values:{...b}}),S.state.next({...g,...!t.keepDirty?{}:{isDirty:W()}}),t.keepIsValid||B()},em=(e,t={})=>{let n=p(y,e),i="boolean"==typeof t.disabled;return j(y,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),k.mount.add(e),n?i&&j(b,e,t.disabled?void 0:p(b,e,er(n._f))):q(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.progressive?{required:!!t.required,min:ei(t.min),max:ei(t.max),minLength:ei(t.minLength),maxLength:ei(t.maxLength),pattern:ei(t.pattern)}:{},name:e,onChange:eu,onBlur:eu,ref:i=>{if(i){let r;em(e,t),n=p(y,e);let o=h(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s="radio"===(r=o).type||"checkbox"===r.type,a=n._f.refs||[];(s?a.find(e=>e===o):o===n._f.ref)||(j(y,e,{_f:{...n._f,...s?{refs:[...a.filter(X),o,...Array.isArray(p(v,e))?[{}]:[]],ref:{type:o.type,name:e}}:{ref:o}}}),q(e,!1,void 0,o))}else(n=p(y,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(l(k.array,e)&&_.action)&&k.unMount.add(e)}}},eg=()=>r.shouldFocusError&&D(y,e=>e&&p(g.errors,e),k.mount),ey=(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=c(b);if(S.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await z();g.errors=e,i=t}else await H(y);K(g.errors,"root"),x(g.errors)?(S.state.next({errors:{}}),await e(i,n)):(t&&await t({...g.errors},n),eg(),setTimeout(eg)),S.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:x(g.errors),submitCount:g.submitCount+1,errors:g.errors})},ev=(n,r={})=>{let i=n||v,o=c(i),s=n&&!x(n)?o:v;if(r.keepDefaultValues||(v=i),!r.keepValues){if(r.keepDirtyValues||T)for(let e of k.mount)p(g.dirtyFields,e)?j(s,e,p(b,e)):el(e,p(s,e));else{if(u&&h(n))for(let e of k.mount){let t=p(y,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(F(e)){let t=e.closest("form");if(t){t.reset();break}}}}y={}}b=e.shouldUnregister?r.keepDefaultValues?c(v):{}:c(s),S.array.next({values:{...s}}),S.values.next({values:{...s}})}k={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},_.mount||t(),_.mount=!A.isValid||!!r.keepIsValid,_.watch=!!e.shouldUnregister,S.state.next({submitCount:r.keepSubmitCount?g.submitCount:0,isDirty:r.keepDirty?g.isDirty:!!(r.keepDefaultValues&&!Y(n,v)),isSubmitted:!!r.keepIsSubmitted&&g.isSubmitted,dirtyFields:r.keepDirtyValues?g.dirtyFields:r.keepDefaultValues&&n?et(v,n):{},touchedFields:r.keepTouched?g.touchedFields:{},errors:r.keepErrors?g.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eb=(e,t)=>ev(P(e)?e(b):e,t);return{control:{register:em,unregister:ef,getFieldState:eh,handleSubmit:ey,setError:ep,_executeSchema:z,_getWatch:Z,_getDirty:W,_updateV
3098alid:B,_removeUnmounted:()=>{for(let e of k.unMount){let t=p(y,e);t&&(t._f.refs?t._f.refs.every(e=>!X(e)):!X(t._f.ref))&&ef(e)}k.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(_.action=!0,o&&Array.isArray(p(y,e))){let t=n(p(y,e),r.argA,r.argB);i&&j(y,e,t)}if(o&&Array.isArray(p(g.errors,e))){let t,o=n(p(g.errors,e),r.argA,r.argB);i&&j(g.errors,e,o),d(p(t=g.errors,e)).length||K(t,e)}if(A.touchedFields&&o&&Array.isArray(p(g.touchedFields,e))){let t=n(p(g.touchedFields,e),r.argA,r.argB);i&&j(g.touchedFields,e,t)}A.dirtyFields&&(g.dirtyFields=et(v,b)),S.state.next({name:e,isDirty:W(e,t),dirtyFields:g.dirtyFields,errors:g.errors,isValid:g.isValid})}else j(b,e,t)},_getFieldArray:t=>d(p(_.mount?b:v,t,e.shouldUnregister?p(v,t,[]):[])),_reset:ev,_resetDefaultValues:()=>P(r.defaultValues)&&r.defaultValues().then(e=>{eb(e,r.resetOptions),S.state.next({isLoading:!1})}),_updateFormState:e=>{g={...g,...e}},_subjects:S,_proxyFormState:A,get _fields(){return y},get _formValues(){return b},get _state(){return _},set _state(value){_=value},get _defaultValues(){return v},get _names(){return k},set _names(value){k=value},get _formState(){return g},set _formState(value){g=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:ec,register:em,handleSubmit:ey,watch:(e,t)=>P(e)?S.values.subscribe({next:n=>e(Z(void 0,t),n)}):Z(e,t,!0),setValue:el,getValues:ed,reset:eb,resetField:(e,t={})=>{p(y,e)&&(h(t.defaultValue)?el(e,p(v,e)):(el(e,t.defaultValue),j(v,e,t.defaultValue)),t.keepTouched||K(g.touchedFields,e),t.keepDirty||(K(g.dirtyFields,e),g.isDirty=t.defaultValue?W(e,p(v,e)):W()),!t.keepError&&(K(g.errors,e),A.isValid&&B()),S.state.next({...g}))},clearErrors:e=>{e&&w(e).forEach(e=>K(g.errors,e)),S.state.next({errors:e?g.errors:{}})},unregister:ef,setError:ep,setFocus:(e,t={})=>{let n=p(y,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eh}}(e,()=>g(e=>({...e}))),formState:n});let y=t.current.control;return y._options=e,C({subject:y._subjects.state,next:e=>{_(e,y._proxyFormState,y._updateFormState,!0)&&g({...y._formState})}}),r.useEffect(()=>{!e.values||Y(e.values,y._defaultValues)&&Y(e.values,y._formValues)?y._resetDefaultValues():y._reset(e.values,y._options.resetOptions)},[e.values,y]),r.useEffect(()=>{y._state.mount||(y._updateValid(),y._state.mount=!0),y._state.watch&&(y._state.watch=!1,y._subjects.state.next({...y._formState})),y._removeUnmounted()}),t.current.formState=b(n,y),t.current}},89226:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}},89331:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(49995),o=n(42383);function s(e){let{children:t,label:n,rowSpacing:s,value:a,"data-ui-role":l,"data-ui-id":u}=e,c=(0,i.A)(e.className,"flex flex-col md:flex-row gap-x-2"),d=e.fieldColumnProps||{};return(0,r.jsxs)(o.fh,{className:c,columnStyle:!0,"data-ui-role":l,"data-ui-id":u,"data-sentry-element":"FormRow","data-sentry-component":"ColumnStyleFieldRow","data-sentry-source-file":"ColumnStyleFieldRow.tsx",children:[n&&(0,r.jsx)(o.J3,{spacing:s,children:n}),(0,r.jsx)(o.vF,{...d,"data-sentry-element":"FieldColumn","data-sentry-source-file":"ColumnStyleFieldRow.tsx",children:t||a})]})}},89681:(e,t,n)=>{"use strict";function r(e,t){let n=new window.FileReader;n.onload=function(t){e.setAttribute("src",t.target.result)},n.readAsDataURL(t)}n.d(t,{Ec:()=>r,H:()=>o,SU:()=>i});let i=async(e,t,n)=>{var r,i,s,a;let l=await function(e){let t=new window.FileReader;return t.readAsDataURL(e),new Promise((e,n)=>{t.addEventListener("load",()=>{"string"==typeof t.result&&e(t.result),n(Error("Failed to get result from file read"))},!1),t.addEventListener("error",()=>{n(t.error)},!1)})}(e),u=await (r=l,new Promise((e,t)=>{let n=new window.Image;n.addEventListener("load",()=>{e(n)},!0),n.onerror=e=>{t(e)},n.src=r})),{width:c,height:d}=o(u,t),h=document.createElement("canvas");h.width=c,h.height=d;let p=h.getContext("2d");if(!p)throw Error("Failed to get 2d context from canvas");p.drawImage(u,0,0,u.width,u.height,0,0,c,d);let f=await (i=h,s=e.type,a=n,new Promise((e,t)=>
3098{i.toBlob(n=>{n?e(n):t(Error("Failed to convert canvas to blob"))},s,a)}));return new window.File([f],`${e.name}`,{type:e.type})};function o(e,t){let n,r;if(e.width>e.height){let i=e.width/e.height;n=(r=t)/i}else{let i=e.height/e.width;r=(n=t)/i}return{width:r,height:n}}},89950:(e,t,n)=>{var r=n(64451),i=n(97023),o=n(99828),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},90152:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(37876),i=n(14232);let o=i.forwardRef(function({title:e,titleId:t,...n},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}),s=i.forwardRef(function({title:e,titleId:t,...n},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}),a=i.forwardRef(function({title:e,titleId:t,...n},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}),l=i.forwardRef(function({title:e,titleId:t,...n},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 15.75l7.5-7.5 7.5 7.5"}))});var u=n(49995);function c({title:e,children:t,type:n="info",icon:c,className:d,contentClassName:h,contentFullWidth:p,collapsible:f}){let[m,g]=(0,i.useState)(!1),y=(0,i.useId)(),v={info:{container:"bg-blue-50 border-blue-200",title:"text-blue-800",content:"text-blue-700",icon:"text-blue-400"},success:{container:"bg-green-50 border-green-400",title:"text-green-800",content:"text-green-800",icon:"text-green-700"},warning:{container:"bg-yellow-50 border-yellow-500",title:"text-yellow-800",content:"text-yellow-800",icon:"text-yellow-700"},error:{container:"bg-red-50 border-red-400",title:"text-red-800",content:"text-red-800",icon:"text-red-500"}}[n];return(0,r.jsx)("div",{className:(0,u.A)("border rounded-lg p-4",v.container,d),"data-sentry-component":"InfoMessage","data-sentry-source-file":"InfoMessage.tsx",children:(0,r.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,r.jsxs)("div",{className:"flex gap-x-2 items-center",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:c||(0,r.jsx)("warning"===n?o:s,{className:(0,u.A)("h-5 w-5",v.icon),"aria-hidden":"true"})}),e&&(0,r.jsx)("div",{className:(0,u.A)("text-sm font-medium flex-1",v.title),role:"heading","aria-level":3,children:e}),f&&(0,r.jsx)("button",{type:"button",onClick:()=>g(e=>!e),"aria-label":m?"Expand":"Collapse","aria-expanded":!m,"aria-controls":y,className:(0,u.A)("flex-shrink-0 p-1 rounded hover:bg-black/5",v.icon),children:m?(0,r.jsx)(a,{className:"h-5 w-5","aria-hidden":"true"}):(0,r.jsx)(l,{className:"h-5 w-5","aria-hidden":"true"})})]}),(0,r.jsx)("div",{id:y,hidden:m,className:(0,u.A)(p?"":"ml-[1.75rem]"),children:(0,r.jsx)("div",{className:(0,u.A)(h,"text-sm",v.content,!e&&"mt-0"),children:t})})]})})}},90425:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(87585),o=n(61745),s=n(14232);function a(e){let{form:t}=e,{register:n}=t,a=n("name",{required:!0}),l=(0,s.useRef)(!1),u={...a,ref:t=>{a.ref(t),t&&e.focusOnLoad&&!l.current&&(t.focus(),l.current=!0)}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.A,{register:u,"data-id":"name-input","data-sentry-element":"TextInput","data-sentry-source-file":"NameField.tsx"}),(0,r.jsx)(i.A,{name:"name",errors:t.formState.errors,messages:{required:"Name is required",maxLength:"Name is too long"},"data-sentry-element":"ErrorMessage","data-sentry-source-file":"NameField.tsx"})]})}},90524:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Abreve":"Ä","abreve":"Ä","ac":"â¾","acd":"â¿","acE":"â¾Ì³","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","Acy":"Ð","acy":"а","AElig":"\xc6","aelig":"\xe6","af":"â¡","Afr":"\uD835\uDD04","afr":"\uD835\uDD1E","Agrave":"\xc0","agrave":"\xe0","alefsym":"âµ","aleph":"âµ","Alpha":"Î","alpha":"α","Amacr":"Ä","amacr":"Ä","amalg":"⨿","amp":"&","AMP":"&","andand":"â©","And":"â©","and":"â§","andd":"â©","andslo
3098pe":"â©","andv":"â©","ang":"â ","ange":"⦤","angle":"â ","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"â¦","angmsdag":"⦮","angmsdah":"⦯","angmsd":"â¡","angrt":"â","angrtvb":"â¾","angrtvbd":"â¦","angsph":"â¢","angst":"\xc5","angzarr":"â¼","Aogon":"Ä","aogon":"Ä
","Aopf":"\uD835\uDD38","aopf":"\uD835\uDD52","apacir":"⩯","ap":"â","apE":"â©°","ape":"â","apid":"â","apos":"\'","ApplyFunction":"â¡","approx":"â","approxeq":"â","Aring":"\xc5","aring":"\xe5","Ascr":"\uD835\uDC9C","ascr":"\uD835\uDCB6","Assign":"â","ast":"*","asymp":"â","asympeq":"â","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","awconint":"â³","awint":"â¨","backcong":"â","backepsilon":"϶","backprime":"âµ","backsim":"â½","backsimeq":"â","Backslash":"â","Barv":"â«§","barvee":"â½","barwed":"â
","Barwed":"â","barwedge":"â
","bbrk":"âµ","bbrktbrk":"â¶","bcong":"â","Bcy":"Ð","bcy":"б","bdquo":"â","becaus":"âµ","because":"âµ","Because":"âµ","bemptyv":"⦰","bepsi":"϶","bernou":"â¬","Bernoullis":"â¬","Beta":"Î","beta":"β","beth":"â¶","between":"â¬","Bfr":"\uD835\uDD05","bfr":"\uD835\uDD1F","bigcap":"â","bigcirc":"â¯","bigcup":"â","bigodot":"â¨","bigoplus":"â¨","bigotimes":"â¨","bigsqcup":"â¨","bigstar":"â
","bigtriangledown":"â½","bigtriangleup":"â³","biguplus":"â¨","bigvee":"â","bigwedge":"â","bkarow":"â¤","blacklozenge":"â§«","blacksquare":"âª","blacktriangle":"â´","blacktriangledown":"â¾","blacktriangleleft":"â","blacktriangleright":"â¸","blank":"â£","blk12":"â","blk14":"â","blk34":"â","block":"â","bne":"=â¥","bnequiv":"â¡â¥","bNot":"â«","bnot":"â","Bopf":"\uD835\uDD39","bopf":"\uD835\uDD53","bot":"â¥","bottom":"â¥","bowtie":"â","boxbox":"â§","boxdl":"â","boxdL":"â","boxDl":"â","boxDL":"â","boxdr":"â","boxdR":"â","boxDr":"â","boxDR":"â","boxh":"â","boxH":"â","boxhd":"â¬","boxHd":"â¤","boxhD":"â¥","boxHD":"â¦","boxhu":"â´","boxHu":"â§","boxhU":"â¨","boxHU":"â©","boxminus":"â","boxplus":"â","boxtimes":"â ","boxul":"â","boxuL":"â","boxUl":"â","boxUL":"â","boxur":"â","boxuR":"â","boxUr":"â","boxUR":"â","boxv":"â","boxV":"â","boxvh":"â¼","boxvH":"âª","boxVh":"â«","boxVH":"â¬","boxvl":"â¤","boxvL":"â¡","boxVl":"â¢","boxVL":"â£","boxvr":"â","boxvR":"â","boxVr":"â","boxVR":"â ","bprime":"âµ","breve":"Ë","Breve":"Ë","brvbar":"\xa6","bscr":"\uD835\uDCB7","Bscr":"â¬","bsemi":"â","bsim":"â½","bsime":"â","bsolb":"â§
","bsol":"\\\\","bsolhsub":"â","bull":"â¢","bullet":"â¢","bump":"â","bumpE":"⪮","bumpe":"â","Bumpeq":"â","bumpeq":"â","Cacute":"Ä","cacute":"Ä","capand":"â©","capbrcup":"â©","capcap":"â©","cap":"â©","Cap":"â","capcup":"â©","capdot":"â©","CapitalDifferentialD":"â
","caps":"â©ï¸","caret":"â","caron":"Ë","Cayleys":"â","ccaps":"â©","Ccaron":"Ä","ccaron":"Ä","Ccedil":"\xc7","ccedil":"\xe7","Ccirc":"Ä","ccirc":"Ä","Cconint":"â°","ccups":"â©","ccupssm":"â©","Cdot":"Ä","cdot":"Ä","cedil":"\xb8","Cedilla":"\xb8","cemptyv":"⦲","cent":"\xa2","centerdot":"\xb7","CenterDot":"\xb7","cfr":"\uD835\uDD20","Cfr":"â","CHcy":"Ч","chcy":"Ñ","check":"â","checkmark":"â","Chi":"Χ","chi":"Ï","circ":"Ë","circeq":"â","circlearrowleft":"âº","circlearrowright":"â»","circledast":"â","circledcirc":"â","circleddash":"â","CircleDot":"â","circledR":"\xae","circledS":"â","CircleMinus":"â","CirclePlus":"â","CircleTimes":"â","cir":"â","cirE":"â§","cire":"â","cirfnint":"â¨","cirmid":"⫯","cirscir":"â§","ClockwiseContourIntegral":"â²","CloseCurlyDoubleQuote":"â","CloseCurlyQuote":"â","clubs":"â£","clubsuit":"â£","colon":":","Colon":"â·","Colone":"â©´","colone":"â","coloneq":"â","comma":",","commat":"@","comp":"â","compfn":"â","complement":"â","complexes":"â","cong":"â
","congdot":"â©","Congruent":"â¡","conint":"â®","Conint":"â¯","ContourIntegral":"â®","copf":"\uD835\uDD54","Copf":"â","coprod":"â","Coproduct":"â","copy":"\xa9","COPY":"\xa9","copysr":"â","CounterClockwiseContourIntegral":"â³","crarr":"âµ","cross":"â","Cross":"⨯","Cscr":"\uD835\uDC9E","cscr":"\uD835\uDCB8","csub":"â«","csube":"â«","csup":"â«","csupe":"â«","ctdot":"â¯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"â","cuesc":"â","cularr":"â¶","cularrp":"⤽","cupbrcap":"â©","cupcap":"â©","CupCap":"â","cup":"âª","Cup":"â","cupcup":"â©","cupdot":"â","cupor":"â©
","cups":"âªï¸","curarr":"â·","curarrm":"⤼","curlyeqprec":"â","curlyeqsucc":"â","curlyvee":"â","curlywedge":"â","curren":"\xa4","curvearrowleft":"â¶","curvearrowright":"â·","cuvee":"â","cuwed":"â","cwconint":"â²","cwint":"â±","cylcty":"â","dagger":"â ","Dagger":"â¡","daleth":"â¸","darr":"â","Darr":"â¡","dArr":"â","dash":"â","Dashv":"⫤","dashv":"â£","dbkarow":"â¤","dblac":"Ë","Dcaron":"Ä","dcaron":"Ä","Dcy":"Ð","dcy":"д","ddagger":"â¡","ddarr":"â","DD":"â
","dd":"â
","DDotrahd":"â¤","ddotseq":"â©·","deg":"\xb0","Del":"â","Delta":"Î","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"\uD835\uDD07","dfr":"\uD835\uDD21","dHar":"⥥","dharl":"â","dharr":"â","DiacriticalAcute":"\xb4","DiacriticalDot":"Ë","DiacriticalDoubleAcute":"Ë","DiacriticalGrave":"`","DiacriticalTilde":"Ë","diam":"â","diamond":"â
3098","Diamond":"â","diamondsuit":"â¦","diams":"â¦","die":"\xa8","DifferentialD":"â
","digamma":"Ï","disin":"â²","div":"\xf7","divide":"\xf7","divideontimes":"â","divonx":"â","DJcy":"Ð","djcy":"Ñ","dlcorn":"â","dlcrop":"â","dollar":"$","Dopf":"\uD835\uDD3B","dopf":"\uD835\uDD55","Dot":"\xa8","dot":"Ë","DotDot":"â","doteq":"â","doteqdot":"â","DotEqual":"â","dotminus":"â¸","dotplus":"â","dotsquare":"â¡","doublebarwedge":"â","DoubleContourIntegral":"â¯","DoubleDot":"\xa8","DoubleDownArrow":"â","DoubleLeftArrow":"â","DoubleLeftRightArrow":"â","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"â¸","DoubleLongLeftRightArrow":"âº","DoubleLongRightArrow":"â¹","DoubleRightArrow":"â","DoubleRightTee":"â¨","DoubleUpArrow":"â","DoubleUpDownArrow":"â","DoubleVerticalBar":"â¥","DownArrowBar":"â¤","downarrow":"â","DownArrow":"â","Downarrow":"â","DownArrowUpArrow":"âµ","DownBreve":"Ì","downdownarrows":"â","downharpoonleft":"â","downharpoonright":"â","DownLeftRightVector":"â¥","DownLeftTeeVector":"â¥","DownLeftVectorBar":"â¥","DownLeftVector":"â½","DownRightTeeVector":"â¥","DownRightVectorBar":"â¥","DownRightVector":"â","DownTeeArrow":"â§","DownTee":"â¤","drbkarow":"â¤","drcorn":"â","drcrop":"â","Dscr":"\uD835\uDC9F","dscr":"\uD835\uDCB9","DScy":"Ð
","dscy":"Ñ","dsol":"â§¶","Dstrok":"Ä","dstrok":"Ä","dtdot":"â±","dtri":"â¿","dtrif":"â¾","duarr":"âµ","duhar":"⥯","dwangle":"⦦","DZcy":"Ð","dzcy":"Ñ","dzigrarr":"â¿","Eacute":"\xc9","eacute":"\xe9","easter":"â©®","Ecaron":"Ä","ecaron":"Ä","Ecirc":"\xca","ecirc":"\xea","ecir":"â","ecolon":"â","Ecy":"Ð","ecy":"Ñ","eDDot":"â©·","Edot":"Ä","edot":"Ä","eDot":"â","ee":"â
","efDot":"â","Efr":"\uD835\uDD08","efr":"\uD835\uDD22","eg":"âª","Egrave":"\xc8","egrave":"\xe8","egs":"âª","egsdot":"âª","el":"âª","Element":"â","elinters":"â§","ell":"â","els":"âª","elsdot":"âª","Emacr":"Ä","emacr":"Ä","empty":"â
","emptyset":"â
","EmptySmallSquare":"â»","emptyv":"â
","EmptyVerySmallSquare":"â«","emsp13":"â","emsp14":"â
","emsp":"â","ENG":"Å","eng":"Å","ensp":"â","Eogon":"Ä","eogon":"Ä","Eopf":"\uD835\uDD3C","eopf":"\uD835\uDD56","epar":"â","eparsl":"â§£","eplus":"⩱","epsi":"ε","Epsilon":"Î","epsilon":"ε","epsiv":"ϵ","eqcirc":"â","eqcolon":"â","eqsim":"â","eqslantgtr":"âª","eqslantless":"âª","Equal":"⩵","equals":"=","EqualTilde":"â","equest":"â","Equilibrium":"â","equiv":"â¡","equivDD":"⩸","eqvparsl":"â§¥","erarr":"⥱","erDot":"â","escr":"â¯","Escr":"â°","esdot":"â","Esim":"⩳","esim":"â","Eta":"Î","eta":"η","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","euro":"â¬","excl":"!","exist":"â","Exists":"â","expectation":"â°","exponentiale":"â
","ExponentialE":"â
","fallingdotseq":"â","Fcy":"Ф","fcy":"Ñ","female":"â","ffilig":"ï¬","fflig":"ï¬","ffllig":"ï¬","Ffr":"\uD835\uDD09","ffr":"\uD835\uDD23","filig":"ï¬","FilledSmallSquare":"â¼","FilledVerySmallSquare":"âª","fjlig":"fj","flat":"â","fllig":"ï¬","fltns":"â±","fnof":"Æ","Fopf":"\uD835\uDD3D","fopf":"\uD835\uDD57","forall":"â","ForAll":"â","fork":"â","forkv":"â«","Fouriertrf":"â±","fpartint":"â¨","frac12":"\xbd","frac13":"â
","frac14":"\xbc","frac15":"â
","frac16":"â
","frac18":"â
","frac23":"â
","frac25":"â
","frac34":"\xbe","frac35":"â
","frac38":"â
","frac45":"â
","frac56":"â
","frac58":"â
","frac78":"â
","frasl":"â","frown":"â¢","fscr":"\uD835\uDCBB","Fscr":"â±","gacute":"ǵ","Gamma":"Î","gamma":"γ","Gammad":"Ï","gammad":"Ï","gap":"âª","Gbreve":"Ä","gbreve":"Ä","Gcedil":"Ä¢","Gcirc":"Ä","gcirc":"Ä","Gcy":"Ð","gcy":"г","Gdot":"Ä ","gdot":"Ä¡","ge":"â¥","gE":"â§","gEl":"âª","gel":"â","geq":"â¥","geqq":"â§","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"âª","gesdoto":"âª","gesdotol":"âª","gesl":"âï¸","gesles":"âª","Gfr":"\uD835\uDD0A","gfr":"\uD835\uDD24","gg":"â«","Gg":"â","ggg":"â","gimel":"â·","GJcy":"Ð","gjcy":"Ñ","gla":"⪥","gl":"â·","glE":"âª","glj":"⪤","gnap":"âª","gnapprox":"âª","gne":"âª","gnE":"â©","gneq":"âª","gneqq":"â©","gnsim":"â§","Gopf":"\uD835\uDD3E","gopf":"\uD835\uDD58","grave":"`","GreaterEqual":"â¥","GreaterEqualLess":"â","GreaterFullEqual":"â§","GreaterGreater":"⪢","GreaterLess":"â·","GreaterSlantEqual":"⩾","GreaterTilde":"â³","Gscr":"\uD835\uDCA2","gscr":"â","gsim":"â³","gsime":"âª","gsiml":"âª","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"â«","gtdot":"â","gtlPar":"â¦","gtquest":"⩼","gtrapprox":"âª","gtrarr":"⥸","gtrdot":"â","gtreqless":"â","gtreqqless":"âª","gtrless":"â·","gtrsim":"â³","gvertneqq":"â©ï¸","gvnE":"â©ï¸","Hacek":"Ë","hairsp":"â","half":"\xbd","hamilt":"â","HARDcy":"Ъ","hardcy":"Ñ","harrcir":"â¥","harr":"â","hArr":"â","harrw":"â","Hat":"^","hbar":"â","Hcirc":"Ĥ","hcirc":"Ä¥","hearts":"â¥","heartsuit":"â¥","hellip":"â¦","hercon":"â¹","hfr":"\uD835\uDD25","Hfr":"â","HilbertSpace":"â","hksearow":"⤥","hkswarow":"⤦","hoarr":"â¿","homtht":"â»","hookleftarrow":"â©","hookrightarrow":"âª","hopf":"\uD835\uDD59","Hopf":"â","horbar":"â","HorizontalLine":"â","hscr":"\uD835\uDCBD","Hscr":"â","hslash":"â","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"â","HumpEqual":"â","hybull":"â","hyphen":"â","Iacute":"\xcd","iacute":"\xed","ic":"â£","Icirc":"\xce","icirc":"\xee","Icy":"Ð","icy":"и","Idot":"İ","IEcy":"Ð","iecy":"е","iexcl":"\xa1","iff":"â","
3098ifr":"\uD835\uDD26","Ifr":"â","Igrave":"\xcc","igrave":"\xec","ii":"â
","iiiint":"â¨","iiint":"â","iinfin":"â§","iiota":"â©","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"Ä«","image":"â","ImaginaryI":"â
","imagline":"â","imagpart":"â","imath":"ı","Im":"â","imof":"â·","imped":"Ƶ","Implies":"â","incare":"â
","in":"â","infin":"â","infintie":"â§","inodot":"ı","intcal":"âº","int":"â«","Int":"â¬","integers":"â¤","Integral":"â«","intercal":"âº","Intersection":"â","intlarhk":"â¨","intprod":"⨼","InvisibleComma":"â£","InvisibleTimes":"â¢","IOcy":"Ð","iocy":"Ñ","Iogon":"Ä®","iogon":"į","Iopf":"\uD835\uDD40","iopf":"\uD835\uDD5A","Iota":"Î","iota":"ι","iprod":"⨼","iquest":"\xbf","iscr":"\uD835\uDCBE","Iscr":"â","isin":"â","isindot":"âµ","isinE":"â¹","isins":"â´","isinsv":"â³","isinv":"â","it":"â¢","Itilde":"Ĩ","itilde":"Ä©","Iukcy":"Ð","iukcy":"Ñ","Iuml":"\xcf","iuml":"\xef","Jcirc":"Ä´","jcirc":"ĵ","Jcy":"Ð","jcy":"й","Jfr":"\uD835\uDD0D","jfr":"\uD835\uDD27","jmath":"È·","Jopf":"\uD835\uDD41","jopf":"\uD835\uDD5B","Jscr":"\uD835\uDCA5","jscr":"\uD835\uDCBF","Jsercy":"Ð","jsercy":"Ñ","Jukcy":"Ð","jukcy":"Ñ","Kappa":"Î","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"Ä·","Kcy":"Ð","kcy":"к","Kfr":"\uD835\uDD0E","kfr":"\uD835\uDD28","kgreen":"ĸ","KHcy":"Ð¥","khcy":"Ñ
","KJcy":"Ð","kjcy":"Ñ","Kopf":"\uD835\uDD42","kopf":"\uD835\uDD5C","Kscr":"\uD835\uDCA6","kscr":"\uD835\uDCC0","lAarr":"â","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"â","
3098Lambda":"Î","lambda":"λ","lang":"â¨","Lang":"âª","langd":"â¦","langle":"â¨","lap":"âª
","Laplacetrf":"â","laquo":"\xab","larrb":"â¤","larrbfs":"â¤","larr":"â","Larr":"â","lArr":"â","larrfs":"â¤","larrhk":"â©","larrlp":"â«","larrpl":"⤹","larrsim":"⥳","larrtl":"â¢","latail":"â¤","lAtail":"â¤","lat":"⪫","late":"âª","lates":"âªï¸","lbarr":"â¤","lBarr":"â¤","lbbrk":"â²","lbrace":"{","lbrack":"[","lbrke":"â¦","lbrksld":"â¦","lbrkslu":"â¦","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ä»","lcedil":"ļ","lceil":"â","lcub":"{","Lcy":"Ð","lcy":"л","ldca":"⤶","ldquo":"â","ldquor":"â","ldrdhar":"⥧","ldrushar":"â¥","ldsh":"â²","le":"â¤","lE":"â¦","LeftAngleBracket":"â¨","LeftArrowBar":"â¤","leftarrow":"â","LeftArrow":"â","Leftarrow":"â","LeftArrowRightArrow":"â","leftarrowtail":"â¢","LeftCeiling":"â","LeftDoubleBracket":"â¦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"â¥","LeftDownVector":"â","LeftFloor":"â","leftharpoondown":"â½","leftharpoonup":"â¼","leftleftarrows":"â","leftrightarrow":"â","LeftRightArrow":"â","Leftrightarrow":"â","leftrightarrows":"â","leftrightharpoons":"â","leftrightsquigarrow":"â","LeftRightVector":"â¥","LeftTeeArrow":"â¤","LeftTee":"â£","LeftTeeVector":"â¥","leftthreetimes":"â","LeftTriangleBar":"â§","LeftTriangle":"â²","LeftTriangleEqual":"â´","LeftUpDownVector":"â¥","LeftUpTeeVector":"⥠","LeftUpVectorBar":"â¥","LeftUpVector":"â¿","LeftVectorBar":"â¥","LeftVector":"â¼","lEg":"âª","leg":"â","leq":"â¤","leqq":"â¦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"â©¿","lesdoto":"âª","lesdotor":"âª","lesg":"âï¸","lesges":"âª","lessapprox":"âª
","lessdot":"â","lesseqgtr":"â","lesseqqgtr":"âª","LessEqualGreater":"â","LessFullEqual":"â¦","LessGreater":"â¶","lessgtr":"â¶","LessLess":"⪡","lesssim":"â²","LessSlantEqual":"⩽","LessTilde":"â²","lfisht":"⥼","lfloor":"â","Lfr":"\uD835\uDD0F","lfr":"\uD835\uDD29","lg":"â¶","lgE":"âª","lHar":"⥢","lhard":"â½","lharu":"â¼","lharul":"⥪","lhblk":"â","LJcy":"Ð","ljcy":"Ñ","llarr":"â","ll":"âª","Ll":"â","llcorner":"â","Lleftarrow":"â","llhard":"⥫","lltri":"âº","Lmidot":"Ä¿","lmidot":"Å","lmoustache":"â°","lmoust":"â°","lnap":"âª","lnapprox":"âª","lne":"âª","lnE":"â¨","lneq":"âª","lneqq":"â¨","lnsim":"â¦","loang":"â¬","loarr":"â½","lobrk":"â¦","longleftarrow":"âµ","LongLeftArrow":"âµ","Longleftarrow":"â¸","longleftrightarrow":"â·","LongLeftRightArrow":"â·","Longleftrightarrow":"âº","longmapsto":"â¼","longrightarrow":"â¶","LongRightArrow":"â¶","Longrightarrow":"â¹","looparrowleft":"â«","looparrowright":"â¬","lopar":"â¦
","Lopf":"\uD835\uDD43","lopf":"\uD835\uDD5D","loplus":"â¨","lotimes":"⨴","lowast":"â","lowbar":"_","LowerLeftArrow":"â","LowerRightArrow":"â","loz":"â","lozenge":"â","lozf":"â§«","lpar":"(","lparlt":"â¦","lrarr":"â","lrcorner":"â","lrhar":"â","lrhard":"â¥","lrm":"â","lrtri":"â¿","lsaquo":"â¹","lscr":"\uD835\uDCC1","Lscr":"â","lsh":"â°","Lsh":"â°","lsim":"â²","lsime":"âª","lsimg":"âª","lsqb":"[","lsquo":"â","lsquor":"â","Lstrok":"Å","lstrok":"Å","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"âª","ltdot":"â","lthree":"â","ltimes":"â","ltlarr":"⥶","ltquest":"â©»","ltri":"â","ltrie":"â´","ltrif":"â","ltrPar":"â¦","lurdshar":"â¥","luruhar":"⥦","lvertneqq":"â¨ï¸","lvnE":"â¨ï¸","macr":"\xaf","male":"â","malt":"â ","maltese":"â ","Map":"â¤
","map":"â¦","mapsto":"â¦","mapstodown":"â§","mapstoleft":"â¤","mapstoup":"â¥","marker":"â®","mcomma":"⨩","Mcy":"Ð","mcy":"м","mdash":"â","mDDot":"âº","measuredangle":"â¡","MediumSpace":"â","Mellintrf":"â³","Mfr":"\uD835\uDD10","mfr":"\uD835\uDD2A","mho":"â§","micro":"\xb5","midast":"*","midcir":"â«°","mid":"â£","middot":"\xb7","minusb":"â","minus":"â","minusd":"â¸","minusdu":"⨪","MinusPlus":"â","mlcp":"â«","mldr":"â¦","mnplus":"â","models":"â§","Mopf":"\uD835\uDD44","mopf":"\uD835\uDD5E","mp":"â","mscr":"\uD835\uDCC2","Mscr":"â³","mstpos":"â¾","Mu":"Î","mu":"μ","multimap":"â¸","mumap":"â¸","nabla":"â","Nacute":"Å","nacute":"Å","nang":"â â","nap":"â","napE":"⩰̸","napid":"â̸","napos":"Å","napprox":"â","natural":"â®","naturals":"â","natur":"â®","nbsp":"\xa0","nbump":"â̸","nbumpe":"â̸","ncap":"â©","Ncaron":"Å","ncaron":"Å","Ncedil":"Å
","ncedil":"Å","ncong":"â","ncongdot":"â©Ì¸","ncup":"â©","Ncy":"Ð","ncy":"н","ndash":"â","nearhk":"⤤","nearr":"â","neArr":"â","nearrow":"â","ne":"â ","nedot":"â̸","NegativeMediumSpace":"â","NegativeThickSpace"
3098:"â","NegativeThinSpace":"â","NegativeVeryThinSpace":"â","nequiv":"â¢","nesear":"⤨","nesim":"â̸","NestedGreaterGreater":"â«","NestedLessLess":"âª","NewLine":"\\n","nexist":"â","nexists":"â","Nfr":"\uD835\uDD11","nfr":"\uD835\uDD2B","ngE":"â§Ì¸","nge":"â±","ngeq":"â±","ngeqq":"â§Ì¸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"â̸","ngsim":"âµ","nGt":"â«â","ngt":"â¯","ngtr":"â¯","nGtv":"â«Ì¸","nharr":"â®","nhArr":"â","nhpar":"⫲","ni":"â","nis":"â¼","nisd":"âº","niv":"â","NJcy":"Ð","njcy":"Ñ","nlarr":"â","nlArr":"â","nldr":"â¥","nlE":"â¦Ì¸","nle":"â°","nleftarrow":"â","nLeftarrow":"â","nleftrightarrow":"â®","nLeftrightarrow":"â","nleq":"â°","nleqq":"â¦Ì¸","nleqslant":"⩽̸","nles":"⩽̸","nless":"â®","nLl":"â̸","nlsim":"â´","nLt":"âªâ","nlt":"â®","nltri":"âª","nltrie":"â¬","nLtv":"âªÌ¸","nmid":"â¤","NoBreak":"â ","NonBreakingSpace":"\xa0","nopf":"\uD835\uDD5F","Nopf":"â","Not":"⫬","not":"\xac","NotCongruent":"â¢","NotCupCap":"â","NotDoubleVerticalBar":"â¦","NotElement":"â","NotEqual":"â ","NotEqualTilde":"â̸","NotExists":"â","NotGreater":"â¯","NotGreaterEqual":"â±","NotGreaterFullEqual":"â§Ì¸","NotGreaterGreater":"â«Ì¸","NotGreaterLess":"â¹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"âµ","NotHumpDownHump":"â̸","NotHumpEqual":"â̸","notin":"â","notindot":"âµÌ¸","notinE":"â¹Ì¸","notinva":"â","notinvb":"â·","notinvc":"â¶","NotLeftTriangleBar":"â§Ì¸","NotLeftTriangle":"âª","NotLeftTriangleEqual":"â¬","NotLess":"â®","NotLessEqual":"â°","NotLessGreater":"â¸","NotLessLess":"âªÌ¸","NotLessSlantEqual":"⩽̸","NotLessTilde":"â´","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"â","notniva":"â","notnivb":"â¾","notnivc":"â½","NotPrecedes":"â","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"â ","NotReverseElement":"â","NotRightTriangleBar":"â§Ì¸","NotRightTriangle":"â«","NotRightTriangleEqual":"â","NotSquareSubset":"â̸","NotSquareSubsetEqual":"â¢","NotSquareSuperset":"â̸","NotSquareSupersetEqual":"â£","NotSubset":"ââ","NotSubsetEqual":"â","NotSucceeds":"â","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"â¡","NotSucceedsTilde":"â¿Ì¸","NotSuperset":"ââ","NotSupersetEqual":"â","NotTilde":"â","NotTildeEqual":"â","NotTildeFullEqual":"â","NotTildeTilde":"â","NotVerticalBar":"â¤","nparallel":"â¦","npar":"â¦","nparsl":"⫽â¥","npart":"â̸","npolint":"â¨","npr":"â","nprcue":"â ","nprec":"â","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"â","nrArr":"â","nrarrw":"â̸","nrightarrow":"â","nRightarrow":"â","nrtri":"â«","nrtrie":"â","nsc":"â","nsccue":"â¡","nsce":"⪰̸","Nscr":"\uD835\uDCA9","nscr":"\uD835\uDCC3","nshortmid":"â¤","nshortparallel":"â¦","nsim":"â","nsime":"â","nsimeq":"â","nsmid":"â¤","nspar":"â¦","nsqsube":"â¢","nsqsupe":"â£","nsub":"â","nsubE":"â«
̸","nsube":"â","nsubset":"ââ","nsubseteq":"â","nsubseteqq":"â«
̸","nsucc":"â","nsucceq":"⪰̸","nsup":"â
","nsupE":"â«Ì¸","nsupe":"â","nsupset":"ââ","nsupseteq":"â","nsupseteqq":"â«Ì¸","ntgl":"â¹","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"â¸","ntriangleleft":"âª","ntrianglelefteq":"â¬","ntriangleright":"â«","ntrianglerighteq":"â","Nu":"Î","nu":"ν","num":"#","numero":"â","numsp":"â","nvap":"ââ","nvdash":"â¬","nvDash":"â","nVdash":"â®","nVDash":"â¯","nvge":"â¥â","nvgt":">â","nvHarr":"â¤","nvinfin":"â§","nvlArr":"â¤","nvle":"â¤â","nvlt":"<â","nvltrie":"â´â","nvrArr":"â¤","nvrtrie":"âµâ","nvsim":"â¼â","nwarhk":"⤣","nwarr":"â","nwArr":"â","nwarrow":"â","nwnear":"⤧","Oacute":"\xd3","oacute":"\xf3","oast":"â","Ocirc":"\xd4","ocirc":"\xf4","ocir":"â","Ocy":"Ð","ocy":"о","odash":"â","Odblac":"Å","odblac":"Å","odiv":"⨸","odot":"â","odsold":"⦼","OElig":"Å","oelig":"Å","ofcir":"⦿","Ofr":"\uD835\uDD12","ofr":"\uD835\uDD2C","ogon":"Ë","Ograve":"\xd2","ograve":"\xf2","ogt":"â§","ohbar":"⦵","ohm":"Ω","oint":"â®","olarr":"âº","olcir":"⦾","olcross":"⦻","oline":"â¾","olt":"â§","Omacr":"Å","omacr":"Å","Omega":"Ω","omega":"Ï","Omicron":"Î","omicron":"ο","omid":"⦶","ominus":"â","Oopf":"\uD835\uDD46","oopf":"\uD835\uDD60","opar":"⦷","OpenCurlyDoubleQuote":"â","OpenCurlyQuote":"â","operp":"⦹","oplus":"â","orarr":"â»","Or":"â©","or":"â¨","ord":"â©","order":"â´","orderof":"â´","ordf":"\xaa","ordm":"\xba","origof":"â¶","oror":"â©","orslope":"â©","orv":"â©","oS":"â","Oscr":"\uD835\uDCAA","oscr":"â´","Oslash":"\xd8","oslas
3098h":"\xf8","osol":"â","Otilde":"\xd5","otilde":"\xf5","otimesas":"⨶","Otimes":"⨷","otimes":"â","Ouml":"\xd6","ouml":"\xf6","ovbar":"â½","OverBar":"â¾","OverBrace":"â","OverBracket":"â´","OverParenthesis":"â","para":"\xb6","parallel":"â¥","par":"â¥","parsim":"⫳","parsl":"⫽","part":"â","PartialD":"â","Pcy":"Ð","pcy":"п","percnt":"%","period":".","permil":"â°","perp":"â¥","pertenk":"â±","Pfr":"\uD835\uDD13","pfr":"\uD835\uDD2D","Phi":"Φ","phi":"Ï","phiv":"Ï","phmmat":"â³","phone":"â","Pi":"Î ","pi":"Ï","pitchfork":"â","piv":"Ï","planck":"â","planckh":"â","plankv":"â","plusacir":"⨣","plusb":"â","pluscir":"⨢","plus":"+","plusdo":"â","plusdu":"⨥","pluse":"⩲","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"⨦","plustwo":"⨧","pm":"\xb1","Poincareplane":"â","pointint":"â¨","popf":"\uD835\uDD61","Popf":"â","pound":"\xa3","prap":"⪷","Pr":"⪻","pr":"âº","prcue":"â¼","precapprox":"⪷","prec":"âº","preccurlyeq":"â¼","Precedes":"âº","PrecedesEqual":"⪯","PrecedesSlantEqual":"â¼","PrecedesTilde":"â¾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"â¨","pre":"⪯","prE":"⪳","precsim":"â¾","prime":"â²","Prime":"â³","primes":"â","prnap":"⪹","prnE":"⪵","prnsim":"â¨","prod":"â","Product":"â","profalar":"â®","profline":"â","profsurf":"â","prop":"â","Proportional":"â","Proportion":"â·","propto":"â","prsim":"â¾","prurel":"â°","Pscr":"\uD835\uDCAB","pscr":"\uD835\uDCC5","Psi":"Ψ","psi":"Ï","puncsp":"â","Qfr":"\uD835\uDD14","qfr":"\uD835\uDD2E","qint":"â¨","qopf":"\uD835\uDD62","Qopf":"â","qprime":"â","Qscr":"\uD835\uDCAC","qscr":"\uD835\uDCC6","quaternions":"â","quatint":"â¨","quest":"?","questeq":"â","quot":"\\"","QUOT":"\\"","rAarr":"â","race":"â½Ì±","Racute":"Å","racute":"Å","radic":"â","raemptyv":"⦳","rang":"â©","Rang":"â«","rangd":"â¦","range":"⦥","rangle":"â©","raquo":"\xbb","rarrap":"⥵","rarrb":"â¥","rarrbfs":"⤠","rarrc":"⤳","rarr":"â","Rarr":"â ","rArr":"â","rarrfs":"â¤","rarrhk":"âª","rarrlp":"â¬","rarrpl":"â¥
","rarrsim":"⥴","Rarrtl":"â¤","rarrtl":"â£","rarrw":"â","ratail":"â¤","rAtail":"â¤","ratio":"â¶","rationals":"â","rbarr":"â¤","rBarr":"â¤","RBarr":"â¤","rbbrk":"â³","rbrace":"}","rbrack":"]","rbrke":"â¦","rbrksld":"â¦","rbrkslu":"â¦","Rcaron":"Å","rcaron":"Å","Rcedil":"Å","rcedil":"Å","rceil":"â","rcub":"}","Rcy":"Ð ","rcy":"Ñ","rdca":"⤷","rdldhar":"⥩","rdquo":"â","rdquor":"â","rdsh":"â³","real":"â","realine":"â","realpart":"â","reals":"â","Re":"â","rect":"â","reg":"\xae","REG":"\xae","ReverseElement":"â","ReverseEquilibrium":"â","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"â","rfr":"\uD835\uDD2F","Rfr":"â","rHar":"⥤","rhard":"â","rharu":"â","rharul":"⥬","Rho":"Ρ","rho":"Ï","rhov":"ϱ","RightAngleBracket":"â©","RightArrowBar":"â¥","rightarrow":"â","RightArrow":"â","Rightarrow":"â","RightArrowLeftArrow":"â","rightarrowtail":"â£","RightCeiling":"â","RightDoubleBracket":"â§","RightDownTeeVector":"â¥","RightDownVectorBar":"â¥","RightDownVector":"â","RightFloor":"â","rightharpoondown":"â","rightharpoonup":"â","rightleftarrows":"â","rightleftharpoons":"â","rightrightarrows":"â","rightsquigarrow":"â","RightTeeArrow":"â¦","RightTee":"â¢","RightTeeVector":"â¥","rightthreetimes":"â","RightTriangleBar":"â§","RightTriangle":"â³","RightTriangleEqual":"âµ","RightUpDownVector":"â¥","RightUpTeeVector":"â¥","RightUpVectorBar":"â¥","RightUpVector":"â¾","RightVectorBar":"â¥","RightVector":"â","ring":"Ë","risingdotseq":"â","rlarr":"â","rlhar":"â","rlm":"â","rmoustache":"â±","rmoust":"â±","rnmid":"â«®","roang":"â","roarr":"â¾","robrk":"â§","ropar":"â¦","ropf":"\uD835\uDD63","Ropf":"â","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"â¦","rppolint":"â¨","rrarr":"â","Rrightarrow":"â","rsaquo":"âº","rscr":"\uD835\uDCC7","Rscr":"â","rsh":"â±","Rsh":"â±","rsqb":"]","rsquo":"â","rsquor":"â","rthree":"â","rtimes":"â","rtri":"â¹","rtrie":"âµ","rtrif":"â¸","rtriltri":"â§","RuleDelayed":"â§´","ruluhar":"⥨","rx":"â","Sacute":"Å","sacute":"Å","sbquo":"â","scap":"⪸","Scaron":"Å ","scaron":"Å¡","Sc":"⪼","sc":"â»","sccue":"â½","sce":"⪰","scE":"⪴","Scedil":"Å","scedil":"Å","Scirc":"Å","scirc":"Å","scnap":"⪺","scnE":"⪶","scnsim":"â©","scpolint":"â¨","scsim":"â¿","Scy":"С","scy":"Ñ","sdotb":"â¡","sdot":"â
","sdote":"⩦","searhk":"⤥","searr":"â","seArr":"â","searrow":"â","sect":"\xa7","semi":";","seswar":"⤩","setminus":"â","setmn":"â","sext":"â¶","Sfr":"\uD835\uDD16","sfr":"\uD835\uDD30","sfrown":"â¢","sharp":"â¯","SHCHcy":"Щ","shchcy":"Ñ","SHcy":"Ш","shcy":"Ñ","ShortDownArrow":"â","ShortLeftArrow":"â","shortmid":"â£","shortparallel":"â¥","ShortRightArrow":"â","ShortUpArrow":"â","shy":"\xad","Sigma":"Σ","sigma":"Ï","sigmaf":"Ï","sigmav":"Ï","sim":"â¼","simdot":"⩪","sime":"â","simeq":"â","simg":"âª","simgE":"⪠","siml":"âª","simlE":"âª","simne":"â","simplus":"⨤","simrarr":"⥲","slarr":"â","SmallCircle":"â","smallsetminus":"â","smashp":"⨳","smeparsl":"⧤","smid":"â£","smile":"â£","smt":"⪪","smte":"⪬","smtes":"⪬ï¸","SOFTcy":"Ь","softcy":"Ñ","solbar":"â¿","solb":"â§","sol":"/","Sopf":"\uD835\uDD4A","sopf":"\uD835\uDD64","spades":"â ","spadesuit":"â ","spar":"â¥","sqcap":"â","sqcaps":"âï¸","sqcup":"â","sqcups":"âï¸","Sqrt":"â","sqsub":"â","sqsube":"â","sqsubset":"â","sqsubseteq":"â","sqsup":"â","
3098sqsupe":"â","sqsupset":"â","sqsupseteq":"â","square":"â¡","Square":"â¡","SquareIntersection":"â","SquareSubset":"â","SquareSubsetEqual":"â","SquareSuperset":"â","SquareSupersetEqual":"â","SquareUnion":"â","squarf":"âª","squ":"â¡","squf":"âª","srarr":"â","Sscr":"\uD835\uDCAE","sscr":"\uD835\uDCC8","ssetmn":"â","ssmile":"â£","sstarf":"â","Star":"â","star":"â","starf":"â
","straightepsilon":"ϵ","straightphi":"Ï","strns":"\xaf","sub":"â","Sub":"â","subdot":"⪽","subE":"â«
","sube":"â","subedot":"â«","submult":"â«","subnE":"â«","subne":"â","subplus":"⪿","subrarr":"⥹","subset":"â","Subset":"â","subseteq":"â","subseteqq":"â«
","SubsetEqual":"â","subsetneq":"â","subsetneqq":"â«","subsim":"â«","subsub":"â«","subsup":"â«","succapprox":"⪸","succ":"â»","succcurlyeq":"â½","Succeeds":"â»","SucceedsEqual":"⪰","SucceedsSlantEqual":"â½","SucceedsTilde":"â¿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"â©","succsim":"â¿","SuchThat":"â","sum":"â","Sum":"â","sung":"âª","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"â","Sup":"â","supdot":"⪾","supdsub":"â«","supE":"â«","supe":"â","supedot":"â«","Superset":"â","SupersetEqual":"â","suphsol":"â","suphsub":"â«","suplarr":"⥻","supmult":"â«","supnE":"â«","supne":"â","supplus":"â«","supset":"â","Supset":"â","supseteq":"â","supseteqq":"â«","supsetneq":"â","supsetneqq":"â«","supsim":"â«","supsub":"â«","supsup":"â«","swarhk":"⤦","swarr":"â","swArr":"â","swarrow":"â","swnwar":"⤪","szlig":"\xdf","Tab":"\\t","target":"â","Tau":"Τ","tau":"Ï","tbrk":"â´","Tcaron":"Ť","tcaron":"Å¥","Tcedil":"Å¢","tcedil":"Å£","Tcy":"Т","tcy":"Ñ","tdot":"â","telrec":"â","Tfr":"\uD835\uDD17","tfr":"\uD835\uDD31","there4":"â´","therefore":"â´","Therefore":"â´","Theta":"Î","theta":"θ","thetasym":"Ï","thetav":"Ï","thickapprox":"â","thicksim":"â¼","ThickSpace":"ââ","ThinSpace":"â","thinsp":"â","thkap":"â","thksim":"â¼","THORN":"\xde","thorn":"\xfe","tilde":"Ë","Tilde":"â¼","TildeEqual":"â","TildeFullEqual":"â
","TildeTilde":"â","timesbar":"⨱","timesb":"â ","times":"\xd7","timesd":"⨰","tint":"â","toea":"⤨","topbot":"â¶","topcir":"⫱","top":"â¤","Topf":"\uD835\uDD4B","topf":"\uD835\uDD65","topfork":"â«","tosa":"⤩","tprime":"â´","trade":"â¢","TRADE":"â¢","triangle":"âµ","triangledown":"â¿","triangleleft":"â","trianglelefteq":"â´","triangleq":"â","triangleright":"â¹","trianglerighteq":"âµ","tridot":"â¬","trie":"â","triminus":"⨺","TripleDot":"â","triplus":"⨹","trisb":"â§","tritime":"⨻","trpezium":"â¢","Tscr":"\uD835\uDCAF","tscr":"\uD835\uDCC9","TScy":"Ц","tscy":"Ñ","TSHcy":"Ð","tshcy":"Ñ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"â¬","twoheadleftarrow":"â","twoheadrightarrow":"â ","Uacute":"\xda","uacute":"\xfa","uarr":"â","Uarr":"â","uArr":"â","Uarrocir":"â¥","Ubrcy":"Ð","ubrcy":"Ñ","Ubreve":"Ŭ","ubreve":"Å","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"У","ucy":"Ñ","udarr":"â
","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"\uD835\uDD18","ufr":"\uD835\uDD32","Ugrave":"\xd9","ugrave":"\xf9","uHar":"⥣","uharl":"â¿","uharr":"â¾","uhblk":"â","ulcorn":"â","ulcorner":"â","ulcrop":"â","ultri":"â¸","Umacr":"Ū","umacr":"Å«","uml":"\xa8","UnderBar":"_","UnderBrace":"â","UnderBracket":"âµ","UnderParenthesis":"â","Union":"â","UnionPlus":"â","Uogon":"Ų","uogon":"ų","Uopf":"\uD835\uDD4C","uopf":"\uD835\uDD66","UpArrowBar":"â¤","uparrow":"â","UpArrow":"â","Uparrow":"â","UpArrowDownArrow":"â
","updownarrow":"â","UpDownArrow":"â","Updownarrow":"â","UpEquilibrium":"⥮","upharpoonleft":"â¿","upharpoonright":"â¾","uplus":"â","UpperLeftArrow":"â","UpperRightArrow":"â","upsi":"Ï
","Upsi":"Ï","upsih":"Ï","Upsilon":"Î¥","upsilon":"Ï
","UpTeeArrow":"â¥","UpTee":"â¥","upuparrows":"â","urcorn":"â","urcorner":"â","urcrop":"â","Uring":"Å®","uring":"ů","urtri":"â¹","Uscr":"\uD835\uDCB0","uscr":"\uD835\uDCCA","utdot":"â°","Utilde":"Ũ","utilde":"Å©","utri":"âµ","utrif":"â´","uuarr":"â","Uuml":"\xdc","uuml":"\xfc","uwangle":"⦧","vangrt":"â¦","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"â
","varphi":"Ï","varpi":"Ï","varpropto":"â","varr":"â","vArr":"â","varrho":"ϱ","varsigma":"Ï","varsubsetneq":"âï¸","varsubsetneqq":"â«ï¸","varsupsetneq":"âï¸","varsupsetneqq":"â«ï¸","vartheta":"Ï","vartriangleleft":"â²","vartriangleright":"â³","vBar":"⫨","Vbar":"â««","vBarv":"â«©","Vcy":"Ð","vcy":"в","vdash":"â¢","vDash":"â¨","Vdash":"â©","VDash":"â«","Vdashl":"⫦","veebar":"â»","vee":"â¨","Vee":"â","veeeq":"â","vellip":"â
3098®","verbar":"|","Verbar":"â","vert":"|","Vert":"â","VerticalBar":"â£","VerticalLine":"|","VerticalSeparator":"â","VerticalTilde":"â","VeryThinSpace":"â","Vfr":"\uD835\uDD19","vfr":"\uD835\uDD33","vltri":"â²","vnsub":"ââ","vnsup":"ââ","Vopf":"\uD835\uDD4D","vopf":"\uD835\uDD67","vprop":"â","vrtri":"â³","Vscr":"\uD835\uDCB1","vscr":"\uD835\uDCCB","vsubnE":"â«ï¸","vsubne":"âï¸","vsupnE":"â«ï¸","vsupne":"âï¸","Vvdash":"âª","vzigzag":"â¦","Wcirc":"Å´","wcirc":"ŵ","wedbar":"â©","wedge":"â§","Wedge":"â","wedgeq":"â","weierp":"â","Wfr":"\uD835\uDD1A","wfr":"\uD835\uDD34","Wopf":"\uD835\uDD4E","wopf":"\uD835\uDD68","wp":"â","wr":"â","wreath":"â","Wscr":"\uD835\uDCB2","wscr":"\uD835\uDCCC","xcap":"â","xcirc":"â¯","xcup":"â","xdtri":"â½","Xfr":"\uD835\uDD1B","xfr":"\uD835\uDD35","xharr":"â·","xhArr":"âº","Xi":"Î","xi":"ξ","xlarr":"âµ","xlArr":"â¸","xmap":"â¼","xnis":"â»","xodot":"â¨","Xopf":"\uD835\uDD4F","xopf":"\uD835\uDD69","xoplus":"â¨","xotime":"â¨","xrarr":"â¶","xrArr":"â¹","Xscr":"\uD835\uDCB3","xscr":"\uD835\uDCCD","xsqcup":"â¨","xuplus":"â¨","xutri":"â³","xvee":"â","xwedge":"â","Yacute":"\xdd","yacute":"\xfd","YAcy":"Я","yacy":"Ñ","Ycirc":"Ŷ","ycirc":"Å·","Ycy":"Ы","ycy":"Ñ","yen":"\xa5","Yfr":"\uD835\uDD1C","yfr":"\uD835\uDD36","YIcy":"Ð","yicy":"Ñ","Yopf":"\uD835\uDD50","yopf":"\uD835\uDD6A","Yscr":"\uD835\uDCB4","yscr":"\uD835\uDCCE","YUcy":"Ю","yucy":"Ñ","yuml":"\xff","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"Ð","zcy":"з","Zdot":"Å»","zdot":"ż","zeetrf":"â¨","ZeroWidthSpace":"â","Zeta":"Î","zeta":"ζ","zfr":"\uD835\uDD37","Zfr":"â¨","ZHcy":"Ð","zhcy":"ж","zigrarr":"â","zopf":"\uD835\uDD6B","Zopf":"â¤","Zscr":"\uD835\uDCB5","zscr":"\uD835\uDCCF","zwj":"â","zwnj":"â"}')},91074:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(54587),o=n.n(i),s=n(49995);function a({className:e,size:t,style:n,url:i}){let a="h-12 w-12",l={width:48,height:48};return"small"===t&&(a="w-6 h-6",l={width:24,height:24}),"large"===t&&(a="w-16 h-16",l={width:64,height:64}),(0,r.jsx)(o(),{className:(0,s.A)(e,a,"rounded-full md:block"),src:i||"/static/images/avatar-placeholder.gif",style:{...n,objectFit:"cover"},alt:"Member photo",width:l.width,height:l.height,"data-sentry-element":"Image","data-sentry-component":"PersonPhoto","data-sentry-source-file":"PersonPhoto.tsx"})}},91513:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{d:"M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z"}))})},91667:(e,t,n)=>{var r=n(89950),i=n(52742),o=n(28654),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[r(e)]}},92122:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(37876),i=n(33575),o=n(49995);function s(e){let{onClick:t,svgClass:n}=e,s=e.textClass||` 3099 text-[var(--group-page-background-text-color-muted)] 3100 hover:text-[var(--group-page-background-text-color)] 3101 transition 3102 `;return(0,r.jsx)("button",{className:(0,o.A)("CloseButton",s),onClick:t,type:"button","aria-label":"Close","data-sentry-component":"CloseButton","data-sentry-source-file":"CloseButton.tsx",children:(0,r.jsx)(i.A,{className:(0,o.A)("h-6 w-6 transition",n),"data-sentry-element":"XMarkIcon","data-sentry-source-file":"CloseButton.tsx"})})}},92165:(e,t,n)=>{n(85668);
3102class r{constructor(e,t){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=e.longWordSplit.wrapCharacters||[],this.forceWrapOnLimit=e.longWordSplit.forceWrapOnLimit||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e){this.nextLineAvailableChars<=0&&this.startNewLine();let t=0===this.nextLineWords.length,n=e.length+ +!t;if(n<=this.nextLineAvailableChars)this.nextLineWords.push(e),this.nextLineAvailableChars-=n;else{let[n,...r]=this.splitLongWord(e);for(let e of(t||this.startNewLine(),this.nextLineWords.push(n),this.nextLineAvailableChars-=n.length,r))this.startNewLine(),this.nextLineWords.push(e),this.nextLineAvailableChars-=e.length}}popWord(){let e=this.nextLineWords.pop();if(void 0!==e){let t=0===this.nextLineWords.length,n=e.length+ +!t;this.nextLineAvailableChars+=n}return e}concatWord(e){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e),this.wordBreakOpportunity=!1;else{let t=this.popWord();this.pushWord(t?t.concat(e):e)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return 0===this.lines.length&&0===this.nextLineWords.length}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(e=>e.join(" ")).join("\n")}splitLongWord(e){let t=[],n=0;for(;e.length>this.maxLineLength;){let r=e.substring(0,this.maxLineLength),i=e.substring(this.maxLineLength),o=r.lastIndexOf(this.wrapCharacters[n]);if(o>-1)e=r.substring(o+1)+i,t.push(r.substring(0,o+1));else if(++n<this.wrapCharacters.length)e=r+i;else{if(this.forceWrapOnLimit){if(t.push(r),(e=i).length>this.maxLineLength)continue}else e=r+i;break}}return t.push(e),t}}e.exports={InlineTextBuilder:r}},92441:(e,t,n)=>{var r=n(17099),i=n(13674),o=n(71598),s=n(78483),a=n(69455),l=n(92999);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=l,e.exports=u},92493:e=>{"use strict";var t={decodeValues:!0,map:!1,silent:!1};function n(e){return"string"==typeof e&&!!e.trim()}function r(e,r){var i,o,s,a,l=e.split(";").filter(n),u=(i=l.shift(),o="",s="",(a=i.split("=")).length>1?(o=a.shift(),s=a.join("=")):s=i,{name:o,value:s}),c=u.name,d=u.value;r=r?Object.assign({},t,r):t;try{d=r.decodeValues?decodeURIComponent(d):d}catch(e){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+d+"'. Set options.decodeValues to false to disable this feature.",e)}var h={name:c,value:d};return l.forEach(function(e){var t=e.split("="),n=t.shift().trimLeft().toLowerCase(),r=t.join("=");"expires"===n?h.expires=new Date(r):"max-age"===n?h.maxAge=parseInt(r,10):"secure"===n?h.secure=!0:"httponly"===n?h.httpOnly=!0:"samesite"===n?h.sameSite=r:h[n]=r}),h}function i(e,i){if(i=i?Object.assign({},t,i):t,!e)if(!i.map)return[];else return{};if(e.headers)if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var o=e.headers[Object.keys(e.headers).find(function(e){return"set-cookie"===e.toLowerCase()})];o||!e.headers.cookie||i.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=o}return(Array.isArray(e)||(e=[e]),(i=i?Object.assign({},t,i):t).map)?e.filter(n).reduce(function(e,t){var n=r(t,i);return e[n.name]=n,e},{}):e.filter(n).map(function(e){return r(e,i)})}e.exports=i,e.exports.parse=i,e.exports.parseString=r,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,n,r,i,o,s=[],a=0;function l(){for(;a<e.length&&/\s/.test(e.charAt(a));)a+=1;return a<e.length}for(;a<e.length;){for(t=a,o=!1;l();)if(","===(n=e.charAt(a))){for(r=a,a+=1,l(),i=a;a<e.length&&"="!==(n=e.charAt(a))&&";"!==n&&","!==n;)a+=1;a<e.length&&"="===e.charAt(a)?(o=!0,a=i,s.push(e.substring(t,r)),t=a):a=r+1}else a+=1;(!o||a>=e.length)&&s.push(e.substring(t,e.length))}return s}},92775:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(37876),i=n(84855),o=n(23955),s=n(38537),a=n(5811),l=n(69080),u=n(80229),c=n(14232),d=n(53257);let h=(0,a.PA)(function({className:e,navMenuSlug:t,parentTag:n}){let a=(0,s.g1)();return(0,c.useEffect)(()=>{t&&a?.setNavItemSlug(t||"")},[]),(0,r.jsxs)("div",{className:(0,u.Wd)(n,"MembersPrimaryNavigation flex justify-between items-center",e,"transition"),"data-sentry-component":"MembersPrimaryNavigation","data-sentry-source-file":"MembersPrimaryNavigation.tsx",children:[(0,r.jsx)(l.A,{navMenuSlug:t,purpose:d.Bp.PRIMARY,themeArea:o.L.MEMBERS,className:"hidden md:flex justify-between items-center gap-x-8","data-sentry-element":"Navigation","data-sentry-source-file":"MembersPrimaryNavigation.tsx"}),(0,r.jsx)(i.A,{isOpen:a?.isOpen||!1,onToggle:function(){a?.toggle(
3102)},size:"lg",className:"md:hidden text-[var(--group-header-hamburger-button-color)] hover:text-[var(--group-header-hamburger-button-hover-color)]","data-sentry-element":"HamburgerMenuButton","data-sentry-source-file":"MembersPrimaryNavigation.tsx"})]})});var p=n(98143),f=n(48230),m=n.n(f);let g=function(){return(0,r.jsx)("header",{className:"MemberHeader h-20 bg-[var(--group-header-background-color)] text-[var(--group-header-text-color)] border-b border-[var(--group-header-border-color)]","data-sentry-component":"MembersHeader","data-sentry-source-file":"MembersHeader.tsx",children:(0,r.jsxs)("div",{className:"header-inner flex justify-between lg:max-w-screen-xl h-full lg:mx-auto p-4",children:[(0,r.jsx)(m(),{href:"/",className:"logo-link block h-full relative overflow-hidden min-w-[10rem]","data-sentry-element":"Link","data-sentry-source-file":"MembersHeader.tsx",children:(0,r.jsx)(p.Ay,{logoType:"DEFAULT",className:"logo-image block h-full w-auto max-h-full","data-sentry-element":"Logo","data-sentry-source-file":"MembersHeader.tsx"})}),(0,r.jsx)(h,{navMenuSlug:d.Vb,"data-sentry-element":"MembersPrimaryNavigation","data-sentry-source-file":"MembersHeader.tsx"})]})})}},92782:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(14232),i=n(23955),o=n(72569);let s={dragId:null,overId:null};function a(e){let{cursorPointer:t=!0}=e,n=(0,o.jz)(e.themeArea),[a,l]=(0,r.useState)(s);function u(e){return null===e?null:e.dataset.sortItem?e:u(e.parentElement)}function c(e){return e.dataset.sortItemId||e.id}return{dragging:!!a.dragId,sortable:{onDragStart:function(e){let t=c(e.target);e.dataTransfer.setData("text/plain",t),e.dataTransfer.effectAllowed="move",l({...s,dragId:t})},onDragOver:function(t){if(t.preventDefault(),t.dataTransfer.dropEffect="move",!a.dragId)return;let n=u(t.target);if(!n)return;let r=c(n);r!==a.overId&&l({...a,overId:r}),e.onDragOver&&e.onDragOver(r)},onDrop:function(t){t.preventDefault();let n=t.dataTransfer.getData("text/plain"),r=u(t.target),i=c(r);if(!i)throw Error("Expected sort item to have an id");let o=[...r.parentNode.children],a=-1;for(let e=0;e<o.length;e++)if(c(o[e])===n){a=e;break}let d=-1;for(let e=0;e<o.length;e++)if(c(o[e])===i){d=e;break}let h=o.map(e=>c(e));if(-1===a||-1===d)return void l(s);let p=h;a<d?p=h.map((e,t)=>t<a||t>d?e:t===d?h[a]:h[t+1]):a>d&&(p=h.map((e,t)=>t<d||t>a?e:t===d?h[a]:h[t-1])),l(s),e.onDrop&&e.onDrop(p,e.name)},draggable:!0,"data-sort-item":!0},sortState:a,getItemClass:function(e){let r=t?"cursor-pointer":"";return a.overId!==e?r:n===i.L.ADMIN?`${r} border !border-gf-green`:`${r} border !border-[var(--group-accent)]`}}}},92999:(e,t,n)=>{var r=n(17099),i=n(36315),o=n(2331);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},93007:e=>{e.exports=Array.isArray},93131:function(e,t,n){e.exports=function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(e),i=n(t);function o(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 s(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(){return(a=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 l(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)),r}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}
3102function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(e,t)||f(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){return new Promise(function(n,r){var i=new Image;i.onload=function(){return n(i)},i.onerror=r,!1==(null!==e&&!!e.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i))&&t&&(i.crossOrigin=t),i.src=e})}var y,v="undefined"!=typeof window&&"undefined"!=typeof navigator&&!!("ontouchstart"in window||0<navigator.msMaxTouchPoints),b="undefined"!=typeof File,x=v?{react:{down:"onTouchStart",mouseDown:"onMouseDown",drag:"onTouchMove",move:"onTouchMove",mouseMove:"onMouseMove",up:"onTouchEnd",mouseUp:"onMouseUp"},native:{down:"touchstart",mouseDown:"mousedown",drag:"touchmove",move:"touchmove",mouseMove:"mousemove",up:"touchend",mouseUp:"mouseup"}}:{react:{down:"onMouseDown",drag:"onDragOver",move:"onMouseMove",up:"onMouseUp"},native:{down:"mousedown",drag:"dragStart",move:"mousemove",up:"mouseup"}},_="undefined"!=typeof window&&window.devicePixelRatio?window.devicePixelRatio:1,w={x:.5,y:.5},k=function(){var e=i.default.Component;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),e&&d(f,e);var t,n,r,l=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=c(f);return e=t?Reflect.construct(n,arguments,c(this).constructor):n.apply(this,arguments),e&&("object"==typeof e||"function"==typeof e)?e:h(this)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,f),s(h(t=l.call(this,e)),"state",{drag:!1,my:null,mx:null,image:w}),s(h(t),"handleImageReady",function(e){var n=t.getInitialSize(e.width,e.height);n.resource=e,n.x=.5,n.y=.5,n.backgroundColor=t.props.backgroundColor,t.setState({drag:!1,image:n},t.props.onImageReady),t.props.onLoadSuccess(n)}),s(h(t),"clearImage",function(){t.canvas.getContext("2d").clearRect(0,0,t.canvas.width,t.canvas.height),t.setState({image:w})}),s(h(t),"handleMouseDown",function(e){(e=e||window.event).preventDefault(),t.setState({drag:!0,mx:null,my:null})}),s(h(t),"handleMouseUp",function(){t.state.drag&&(t.setState({drag:!1}),t.props.onMouseUp())}),s(h(t),"handleMouseMove",function(e){var n,r,i,o,s,a,l,c,d,h,p,f,m,g,y,v;e=e||window.event,!1!==t.state.drag&&(e.preventDefault(),i={mx:n=e.targetTouches?e.targetTouches[0].pageX:e.clientX,my:r=e.targetTouches?e.targetTouches[0].pageY:e.clientY},v=(v=t.props.rotate%360)<0?v+360:v,t.state.mx&&t.state.my&&(o=t.state.mx-n,s=t.state.my-r,a=t.state.image.width*t.props.scale,l=t.state.image.height*t.props.scale,d=(c=t.getCroppingRect()).x,h=c.y,d*=a,h*=l,f=Math.cos((p=function(e){return Math.PI/180*e})(v)),g=h+-o*(m=Math.sin(p(v)))+s*f,y={x:(d+o*f+s*m)/a+1/t.props.scale*t.getXScale()/2,y:g/l+1/t.props.scale*t.getYScale()/2},t.props.onPositionChange(y),i.image=u(u({},t.state.image),y)),t.setState(i),t.props.onMouseMove(e))}),s(h(t),"setCanvas",function(e){t.canvas=e}),t.canvas=null,t}return n=[{key:"componentDidMount",value:function(){this.props.disableHiDPIScaling&&(_=1);var e,t,n=this.canvas.getContext("2d");this.props.image&&this.loadImage(this.props.image),this.paint(n),document&&(e=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}()&&{passive:!1},t=x.native,document.addEventListener(t.move,this.handleMouseMove,e),document.addEventListener(t.up,this.handleMouseUp,e),v&&(document.addEventListener(t.mouseMove,this.handleMouseMove,e),document.addEventListener(t.mouseUp,this.handleMouseUp,e)))}},{key:"componentDidUpdate",value:function(e,t){this.props.image&&this.props.image!==e.image||this.props.width!==e.width||this.props.height!==e.height||this.props.backgroundColor!==e.backgroundColor?this.loadImage(this.props.image):this.props.image||t.image===w||this.clearImage();var n=this.canvas.getContext("2d");n.clearRect(0,0,this.canvas.width,this.canvas.height),this.paint(n),this.paintImage(n,this.state.image,this.props.border),e.image===this.props.image&&e.width===this.props.width&&e.height===this.props.height&&e.position===this.props.position&&e.scale===this.props.scale&&e.rotate===this.props.rotate&&t.my===this.state.my&&t.mx===this.state.mx&&t.image.x===this.state.image.x&&t.image.y===this.state.image.y&&t.backgroundColor===this.state.backgroundColor||this.props.onImageChange()}},{key:"componentWillUnmount",value:function(){var e;document&&(e=x.native,document.removeEventListener(e.move,this.handleMouseMove,!1),document.removeEventListener(e.up,this.handleMouseUp,!1),v&&(document.removeEventListener(e.mouseMove,this.handleMouseMove,!1),document.removeEventListener(e.mouseUp,this.handleMouseUp,!1)))}},{key:"isVertical",value:function(){return!this.props.disableCanvasRotation&&this.props.rotate%180!=0}},{key:"getBorders",value:function(e){var t=0<arguments.length&&void 0!==e?e:this.props.border;return Array.isArray(t)?t:[t,t]}},{key:"getDimensions",value:function(){var e=this.props,t=e.width,n=e.he
3102ight,r=e.rotate,i=e.border,o={},s=p(this.getBorders(i),2),a=s[0],l=s[1];return this.isVertical()?(o.width=n,o.height=t):(o.width=t,o.height=n),o.width+=2*a,o.height+=2*l,{canvas:o,rotate:r,width:t,height:n,border:i}}},{key:"getImage",value:function(){var e=this.getCroppingRect(),t=this.state.image;e.x*=t.resource.width,e.y*=t.resource.height,e.width*=t.resource.width,e.height*=t.resource.height;var n=document.createElement("canvas");this.isVertical()?(n.width=e.height,n.height=e.width):(n.width=e.width,n.height=e.height);var r=n.getContext("2d");return r.translate(n.width/2,n.height/2),r.rotate(this.props.rotate*Math.PI/180),r.translate(-n.width/2,-n.height/2),this.isVertical()&&r.translate((n.width-n.height)/2,(n.height-n.width)/2),t.backgroundColor&&(r.fillStyle=t.backgroundColor,r.fillRect(-e.x,-e.y,t.resource.width,t.resource.height)),r.drawImage(t.resource,-e.x,-e.y),n}},{key:"getImageScaledToCanvas",value:function(){var e=this.getDimensions(),t=e.width,n=e.height,r=document.createElement("canvas");return this.isVertical()?(r.width=n,r.height=t):(r.width=t,r.height=n),this.paintImage(r.getContext("2d"),this.state.image,0,1),r}},{key:"getXScale",value:function(){return Math.min(1,this.props.width/this.props.height/(this.state.image.width/this.state.image.height))}},{key:"getYScale",value:function(){return Math.min(1,this.props.height/this.props.width/(this.state.image.height/this.state.image.width))}},{key:"getCroppingRect",value:function(){var e=this.props.position||{x:this.state.image.x,y:this.state.image.y},t=1/this.props.scale*this.getXScale(),n=1/this.props.scale*this.getYScale(),r={x:e.x-t/2,y:e.y-n/2,width:t,height:n},i=0,o=1-r.width,s=0,a=1-r.height;return(this.props.disableBoundaryChecks||1<t||1<n)&&(i=-r.width,s=-r.height,a=o=1),u(u({},r),{},{x:Math.max(i,Math.min(r.x,o)),y:Math.max(s,Math.min(r.y,a))})}},{key:"loadImage",value:function(e){b&&e instanceof File?this.loadingImage=new Promise(function(t,n){var r=new FileReader;r.onload=function(e){try{var r=g(e.target.result);t(r)}catch(e){n(e)}},r.readAsDataURL(e)}).then(this.handleImageReady).catch(this.props.onLoadFailure):"string"==typeof e&&(this.loadingImage=g(e,this.props.crossOrigin).then(this.handleImageReady).catch(this.props.onLoadFailure))}},{key:"getInitialSize",value:function(e,t){var n,r,i=this.getDimensions();return t/e<i.height/i.width?r=e*((n=this.getDimensions().height)/t):n=t*((r=this.getDimensions().width)/e),{height:n,width:r}}},{key:"paintImage",value:function(e,t,n,r){var i,o=3<arguments.length&&void 0!==r?r:_;t.resource&&(i=this.calculatePosition(t,n),e.save(),e.translate(e.canvas.width/2,e.canvas.height/2),e.rotate(this.props.rotate*Math.PI/180),e.translate(-e.canvas.width/2,-e.canvas.height/2),this.isVertical()&&e.translate((e.canvas.width-e.canvas.height)/2,(e.canvas.height-e.canvas.width)/2),e.scale(o,o),e.globalCompositeOperation="destination-over",e.drawImage(t.resource,i.x,i.y,i.width,i.height),t.backgroundColor&&(e.fillStyle=t.backgroundColor,e.fillRect(i.x,i.y,i.width,i.height)),e.restore())}},{key:"calculatePosition",value:function(e,t){e=e||this.state.image;var n=p(this.getBorders(t),2),r=n[0],i=n[1],o=this.getCroppingRect(),s=e.width*this.props.scale,a=e.height*this.props.scale,l=-o.x*s,u=-o.y*a;return this.isVertical()?(l+=i,u+=r):(l+=r,u+=i),{x:l,y:u,height:a,width:s}}},{key:"paint",value:function(e){e.save(),e.scale(_,_),e.translate(0,0),e.fillStyle="rgba("+this.props.color.slice(0,4).join(",")+")";var t,n,r,i,o,s=this.props.borderRadius,a=this.getDimensions(),l=p(this.getBorders(a.border),2),u=l[0],c=l[1],d=a.canvas.height,h=a.canvas.width,s=Math.max(s,0);s=Math.min(s,h/2-u,d/2-c),e.beginPath(),t=h-2*u,n=d-2*c,0===(r=s)?e.rect(u,c,t,n):(i=t-r,o=n-r,e.translate(u,c),e.arc(r,r,r,Math.PI,1.5*Math.PI),e.lineTo(i,0),e.arc(i,r,r,1.5*Math.PI,2*Math.PI),e.lineTo(t,o),e.arc(i,o,r,2*Math.PI,.5*Math.PI),e.lineTo(r,n),e.arc(r,o,r,.5*Math.PI,Math.PI),e.translate(-u,-c)),e.rect(h,0,-h,d),e.fill("evenodd"),e.restore()}},{key:"render",value:function(){var e=this.props,t=(e.scale,e.rotate,e.image,e.border,e.borderRadius,e.width,e.height,e.position,e.color,e.backgroundColor,e.style),n=(e.crossOrigin,e.onLoadFailure,e.onLoadSuccess,e.onImageReady,e.onImageChange,e.onMouseUp,e.onMouseMove,e.onPositionChange,e.disableBoundaryChecks,e.disableHiDPIScaling,e.disableCanvasRotation,function(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};for(var n,r={},i=Object.keys(e),o=0;o<i.length;o++)n=i[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)n=i[o],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}(e,["scale","rotate","image","border","borderRadius","width","height","position","color","backgroundColor","style","crossOrigin","onLoadFailure","onLoadSuccess","onImageReady","onImageChange","onMouseUp","onMouseMove","onPositionChange","disableBoundaryChecks","disableHiDPIScaling","disableCanvasRotation"])),r=this.getDimensions(),o={width:r.canvas.width,height:r.canvas.height,cursor:this.state.drag?"grabbing":"grab",touchAction:"none"},s={width:r.canvas.width*_,height:r.canvas.height*_,style:u(u({},o),t)};return s[x.react.down]=this.handleMouseDown,v&&(s[x.react.mouseDown]=this.handleMouseDown),i.default.createElement("canvas",a({ref:this.setCanvas},s,n))}}],o(f.prototype,n),r&&o(f,r),f}();
3102return s(k,"propTypes",{scale:r.default.number,rotate:r.default.number,image:r.default.oneOfType([r.default.string].concat(function(e){if(Array.isArray(e))return m(e)}(y=b?[r.default.instanceOf(File)]:[])||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(y)||f(y)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),border:r.default.oneOfType([r.default.number,r.default.arrayOf(r.default.number)]),borderRadius:r.default.number,width:r.default.number,height:r.default.number,position:r.default.shape({x:r.default.number,y:r.default.number}),color:r.default.arrayOf(r.default.number),backgroundColor:r.default.string,crossOrigin:r.default.oneOf(["","anonymous","use-credentials"]),onLoadFailure:r.default.func,onLoadSuccess:r.default.func,onImageReady:r.default.func,onImageChange:r.default.func,onMouseUp:r.default.func,onMouseMove:r.default.func,onPositionChange:r.default.func,disableBoundaryChecks:r.default.bool,disableHiDPIScaling:r.default.bool,disableCanvasRotation:r.default.bool}),s(k,"defaultProps",{scale:1,rotate:0,border:25,borderRadius:0,width:200,height:200,color:[0,0,0,.5],onLoadFailure:function(){},onLoadSuccess:function(){},onImageReady:function(){},onImageChange:function(){},onMouseUp:function(){},onMouseMove:function(){},onPositionChange:function(){},disableBoundaryChecks:!1,disableHiDPIScaling:!1,disableCanvasRotation:!0}),k}(n(95062),n(14232))},93162:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(14232),i=n(29842);function o(e,t,n,o){let s=(0,i.Y)(n);(0,r.useEffect)(()=>{function n(e){s.current(e)}return(e=null!=e?e:window).addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)},[e,t,o])}},93264:(e,t,n)=>{"use strict";n.d(t,{m:()=>y});var r=n(14232),i=n(38537),o=n(43371),s=n(89099),a=n(63853),l=n(25225),u=n(64177),c=n(78248),d=n(31167),h=n(44650),p=n(85819),f=n(80035),m=n(55494),g=n(22960);function y(){let e,t=(0,i.kH)(),n=t.user,y=(0,o.DT)(n),v=(0,i.Me)(),[b]=(0,p.X)(h.cm),[x]=(0,p.X)(h.lg),[_]=(0,p.X)(h.ot),[w,{loading:k}]=(0,u.n)(h.bB),[C,{loading:E}]=(0,u.n)(h.tj);(0,r.useRef)(y).current=y;let[A,S]=(0,r.useState)(null),T=(0,r.useRef)(null);T.current=A;let[j,N]=(0,r.useState)([]),O=(0,s.useRouter)(),I=(0,r.useRef)(void 0),[D,M]=(0,r.useState)(),L=(0,r.useRef)(void 0),[R]=(0,c._)(m.k,{fetchPolicy:"network-only"}),P=null,F=(0,r.useRef)(null),B=(0,r.useRef)(er);B.current=(0,a.YQ)(er,500);let $=(0,l.Dm)(()=>{B.current()}),q=(0,r.useRef)(new Set),V=O.query.id;if(V){let t=(V=V.toString()).match(/^c:(.*)$/);t?P=t[1]:(e=V,I.current=V)}let z=v.conversations&&v.conversations.length>0||!1,[U,H]=(0,r.useState)(g.q9.INITIALIZING),[W,G]=(0,r.useState)(!1),[K,J]=(0,r.useState)(!1),[Q,Y]=(0,r.useState)(!1),{data:X,loading:Z,refetch:ee}=(0,d.I)(h.ef,{variables:{limit:50,offset:0,conversationId:A||"",sort:[{field:"INSERTED_AT",order:"DESC"}]},skip:!A,fetchPolicy:"network-only",onError:e=>{console.error("Error fetching messages:",e)}});(0,r.useEffect)(()=>{y&&v.loadMemberChannelAndConversations()},[y]),(0,r.useEffect)(()=>{v.conversations&&y&&function(){if(et.current)return;function t(){e?H(g.q9.NEW):H(g.q9.LIST)}et.current=!0;let n=v.conversations&&v.conversations[0];e?(0,g.jp)(e,v,e=>{en(e),history.replaceState({},"Channels","/members/messages")},t):P?(0,g.jp)(P,v,en,t):A?(0,g.jp)(A,v,en,t):n?en(n.id):H(g.q9.LIST)}()},[v.conversations,y]),(0,r.useEffect)(()=>{if(v.memberChannel&&y){F.current=v.memberChannel.on("messaging.chat.message.created",ei);let e=v.memberChannel.on("messaging.chat.message.marked-as-read",({message:{conversationId:e}})=>{e===T.current&&ee({limit:50,offset:0,conversationId:e,sort:[{field:"INSERTED_AT",order:"DESC"}]})}),t=v.memberChannel.on("messaging.chat.participants.updated",()=>{console.log("messaging.chat.participants.updated"),v.loadConversations()});return()=>{"number"==typeof F.current&&v.memberChannel?.off("messaging.chat.message.created",F.current),"number"==typeof e&&v.memberChannel?.off("messaging.chat.message.marked-as-read",e),"number"==typeof t&&v.memberChannel?.off("messaging.chat.participants.updated",t)}}},[v.memberChannel,y]),(0,r.useEffect)(()=>{y&&ed(),L.current=D},[e,y,D]),(0,r.useEffect)(()=>
3102{if(X?.listMessages&&A){let e=X.listMessages.results.map(e=>({actorType:e.actorType,body:e.body,conversationId:e.conversationId,elapsed:null,id:e.id,insertedAt:new Date(e.insertedAt),likedBySelf:e.likedBySelf,likesCount:e.likesCount,parentId:e.parentId,readBySelf:e.readBySelf,sender:{id:e.sender?.id,name:e.sender?.name,title:e.sender?.title,profile:{photo:{url:e.sender?.profile?.photo?.url}}},attachments:e.attachments})).reverse();N((0,f.HO)(e))}},[X,A]);let et=(0,r.useRef)(!1);function en(e){S(e),T.current=e,e?H(g.q9.EXISTING):H(g.q9.LIST)}function er(e){if(!(e=e||T.current||void 0)||!j.length||!$.current)return;let t=[...j].reverse().find(e=>!e.readBySelf&&q.current.has(e.id));t&&function(e,t){if(!$.current)return;let n=j.find(e=>e.id===t);n&&(n.readBySelf||function(e,t){if(!v.memberChannel)throw Error("No memberChannel set");v.memberChannel.push("messaging.chat.message.mark-as-read",{conversationId:e,messageId:t})}(e,t))}(e,t.id)}function ei({message:e}){let t=T.current;t&&e.conversationId===t&&ee({limit:50,offset:0,conversationId:t,sort:[{field:"INSERTED_AT",order:"DESC"}]})}function eo(){en(null),history.replaceState({},"Channels","/members/messages")}async function es(){A&&(await b({variables:{id:A}},"leaveConversation"),eo(),v.loadConversations())}async function ea(){A&&(await x({variables:{id:A}},"archiveConversation"),eo(),v.loadConversations())}let el=A?v.conversations?.find(e=>e.id===A):null;async function eu(e){if(!A)return!1;let t=g.oR.find(t=>t.value===e);if(!t)return!1;let n=new Date;n.setHours(n.getHours()+t.hours);try{let e=await w({variables:{id:A,input:{silenceUntil:n.toISOString()}}});if(e.data?.silenceConversationNotifications?.result)return v.loadConversations(),!0;return!1}catch(e){return console.error("Error silencing notifications:",e),!1}}async function ec(){if(!A)return!1;try{let e=await C({variables:{id:A}});if(e.data?.enableConversationNotifications?.result)return v.loadConversations(),!0;return!1}catch(e){return console.error("Error enabling notifications:",e),!1}}async function ed(){if(e&&!D&&y){let t=await R({variables:{id:e}}),n=t.data?.getMember2;n&&M([(0,o.Qv)(n)])}}return{channelStore:v,chatUIState:U,closeCreateNamedModal:function(){G(!1)},closeSelectRecipientsModal:()=>Y(!1),conversationId:A,enableNotifications:ec,isCreateNamedModalOpen:W,isEnabling:E,isManagingMembers:K,isSelectRecipientsModalOpen:Q,isSilenced:el?.selfParticipant?.isSilenced??!1,isSilencing:k,messages:j,messagesLoading:Z,newRecipientMembers:D,onCloseConversation:function(){eo(),M(void 0)},onConversationSelected:en,onArchiveChannel:ea,onConversationRenamed:function(){v.loadConversations()},onLeaveChannel:es,onMembersChanged:function(){v.loadConversations()},updateNamedConversation:_,onMembersChosen:function(e){Y(!1),z&&(en(null),N([])),M(e),H(g.q9.NEW)},onMessagesVisibilityChange:function(e){q.current=new Set(e),T.current&&B.current(T.current)},onNamedConversationCreated:function(e){G(!1),v.loadConversations().then(()=>{let t=v.conversations?.find(t=>t.id===e.id);if(t)t.conversationStyle||v.updateConversation(e.id,{name:e.name,conversationStyle:e.conversationStyle});else{let t={id:e.id,name:e.name,conversationStyle:e.conversationStyle,participants:[],status:"active",selfParticipant:{isSilenced:!1,lastReadMessageId:null,silenceUntil:null,unreadMessagesCount:0,totalMessagesCount:0},mostRecentReceivedAt:new Date};v.setConversations([t,...v.conversations||[]])}en(e.id)})},onSetupNewConversation:function(e){e.preventDefault(),Y(!0)},onSubmit:function(e,t){var n=e,r=t;let i=T.current,o=L.current,s=I.current,a={body:n};if(r&&r.length>0&&(a={...a,imageIds:r}),i)a={...a,conversationId:i};else if(o)a={...a,recipientIds:o.map(e=>e.id)};else if(s)a={...a,recipientIds:[s]};else throw Error("No conversation set");v.memberChannel?.push("messaging.chat.message.create",a).receive("ok",e=>{if(I.current||L.current)v.loadConversations().then(()=>{en(e.conversationId),history.replaceState({},"Channels","/members/messages"),M(void 0)});else{let t=v&&v.conversations&&v.conversations.length>0&&v.conversations[0];t&&t.id!==e.conversationId&&v.loadConversations()}})},openCreateNamedModal:function(){G(!0)},silenceNotifications:eu,toggleManageMembers:function(){J(e=>!e)},userStore:t}}},93755:(e,t,n)=>{"use strict";n.d(t,{r:()=>R,A:()=>L});var r=n(37876),i=n(77162),o=n(65416),s=n(5811),a=n(48230),l=n.n(a),u=n(73382),c=n(31009),d=n(72569),h=n(42383),p=n(10969),f=n(88992),m=n(9095),g=n(47027),y=n(49995),v=n(31695),b=n(99082),x=n(99827),_=n(54587),w=n.n(_),k=n(52095),C=n(77404),E=n(97574),A=n(85819),S=n(38537);let T={type:u.nz.Image,purpose:"background-image"};var j=function(e){return e.Full="full",e.HeadingOnly="heading-only",e}({});let N={full:"Full Hero - Heading, Subheading, and Button","heading-only":"Heading Only"};function O(e,t){let n=[];if(e.heading&&(n=[...n,{type:u.nz.Text,purpose:"heading",content:e.heading}]),"full"===e.heroStyle&&(e.subHeading&&(n=[...n,{type:u.nz.Text,purpose:"sub-heading",content:e.subHeading}]),e.button.label&&(n=[...n,{type:u.nz.Button,purpose:"button-1",label:e.button.label,content:e.button.label,href:e.button.link}])),e.backgroundImageId){let r=t?.children?.find(e=>"background-image"===e.purpose);
3102n=[...n,{...T,...r?{id:r.id}:{},photoId:e.backgroundImageId}]}let r=t?t.styles:[];return r=[...r=r.filter(e=>"hero-style"!==e.name),{name:"hero-style",value:e.heroStyle}],{type:u.nz.Hero,children:n,styles:r}}let I=(0,s.PA)(function(e){let{onClose:t}=e,n=(0,f.mN)({defaultValues:{heading:"",heroStyle:"heading-only",subHeading:"",button:{label:"",link:""},backgroundImageUrl:"",backgroundImageId:"",backgroundVideoUrl:""}}),[i]=(0,A.X)(E.EL),o=(0,v.X)({form:n,formToParams:O,populateForm:function(e){n.setValue("heading",e.children?.find(e=>"heading"===e.purpose)?.content||""),n.setValue("subHeading",e.children?.find(e=>"sub-heading"===e.purpose)?.content||"");let t=e.children?.find(e=>"button-1"===e.purpose);n.setValue("button.label",t?.label||""),n.setValue("button.link",(0,u.iY)(t)||"");let r=e.styles?.find(e=>"hero-style"===e.name);n.setValue("heroStyle",r?.value||"heading-only");let i=e.children?.find(e=>"background-image"===e.purpose);n.setValue("backgroundImageUrl",i?.photo?.url||""),n.setValue("backgroundImageId",i?.photoId||""),n.setValue("backgroundVideoUrl",i?.photo?.videoUrl||"")},onBeforeSave:T,onClose:t}),{loading:s,handleSubmit:a,cancelProps:l}=o,c=(0,S.uV)(),_=c.contentItems?.filter(e=>e.type===u.nz.Image);async function T(e){if(!e.backgroundImageId)return;let t=e.backgroundVideoUrl.trim();await i({variables:{id:e.backgroundImageId,input:{mediaType:t?C.z.Video:C.z.Image,videoUrl:t||null}}},"updatePhotoMedia")}return(0,r.jsxs)("div",{className:(0,y.A)("max-w-screen-md",p.Ay.formClass),"data-sentry-component":"HeroManagement","data-sentry-source-file":"HeroManagement.tsx",children:[(0,r.jsx)(g.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"HeroManagement.tsx",children:"The hero section is the first thing people see when they land on your website. It should be a single, clear message that captures their attention and encourages them to take action."}),(0,r.jsxs)("form",{onSubmit:a,className:p.Ay.formClass,children:[(0,r.jsxs)(h.fh,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"HeroManagement.tsx",children:[(0,r.jsx)(m.A,{size:"sm","data-sentry-element":"SectionHeading","data-sentry-source-file":"HeroManagement.tsx",children:"Hero Style"}),(0,r.jsx)(g.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"HeroManagement.tsx",children:"You have the option to display the hero section as a full hero with a subheading and call-to-action button, or you can display just a simple heading."}),(0,r.jsx)(x.A,{options:Object.values(j),renderOption:e=>(0,r.jsx)("div",{children:N[e]}),selected:n.watch("heroStyle"),setSelected:e=>n.setValue("heroStyle",e),"data-sentry-element":"CardRadioGroup","data-sentry-source-file":"HeroManagement.tsx"})]}),(0,r.jsxs)(h.fh,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"HeroManagement.tsx",children:[(0,r.jsx)(m.A,{size:"sm","data-sentry-element":"SectionHeading","data-sentry-source-file":"HeroManagement.tsx",children:"Heading"}),(0,r.jsx)(g.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"HeroManagement.tsx",children:"The heading should communicate a benefit or create curiosity. Keep it short, punchy, and visitor-focused."}),(0,r.jsx)(h.fs,{register:n.register("heading"),"data-sentry-element":"TextArea","data-sentry-source-file":"HeroManagement.tsx"})]}),"full"===n.watch("heroStyle")&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(h.fh,{children:[(0,r.jsx)(m.A,{size:"sm",withBottomMargin:!0,children:"Sub Heading"}),(0,r.jsx)(h.fs,{register:n.register("subHeading")})]}),(0,r.jsxs)("div",{className:p.Ay.formClass,children:[(0,r.jsx)(m.A,{size:"sm",withBottomMargin:!0,children:"Call-to-Action (CTA) Button"}),(0,r.jsx)(g.A,{backgroundType:d.Sh.PRIMARY_CARD,children:"The Hero CTA button is the primary action you want visitors to take."}),(0,r.jsx)(h.fh,{label:"Label",children:(0,r.jsx)(h.ks,{register:n.register("button.label")})}),n.watch("button.label")&&(0,r.jsx)(h.fh,{label:"Link",children:(0,r.jsx)(h.ks,{register:n.register("button.link")})})]})]}),(0,r.jsxs)(h.fh,{withSpacing:!0,"data-sentry-element":"FormRow","data-sentry-source-file":"HeroManagement.tsx",children:[(0,r.jsx)(m.A,{size:"sm",withBottomMargin:!0,"data-sentry-element":"SectionHeading","data-sentry-source-file":"HeroManagement.tsx",children:"Backgroun
3102d"}),(0,r.jsx)(g.A,{backgroundType:d.Sh.PRIMARY_CARD,"data-sentry-element":"HelpText","data-sentry-source-file":"HeroManagement.tsx",children:"The background sits behind the hero text. Choose an image, then optionally add a video to play over it. The image is shown while the video loads, and to visitors whose browser will not play it."}),(0,r.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,r.jsxs)("div",{className:"flex-1 flex flex-col gap-y-2",children:["Choose an existing image",(0,r.jsx)("div",{className:"flex flex-wrap gap-4 overflow-scroll max-h-[20rem] p-2 border",children:_?.filter(e=>e.photo?.thumbUrl).slice(0,200).map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>{n.setValue("backgroundImageUrl",e.photo?.url||""),n.setValue("backgroundImageId",e.photoId||"")},title:`ContentItem ${e.id}`,children:(0,r.jsx)(w(),{src:e.photo?.thumbUrl||"",alt:e.title,width:100,height:100})},e.id))})]}),(0,r.jsx)("div",{className:"w-[5rem] text-center",children:"-OR-"}),(0,r.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,r.jsx)("div",{children:"Upload a new image"}),(0,r.jsx)(k.A,{form:n,name:"backgroundImageUrl",idName:"backgroundImageId","data-sentry-element":"ImageField","data-sentry-source-file":"HeroManagement.tsx"})]})]})]}),n.watch("backgroundImageId")&&(0,r.jsxs)(h.fh,{label:"Background video URL",children:[(0,r.jsx)(g.A,{backgroundType:d.Sh.PRIMARY_CARD,children:"Paste the address of a video file to play over the background image. Leave empty for an image-only background."}),(0,r.jsx)(h.ks,{register:n.register("backgroundVideoUrl")})]}),(0,r.jsx)(b.D,{usingContentEdit:o,successMessage:"Hero saved","data-sentry-element":"ApiResults","data-sentry-source-file":"HeroManagement.tsx"}),(0,r.jsx)(h.fC,{cancel:l,saving:s,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"HeroManagement.tsx"})]})]})});var D=n(72954);let M=(0,s.PA)(function(e){let{postSlug:t}=e,{getPostListBySlug:n,getPostListById:s,dataLoaded:a}=(0,o.j6)(),d=e.contentItem;d&&(d=s(d.id)),d=d||t&&n(t)||void 0;let h=d?.children?.find(e=>"header"===e.purpose||"heading"===e.purpose)||{content:a?"Edit This Heading":"",textFormat:"MARKDOWN"},f=d?.children?.find(e=>"sub-header"===e.purpose||"sub-heading"===e.purpose),m=d?.children?.find(e=>"button-1"===e.purpose),g=d?.children?.find(e=>"button-2"===e.purpose),v=d?.children?.find(e=>"image"===e.purpose),b=d?.children?.find(e=>"background-image"===e.purpose),x=d?.styles?.find(e=>"hero-style"===e.name),_=x?.value,w="";return"full"===_?w="hero-style-full":"heading-only"===_&&(w="hero-style-heading-only"),(0,r.jsxs)(D.A,{as:"section",className:(0,y.A)("hero relative",e.className,w),editById:{id:d?.id??"",type:d?.type??void 0,webComponentName:e.webComponentName},"data-sentry-element":"EditableSection","data-sentry-component":"Hero","data-sentry-source-file":"Hero.tsx",children:[(0,r.jsx)(c.A,{contentItem:b,"data-sentry-element":"BackgroundMedia","data-sentry-source-file":"Hero.tsx"}),"heading-only"===_&&(0,r.jsx)("div",{className:"HeroOpacity absolute inset w-full h-full bg-[var(--group-short-hero-banner-background-color)] opacity-50"}),(0,r.jsxs)("div",{className:(0,y.A)("HeroContent relative","flex flex-col justify-start md:items-start flex-1","heading-only"===_&&"px-[2rem] md:px-[5rem]","text-left"),children:[h&&(0,r.jsx)("h1",{className:"hero-heading hero-header relative text-[var(--group-heading-text-color)]",children:(0,r.jsx)(i.A,{text:h.content,format:(0,u.xs)(h)})}),f?.content&&(0,r.jsx)("h2",{className:"hero-subheader",children:(0,r.jsx)(i.A,{text:f.content,format:(0,u.xs)(f)})}),(m?.label||g?.label)&&(0,r.jsxs)("div",{className:"buttons",children:[m?.label&&(0,r.jsx)(l(),{className:(0,y.A)("Button hero-button hero-button-1",p.Ay.actionButtonColor),href:(0,u.iY)(m)??"/",role:"button",children:m.label}),g?.label&&(0,r.jsx)(l(),{className:"Button hero-button hero-button-2",href:(0,u.iY)(g)??"/",children:g.label})]}),v?.photo&&(0,r.jsx)("img",{src:v.photo.url,alt:(0,u.NM)(v,`Image ${v.photo.id}`),className:"hero-image"})]})]})}),L=M,R={component:M,type:u.nz.Hero,editComponent:I,editLabel:"Hero",wrapWithEditable:!1}},93957:(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,{U:()=>r})}
3102,94293:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(37876),i=n(3768),o=n(72954),s=n(5811),a=n(44302),l=n(77162),u=n(49995),c=n(8832),d=n(42383),h=n(7794),p=n(73382);let f=(0,s.PA)(function(){let{page:e,notFound:t,canEdit:n,onAddClick:s,uriPath:f,cardStyle:m}=(0,h.A)();return f?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.A,{title:e?.title,"data-sentry-element":"WindowTitle","data-sentry-source-file":"CMSPage.tsx"}),(0,r.jsxs)(i.A,{"data-sentry-element":"MainContent","data-sentry-source-file":"CMSPage.tsx",children:[e&&e.content&&(0,r.jsx)(o.A,{editById:{id:e.id,type:p.nz.Page},className:(0,u.A)(m,"mx-2 lg-mx-0 p-4"),children:(0,r.jsx)(l.A,{text:e.content,format:(0,p.xs)(e)})}),t&&!e?.content&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.A,{}),n&&(0,r.jsx)(d.rA,{onClick:s,children:"Add page"})]})]})]}):null})},94410:e=>{"use strict";var t=function(e){var t,r,i;return!!(t=e)&&"object"==typeof t&&(r=e,"[object RegExp]"!==(i=Object.prototype.toString.call(r))&&"[object Date]"!==i&&r.$$typeof!==n)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function i(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var u,c,d=Array.isArray(n);return d!==Array.isArray(e)?r(n,l):d?l.arrayMerge(e,n,l):(c={},(u=l).isMergeableObject(e)&&o(e).forEach(function(t){c[t]=r(e[t],u)}),o(n).forEach(function(t){s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))||(s(e,t)&&u.isMergeableObject(n[t])?c[t]=(function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a})(t,u)(e[t],n[t],u):c[t]=r(n[t],u))}),c)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return a(e,n,t)},{})},e.exports=a},94510:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},94552:(e,t,n)=>{var r=n(84779),i=n(17099),o=n(36315);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},94587:(e,t,n)=>{"use strict";var r;n.d(t,{b:()=>r}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(r||(r={}))},94674:(e,t,n)=>{"use strict";n.d(t,{Al:()=>T,GG:()=>f,II:()=>M,Ko:()=>O,PV:()=>_,Rf:()=>v,U3:()=>b,Xe:()=>w,YO:()=>k,aU:()=>A,co:()=>d,g5:()=>I,h0:()=>g,hY:()=>E,kR:()=>C,mG:()=>c,mp:()=>h,rE:()=>D,rl:()=>y,s5:()=>N,tC:()=>S,yz:()=>j});var r=n(56508),i=n.n(r),o=n(39324),s=n.n(o),a=n(14330);let l=s()(),{publicRuntimeConfig:u}=l,c=2;function d({jwt:e,groupSlug:t,sessionId:n}){return{Accept:"application/json","Content-Type":"application/json","gf-web-version":u.release,...m(t),...p(e),...f(n)}}function h({jwt:e,groupSlug:t}){return{Accept:"application/json","content-type":"application/json",...m(t),...p(e)}}function p(e){return e?{Authorization:`Bearer ${e}`}:{}}function f(e){return e?{"x-gfsid":e}:{}}function m(e){return{"gf-group":e}}async function g(e,t,n,r){let i=w(e.status);if(t=t||(e=>e),"ok"!==i)return v(e);{let i,o;try{i=await x(e,t,n,r)}catch{}return{error:!1,data:i,pagination:o}}}async function y(e){if("ok"!==w(e.status))return v(e);{let t;try{t=await e.text()}catch{}return{error:!1,data:t}}}async function v(e){if("request-error"!==w(e.status))return{error:!0,status:e.status,serverError:!0};{let t=await e.json();return{error:!0,status:e.status,requestErrors:t.errors.map(e=>({title:e.detail||e.title}))}}}function b(e,t,n,r){let i=w(e.status);return(r=r||(e=>e),"ok"===i)?function(e,t,n,r){let i=function(e,t){if(t.errors){let n,r,i=null;if(t&&t.errors&&Array.isArray(t.errors)&&t.errors[0]){let e=t.errors[0];e.code&&(n=t.errors[0].code),e.message&&(r=t.errors[0].message)}let o=t.errors.map(e=>
3102{let t=e.message.match(/^(.* has invalid value) .*/),n=e.message,r=e.reason??null,i=e.code??null;return t&&(n=t[1]),{title:n,reason:r,code:i}});if(o[0]){let e=o[0];e.code&&(n=e.code),e.title&&(r=e.title),e.reason&&(i=e.reason)}return{code:n,error:!0,memberExpired:!!t.errors.find(e=>"unauthorized.inactive-member"===e.type),message:r,reason:i,serverError:!1,requestErrors:o,status:e.status}}return null}(e,t);if(i)return i;let o=_(t,n);return{error:!1,data:r?r(o):o}}(e,t,n,r):{error:!0,serverError:!0,requestErrors:[],status:e.status}}async function x(e,t,n,r){let i=await e.json(),o=await _(i,n,r);if(!t)return o;{let e;try{e=t(o)}catch(e){throw console.warn("Failed to decode data",e),e}return e}}function _(e,t,n){let r=n?e:e.data;return t&&(r=r[t]),r}function w(e){return e>=400&&e<=499?"request-error":e>=500?"server-error":e<200?"unexpected-status":e>=300&&e<=399?"unexpected-status":"ok"}async function k(e,t){let n={...t||{},url:e},{headers:r}=n;r&&r.Authorization&&(r={...r,Authorization:"[redacted]"},n={...n,headers:r}),u.loggingEnabled&&console.log("Core API call to",n);try{let n=await i()(e,t);return(0,a.nv)(n,e,t),n}catch(n){let t;if(console.warn("Failed to fetch",e,n),n instanceof TypeError){let e=`${n}`.match(/^TypeError: (.*)$/);t=e&&e[1]}if(t)throw new C(t,null,[]);throw n}}class C extends Error{constructor(e,t,n){super(e),this.status=t,this.errors=n}}function E(e){return S(e)+"/api"}function A(e){let t=[80,443].includes(e.port)?"":`:${e.port}`;return`${e.proto}://${e.host}${t}`}function S(e){return"localhost"===e.host?u.backendBaseUrl?u.backendBaseUrl:"http://localhost:4040":e.host.match(/^\d+\.\d+\.\d+\.\d+$/)?`http://${e.host}:4040`:u.backendBaseUrl?u.backendBaseUrl:`${e.proto}://${e.host}`}function T(e){if("localhost"===e.host){if(u.backendBaseUrl){let e=u.backendBaseUrl.replace("http://","ws://").replace("https://","wss://");return`${e}/socket`}return"ws://localhost:4040/socket"}if(e.host.match(/^\d+\.\d+\.\d+\.\d+$/))return`ws://${e.host}:4040/socket`;if(u.backendBaseUrl){let e=new URL(u.backendBaseUrl),t="http"===e.protocol?"ws":"wss";return`${t}://${e.host}/socket`}{let t="http"===e.proto?"ws":"wss";return`${t}://${e.host}/socket`}}function j(e){let{deployEnv:t}=l.publicRuntimeConfig,n=`https://d25r3a0ydizytj.cloudfront.net/${t}`,r=u.s3GroupObjectPrefix;return r&&(n=`${n}/${r}`),`${n}/${e.slug}`}async function N(e){let{backendBaseUrl:t,uriPath:n,filename:r,groupSlug:o,jwt:s}=e,a=`${t}/${n.replace(/^\//,"")}`,l={...m(o),...p(s)},u=await i()(a,{headers:l}),c=await u.blob(),d=URL.createObjectURL(c),h=document.createElement("a");h.href=d,h.download=r,document.body.appendChild(h),h.click(),document.body.removeChild(h)}function O(e){return!!(e.serverError||e.errors)}function I(e){if(e.serverError)return{error:!0,memberExpired:!1,message:e.serverError,reason:null,serverError:!0,requestErrors:[],status:400};if(void 0===e.errors)return null;let t=e.errors;if(0===t.length)return null;let n=t.map(e=>({title:e.message,code:e.code,detail:e.message,source:{pointer:e.fields?.[0]||""}}));return{error:!0,memberExpired:!1,reason:null,serverError:!!e.serverError,requestErrors:n,status:422}}function D(e){if(e.clientErrors&&e.clientErrors.length>0){let t=e.clientErrors.map(e=>({title:e.message,code:e.name}));return{error:!0,memberExpired:!1,message:e.message,reason:null,serverError:!1,requestErrors:t,status:400}}if(e.graphQLErrors&&e.graphQLErrors.length>0){let t=e.graphQLErrors.map(e=>({title:e.message,code:e.name}));return{error:!0,memberExpired:!1,message:e.message,reason:null,serverError:!1,requestErrors:t,status:400}}if(e.networkError)return{error:!0,memberExpired:!1,message:e.message,reason:null,serverError:!0,code:e.networkError.name,requestErrors:[]};if(e.protocolErrors&&e.protocolErrors.length>0){let t=e.protocolErrors.map(e=>({title:e.message}));return{error:!0,memberExpired:!1,message:e.message,reason:null,serverError:!0,requestErrors:t}}return{error:!0,memberExpired:!1,message:e.message,reason:null,serverError:!1,requestErrors:[]}}function M(e){return e.hasError?{error:!0,memberExpired:!1,message:e.errors[0]?.message,reason:null,serverError:!!e.serverError,requestErrors:e.errors.map(e=>({title:e.message,code:e.code})),status:400}:null}},94741:(e,t,n)=>{"use strict";n.d(t,{o:()=>d});var r=n(14232),i=n(85819),o=n(55494),s=n(39114),a=n(33556),l=n(38537),u=n(80229),c=n(94674);function d(e){let{source:t,onEmailComplete:n,askName:d,bottomText:h,rowLabel:p,onAccessToken:f,onLoggedIn:m,skipLogin:g,initialEmail:y,submitOnSix:v=!0}=e,[b,x]=(0,r.useState)(""),[_,w]=(0,r.useState)(null),[k,C]=(0,r.useState)(y||""),[E,A]=(0,r.useState)(""),[S,T]=(0,i.X)(o.a2),[j,N]=(0,r.useState)(""),O=(0,a.v)(),I=(0,l.kH)(),D=(0,r.useRef)(null),[M,L]=(0,i.X)(o.ir),[R,P]=(0,r.useState)(null),[F,B]=(0,i.X)(o.DO),[$,q]=(0,r.useState)(null),V=null;T.errors?V=(0,c.g5)(T):T.serverError?V={message:T.serverError.message,error:!0,serverError:!1,requestErrors:[]}:L.errors?V=(0,c.g5)(L):B.errors&&(V=(0,c.g5)(B));let z=T.loading||L.loading||B.loading,U=T.serverError?.graphQLErrors[0]?.code==="group.max_contacts";async function H(e,r){e?.preventDefault();let i=(r||b).trim();if(!i)return w("Please enter your email address."),!1;if(!i.match(s.GX))return w("Please enter a valid email address."),!1;w(null);let o={};return o={...o,email:i},t&&(o={...o,source:t}),E&&(o={...o,name:E.trim()}),!(await S({variables:{input:o}},"signupWithAuth2")).hasError&&(C(i),n&&n(i),!0)}
3102async function W(e){if(A(e.name),!R)throw Error("missing accessToken");if(!$)throw Error("missing account");let t={name:e.name};return null===$.emailOptInAnswer&&(t={...t,emailOptIn:(0,u.yG)(e.emailOptIn)}),!(await F({variables:{input:t},context:{headers:{Authorization:`Bearer ${R}`}}},"confirmAccount")).hasError}let G=(0,r.useCallback)(async e=>{let t=e||R;if(!t)return!1;O.login(t);let n=await I.loadUser();return!!n&&(m&&m(n,t),!0)},[R,O,I,m]),K=(0,r.useCallback)(async e=>{let n={confirmAccount:!0,email:k,authCode:e||j};"MARKETING_FORM"===t&&(n={...n,emailOptIn:!0});let r=await M({variables:{input:n}},"verifyMemberAuthCode2");if(r.errors)N("");else if(r.data){let{accessToken:e,member:t}=r.data;if(e&&(P(e),f&&t&&f(e,t)),!g&&e)return await G(e)?{success:!0,accessToken:e,account:t}:{success:!1,accessToken:null,account:null};if(t)return q(t),{success:!0,accessToken:e,account:t}}return{success:!1,accessToken:null,account:null}},[j,k,t,M,N,P,f,g,q,G]),J=(0,r.useCallback)(e=>{let t=e.target.value;if(N(t),v&&6===t.length)return K(t)},[v,K]);function Q(){w(null),T.reset(),L.reset(),B.reset()}return(0,r.useEffect)(()=>{k&&D.current&&D.current.focus()},[k]),{accessToken:R,account:$,apiError:V,askName:d,authCode:j,bottomText:h,codeRef:D,email:k,emailError:_,handleEmailChange:function(e){x(e.currentTarget.value.trim()),w(null)},handleNameChange:function(e){A(e.currentTarget.value)},handleSubmitEmail:H,handleVerifyMemberAuthCode:K,isCodePhase:!!k,isEmailPhase:!k,loading:z,login:G,maxContactsError:U,name:E,onAuthCodeChange:J,onEmailComplete:n,reset:function(){C(y||""),A(""),x(""),N(""),Q()},resetErrors:Q,rowLabel:p,saveName:W,signupWithAuthState:T,source:t,tempEmail:b,verifyMemberAuthCodeState:L,authCodeFormHook:{authCode:j,codeRef:D,onAuthCodeChange:J,verifyMemberAuthCodeState:L}}}},94806:(e,t,n)=>{var r=n(89226),i=n(27371),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;e.exports=s?function(e){return null==e?[]:r(s(e=Object(e)),function(t){return o.call(e,t)})}:i},94829:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(14232),o=n(82037),s=n(49995),a=n(23955),l=n(72569);let u=function(e){let{children:t,noClose:n,"data-testid":u}=e,c=(0,l.jz)(e.themeArea)===a.L.ADMIN?"bg-gf-green":"bg-[var(--group-accent)]",d="warning"===e.type?"bg-warning":c,h="warning"===e.type?"text-black":"text-white",p=e.textClass||h,f=`${d} rounded flex justify-between items-center px-2 py-1 ${p}`,m=`${f} ${e.className}`,[g,y]=(0,i.useState)(!0);return g?(0,r.jsxs)("div",{className:m,"data-testid":u,children:[t,n?null:(0,r.jsx)("div",{className:(0,s.A)("flex transition justify-end hover:text-black",p),children:(0,r.jsx)(o.Jn,{onClick:function(){e.onClose&&e.onClose(),y(!1)},textClass:" ",svgClass:"fill-current"})})]}):null}},94852:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(14232),i=n(80542).ol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function o(){var e=r.createContext[i];return e||(Object.defineProperty(r.createContext,i,{value:e=r.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},94879:(e,t,n)=>{let{hp2Builder:r}=n(82938),i=n(94410),o=n(24519),s=n(81862),a=n(42034),{BlockTextBuilder:l}=n(33885),u=n(76802),{limitedDepthRecursive:c,mergeDuplicatesPreferLast:d,get:h}=n(61388);n(85668);let p={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeOptions:{isAttributeValue:!1,strict:!1},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:0x1000000},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block"},{selector:"aside",format:"block"},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block"},{selector:"footer",format:"block"},{selector:"form",format:"block"},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block"},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block"},{selector:"nav",format:"block"},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block"},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:" \r\n\fâ",wordwrap:80},f=(e,t,n)=>
3102[...t],m=(e,t,n)=>e.some(e=>"object"==typeof e)?[...e,...t]:f(e,t,n);function g(e={}){(e=i(p,e,{arrayMerge:f,customMerge:e=>"selectors"===e?m:void 0})).formatters=Object.assign({},u,e.formatters),e.selectors=d(e.selectors,e=>e.selector),function(e){let t=e.selectors;if(e.tags){let n=Object.entries(e.tags).map(([e,t])=>({...t,selector:e||"*"}));t.push(...n)}function n(e,t,n){let r=t.pop();for(let n of t){let t=e[n];t||(t={},e[n]=t),e=t}e[r]=n}function r(r,i,o){if(void 0!==e[r])for(let s of t)s.format===i&&n(s,["options",o],e[r])}if(r("hideLinkHrefIfSameAsText","anchor","hideLinkHrefIfSameAsText"),r("ignoreHref","anchor","ignoreHref"),r("linkHrefBaseUrl","anchor","baseUrl"),r("noAnchorUrl","anchor","noAnchorUrl"),r("noLinkBrackets","anchor","noLinkBrackets"),r("linkHrefBaseUrl","image","baseUrl"),r("unorderedListItemPrefix","unorderedList","itemPrefix"),r("uppercaseHeadings","heading","uppercase"),r("uppercaseHeadings","table","uppercaseHeadings"),r("uppercaseHeadings","dataTable","uppercaseHeadings"),e.ignoreImage)for(let e of t)"image"===e.format&&(e.format="skip");if(e.singleNewLineParagraphs)for(let e of t)("paragraph"===e.format||"pre"===e.format)&&(n(e,["options","leadingLineBreaks"],1),n(e,["options","trailingLineBreaks"],1));if(e.baseElement){let t=e.baseElement;n(e,["baseElements","selectors"],Array.isArray(t)?t:[t])}for(let r of(void 0!==e.returnDomByDefault&&n(e,["baseElements","returnDomByDefault"],e.returnDomByDefault),t))"anchor"===r.format&&h(r,["options","noLinkBrackets"])&&n(r,["options","linkBrackets"],!1)}(e);let t=e.selectors.filter(e=>!e.format);if(t.length)throw Error("Following selectors have no specified format: "+t.map(e=>`\`${e.selector}\``).join(", "));let n=new a.DecisionTree(e.selectors.map(e=>[e.selector,e])).build(r),o=new a.DecisionTree(e.baseElements.selectors.map((e,t)=>[e,t+1])).build(r);function y(t){var n=t,r=e,i=o;let s=[];return c(r.limits.maxDepth,function(e,t){for(let n of t=t.slice(0,r.limits.maxChildNodes)){if("tag"!==n.type)continue;let t=i.pick1(n);if(t>0?s.push({selectorIndex:t,element:n}):n.children&&e(n.children),s.length>=r.limits.maxBaseElements)return}})(n),"occurrence"!==r.baseElements.orderBy&&s.sort((e,t)=>e.selectorIndex-t.selectorIndex),r.baseElements.returnDomByDefault&&0===s.length?n:s.map(e=>e.element)}let b=c(e.limits.maxDepth,v,function(t,n){n.addInline(e.limits.ellipsis||"")});return function(t){var r=t,i=e,o=n,a=y,u=b;let c=i.limits.maxInputLength;c&&r&&r.length>c&&(console.warn(`Input length ${r.length} is above allowed limit of ${c}. Truncating without ellipsis.`),r=r.substring(0,c));let d=new s.DomHandler;new s.Parser(d,{decodeEntities:!1}).parseComplete(r);let h=a(d.dom),p=new l(i,o);return u(h,p),p.toString()}}function y(e,t={}){return g(t)(e)}function v(e,t,n){if(!t)return;let r=n.options;for(let i of(t.length>r.limits.maxChildNodes&&(t=t.slice(0,r.limits.maxChildNodes)).push({data:r.limits.ellipsis,type:"text"}),t))switch(i.type){case"text":n.addInline(o.decode(i.data,r.decodeOptions));break;case"tag":{let t=n.picker.pick1(i);(0,r.formatters[t.format])(i,e,n,t.options||{})}}}e.exports={compile:g,convert:y,fromString:(e,t={})=>y(e,t),htmlToText:y}},94882:(e,t,n)=>{"use strict";n.d(t,{BN:()=>p,ER:()=>f,Ej:()=>g,RK:()=>y,UE:()=>x,UU:()=>m,cY:()=>h,jD:()=>v,mG:()=>b,we:()=>d});var r=n(80400),i=n(14232),o=n(98477),s="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function a(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=l(e);return Math.round(t*n)/n}function c(e){let t=i.useRef(e);return s(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:h,elements:{reference:p,floating:f}={},transform:m=!0,whileElementsMounted:g,open:y}=e,[v,b]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,_]=i.useState(d);a(x,d)||_(d);let[w,k]=i.useState(null),[C,E]=i.useState(null),A=i.useCallback(e=>
3102{e!==N.current&&(N.current=e,k(e))},[]),S=i.useCallback(e=>{e!==O.current&&(O.current=e,E(e))},[]),T=p||w,j=f||C,N=i.useRef(null),O=i.useRef(null),I=i.useRef(v),D=null!=g,M=c(g),L=c(h),R=i.useCallback(()=>{if(!N.current||!O.current)return;let e={placement:t,strategy:n,middleware:x};L.current&&(e.platform=L.current),(0,r.rD)(N.current,O.current,e).then(e=>{let t={...e,isPositioned:!0};P.current&&!a(I.current,t)&&(I.current=t,o.flushSync(()=>{b(t)}))})},[x,t,n,L]);s(()=>{!1===y&&I.current.isPositioned&&(I.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[y]);let P=i.useRef(!1);s(()=>(P.current=!0,()=>{P.current=!1}),[]),s(()=>{if(T&&(N.current=T),j&&(O.current=j),T&&j){if(M.current)return M.current(T,j,R);R()}},[T,j,R,M,D]);let F=i.useMemo(()=>({reference:N,floating:O,setReference:A,setFloating:S}),[A,S]),B=i.useMemo(()=>({reference:T,floating:j}),[T,j]),$=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=u(B.floating,v.x),r=u(B.floating,v.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...l(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,B.floating,v.x,v.y]);return i.useMemo(()=>({...v,update:R,refs:F,elements:B,floatingStyles:$}),[v,R,F,B,$])}let h=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),p=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),f=(e,t)=>({...(0,r.ER)(e),options:[e,t]}),m=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),g=(e,t)=>({...(0,r.Ej)(e),options:[e,t]}),y=(e,t)=>({...(0,r.RK)(e),options:[e,t]}),v=(e,t)=>
3102({...(0,r.jD)(e),options:[e,t]}),b=(e,t)=>({...(0,r.mG)(e),options:[e,t]}),x=(e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.UE)({element:n.current,padding:i}).fn(t):{}:n?(0,r.UE)({element:n,padding:i}).fn(t):{}}}))(e),options:[e,t]})},95024:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37876),i=n(21993),o=n(43982),s=n(5710);function a(e){let t=e.dateTime;"string"==typeof t&&(t=new Date(t));let n=new Date().getFullYear();return(0,r.jsx)("div",{className:`flex ${e.className?e.className:""}`,"data-sentry-component":"DayDateTimeOffset","data-sentry-source-file":"DayDateTimeOffset.tsx",children:t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"mr-4",children:t.getFullYear()===n?(0,o.Yq)(t,i.kg):(0,o.Yq)(t,"EEE, MMMM dd, yyyy")}),(0,r.jsx)(s.A,{dateTime:t,timezoneTextColorClass:e.timezoneTextColorClass})]})})}},95062:(e,t,n)=>{e.exports=n(79706)()},95305:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(37876),i=n(9664);function o({message:e,mutationInfo:t,mutationResult:n}){if(!t&&!n)return null;let o=t?.serverError??!1,s=t?.loading??n?.loading,a=t?.errors??(n?.error&&[n.error]);return!(t?.data??n?.data)||s||o||a&&a.length>0?null:(0,r.jsx)(i.A,{type:"info",onClose:function(){t?.reset(),n?.reset()},"data-sentry-element":"Flash","data-sentry-component":"AshMutationSuccess","data-sentry-source-file":"AshMutationSuccess.tsx",children:e})}},95392:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(54945),i=n(99468);function o(e){(0,i.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},95494:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))})},95885:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14232);function i(){let e=(0,r.useRef)(!1);return function(t){t&&!e.current&&(t.focus(),e.current=!0)}}},96071:(e,t,n)=>{let{InlineTextBuilder:r}=n(92165);class i{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}}class o extends i{constructor(e,t=null,n=1,i){super(t),this.leadingLineBreaks=n,this.inlineTextBuilder=new r(e,i),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre}}class s extends i{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre}}class a extends i{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre}}class l extends i{constructor(e,t=null,n){super(t),this.inlineTextBuilder=new r(e,n),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre}}class u extends i{constructor(e=null,t){super(e),this.transform=t}}e.exports={BlockStackItem:o,StackItem:i,TableCellStackItem:l,TableRowStackItem:a,TableStackItem:s,TransformerStackItem:u}},96231:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var r,i=n(14232),o=n(73915);function s(){let e,t=(e="undefined"==typeof document,(0,(r||(r=n.t(i,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[s,a]=i.useState(o._.isHandoffComplete);return s&&!1===o._.isHandoffComplete&&a(!1),i.useEffect(()=>{!0!==s&&a(!0)},[s]),i.useEffect(()=>o._.handoff(),[]),!t&&s}},96703:(e,t,n)=>{e.exports=n(43622)(n(19031),"WeakMap")},96815:(e,t,n)=>{"use strict";n.d(t,{K:()=>c});var r=n(73378),i=n(47737),o=n(31787),s=n(70553),a=n(58127);let l=(0,s.y)(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,o.e)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r,i={doc:e,d:t,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(n)},s=[(0,a.un)()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap(e=>e()).some(t=>t.contains(e))}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=(0,o.e)();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,s=null;t.addEventListener(e,"click",t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),o=e.querySelector(i);o&&!r(o)&&(s=o)}catch{}},!0),t.addEventListener(e,"touchstart",e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")}),t.addEventListener(e,"touchmove",e=>{if(e.target instanceof HTMLElement&&"INPUT"!==e.target.tagName)if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),t.add(()=>{var e;i!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{},{before({doc:e}){var t;let n=e.documentElement;
3102r=Math.max(0,(null!=(t=e.defaultView)?t:window).innerWidth-n.clientWidth)},after({doc:e,d:t}){let n=e.documentElement,i=Math.max(0,n.clientWidth-n.offsetWidth),o=Math.max(0,r-i);t.style(n,"paddingRight",`${o}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];s.forEach(({before:e})=>null==e?void 0:e(i)),s.forEach(({after:e})=>null==e?void 0:e(i))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});l.subscribe(()=>{let e=l.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&l.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&l.dispatch("TEARDOWN",n)}});var u=n(45933);function c(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let o=(0,r.P)(l),s=t?o.get(t):void 0;s&&s.count,(0,i.s)(()=>{if(!(!t||!e))return l.dispatch("PUSH",t,n),()=>l.dispatch("POP",t,n)},[e,t])}((0,u.S)(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}},96946:(e,t,n)=>{"use strict";n.d(t,{MM:()=>c,VY:()=>h,rU:()=>d});var r=n(14232),i=n(64671),o=n(47737),s=n(29203),a=n(35308),l=n(41612);let u=(0,r.createContext)(null);function c(){var e,t;return null!=(t=null==(e=(0,r.useContext)(u))?void 0:e.value)?t:void 0}function d(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,i._)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),o=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return r.createElement(u.Provider,{value:o},e.children)},[t])]}u.displayName="DescriptionContext";let h=Object.assign((0,l.FX)(function(e,t){let n=(0,r.useId)(),i=(0,a._)(),{id:c=`headlessui-description-${n}`,...d}=e,h=function e(){let t=(0,r.useContext)(u);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),p=(0,s.P)(t);(0,o.s)(()=>h.register(c),[c,h.register]);let f=i||!1,m=(0,r.useMemo)(()=>({...h.slot,disabled:f}),[h.slot,f]),g={ref:p,...h.props,id:c};return(0,l.Ci)()({ourProps:g,theirProps:d,slot:m,defaultTag:"p",name:h.name||"Description"})}),{})},97023:(e,t,n)=>{var r=n(64451),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}},97108:e=>{e.exports=function(e){return!!e&&"string"!=typeof e&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},97499:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(37876),i=n(78950),o=n(33881),s=n(42383),a=n(85819),l=n(73382),u=n(6195),c=n(10969),d=n(40715),h=n(14232),p=n(88992),f=n(23955),m=n(32290);let g=function({page:e,onClose:t,onSuccess:n}){let[g,y]=(0,h.useState)(null),[v,b]=(0,a.X)(u.yQ),{formState:x,handleSubmit:_,register:w,reset:k}=(0,p.mN)({defaultValues:{title:"",path:""}}),{errors:C}=x,E=(0,d.hu)(e?.pageType),A=(0,h.useContext)(m.M);(0,h.useEffect)(()=>{e&&k({title:(0,d.BF)(e.title||e.internalName),path:(0,d.r_)((0,l.HX)(e))})},[e,k]);let S=async t=>{e&&((await v({variables:{input:{sourceId:e.id,title:t.title,path:t.path}}},"clonePage")).hasError||(y(t.path),n()))};return(0,r.jsx)(m.M.Provider,{value:{...A,siteArea:f.L.ADMIN},children:(0,r.jsx)(i.A,{isOpen:null!==e,onClose:()=>{y(null),b?.reset(),t()},title:"Clone Web Page",children:g?(0,r.jsxs)("div",{className:"flex flex-col items-center gap-6 py-4 text-center",children:[(0,r.jsxs)("p",{className:"text-gray-700",children:[(0,r.jsx)("strong",{children:g})," has been created."]}),(0,r.jsxs)("p",{className:"text-sm text-gray-500",children:["To edit it, visit the page and press the"," ",(0,r.jsx)("strong",{children:"Edit Mode"})," button in the lower-bottom corner."]}),(0,r.jsx)(s.rA,{className:"min-w-[15rem]",onClick:()=>window.open(g,"_blank"),children:"Go to page"})]}):(0,r.jsxs)("form",{className:c.Ay.formClass,onSubmit:_(S),children:[(0,r.jsxs)("p",{className:"text-sm text-gray-500",children:["Copies ",(0,r.jsx)("strong",{children:e?.title||e?.internalName})," and everything on it to a new URL. The original is left alone."]}),(0,r.jsxs)(s.fh,{children:[(0,r.jsx)(s.Dk,{children:"Title"}),(0,r.jsx)(s.ks,{register:w("title",{required:"Title is required"}),autoFocus:!0}),(0,r.jsx)(s.Kw,{errors:C,name:"title"})]}),(0,r.jsxs)(s.fh,{children:[(0,r.jsx)(s.Dk,{children:"URL"}),(0,r.jsx)(s.ks,{register:w("path",{required:"URL is required",validate:e=>(0,d.Ic)(e,E)})}),(0,r.jsx)(s.Kw,{errors:C,name:"path"}),E===d.p$.Member&&(0,r.jsx)("p",{className:"text-sm text-gray-500",children:"This is a member page, so its copy stays under /members/pages/."})]}),(0,r.jsx)(o.A,{mutationInfo:b}),(0,r.jsx)(s.fh,{className:"flex justify-end pt-2",children:(0,r.jsx)(s.rA,{type:"submit",loading:b?.loading,disabled:b?.loading,children:"Clone page"})})]})})})}}
3102,97552:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(37876),i=n(48230),o=n.n(i),s=n(14232);let a=s.forwardRef(function({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M11.03 3.97a.75.75 0 010 1.06l-6.22 6.22H21a.75.75 0 010 1.5H4.81l6.22 6.22a.75.75 0 11-1.06 1.06l-7.5-7.5a.75.75 0 010-1.06l7.5-7.5a.75.75 0 011.06 0z",clipRule:"evenodd"}))});var l=n(49995);function u(e){let{href:t,label:n,onClick:i}=e,s=(0,l.A)("flex items-center gap-4 group",e.className),u=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"flex items-center justify-center rounded-full bg-white text-black w-10 min-w-10 h-10 min-y-10 translate-x-[4px] group-hover:shadow",children:(0,r.jsx)(a,{className:"w-6 h-6"})}),n&&(0,r.jsx)("span",{className:"breadcrumb-text",children:n})]});return i?(0,r.jsx)("button",{onClick:i,className:s,children:u}):t?(0,r.jsx)(o(),{href:t,className:s,"data-sentry-element":"Link","data-sentry-component":"BackButtonWithLabel","data-sentry-source-file":"BackButtonWithLabel.tsx",children:u}):null}},97574:(e,t,n)=>{"use strict";n.d(t,{EL:()=>l,S5:()=>s,aL:()=>o,hk:()=>a});var r=n(86191),i=n(24447);let o=["contentType","id","url","thumbUrl"],s=` 3103 contentType 3104 id 3105 info { 3106 width 3107 height 3108 } 3109 url 3110 thumbUrl 3111 thumbInfo { 3112 width 3113 height 3114 } 3115`,a=(0,r.J1)` 3116 query SearchEventImages($query: String, $limit: Int) { 3117 searchEventImages(query: $query, limit: $limit) { 3118 results { 3119 id 3120 url 3121 thumbUrl 3122 regularInfo { 3123 width 3124 height 3125 } 3126 } 3127 } 3128 } 3129`,l=(0,r.J1)` 3130 mutation UpdatePhotoMedia($id: ID!, $input: UpdatePhotoMediaInput!) { 3131 updatePhotoMedia(id: $id, input: $input) { 3132 result { 3133 id 3134 mediaType 3135 url 3136 videoUrl 3137 } 3138 ${i.VE} 3139 } 3140 } 3141`},97791:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},97922:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var r=n(7784);let i=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||i[0]===e.target)return;let t=e.target;t=t.closest(r.Uo),i.unshift(null!=t?t:e.target),(i=i.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})},98143:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,_l:()=>c});var r=n(37876),i=n(49995),o=n(13220),s=n(54587),a=n.n(s),l=n(89681);let u=function({logoType:e,className:t}){let n=(0,o.Jc)(),s="FOOTER"===e?n?.logos.footerLogo:n?.logos.defaultLogo,u="FOOTER"===e?n?.logos.footerLogoInfo:n?.logos.defaultLogoInfo;return s?(u=u?(0,l.H)(u,150):{width:150,height:150},(0,r.jsx)(a(),{src:s,alt:`${n.name} logo`,className:(0,i.A)("Logo",t),width:u.width,height:u.height,sizes:"(max-width: 300px) 100vw, 150px","data-sentry-element":"Image","data-sentry-component":"Logo","data-sentry-source-file":"Logo.tsx"})):(console.warn("No logo found for logoType",e),null)},c=[{key:"logoType",type:"enum",enumOptions:[{value:"DEFAULT",label:"Default"},{value:"FOOTER",label:"Footer"}]}]},98311:(e,t,n)=>{let r=n(80894),i={};for(let e of Object.keys(r))i[r[e]]=e;let o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(let t of(e.exports=o,Object.keys(o))){if(!("channels"in o[t]))throw Error("missing channels property: "+t);if(!("labels"in o[t]))throw Error("missing channel labels property: "+t);if(o[t].labels.length!==o[t].channels)throw Error("channel and label counts mismatch: "+t);let{channels:e,labels:n}=o[t];delete o[t].channels,delete o[t].labels,Object.defineProperty(o[t],"channels",{value:e}),Object.defineProperty(o[t],"labels",{value:n})}o.rgb.hsl=function(e){let t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.min(n,r,i),s=Math.max(n,r,i),a=s-o;s===o?t=0:n===s?t=(r-i)/a:r===s?t=2+(i-n)/a:i===s&&(t=4+(n-r)/a),(t=Math.min(60*t,360))<0&&(t+=360);let l=(o+s)/2;return[t,100*(s===o?0:l<=.5?a/(s+o):a/(2-s-o)),100*l]},o.rgb.hsv=function(e){let t,n,r,i,o,s=e[0]/255,a=e[1]/255,l=e[2]/255,u=Math.max(s,a,l),c=u-Math.min(s,a,l),d=function(e){return(u-e)/6/c+.5};return 0===c?(i=0,o=0):(o=c/u,t=d(s),n=d(a),r=d(l),s===u?i=r-n:a===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},o.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2];return[o.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},o.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]}
3141,o.rgb.keyword=function(e){let t,n=i[e];if(n)return n;let o=1/0;for(let n of Object.keys(r)){let i=r[n],s=(e[0]-i[0])**2+(e[1]-i[1])**2+(e[2]-i[2])**2;s<o&&(o=s,t=n)}return t},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?((t+.055)/1.055)**2.4:t/12.92)+.3576*(n=n>.04045?((n+.055)/1.055)**2.4:n/12.92)+.1805*(r=r>.04045?((r+.055)/1.055)**2.4:r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},o.rgb.lab=function(e){let t=o.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return n/=95.047,r/=100,i/=108.883,[116*(r=r>.008856?r**(1/3):7.787*r+16/116)-16,500*((n=n>.008856?n**(1/3):7.787*n+16/116)-r),200*(r-(i=i>.008856?i**(1/3):7.787*i+16/116))]},o.hsl.rgb=function(e){let t,n,r,i=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[r=255*s,r,r];t=s<.5?s*(1+o):s+o-s*o;let a=2*s-t,l=[0,0,0];for(let e=0;e<3;e++)(n=i+-(1/3*(e-1)))<0&&n++,n>1&&n--,r=6*n<1?a+(t-a)*6*n:2*n<1?t:3*n<2?a+(t-a)*(2/3-n)*6:a,l[e]=255*r;return l},o.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;let s=(r+n)/2;return[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*s]},o.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,s];case 1:return[a,r,s];case 2:return[s,r,l];case 3:return[s,a,r];case 4:return[l,s,r];case 5:return[r,s,a]}},o.hsv.hsl=function(e){let t,n,r=e[0],i=e[1]/100,o=e[2]/100,s=Math.max(o,.01);n=(2-i)*o;let a=(2-i)*s;return[r,100*(t=(t=i*s/(a<=1?a:2-a))||0),100*(n/=2)]},o.hwb.rgb=function(e){let t,n,r,i,o=e[0]/360,s=e[1]/100,a=e[2]/100,l=s+a;l>1&&(s/=l,a/=l);let u=Math.floor(6*o),c=1-a;t=6*o-u,(1&u)!=0&&(t=1-t);let d=s+t*(c-s);switch(u){default:case 6:case 0:n=c,r=d,i=s;break;case 1:n=d,r=c,i=s;break;case 2:n=s,r=c,i=d;break;case 3:n=s,r=d,i=c;break;case 4:n=d,r=s,i=c;break;case 5:n=c,r=s,i=d}return[255*n,255*r,255*i]},o.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},o.xyz.rgb=function(e){let t,n,r,i=e[0]/100,o=e[1]/100,s=e[2]/100;return t=(t=3.2406*i+-1.5372*o+-.4986*s)>.0031308?1.055*t**(1/2.4)-.055:12.92*t,n=(n=-.9689*i+1.8758*o+.0415*s)>.0031308?1.055*n**(1/2.4)-.055:12.92*n,r=(r=.0557*i+-.204*o+1.057*s)>.0031308?1.055*r**(1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},o.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,[116*(n=n>.008856?n**(1/3):7.787*n+16/116)-16,500*((t=t>.008856?t**(1/3):7.787*t+16/116)-n),200*(n-(r=r>.008856?r**(1/3):7.787*r+16/116))]},o.lab.xyz=function(e){let t,n,r,i=e[0],o=e[1],s=e[2];t=o/500+(n=(i+16)/116),r=n-s/200;let a=n**3,l=t**3,u=r**3;return n=(a>.008856?a:(n-16/116)/7.787)*100,[t=(l>.008856?l:(t-16/116)/7.787)*95.047,n,r=(u>.008856?u:(r-16/116)/7.787)*108.883]},o.lab.lch=function(e){let t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},o.lch.lab=function(e){let t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},o.rgb.ansi16=function(e,t=null){let[n,r,i]=e,s=null===t?o.rgb.hsv(e)[2]:t;if(0===(s=Math.round(s/50)))return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===s&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];let n=(~~(e>50)+1)*.5;return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){let t;if(e>=232){let t=(e-232)*10+8;return[t,t,t]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));let r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(e){let t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),s=Math.min(Math.min(n,r),i),a=o-s;return t=a<1?s/(1-a):0,[360*((a<=0?0:o===n?(r-i)/a%6:o===r?2+(i-n)/a:4+(n-r)/a)/6%1),100*a,100*t]},o.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},o.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];let i=[0,0,0],o=t%1*6,s=o%1,a=1-s,l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]},o.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},o.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},o.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},o.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},98345:(e,t,n)=>{"use strict";n.d(t,{C:()=>N,A:()=>j});var r=n(37876),i=n(44302),o=n(5811),s=n(38537),a=n(73382),l=n(36568),u=n(49995),c=n(37483),d=n(64628),h=n(60530),p=n(14232),f=n(88992),m=n(42383),g=n(70544),y=n(22611),v=n(47027),b=n(13220),x=n(39114),_=n(10969),w=n(72569),k=n(31695),C=n(99082);let E=[{id:"header",name:"Header",description:"Page header content"}
3141,{id:"main",name:"Main",description:"Main page content"},{id:"footer",name:"Footer",description:"Page footer content"}],A=(0,o.PA)(function(e){let{initialTitle:t=""}=e,n=(0,w.Eh)(),i=(0,_.CI)(n),o=(0,s.uV)(),l=(0,s.MM)(),{cursor:c}=(0,g.f)();(0,p.useRef)(o).current=o;let d=(0,b.IG)(),h=!!d&&(0,x.hN)(d,"developer"),A=(0,f.mN)({defaultValues:{classIdentifier:"",title:t,uri:""}}),S=(0,p.useRef)(A);S.current=A;let{register:T,formState:j}=A,N=(0,k.X)({form:A,formToParams:function(e,t){let n=e.classIdentifier.trim()!==((0,a.dE)(t)||"");return{title:e.title,path:e.uri,type:a.nz.Page,pageType:a.g6.Standalone,...n?{attributes:(0,a.AL)(t,e.classIdentifier)}:{}}},populateForm:function(e){S.current.reset({classIdentifier:(0,a.dE)(e)||"",title:e.title,uri:(0,a.HX)(e)??""})},onClose:e.onClose}),{loading:O,handleSubmit:I,cancelProps:D,contentItem:M}=N;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("form",{onSubmit:I,className:"space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-medium mb-3",children:"Page Components"}),(0,r.jsx)("div",{className:"space-y-2",children:E.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>(e=>{let t=(0,a.x9)(M,e,o);t&&M&&l.open(t.id,{path:[...c?.path??[],(0,a.bN)(M)]})})(e.id),className:(0,u.A)("block w-full text-left","p-4 border rounded-lg cursor-pointer transition-colors",i.cardLineColor,i.cardTintedHoverColor,i.accentBorderHoverColor),children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-medium",children:e.name}),(0,r.jsx)("p",{className:(0,u.A)("text-sm",i.cardMutedTextColor),children:e.description})]}),(0,r.jsx)("div",{className:i.cardMutedTextColor,children:(0,r.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]})},e.id))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"title",className:"block text-sm font-medium mb-2",children:"Window/Tab Title of Page"}),(0,r.jsx)(m.ks,{id:"title",placeholder:"Enter page window title...",register:T("title"),"data-sentry-element":"TextInput","data-sentry-source-file":"StandalonePageEdit.tsx"})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"uri",className:"block text-sm font-medium mb-2",children:["Page URI",(0,r.jsx)(y.A,{"data-sentry-element":"RequiredFieldAsterisk","data-sentry-source-file":"StandalonePageEdit.tsx"})]}),(0,r.jsx)(m.ks,{id:"uri",placeholder:"Enter page URI...",register:T("uri",{required:!0}),"data-sentry-element":"TextInput","data-sentry-source-file":"StandalonePageEdit.tsx"}),(0,r.jsx)(m.Kw,{name:"uri",errors:j.errors,"data-sentry-element":"ErrorMessage","data-sentry-source-file":"StandalonePageEdit.tsx"})]}),h&&(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"classIdentifier",className:"block text-sm font-medium mb-2",children:"Class identifier (developer only)"}),(0,r.jsxs)(v.A,{backgroundType:w.Sh.PRIMARY_CARD,as:"div",className:"text-sm mb-2",children:["Gives this page a CSS class so the group stylesheet can target it. An identifier of ",(0,r.jsx)("code",{children:"event-series"})," renders as"," ",(0,r.jsx)("code",{children:"page-event-series"})," on the page's outermost element. Share one identifier across pages that should look the same. It must start with a letter, followed by letters, digits or the minus sign (",(0,r.jsx)("code",{children:"-"}),")."]}),(0,r.jsx)(m.ks,{id:"classIdentifier",placeholder:"Enter class identifier...",register:T("classIdentifier",{pattern:/^[a-zA-Z][a-zA-Z0-9-]*$/})}),(0,r.jsx)(m.Kw,{name:"classIdentifier",errors:j.errors,messages:{pattern:"invalid character pattern"}})]}),(0,r.jsx)(C.D,{usingContentEdit:N,successMessage:"Page details saved","data-sentry-element":"ApiResults","data-sentry-source-file":"StandalonePageEdit.tsx"}),(0,r.jsx)(m.fC,{saving:O,cancel:D,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"StandalonePageEdit.tsx",children:"Save Changes"})]})})});var S=n(27527);
3141function T(e){let{contentItem:t}=e,n=(0,s.uV)(),o=t.children?.find(e=>"header"===e.purpose),p=(0,a.Ql)(o,n),f=t.children?.find(e=>"footer"===e.purpose),m=(0,a.Ql)(f,n),g=t.children?.find(e=>"main"===e.purpose),y=(0,a.Ql)(g,n);return(0,r.jsxs)(d.Ay,{contentItem:t,"data-sentry-element":"ContentPathProvider","data-sentry-component":"StandalonePage","data-sentry-source-file":"StandalonePage.tsx",children:[(0,r.jsx)(i.A,{title:t?.title,"data-sentry-element":"WindowTitle","data-sentry-source-file":"StandalonePage.tsx"}),p&&p.type===a.nz.HeaderWithHero&&(0,r.jsx)(c.A,{contentItem:p,type:a.nz.HeaderWithHero,className:(0,u.A)("header-with-hero",t.purpose)}),y&&(0,r.jsx)(h.A,{contentItem:y}),m&&!(0,l.qE)()&&(0,r.jsx)(c.A,{contentItem:m,type:a.nz.Footer})]})}let j=(0,o.PA)(T),N={component:T,type:a.nz.Page,pageType:a.g6.Standalone,editComponent:A,editLabel:"Page",rootUp:S.N,wrapWithEditable:!1}},98409:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(37876),i=n(14232),o=n(18334),s=n(93131),a=n.n(s),l=n(76212),u=n(41704),c=n(82037),d=n(42383);let h=i.createRef();function p(e){let{file:t,imageData:n,onReadyToSave:s,fileInputRef:p,themeArea:f}=e,[m,g]=(0,i.useState)(!1),[y,v]=(0,i.useState)(0),[b,x]=(0,i.useState)(),[_,w]=(0,i.useState)(!1),[k,C]=(0,i.useState)(0),[E,A]=(0,i.useState)(""),[S,T]=(0,i.useState)(1),j=(0,i.useRef)(null),N=(0,i.useRef)(n?{url:n.url,info:n.info}:void 0);N.current=n;let O=(0,i.useCallback)(e=>{let t=()=>{let t=N.current,n=t?.info,r=n?.width||e.naturalWidth,i=n?.height||e.naturalHeight;r>i&&C((300-300*i/r)/2)};return e.addEventListener("load",t),t},[]);async function I(){let e,r,i,a;if(j.current&&(e=j.current.getCroppingRect()),!t)throw Error("finish(): file not set");if(e){let t=h.current;r=n?.info?.width||t.naturalWidth;let o=(i=n?.info?.height||t.naturalHeight)*e.height,s=r*e.width,l=i*e.y,u=r*e.x;a={top:l,right:u+s,bottom:l+o,left:u}}else{let e=p.current,t=N.current,n=t?.info,o=Math.min(r=n?.width||e.naturalWidth,i=n?.height||e.naturalHeight)/2,s=i/2,l=r/2;a={top:s-o,right:l+o,bottom:s+o,left:l-o}}return o.o("PhotoEdit finish()",{cropBox:b,file:{name:t.name,size:t.size,type:t.type},updatedCropBox:a,imageNatural:{width:r,height:i}}),s&&s(t,a,y)}(0,i.useEffect)(()=>{let e=h.current,t=()=>void 0;if(e&&!_){let n=O(e);t=()=>e.removeEventListener("load",n),w(!0)}if(!m){let e=h.current,t=n?.url;if(t)A(t);else{let t=p&&p.current,n=t&&t.files[0];if(e&&n){let t=new window.FileReader;t.onload=function(t){e.setAttribute("src",t.target.result),A(t.target.result)},t.readAsDataURL(n)}}g(!0)}return()=>t()},[_,m,p,n,O]),(0,i.useEffect)(()=>{g(!1),v(0),x(void 0),w(!1),C(0)},[t]);let D=`${90*y}deg`;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"my-8",children:(0,r.jsx)("img",{className:"image2 mx-auto",ref:h,alt:"Hidden image for processing",src:"",width:0,height:0,sizes:"300px",style:{maxHeight:"300px",rotate:`${D}`,marginTop:`${k}px`,display:"none"}})}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(a(),{image:E,ref:function(e){j.current=e},width:250,height:250,border:50,color:[255,255,255,1],scale:S,rotate:0,"data-sentry-element":"AvatarEditor","data-sentry-source-file":"PhotoEdit.tsx"})}),(0,r.jsx)("div",{className:"flex justify-center mb-4",children:(0,r.jsxs)("div",{className:"flex flex-col items-stretch gap-6 p-2",children:[(0,r.jsx)("input",{type:"range",value:S.toString(),onChange:function(e){T(parseFloat(e.target.value))},min:1,max:2,step:.01}),(0,r.jsxs)("div",{className:"flex justify-between w-[350px]",children:[(0,r.jsxs)(c.tA,{onClick:e.onCancel,type:"button",themeArea:f,"data-sentry-element":"SecondaryButton","data-sentry-source-file":"PhotoEdit.tsx",children:[(0,r.jsx)(u.A,{className:"w-3 h-3","data-sentry-element":"CrossIcon","data-sentry-source-file":"PhotoEdit.tsx"}),"Cancel"]}),(0,r.jsxs)(d.rA,{onClick:I,type:"button",themeArea:f,"data-sentry-element":"ActionButton","data-sentry-source-file":"PhotoEdit.tsx",children:[(0,r.jsx)(l.A,{className:"w-4 h-4","data-sentry-element":"CheckIcon","data-sentry-source-file":"PhotoEdit.tsx"}),"Attach"]})]})]})})]})}var f=n(79560),m=n(1815),g=n(94829),y=n(13220),v=n(78950),b=n(22767
3141);function x(e){let{allowEdit:t=!0,jwt:n,label:s,onUpload:a,onLoadingStatusChange:l,themeArea:u}=e,c=void 0!==e.disabled&&e.disabled,h=i.createRef(),[x,_]=(0,i.useState)(),[w,k]=(0,i.useState)(),[C,E]=(0,i.useState)(null),[A,S]=(0,i.useState)(),[T,j]=(0,i.useState)(),N={...(0,y.QU)(),jwt:n};async function O(e,t,n){if(k(void 0),h.current&&(h.current.value=""),t){let{top:e,right:r,bottom:i,left:s}=t;("number"!=typeof e||"number"!=typeof r||"number"!=typeof i||"number"!=typeof s||"number"!=typeof n&&void 0!==n)&&o.wd("Invalid upload params",{extra:{cropBox:t,rotationAmount:n}})}try{S(!0),l&&l(!0);let{url:r,photoId:i,thumbInfo:o,regularInfo:s,fullresInfo:u}=await (0,m.wK)(N,{file:e,cropBox:t,rotationAmount:n});_(void 0),a&&a({photoUrl:r,photoId:i,thumbInfo:o,regularInfo:s,fullresInfo:u}),S(!1),l&&l(!1)}catch(e){S(!1),l&&l(!1),k("Error uploading photo"),console.warn("Error uploading photo",e)}}async function I(e){try{S(!0),l&&l(!0);let t=await (0,m.wK)(N,{file:e});return S(!1),l&&l(!1),t}catch(e){return S(!1),l&&l(!1),k("Error uploading photo"),console.warn("Error uploading photo",e),!1}}async function D(e){_(e);let n=await I(e);if(!n)return!1;let r={url:n.fullresUrl,info:n.fullresInfo};return j(r),t||await O(e),r}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.rA,{type:"button",onClick:function(){h.current&&h.current.click()},className:"PhotoSelectButton mr-2",disabled:A||c,themeArea:u,"data-sentry-element":"ActionButton","data-sentry-source-file":"PhotoUpload.tsx",children:s||"Select a photo..."}),w&&(0,r.jsxs)(g.A,{type:"warning",className:"mt-2",children:[" ",w," "]}),C&&(0,r.jsx)(g.A,{type:"warning",className:"mt-2",onClose:()=>E(null),children:C}),(0,r.jsx)(f.A,{onChange:D,className:"hidden",inputRef:h,onError:e=>E(e),"data-sentry-element":"FileInput","data-sentry-source-file":"PhotoUpload.tsx"}),(0,r.jsx)(v.A,{"data-testid":"photo-upload-modal",isOpen:x&&!A&&t||!1,onClose:()=>_(void 0),contentStyle:{top:"1em",bottom:"1em",marginLeft:"auto",marginRight:"auto"},"data-sentry-element":"SimpleModal","data-sentry-source-file":"PhotoUpload.tsx",children:(0,r.jsx)("div",{children:(0,r.jsx)(p,{imageData:T,file:x,fileInputRef:h,onCancel:function(){_(void 0),h.current&&(h.current.value="")},onReadyToSave:O,themeArea:u,"data-sentry-element":"PhotoEdit","data-sentry-source-file":"PhotoUpload.tsx"})})}),A&&(0,r.jsx)(b.A,{})]})}},98496:(e,t,n)=>{"use strict";n.d(t,{Ee:()=>_,ZL:()=>w,k2:()=>b});var r=n(14232),i=n(98477),o=n(64671),s=n(47737),a=n(86941),l=n(44884),u=n(96231),c=n(29203),d=n(11303),h=n(73915),p=n(41612);let f=r.Fragment,m=(0,p.FX)(function(e,t){let n=(0,r.useRef)(null),o=(0,c.P)((0,c.a)(e=>{n.current=e}),t),m=(0,l.g)(n),g=function(e){let t=(0,d.S)(),n=(0,r.useContext)(y),i=(0,l.g)(e),[o,s]=(0,r.useState)(()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(h._.isServer)return null;let r=null==i?void 0:i.getElementById("headlessui-portal-root");if(r)return r;if(null===i)return null;let o=i.createElement("div");return o.setAttribute("id","headlessui-portal-root"),i.body.appendChild(o)});return(0,r.useEffect)(()=>{null!==o&&(null!=i&&i.body.contains(o)||null==i||i.body.appendChild(o))},[o,i]),(0,r.useEffect)(()=>{t||null!==n&&s(n.current)},[n,s,t]),o}(n),[b]=(0,r.useState)(()=>{var e;return h._.isServer?null:null!=(e=null==m?void 0:m.createElement("div"))?e:null}),x=(0,r.useContext)(v),_=(0,u.g)();(0,s.s)(()=>{!g||!b||g.contains(b)||(b.setAttribute("data-headlessui-portal",""),g.appendChild(b))},[g,b]),(0,s.s)(()=>{if(b&&x)return x.register(b)},[x,b]),(0,a.X)(()=>{var e;g&&b&&(b instanceof Node&&g.contains(b)&&g.removeChild(b),g.childNodes.length<=0&&(null==(e=g.parentElement)||e.removeChild(g)))});let w=(0,p.Ci)();return _&&g&&b?(0,i.createPortal)(w({ourProps:{ref:o},theirProps:e,slot:{},defaultTag:f,name:"Portal"}),b):null}),g=r.Fragment,y=(0,r.createContext)(null),v=(0,r.createContext)(null);function b(){let e=(0,r.useContext)(v),t=(0,r.useRef)([]),n=(0,o._)(n=>(t.current.push(n),e&&e.register(n),()=>i(n))),i=(0,o._)(n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)}),s=(0,r.useMemo)(()=>({register:n,unregister:i,portals:t}),[n,i,t]);return[t,(0,r.useMemo)(()=>function({children:e}){return r.createElement(v.Provider,{value:s},e)},[s])]}let x=(0,p.FX)(function(e,t){let n=(0,c.P)(t),{enabled:i=!0,...o}=e,s=(0,p.Ci)();return i?r.createElement(m,{...o,ref:n}):s({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:f,name:"Portal"})}),_=(0,p.FX)(function(e,t){let{target:n,...i}=e,o={ref:(0,c.P)(t)},s=(0,p.Ci)();return r.createElement(y.Provider,{value:n},s({ourProps:o,theirProps:i,defaultTag:g,name:"Popover.Group"}))}),w=Object.assign(x,{Group:_})},98506:(e,t,n)=>
3141{var r=n(40087),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},98825:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},98857:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(37876),i=n(78950),o=n(33881),s=n(14668),a=n(85819),l=n(6195),u=n(23955),c=n(82037),d=n(32290),h=n(14232);let p=function({page:e,onClose:t,onSuccess:n}){let[p,f]=(0,a.X)(l.bQ),m=(0,h.useContext)(d.M),g=async()=>{e&&((await p({variables:{id:e.id}},"destroyContentItem2")).hasError||n())};return(0,r.jsx)(d.M.Provider,{value:{...m,siteArea:u.L.ADMIN},children:(0,r.jsx)(i.A,{isOpen:null!==e,onClose:t,title:"Delete Web Page",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("p",{children:["Are you sure you want to delete"," ",(0,r.jsx)("strong",{children:e?.title||e?.internalName}),"?"]}),(0,r.jsx)(o.A,{mutationInfo:f}),(0,r.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,r.jsx)(s.A,{onClick:t,className:"grow",children:"Cancel"}),(0,r.jsx)(c.et,{onClick:g,loading:f?.loading,disabled:f?.loading,className:"grow",children:"Delete"})]})]})})})}},99082:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(37876),i=n(33881),o=n(26975),s=n(94829);function a(e){let{usingContentEdit:t,successMessage:n}=e,{contentItemError:a,upsertContentItemInfo:l}=t,u=!!function(e){if(!e)return null;let t=Object.keys(e)[0];return e[t]?.result??null}(l.data)&&!l.errors?.length&&!l.serverError;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.A,{error:a,"data-sentry-element":"ApolloApiError","data-sentry-source-file":"ApiResults.tsx"}),(0,r.jsx)(i.A,{mutationInfo:l,"data-sentry-element":"AshMutationErrors","data-sentry-source-file":"ApiResults.tsx"}),u&&(0,r.jsx)(s.A,{children:n||"Saved"})]})}},99289:(e,t,n)=>{"use strict";function r(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let i=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,r),i}n.d(t,{Y:()=>r})},99324:(e,t,n)=>{var r=n(80894),i=n(44538),o=Object.hasOwnProperty,s=Object.create(null);for(var a in r)o.call(r,a)&&(s[r[a]]=a);var l=e.exports={to:{},get:{}};function u(e,t,n){return Math.min(Math.max(t,e),n)}function c(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,i,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=0,i=t[2],t=t[1];n<3;n++){var a=2*n;s[n]=parseInt(t.slice(a,a+2),16)}i&&(s[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(n=0,i=(t=t[1])[3];n<3;n++)s[n]=parseInt(t[n]+t[n],16);i&&(s[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)s[n]=parseInt(t[n+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else if(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)s[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else if(!(t=e.match(/^(\w+)$/)))return null;else return"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((s=r[t[1]])[3]=1,s):null;for(n=0;n<3;n++)s[n]=u(s[n],0,255);return s[3]=u(s[3],0,1),s},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=i(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=i(arguments);
3141return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},99410:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,W:()=>a});var r=n(14232),i=n(92782),o=n(23955),s=n(72569);let a="__sort-end-zone__";function l({onReorder:e,onInsert:t,themeArea:n,cursorPointer:l}){let u=(0,s.jz)(n),{sortable:c,getItemClass:d}=(0,i.A)({onDrop:e,themeArea:u,cursorPointer:l}),h=(0,r.useRef)(null),[p,f]=(0,r.useState)(null),[m,g]=(0,r.useState)(null),y=(0,r.useRef)(null),[v,b]=(0,r.useState)(!1),x=(0,r.useRef)(null),_=(0,r.useRef)(!1),[w,k]=(0,r.useState)(null),C=(0,r.useRef)(null);function E(){w&&k(null)}function A(){return u===o.L.ADMIN?"border !border-gf-green":"border !border-[var(--group-accent)]"}function S(e){var t;if(!h.current&&!y.current)return;let n=e.touches[0];if(!n)return;if(!_.current){let e=x.current;if(!e||8>Math.hypot(n.clientX-e.x,n.clientY-e.y))return;_.current=!0,y.current&&b(!0)}e.preventDefault();let r=h.current?(t=h.current,N().find(e=>(e.dataset.sortItemId||e.id)===t)??null):null;r&&(r.style.pointerEvents="none");let i=document.elementFromPoint(n.clientX,n.clientY);r&&(r.style.pointerEvents="");let o=j(i);o?o!==m&&g(o):m&&!function(e,t){let n=C.current;if(!n)return!1;let r=n.getBoundingClientRect();return e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}(n.clientX,n.clientY)&&g(null)}function T(e){let t=e.touches[0];x.current=t?{x:t.clientX,y:t.clientY}:null,_.current=!1}function j(e){let t=e;for(;t&&!t.dataset?.sortItem;)t=t.parentElement;return t&&(t.dataset.sortItemId||t.id)||null}function N(){return Array.from((C.current??document).querySelectorAll("[data-sort-item]"))}function O(){return N().map(e=>e.dataset.sortItemId||e.id).filter(e=>e!==a)}function I(e){let t=O();if(!e)return t.length;let n=t.indexOf(e);return -1===n?t.length:n}function D(){y.current=null,x.current=null,_.current=!1,b(!1),g(null),k(null)}function M(){h.current=null,x.current=null,_.current=!1,f(null),g(null),k(null)}function L(){let t=h.current,n=_.current;if(M(),!n||!t||!m||t===m)return;let r=O(),i=r.indexOf(t),o=r.indexOf(m);if(-1===i||-1===o)return;let s=[...r],[a]=s.splice(i,1);s.splice(o,0,a),e(s)}function R(){let e=y.current,n=_.current;D(),n&&e&&m&&t&&t(e,I(m))}function P(e){if(!y.current)return void c.onDragOver(e);e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy",v||b(!0);let t=j(e.target);t&&t!==m&&g(t)}function F(e){if(!y.current)return void c.onDrop(e);e.preventDefault(),e.stopPropagation();let n=y.current,r=j(e.target);D(),t&&t(n,I(r))}return(0,r.useEffect)(()=>(document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("mouseup",E),()=>{document.removeEventListener("touchmove",S),document.removeEventListener("mouseup",E)})),{listRef:C,dragProps:{onDragOver:P,onDrop:F},containerProps:{onDragOver:function(e){y.current&&(e.preventDefault(),e.dataTransfer.dropEffect="copy",v||b(!0))},onDrop:function(e){if(!y.current)return;e.preventDefault();let n=y.current;D(),t&&t(n,I(null))}},endZoneProps:{"data-sort-item":!0,"data-sort-item-id":a,onDragOver:P,onDrop:F},inserting:v,getItemClass:function(e){return w===e||p===e||m===e?A():d(e)},getSourceClass:function(e){return w===e?A():""},getGripSortable:function(e){return{onDragStart:c.onDragStart,onDragEnd:E,onMouseDown:()=>k(e),draggable:!0,onTouchStart:t=>{h.current=e,T(t),f(e)},onTouchEnd:L,onTouchCancel:M}},getSourceGrip:function(e){return{draggable:!0,onDragStart:t=>{t.dataTransfer.setData("text/plain",e),t.dataTransfer.effectAllowed="copy",y.current=e},onDragEnd:D,onMouseDown:()=>k(e),onTouchStart:t=>{y.current=e,T(t),k(e)},onTouchEnd:R,onTouchCancel:D}}}}},99468:(e,t,n)=>{"use strict";function r(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{A:()=>r})},99827:(e,t,n)=>{"use strict";n.d(t,{A:()=>B});var r=n(37876),i=n(56788),o=n(36607),s=n(14232),a=n(33163),l=n(48774),u=n(13566),c=n(64671),d=n(47737),h=n(29842),p=n(29203),f=n(35308),m=n(59884),g=n(82153),y=n(64599),v=n(7784),b=n(85858),x=n(99289),_=n(62307),w=n(41612),k=n(96946),C=n(33890),E=n(22522),A=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(A||{});let S={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:(0,v.wl)(n,e=>e.element.current)}},1(e,t){let n=e.options.slice(),r=e.options.findIndex(e=>e.id===t.id);return -1===r?e:(n.splice(r,1),{...e,options:n})}},T=(0,s.createContext)(null);function j(e){let t=(0,s.useContext)(T);if(null===t){let t=Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,j),t}return t}T.displayName="RadioGroupDataContext";let N=(0,s.createContext)(null);function O(e){let t=(0,s.useContext)(N);if(null===t){let t=Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,O),t}return t}function I(e,t){return(0,x.Y)(t.type,S,e,t)}N.displayName="RadioGroupActionsContext";let D=(0,w.FX)(function(e,t){let n=(0,s.useId)(),r=(0,f._)(),{id:i=`headlessui-radiogroup-${n}`,value:o,form:d,name:h,onChange:g,by:y,disabled:x=r||!1,defaultValue:A,...S}=e,j=(0,a.t)(y),[O,D]=(0,s.useReducer)(I,{options:[]}),M=O.options,[L,R]=(0,E.b0)(),[P,F]=(0,k.rU)(),B=(0,s.useRef)(null),$=(0,p.P)(B,t),q=(0,u.K)(A),[V,z]=(0,l.P)(o,g,q),U=(0,s.useMemo)(()=>M.find(e=>!e.propsRef.current.disabled),[M]),H=(0,s.useMemo)(()=>M.some(e=>j(e.propsRef.current.value,V)),[M,V]),W=(0,c._)(e=>{var t;if(x||j(e,V))return!1;let n=null==(t=M.find(t=>j(t.propsRef.current.value,e)))?void 0:t.propsRef.current;return(null==n||!n.disabled)&&(null==z||z(e),!0)}),G=(0,c._)(e=>{let t=B.current;if(!t)return;let n=(0,_.T)(t),r=M.filter(e=>!1===e.propsRef.current.disabled).map(e=>e.element.current);switch(e.key){case C.D.Enter:(0,b.q)(e.currentTarget);break;case C.D.ArrowLeft:case C.D.ArrowUp:if(e.preventDefault(),e.stopPropagation(),(0,v.CU)(r,v.BD.Previous|v.BD.WrapAround)===v.Me.Success){let e=M.find(e=>e.element.current===(null==n?void 0:n.activeElement));e&&W(e.propsRef.current.value)}break;case C.D.ArrowRight:case C.D.ArrowDown:if(e.preventDefault(),e.stopPropagation(),(0,v.CU)(r,v.BD.Next|v.BD.WrapAround)===v.Me.Success){let e=M.find(e=>e.element.current===(null==n?void 0:n.activeElement));e&&W(e.propsRef.current.value)}break;case C.D.Space:{e.preventDefault(),e.stopPropagation();let t=M.find(e=>e.element.current===(null==n?void 0:n.activeElement));t&&W(t.propsRef.current.value)}}}),K=(0,c._)(e=>(D({type:0,...e}),()=>D({type:1,id:e.id}))),J=(0,s.useMemo)(()=>({value:V,firstOption:U,containsCheckedOption:H,disabled:x,compare:j,...O}),[V,U,H,x,j,O]),Q=(0,s.useMemo)(()=>({registerOption:K,change:W}),[K,W]),Y=(0,s.useMemo)(()=>({value:V}
3141),[V]),X=(0,s.useCallback)(()=>{if(void 0!==q)return W(q)},[W,q]),Z=(0,w.Ci)();return s.createElement(F,{name:"RadioGroup.Description"},s.createElement(R,{name:"RadioGroup.Label"},s.createElement(N.Provider,{value:Q},s.createElement(T.Provider,{value:J},null!=h&&s.createElement(m.CL,{disabled:x,data:{[h]:V||"on"},overrides:{type:"radio",checked:null!=V},form:d,onReset:X}),Z({ourProps:{ref:$,id:i,role:"radiogroup","aria-labelledby":L,"aria-describedby":P,onKeyDown:G},theirProps:S,slot:Y,defaultTag:"div",name:"RadioGroup"})))))}),M=(0,w.FX)(function(e,t){var n;let r=j("RadioGroup.Option"),a=O("RadioGroup.Option"),l=(0,s.useId)(),{id:u=`headlessui-radiogroup-option-${l}`,value:f,disabled:m=r.disabled||!1,autoFocus:g=!1,...v}=e,b=(0,s.useRef)(null),x=(0,p.P)(b,t),[_,C]=(0,E.b0)(),[A,S]=(0,k.rU)(),T=(0,h.Y)({value:f,disabled:m});(0,d.s)(()=>a.registerOption({id:u,element:b,propsRef:T}),[u,a,b,T]);let N=(0,c._)(e=>{var t;if((0,y.l)(e.currentTarget))return e.preventDefault();a.change(f)&&(null==(t=b.current)||t.focus())}),I=(null==(n=r.firstOption)?void 0:n.id)===u,{isFocusVisible:D,focusProps:M}=(0,i.o)({autoFocus:g}),{isHovered:L,hoverProps:R}=(0,o.M)({isDisabled:m}),P=r.compare(r.value,f),F=(0,w.v6)({ref:x,id:u,role:"radio","aria-checked":P?"true":"false","aria-labelledby":_,"aria-describedby":A,"aria-disabled":!!m||void 0,tabIndex:m?-1:P||!r.containsCheckedOption&&I?0:-1,onClick:m?void 0:N,autoFocus:g},M,R),B=(0,s.useMemo)(()=>({checked:P,disabled:m,active:D,hover:L,focus:D,autofocus:g}),[P,m,L,D,g]),$=(0,w.Ci)();return s.createElement(S,{name:"RadioGroup.Description"},s.createElement(C,{name:"RadioGroup.Label"},$({ourProps:F,theirProps:v,slot:B,defaultTag:"div",name:"RadioGroup.Option"})))}),L=(0,w.FX)(function(e,t){var n;let r=j("Radio"),a=O("Radio"),l=(0,s.useId)(),u=(0,g.q)(),m=(0,f._)(),{id:v=u||`headlessui-radio-${l}`,value:b,disabled:x=r.disabled||m||!1,autoFocus:_=!1,...C}=e,A=(0,s.useRef)(null),S=(0,p.P)(A,t),T=(0,E.o2)(),N=(0,k.MM)(),I=(0,h.Y)({value:b,disabled:x});(0,d.s)(()=>a.registerOption({id:v,element:A,propsRef:I}),[v,a,A,I]);let D=(0,c._)(e=>{var t;if((0,y.l)(e.currentTarget))return e.preventDefault();a.change(b)&&(null==(t=A.current)||t.focus())}),{isFocusVisible:M,focusProps:L}=(0,i.o)({autoFocus:_}),{isHovered:R,hoverProps:P}=(0,o.M)({isDisabled:x}),F=(null==(n=r.firstOption)?void 0:n.id)===v,B=r.compare(r.value,b),$=(0,w.v6)({ref:S,id:v,role:"radio","aria-checked":B?"true":"false","aria-labelledby":T,"aria-describedby":N,"aria-disabled":!!x||void 0,tabIndex:x?-1:B||!r.containsCheckedOption&&F?0:-1,autoFocus:_,onClick:x?void 0:D},L,P),q=(0,s.useMemo)(()=>({checked:B,disabled:x,hover:R,focus:M,autofocus:_}),[B,x,R,M,_]);return(0,w.Ci)()({ourProps:$,theirProps:C,slot:q,defaultTag:"span",name:"Radio"})}),R=Object.assign(D,{Option:M,Radio:L,Label:E.JU,Description:k.VY}),P=(0,w.FX)(function(e,t){let n=`headlessui-control-${(0,s.useId)()}`,[r,i]=(0,E.b0)(),[o,a]=(0,k.rU)(),l=(0,f._)(),{disabled:u=l||!1,...c}=e,d=(0,s.useMemo)(()=>({disabled:u}),[u]),h=(0,w.Ci)();return s.createElement(f.S,{value:u},s.createElement(i,{value:r},s.createElement(a,{value:o},s.createElement(g.J,{id:n},h({ourProps:{ref:t,disabled:u||void 0,"aria-disabled":u||void 0},theirProps:{...c,children:s.createElement(m.PC,null,"function"==typeof c.children?c.children(d):c.children)},slot:d,defaultTag:"div",name:"Field"})))))});var F=n(49995);function B(e){let{ariaLabel:t,className:n,usingController:i,options:o,renderOption:a,selected:l,setSelected:u,withAddCard:c}=e,d=i?.field;return(0,r.jsxs)(R,{value:l,onChange:function(e){d?.onChange(e),u(e)},onBlur:()=>d?.onBlur(),"aria-label":t,className:n||"flex flex-col gap-2","data-sentry-element":"RadioGroup","data-sentry-component":"CardRadioGroup","data-sentry-source-file":"CardRadioGroup.tsx",children:[o.map(e=>(0,r.jsx)(P,{children:(0,r.jsx)(L,{as:s.Fragment,value:e,ref:d?.ref,children:({checked:t,disabled:n})=>(0,r.jsxs)("div",{className:(0,F.A)("flex justify-between items-center gap-4","border",t?"border-[var(--group-border-color)] border-[2px]":"border-secondary-350 m-[1px]","rounded-lg","p-6"),
3141children:[(0,r.jsx)("span",{className:(0,F.A)("group flex size-6 items-center justify-center rounded-full border",t?"border-[var(--group-border-color)]":"border-secondary-350",n&&"border-secondary-200"),children:t&&(0,r.jsx)("span",{className:(0,F.A)("size-2.5 rounded-full",t?"bg-[var(--group-border-color)]":"hidden")})}),(0,r.jsx)(E.JU,{className:"flex-1",children:a(e)})]})})},e)),c&&(0,r.jsx)(P,{children:(0,r.jsx)(L,{as:s.Fragment,value:"#new",children:({checked:e,disabled:t})=>(0,r.jsxs)("div",{className:(0,F.A)("flex justify-between items-center gap-4","border",e?"border-[var(--group-border-color)] border-[2px]":"border-secondary-350 m-[1px]","rounded-lg","p-6"),children:[(0,r.jsx)("span",{className:(0,F.A)("group flex size-6 items-center justify-center rounded-full border",e?"border-[var(--group-border-color)]":"border-secondary-350",t&&"border-secondary-200"),children:e&&(0,r.jsx)("span",{className:(0,F.A)("size-2.5 rounded-full",e?"bg-[var(--group-border-color)]":"hidden")})}),(0,r.jsx)(E.JU,{className:"flex-1",children:"Add a new payment method"})]})})},"add-card")]})}},99828:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},99969:e=>{e.exports=function(e){return function(t){return e(t)}}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(35316),t(61685),t(92),t(59603))),_N_E=e.O()}]); 3142//# sourceMappingURL=_app-b446ceea9050a169.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.